/* Cobblestone Restaurant Solutions — site styles
   Design tokens first, then base, layout, components. Every class used by build_pages.py, app.js and admin.js lives here. */
:root {
  --charcoal: #1f1f1f;
  --charcoal-2: #2b2b2b;
  --ink: #171717;
  --cream: #faf8f3;
  --cream-2: #f1ede3;
  --gold: #c9a227;
  --gold-dark: #846711;
  --gold-soft: #f7efd6;
  --muted: #5f5f5f;
  --line: #e3dfd3;
  --white: #ffffff;
  --danger: #b4423a;
  --ok: #23643b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
/* links inside running text are underlined so they don't rely on color alone */
p a:not(.btn), li a:not(.btn), .fine a, .notice a, blockquote a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.solution li a, .menu a, .pos-links a, .site-footer li a, .crumbs a, .resource, .card h3 a, .product-card .more, .steps h3 a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: #3a3a3a; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section.tight { padding: clamp(32px, 4vw, 52px) 0; }
.section.dark { background: var(--charcoal); color: var(--cream); }
.section.dark .eyebrow { color: var(--gold); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .muted { color: #b9b4a8; }
.section.dark p a, .dark .feature a { color: var(--gold); }
.section.alt { background: var(--cream-2); }
.section.white { background: var(--white); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only.focusable:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--gold); color: var(--ink); padding: 10px 14px; z-index: 200; border-radius: 6px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head.center { margin-inline: auto; }
.section-head p.lead { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 8px; font-weight: 600;
  border: 2px solid var(--gold); background: var(--gold); color: var(--ink); line-height: 1.2;
  cursor: pointer; font-family: var(--font-body); font-size: 1rem; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; text-align: center;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn.ghost.light { color: var(--cream); border-color: rgba(255,255,255,.7); }
.btn.ghost.light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn.dark:hover { background: #000; border-color: #000; }
.btn.small { min-height: 38px; padding: 8px 16px; font-size: .9rem; }
.btn.lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }

/* Header + navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31,31,31,.97); backdrop-filter: blur(8px);
  color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .mark { height: 42px; width: auto; padding: 4px 7px; background: #fff; border-radius: 8px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1rem; font-weight: 600; cursor: pointer; padding: 10px 12px; border-radius: 6px; align-items: center; gap: 8px; font-family: var(--font-body); }
.nav-toggle .bars { display: inline-block; width: 22px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 6px; color: var(--cream); font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: 6px; font-family: var(--font-body); line-height: 1;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li > a[aria-current="page"], .nav > li > button[aria-expanded="true"], .nav > li.active > button { color: var(--gold); text-decoration: none; }
.nav > li > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav > li > button[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.nav .cta { margin-left: 8px; }
.nav .cta .btn { min-height: 42px; padding: 9px 18px; }
.menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--white); color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 10px; z-index: 60; border: 1px solid var(--line);
}
.menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav > li > button[aria-expanded="true"] + .menu { display: block; }
@media (min-width: 1061px) { .nav > li:hover > .menu, .nav > li:focus-within > .menu { display: block; } }
.menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.menu a:hover, .menu a:focus-visible { background: var(--cream-2); text-decoration: none; }
.menu a strong { font-weight: 600; font-size: .95rem; }
.menu a span { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.menu a[aria-current="page"] strong { color: var(--gold-dark); }
.menu .menu-foot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.menu .menu-foot a { font-weight: 600; color: var(--gold-dark); }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
         background: var(--charcoal); padding: 8px 16px 32px; display: none; border-top: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .nav > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .menu { position: static; box-shadow: none; border: 0; background: transparent; color: var(--cream); padding: 0 0 10px 8px; min-width: 0; }
  .menu a { color: var(--cream); padding: 10px 10px; }
  .menu a span { color: #b9b4a8; }
  .menu a:hover, .menu a:focus-visible { background: rgba(255,255,255,.06); }
  .menu .menu-foot { border-color: rgba(255,255,255,.1); }
  .nav .cta { margin: 16px 0 0; }
  .nav .cta .btn { width: 100%; min-height: 50px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) { .brand { font-size: .95rem; } .brand small { display: none; } .brand .mark { height: 38px; } }

/* Breadcrumbs */
.crumbs { font-size: .84rem; color: var(--muted); margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #9b9686; }
.crumbs a { color: inherit; }
.page-hero .crumbs { color: #b9b4a8; } .page-hero .crumbs li + li::before { color: #7a766c; }

/* Heroes */
.hero { position: relative; background: var(--charcoal); color: var(--cream); overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(900px 500px at 85% 20%, rgba(201,162,39,.14), transparent 60%), linear-gradient(180deg, rgba(20,20,20,.68), rgba(20,20,20,.86)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } .hero { background: var(--charcoal) url("/images/hero-poster.jpg") center / cover no-repeat; } }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 92px) 0; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero .lead { color: #e2ddd1; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 560px; }
.hero .lead a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: #b9b4a8; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "\2713"; color: var(--gold); font-weight: 700; margin-right: 6px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); width: 100%; }
.hero-media .badge { position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--ink); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem; display: grid; gap: 2px; }
.hero-media .badge strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold-dark); line-height: 1; }
.hero-logo { width: min(250px, 64%); margin: 0 auto 24px; padding: 16px 20px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.hero-logo img { width: 100%; height: auto; margin: 0 auto; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: 32px; } .hero-media { order: -1; } .hero-media .badge { display: none; } }
.page-hero { background: var(--charcoal); color: var(--cream); padding: clamp(48px, 7vw, 84px) 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 10%, rgba(201,162,39,.14), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero .lead { color: #d8d4ca; max-width: 720px; }
.page-hero .lead a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.page-hero .eyebrow a { color: inherit; }
.page-hero .hero-actions { margin-top: 20px; justify-content: flex-start; }
.page-hero .meta .pill { margin: 0 6px 6px 0; }
.page-hero .meta .price.small { color: var(--gold); }
.page-hero .meta:empty { display: none; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card .body .btn { align-self: flex-start; margin-top: auto; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card h3 { margin-bottom: 2px; }
.dark .card { background: var(--charcoal-2); border-color: rgba(255,255,255,.08); color: var(--cream); }
.dark .card .muted { color: #b9b4a8; }
.feature { padding: 24px; border-left: 3px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 1.12rem; }
.feature p:last-child { margin-bottom: 0; }
.dark .feature { background: var(--charcoal-2); }
.alt .feature { box-shadow: none; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split.start { align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split img.headshot { width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; border: 6px solid var(--white); box-shadow: 0 0 0 2px var(--gold), var(--shadow); object-fit: cover; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; color: var(--gold); line-height: 1; }
.stat span { color: #c9c4b8; font-size: .88rem; display: block; margin-top: 6px; }
.alt .stats .stat strong, .section:not(.dark) .stats .stat strong { color: var(--gold-dark); }
.alt .stats .stat span, .section:not(.dark) .stats .stat span { color: var(--muted); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--cream-2); color: var(--ink); }
.pill.open { background: #e4f1e9; color: var(--ok); }
.pill.full { background: #f6e3e1; color: var(--danger); }
.pill.closed { background: #eee; color: var(--muted); }
.pill.gold { background: var(--gold); color: var(--ink); }
.meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.price { font-family: var(--font-head); font-size: 1.4rem; }
.price.small { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--gold-dark); }
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.dark .step h3 { color: var(--cream); padding-top: 8px; }
blockquote { margin: 0; padding: 24px 28px; background: var(--white); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
blockquote cite { display: block; font-style: normal; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding-right: 24px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.3rem; color: var(--gold-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; }
.cta-band { background: var(--gold); color: var(--ink); padding: 44px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cta-band .btn:hover { background: #000; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 700; }
.dark .checklist li::before { color: var(--gold); }
.notice { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid #e8d79a; font-size: .92rem; }
.notice p:last-child { margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.dark .icon { background: rgba(201,162,39,.16); color: var(--gold); }

/* Solutions (homepage) */
.solutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.solution { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.solution:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.solution .eyebrow { margin-bottom: 4px; }
.solution h3 { font-size: 1.45rem; margin-bottom: 10px; }
.solution ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.solution li { padding-left: 22px; position: relative; font-size: .95rem; }
.solution li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); }
.solution li a { color: var(--ink); }
.solution .link-arrow { margin-top: auto; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; }
.trust div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.trust strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-dark); line-height: 1.1; }
.trust span { font-size: .85rem; color: var(--muted); }

/* Logo wall / resources */
.resource-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.resource { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: transform .18s, box-shadow .18s; }
.resource:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.resource h3 { font-size: 1.1rem; margin: 0; color: var(--ink); }
.resource:hover h3, .resource:focus-visible h3 { color: var(--gold-dark); }
.resource:hover { text-decoration: none; }
.resource p { margin: 0; font-size: .92rem; color: var(--muted); flex: 1; }
.resource .pill { align-self: flex-start; }

/* Forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfcabd; border-radius: 8px; font: inherit; background: var(--white); color: var(--ink); min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[type="file"] { padding: 10px; background: var(--cream-2); border-style: dashed; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }
textarea { min-height: 120px; resize: vertical; }
.form .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
.form .consent input { margin-top: 4px; }
.form-msg { padding: 12px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e4f1e9; color: var(--ok); }
.form-msg.err { display: block; background: #f6e3e1; color: var(--danger); }
.honeypot { position: absolute; left: -9999px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.5rem; }
.dark .form-card { color: var(--ink); }
.form-side .feature + .feature { margin-top: 16px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal.open { display: grid; }
.modal .panel { background: var(--cream); border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; padding: 28px; position: relative; }
.modal .close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); width: 40px; height: 40px; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.cal-head h2, .cal-head h3 { margin: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; cursor: pointer; font: inherit; min-height: 42px; }
.cal-nav button:hover { border-color: var(--gold); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal-day { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; min-height: 104px; padding: 6px; font-size: .85rem; }
.cal-day.other { opacity: .4; }
.cal-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-day .num { font-weight: 600; margin-bottom: 4px; }
.cal-ev { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; font-size: .76rem; line-height: 1.25; padding: 4px 6px; border-radius: 4px; margin-bottom: 3px;
  background: var(--cream-2); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.class { background: var(--gold); }
.cal-ev.workshop { background: #e4f1e9; }
.cal-ev.event { background: #e9e5f5; }
.cal-list { display: none; }
@media (max-width: 700px) {
  .cal-grid { display: none; }
  .cal-list { display: grid; gap: 10px; }
  .cal-list .item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
  .cal-list .item .d { font-family: var(--font-head); font-size: 1.3rem; min-width: 52px; text-align: center; line-height: 1; }
  .cal-list .item .d small { display: block; font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; color: var(--muted); }
}
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; margin-top: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l-class::before { background: var(--gold); }
.legend .l-workshop::before { background: #e4f1e9; border: 1px solid #b8d9c4; }
.legend .l-event::before { background: #e9e5f5; border: 1px solid #c8bfe6; }

/* Videos */
.thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--charcoal); cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .25s, opacity .25s; }
.thumb:hover img { transform: scale(1.03); opacity: .85; }
.thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; box-shadow: var(--shadow); }
.thumb.large { border-radius: var(--radius); box-shadow: var(--shadow); }
.thumb.large .play { width: 84px; height: 84px; font-size: 1.9rem; }
.video-card .thumb img { aspect-ratio: 16/9; }
.video-modal .panel { max-width: 1000px; padding: 0; background: #000; overflow: visible; }
.video-modal .close { top: -42px; right: 0; color: var(--cream); }
.ratio { position: relative; aspect-ratio: 16/9; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.episode-body { max-width: 760px; }
.episode-body .takeaways { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }

/* Magazine */
#video-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
#issue-list { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.issue-card img { aspect-ratio: 3/4; }
.issue-featured { grid-template-columns: minmax(220px, 380px) 1fr; }
.issue-featured .cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.in-issue { padding-left: 1.2em; margin: 0 0 1em; }
.in-issue li { margin-bottom: 6px; }
@media (max-width: 800px) { .issue-featured { grid-template-columns: 1fr; } .issue-featured .cover { max-width: 320px; } }
.flip-embed { margin-top: 36px; aspect-ratio: 16 / 10; background: #111; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.flip-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 800px) { .flip-embed { aspect-ratio: 3 / 4; } }

/* Products */
.product-card h3 a { color: inherit; }
.product-card .meta { min-height: 0; gap: 8px; align-items: center; }
.product-card .meta:empty { display: none; }
.product-card .more { margin-top: auto; font-weight: 600; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 680px; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--charcoal); color: var(--cream); font-weight: 600; white-space: nowrap; }
.cmp tbody th { font-weight: 600; color: var(--ink); }
.cmp td.us { color: var(--gold-dark); font-weight: 700; }
.cmp tr.total th, .cmp tr.total td { font-weight: 700; background: var(--cream-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.pos-nav h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pos-links { list-style: none; padding: 0; margin: 0; }
.pos-links li { margin-bottom: 8px; }
.pos-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #b9b4a8; padding: 56px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.footer-logo { width: 190px; height: auto; margin-bottom: 14px; padding: 12px 16px; background: #fff; border-radius: 10px; }
.site-footer .fh { color: var(--cream); font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer p a { color: var(--cream); }
.site-footer a { color: #d8d4ca; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* Utilities */
.skeleton { background: linear-gradient(90deg, #ece8de 25%, #f5f2ea 50%, #ece8de 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; min-height: 180px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty a { text-decoration: underline; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-2 { margin-bottom: 16px; }
.maxw { max-width: 760px; }
.maxw.center { margin-inline: auto; }
@media (max-width: 700px) { .hide-mobile { display: none !important; } }

/* Try it yourself (/demo#try): sandbox demo PIN form and reveal */
.form .consent label { font-weight: 400; font-size: .85rem; margin: 0; }
.form .consent input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; }
.ts-widget { min-height: 65px; }
.try-result { text-align: center; padding: 8px 0; }
.try-result[hidden] { display: none; }
.try-pin { font-family: var(--font-body); font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 700; letter-spacing: .18em; font-variant-numeric: tabular-nums; margin: 4px 0 8px; color: var(--ink); }
.try-result .btn { margin-top: 12px; }
.try-url { word-break: break-all; margin-top: 10px; }


/* ---------- Undercover Employee (/undercover) ---------- */
.uc-hero .container { grid-template-columns: 1.15fr .85fr; }
.uc-hero h1 em { font-style: italic; color: var(--gold); }
.uc-hero .crumbs { color: #b9b4a8; margin-bottom: 14px; }
.uc-hero .crumbs li + li::before { color: #7a766c; }
.uc-hero .hero-media { max-width: 458px; margin-inline: auto; }
.uc-hero .hero-media img { aspect-ratio: 458 / 584; object-fit: cover; }
.uc-panel { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.uc-panel h3 { margin-bottom: 10px; }
.uc-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.uc-check li { position: relative; padding-left: 30px; line-height: 1.45; }
.uc-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); border: 1.5px solid var(--gold); }
.uc-check li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid var(--gold-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.uc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: none; }
.uc-step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.uc-step.has-pic { grid-template-columns: 52px 1fr minmax(200px, 300px); }
.uc-step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--charcoal); color: var(--gold); font-family: var(--font-head); font-size: 1.3rem; display: grid; place-items: center; }
.uc-step h3 { margin-bottom: 6px; }
.uc-step p { margin: 0; }
.uc-step img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 760px) { .uc-step.has-pic { grid-template-columns: 52px 1fr; } .uc-step img { grid-column: 1 / -1; } }
.uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.uc-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.uc-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.uc-item p { margin: 0; font-size: .95rem; }
.uc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; flex: none; }
.uc-ico svg { width: 26px; height: 26px; }
.uc-promise { background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; }
.uc-promise .uc-ico { background: rgba(201,162,39,.16); color: var(--gold); margin-bottom: 14px; }
.uc-promise h3 { font-size: 1.12rem; margin-bottom: 6px; }
.uc-promise p { margin: 0; }
.uc-call { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 1.35rem; margin: 18px 0; }
.uc-call .uc-ico { width: 44px; height: 44px; border-radius: 50%; }
.uc-call a { color: var(--ink); }
@media (max-width: 900px) { .uc-hero .container { grid-template-columns: 1fr; } .uc-hero .hero-media { max-width: 360px; } }
.uc-stats .stat strong { font-size: clamp(1.45rem, 4.2vw, 2.3rem); white-space: nowrap; }
.uc-stats .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
