/* =====================================================================
   Yapay Zekâ ile Mutfak: css/style.css
   Site: lang="tr", dir="ltr". Pages: index.php (home), privacy-policy.php (legal).
   Fonts come from the host: var(--mrc-font-en) for sans, system mono for accents.

   SHARED MARKUP CONTRACT (all pages must use these selectors)
   -------------------------------------------------------------------
   Page shell
     <body class="page-home|page-legal">
       <a class="skip-link" href="#main">…</a>
       <header class="site-header" data-header> … </header>
       <main id="main"> sections … </main>
       <footer class="site-footer"> … </footer>

   Header (identical on every page)
     header.site-header[data-header] > .container.header-inner >
       a.brand[href="index.php"] > img.brand-logo[src="img/logo.jpg"] + span.brand-name
       button.nav-toggle[type=button][data-nav-toggle][aria-expanded="false"][aria-controls="site-nav"]
           > span.nav-toggle-bar + span.visually-hidden
       nav.site-nav#site-nav[data-nav] >
           ul.nav-list > li > a.nav-link   (anchors: #nasil-calisir, #ozellikler, #kimler-icin)
           a.btn.btn-primary.btn-sm[data-cta="primary"][href="game.php"]
   State names for JS:
     .site-nav.is-open + button[aria-expanded="true"] + body.nav-open  (mobile menu open)
     .site-header.is-scrolled                                          (after scroll)
     .nav-link[aria-current="page|true"] or .nav-link.is-active        (current link)
     .doc-toc a[aria-current="true"] or .is-active                     (privacy TOC)

   Sections
     section.section.section--dark | .section--light | .section--accent  (+ .section--photo)
       > .container (.container--narrow | .container--wide)
       > .section-head > p.eyebrow + h2.section-title + p.section-lead
     Ids: #top (hero), #nasil-calisir, #ozellikler, #kimler-icin, #basla (cta)
     Helpers: .text-accent (orange word in titles), .badge (.badge--ai | .badge--ok), .check-list,
              blockquote.pull-quote > p + cite

   Primary CTA (every instance; pill + attached icon chip)
     a.btn.btn-primary[data-cta="primary"][href="game.php"] [.btn-sm] [.btn-halo]
       > span.btn-label + span.btn-icon[aria-hidden="true"]  (empty; CSS draws the arrow)
     Secondary: a.btn.btn-secondary ; back link: a.btn.btn-secondary.btn-back >
       span.btn-icon[aria-hidden] + span.btn-label.   .btn-halo is the soft pulse (use once per view).

   Hero (index)
     section.hero.section.section--dark.section--photo#top > .container.hero-grid >
       .hero-copy > p.eyebrow + h1.hero-title + p.hero-lead +
          .hero-actions > a.btn.btn-primary.btn-halo + p.hero-note ;  ul.hero-points > li
       .hero-visual > .collage >
          span.collage-layer.collage-layer--back[aria-hidden] + span.collage-layer.collage-layer--mid[aria-hidden]
          + figure.collage-main > img (img/hero-graphic.jpg)
          + span.collage-tag + span.collage-badge

   How it works
     ol.steps > li.step [.step--highlight] > span.step-num + .step-body > (span.badge.badge--ai)? h3.step-title + p.step-text

   Cards
     .feature-grid > article.card.feature-card [.card--accent] > span.card-icon? + p.card-kicker + h3.card-title + p.card-text
     .audience-grid > article.card.audience-card > span.audience-tag + h3.card-title + p.card-text

   CTA band
     section.section.section--accent.cta-section#basla > .container > .cta-panel >
       div > h2.cta-title + p.cta-text ; a.btn.btn-primary

   Footer
     footer.site-footer > .container >
       .footer-top > p.eyebrow + p.footer-statement + a.btn.btn-primary (optional)
       .footer-grid > .footer-brand (a.brand + p.footer-desc) + nav.footer-nav > ul.footer-links > li > a
                      + p.footer-note
       .footer-bottom > p.copyright
     + p.footer-wordmark[aria-hidden="true"] (outside .container)

   Legal document (privacy-policy.php)
     section.page-hero.section.section--dark > .container > p.eyebrow + h1.page-title + p.page-lead + p.doc-meta
     section.section.section--light > .container > .doc-layout >
       nav.doc-toc[aria-label] > p.doc-toc-title + ol > li > a[href="#id"]
       article.doc > section.doc-section[id] > h2 + p / ul / ol / .callout / .table-wrap > table.doc-table
       + .contact-panel > .contact-map[aria-hidden] > span.contact-pin ; .contact-details > h3 + dl.contact-list > div > dt + dd (span.ph = placeholder)
       + .doc-cta > p + a.btn.btn-secondary.btn-back[href="index.php"]

   Forms (generic)
     form.form > .field > label.field-label + input.input | textarea.textarea | select.select + .field-hint + .field-error
     States: .is-invalid / [aria-invalid="true"], .is-valid, .form-status.is-success|.is-error, .form.is-loading
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --c-orange: #F97316;
  --c-orange-hot: #FB923C;
  --c-orange-deep: #EA580C;
  --c-orange-ink: #C2410C;
  --c-cream: #FFF7ED;
  --c-cream-2: #FFEDD5;
  --c-ink: #1F2937;
  --c-ink-deep: #111827;
  --c-gray: #4B5563;
  --c-green: #16A34A;
  --c-green-ink: #15803D;

  --font-sans: var(--mrc-font-en), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 3.6vw, 3.75rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 5.6vw, 5.5rem);
  --fs-pull: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  --fs-mono: 0.78rem;

  --r-sm: 1rem;
  --r-md: 1.5rem;
  --r-lg: 2rem;
  --r-xl: 2.75rem;
  --r-pill: 999px;

  --gutter: 1.25rem;
  --maxw: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.3, 0.7, 0.2, 1);

  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2316A34A'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%23FFF7ED' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Theme variables: dark is the default; sections override them. */
:root,
.section--dark {
  --sec-bg: var(--c-ink);
  --sec-fg: var(--c-cream);
  --sec-muted: rgba(255, 247, 237, 0.78);
  --accent-text: var(--c-orange);
  --ok-text: #4ADE80;
  --line: rgba(255, 247, 237, 0.16);
  --card-bg: var(--c-cream);
  --card-fg: var(--c-ink);
  --card-muted: var(--c-gray);
  --card-accent: var(--c-orange-ink);
  --card-line: rgba(31, 41, 55, 0.1);
  --focus: var(--c-cream);
  --halo: rgba(249, 115, 22, 0.38);
  --err: #FCA5A5;
}

.section--light {
  --sec-bg: var(--c-cream);
  --sec-fg: var(--c-ink);
  --sec-muted: var(--c-gray);
  --accent-text: var(--c-orange-ink);
  --ok-text: var(--c-green-ink);
  --line: rgba(31, 41, 55, 0.16);
  --card-bg: var(--c-ink);
  --card-fg: var(--c-cream);
  --card-muted: rgba(255, 247, 237, 0.8);
  --card-accent: var(--c-orange);
  --card-line: rgba(255, 247, 237, 0.08);
  --focus: var(--c-ink);
  --halo: rgba(249, 115, 22, 0.4);
  --err: #B91C1C;
}

.section--accent {
  --sec-bg: var(--c-orange);
  --sec-fg: var(--c-ink);
  --sec-muted: var(--c-ink);
  --accent-text: var(--c-ink);
  --ok-text: var(--c-ink);
  --line: rgba(31, 41, 55, 0.28);
  --card-bg: var(--c-ink);
  --card-fg: var(--c-cream);
  --card-muted: rgba(255, 247, 237, 0.8);
  --card-accent: var(--c-orange);
  --card-line: rgba(255, 247, 237, 0.08);
  --focus: var(--c-ink);
  --halo: rgba(31, 41, 55, 0.36);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-ink-deep);
  color: var(--c-cream);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: break-word; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--c-orange); color: var(--c-ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.card, .doc-toc, .doc-cta, .contact-panel { --focus: var(--card-fg); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-orange); color: var(--c-ink);
  border-radius: var(--r-pill); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--c-cream); }

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin-inline: auto;
}
.container--narrow { --maxw: 50rem; }
.container--wide { --maxw: 80rem; }

.text-accent { color: var(--accent-text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 24, 39, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 247, 237, 0.1);
  color: var(--c-cream);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.8);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-width: 0; text-decoration: none; font-weight: 800; letter-spacing: -0.01em;
}
.brand-logo {
  flex: none; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.75);
}
.brand-name { font-size: 1rem; line-height: 1.15; }

.nav-toggle {
  position: relative; flex: none;
  width: 2.75rem; height: 2.75rem;
  border: 1.5px solid rgba(255, 247, 237, 0.4);
  border-radius: 50%; background: transparent; color: var(--c-cream);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; display: block;
  width: 1.1rem; height: 2px; border-radius: 2px;
  background: currentColor; content: "";
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.nav-toggle-bar { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-bar::before { top: -0.36rem; left: 0; }
.nav-toggle-bar::after { top: 0.36rem; left: 0; }
.nav-toggle[aria-expanded="true"] { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(0.36rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-0.36rem) rotate(-45deg); }

.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; gap: 1rem;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--c-ink-deep);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-bottom: 1px solid rgba(255, 247, 237, 0.12);
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
}
.site-nav.is-open {
  visibility: visible; opacity: 1; pointer-events: auto;
  transform: none; transition-delay: 0s;
}
.site-nav .btn { justify-self: start; }

.nav-list { list-style: none; display: grid; gap: 0.25rem; }
.nav-link {
  display: flex; align-items: center; min-height: 2.9rem;
  padding: 0.4rem 1.1rem; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.02em;
  text-decoration: none; color: rgba(255, 247, 237, 0.88);
  transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(255, 247, 237, 0.1); color: var(--c-cream); }
.nav-link[aria-current],
.nav-link.is-active {
  background: rgba(255, 247, 237, 0.1); color: var(--c-cream);
  box-shadow: inset 0 0 0 1.5px var(--c-orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.75rem; min-height: 3.25rem; padding: 0.7rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 800; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-label { white-space: nowrap; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; pointer-events: none; }

.btn-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--c-ink); color: var(--c-cream);
}
.btn-icon::before {
  content: ""; width: 1.2rem; height: 1.2rem; background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.btn-icon svg { width: 1.2rem; height: 1.2rem; }
.btn:hover .btn-icon::before,
.btn:focus-visible .btn-icon::before { transform: translateX(0.28rem); }

/* Primary: orange pill, text segment + attached dark icon chip */
.btn-primary {
  padding: 0.35rem 0.35rem 0.35rem 1.7rem; gap: 1.1rem;
  background: var(--c-orange); border-color: var(--c-orange); color: var(--c-ink);
}
.btn-primary:hover { background: var(--c-orange-hot); border-color: var(--c-orange-hot); }
.btn-primary:active { background: var(--c-orange-deep); border-color: var(--c-orange-deep); transform: translateY(1px); }
.btn-primary.btn-sm { min-height: 2.9rem; padding: 0.3rem 0.3rem 0.3rem 1.25rem; gap: 0.8rem; font-size: 0.95rem; }
.btn-primary.btn-sm .btn-icon { width: 2.3rem; height: 2.3rem; }

.section--accent .btn-primary { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-cream); }
.section--accent .btn-primary:hover { background: var(--c-ink-deep); border-color: var(--c-ink-deep); }
.section--accent .btn-primary .btn-icon { background: var(--c-orange); color: var(--c-ink); }

/* Very soft halo: use on one CTA per view only */
.btn-halo { animation: halo 4.2s ease-out 1.5s infinite; }
.btn-halo:hover, .btn-halo:focus-visible { animation: none; }
@keyframes halo {
  0% { box-shadow: 0 0 0 0 var(--halo); }
  38%, 100% { box-shadow: 0 0 0 1.1rem transparent; }
}

.btn-secondary {
  background: transparent; color: inherit; border-color: currentColor;
}
.btn-secondary:hover {
  background: rgba(255, 247, 237, 0.12);
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.btn-secondary:active { transform: translateY(1px); }
.btn-secondary .btn-icon { width: 2.25rem; height: 2.25rem; background: var(--c-orange); color: var(--c-ink); }
.btn-back { padding-left: 0.4rem; gap: 0.75rem; }
.btn-back .btn-icon::before { transform: scaleX(-1); }
.btn-back:hover .btn-icon::before,
.btn-back:focus-visible .btn-icon::before { transform: translateX(-0.28rem) scaleX(-1); }

/* ---------- Sections ---------- */
.section {
  position: relative; isolation: isolate;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
  background-color: var(--sec-bg); color: var(--sec-fg);
  overflow-x: clip;
}
.section--dark {
  background-image:
    radial-gradient(50% 45% at 100% 0%, rgba(249, 115, 22, 0.16), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgba(22, 163, 74, 0.09), transparent 70%);
}
.section--light {
  background-image: radial-gradient(60% 45% at 0% 0%, rgba(249, 115, 22, 0.1), transparent 70%);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-title { margin: 0.75rem 0 1rem; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.03em; }
.section-lead { margin: 0; max-width: 38rem; font-size: var(--fs-lg); color: var(--sec-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem; margin: 0;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.85rem; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3;
  background: var(--c-cream); color: var(--c-ink);
}
.badge--ai { background: var(--c-orange); color: var(--c-ink); }
.badge--ok { background: var(--c-green-ink); color: var(--c-cream); }
.badge--ai::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c-ink); }

.check-list { list-style: none; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before,
.hero-note::before {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem;
  background: var(--icon-check) center / contain no-repeat;
}
.check-list li::before { position: absolute; left: 0; top: 0.25em; }

.pull-quote {
  max-width: 44rem; margin: clamp(2.5rem, 5vw, 4rem) 0; padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 4px solid var(--c-orange);
  font-size: var(--fs-pull); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
}
.pull-quote p { margin: 0; }
.pull-quote cite {
  display: block; margin-top: 1rem;
  font: normal 700 var(--fs-mono) var(--font-mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-text);
}

/* ---------- Hero ---------- */
.hero,
.section--photo {
  background-color: var(--c-ink-deep);
  background-image:
    radial-gradient(60% 50% at 85% 12%, rgba(249, 115, 22, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.94) 100%),
    url("../img/bg-mobile.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero { padding-top: clamp(2.5rem, 2rem + 4vw, 6rem); padding-bottom: clamp(3.5rem, 6vw, 7rem); }

.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero-title {
  margin: 1.25rem 0 1.25rem; font-size: var(--fs-h1);
  line-height: 0.98; letter-spacing: -0.04em;
}
.hero-lead { max-width: 34rem; margin-bottom: 2rem; font-size: var(--fs-lg); color: rgba(255, 247, 237, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.hero-note {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--c-cream);
}
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.25rem; }
.hero-points li {
  padding: 0.4rem 0.95rem; border: 1px solid rgba(255, 247, 237, 0.28); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: rgba(255, 247, 237, 0.85);
}

.hero-visual { min-width: 0; }
.collage {
  position: relative; isolation: isolate;
  max-width: 34rem; margin-inline: auto;
  padding: 2rem 1.25rem 2.25rem 1.75rem;
}
.collage-layer {
  position: absolute; z-index: 0; border-radius: var(--r-lg);
  background-image: url("../img/hero-graphic.jpg"); background-repeat: no-repeat;
  border: 1px solid rgba(255, 247, 237, 0.22);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.75);
}
.collage-layer--back {
  top: 0; left: 0; width: 60%; height: 60%;
  background-size: 240%; background-position: 6% 10%;
  transform: rotate(-6deg); filter: saturate(0.85) brightness(0.8);
}
.collage-layer--mid {
  right: 0; bottom: 0; width: 48%; height: 48%;
  background-size: 290%; background-position: 94% 92%;
  transform: rotate(5deg); border-color: rgba(249, 115, 22, 0.75);
}
.collage-main {
  position: relative; z-index: 1; margin: 0; aspect-ratio: 1 / 1;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(255, 247, 237, 0.3);
  background: var(--c-ink);
  box-shadow: 0 36px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(255, 247, 237, 0.05);
}
.collage-main img { width: 100%; height: 100%; object-fit: cover; }
.collage-tag, .collage-badge {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.95rem; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700; line-height: 1.3;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
}
.collage-tag { top: 0.4rem; right: 0; background: var(--c-orange); color: var(--c-ink); }
.collage-badge { left: 0; bottom: 0.85rem; max-width: calc(100% - 1rem); background: var(--c-cream); color: var(--c-ink); }
.collage-badge::before { content: ""; flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--c-green); }

/* ---------- Steps (how-it-works) ---------- */
.steps { --step-pad: 1.25rem; list-style: none; display: grid; max-width: 60rem; }
.step {
  display: grid; grid-template-columns: minmax(3.5rem, auto) minmax(0, 1fr);
  gap: 0.25rem 1.25rem; align-items: start;
  padding: 1.75rem var(--step-pad); border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5rem); line-height: 0.95; color: var(--accent-text);
}
.step-body { min-width: 0; }
.step-body .badge { margin-bottom: 0.75rem; }
.step-title { margin-bottom: 0.45rem; font-size: var(--fs-h3); line-height: 1.2; }
.step-text { max-width: 40rem; margin: 0; color: var(--sec-muted); }
.step--highlight {
  margin-block: 0.75rem; border-top: 0; border-radius: var(--r-lg);
  background: var(--card-bg); color: var(--card-fg);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.7);
}
.step--highlight + .step { border-top: 0; }
.step--highlight .step-num { color: var(--card-accent); }
.step--highlight .step-text { color: var(--card-muted); }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--card-bg); color: var(--card-fg);
  border: 1px solid var(--card-line); border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--c-orange); }
.card-icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 0.5rem;
  border-radius: 50%; background: var(--c-orange); color: var(--c-ink);
  font-family: var(--font-mono); font-weight: 700;
}
.card-kicker {
  margin: 0; font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--card-accent);
}
.card-title { font-size: var(--fs-h3); line-height: 1.2; }
.card-text { margin: 0; color: var(--card-muted); }
.card--accent { --card-bg: var(--c-orange); --card-fg: var(--c-ink); --card-muted: var(--c-ink); --card-accent: var(--c-ink); --card-line: transparent; }
.card--accent:hover { border-color: var(--c-cream); }

.feature-grid, .audience-grid { display: grid; gap: 1.25rem; }
.audience-tag {
  align-self: flex-start; padding: 0.3rem 0.9rem; border: 1.5px solid currentColor; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700; color: var(--card-accent);
}

/* ---------- CTA band ---------- */
.cta-section { padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; z-index: -1; right: -14rem; top: -15rem;
  width: 38rem; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(31, 41, 55, 0.16);
  box-shadow: 0 0 0 3rem rgba(31, 41, 55, 0.05), 0 0 0 6rem rgba(31, 41, 55, 0.04);
}
.cta-panel { display: grid; gap: 2rem; align-items: end; }
.cta-title { font-size: clamp(2.25rem, 1.2rem + 5vw, 5rem); line-height: 1.02; letter-spacing: -0.04em; }
.cta-text { max-width: 32rem; margin: 1.25rem 0 0; font-size: var(--fs-lg); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  --sec-bg: var(--c-ink-deep);
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(3.5rem, 6vw, 6rem);
  background-color: var(--c-ink-deep);
  background-image: radial-gradient(55% 40% at 50% 0%, rgba(249, 115, 22, 0.16), transparent 70%);
  color: var(--c-cream);
}
.footer-top { display: grid; justify-items: start; gap: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.footer-statement {
  max-width: 16em; margin: 0; font-size: clamp(2rem, 1.2rem + 4vw, 4.25rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
}
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(2rem, 4vw, 3rem); }
.footer-desc { max-width: 24rem; margin: 1rem 0 0; color: var(--sec-muted); }
.footer-links { list-style: none; display: grid; gap: 0.25rem; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.3rem 0;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--c-cream);
}
.footer-links a:hover { color: var(--c-orange); }
.footer-note {
  margin: 0; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 0.9rem; color: var(--sec-muted);
}
.footer-bottom { padding-block: 1.25rem 0; border-top: 1px solid var(--line); }
.copyright { margin: 0 0 1.5rem; font-family: var(--font-mono); font-size: var(--fs-mono); color: rgba(255, 247, 237, 0.7); }
.footer-wordmark {
  margin: 0; overflow: hidden; text-align: center; user-select: none; white-space: nowrap;
  font-size: clamp(4.5rem, 24vw, 19rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 247, 237, 0.18);
}

/* ---------- Legal / privacy ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); }
.page-title { margin: 1.25rem 0 1rem; max-width: 18ch; font-size: clamp(2.25rem, 1.3rem + 4.8vw, 4.75rem); line-height: 1; letter-spacing: -0.04em; }
.page-lead { max-width: 40rem; margin: 0 0 1.5rem; font-size: var(--fs-lg); color: var(--sec-muted); }
.doc-meta {
  display: inline-block; margin: 0; padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--sec-muted);
}

.doc-layout { display: grid; gap: 2.5rem; }
.doc-toc { padding: 1.5rem; border-radius: var(--r-lg); background: var(--card-bg); color: var(--card-fg); }
.doc-toc-title { margin: 0 0 0.75rem; font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--card-accent); }
.doc-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 0.15rem; }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill); font-size: 0.95rem; text-decoration: none; color: var(--card-muted);
  transition: background-color 0.2s, color 0.2s;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--card-accent); }
.doc-toc a:hover { background: rgba(255, 247, 237, 0.1); color: var(--card-fg); }
.doc-toc a[aria-current="true"], .doc-toc a.is-active { background: var(--c-orange); color: var(--c-ink); }
.doc-toc a[aria-current="true"]::before, .doc-toc a.is-active::before { color: var(--c-ink); }

.doc { min-width: 0; max-width: 44rem; counter-reset: sec; line-height: 1.75; }
.doc-section { padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.doc-section:first-child { padding-top: 0; border-top: 0; }
.doc-section h2 { counter-increment: sec; margin-bottom: 1rem; font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.15rem); line-height: 1.15; }
.doc-section h2::before {
  content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 0.4rem;
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.12em; color: var(--accent-text);
}
.doc h3 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.doc ul { list-style: none; margin: 0 0 1rem; }
.doc ul li { position: relative; margin-bottom: 0.55rem; padding-left: 1.6rem; }
.doc ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c-orange); }
.doc ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.doc ol li { margin-bottom: 0.55rem; padding-left: 0.25rem; }
.doc a { color: var(--accent-text); font-weight: 600; text-decoration-thickness: 2px; }
.doc a:hover { text-decoration-color: var(--c-orange); }

.callout {
  margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--r-md);
  background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.45);
}
.callout > :last-child { margin-bottom: 0; }
.callout--accent { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.5); }

.table-wrap { margin: 1.5rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.doc-table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.doc-table th, .doc-table td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table th { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(31, 41, 55, 0.07); }
.doc-table tr:last-child td { border-bottom: 0; }

.contact-panel { display: grid; margin: 1.5rem 0 0; overflow: hidden; border-radius: var(--r-lg); background: var(--card-bg); color: var(--card-fg); }
.contact-map {
  position: relative; min-height: 13rem; overflow: hidden;
  background-color: var(--c-ink-deep);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.35), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 247, 237, 0.07) 0 1px, transparent 1px 2.25rem),
    repeating-linear-gradient(90deg, rgba(255, 247, 237, 0.07) 0 1px, transparent 1px 2.25rem);
}
.contact-map::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 30%; height: 0.6rem;
  background: rgba(255, 247, 237, 0.12); transform: rotate(-14deg);
}
.contact-pin {
  position: absolute; left: 50%; top: 50%; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--c-orange); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0.5rem rgba(249, 115, 22, 0.3), 0 0 0 1.25rem rgba(249, 115, 22, 0.14);
}
.contact-details { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.contact-details h3 { margin-bottom: 1rem; font-size: var(--fs-h3); }
.contact-list { display: grid; gap: 1rem; margin: 0; }
.contact-list dt { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--card-accent); }
.contact-list dd { margin: 0.2rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ph {
  display: inline-block; padding: 0.05em 0.7em; border: 1.5px dashed currentColor; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 0.9em; font-weight: 500;
}

.doc-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin-top: 3rem; padding: clamp(1.5rem, 1rem + 2vw, 2rem);
  border-radius: var(--r-lg); background: var(--card-bg); color: var(--card-fg);
}
.doc-cta p { margin: 0; font-size: var(--fs-lg); font-weight: 700; }

/* ---------- Forms (generic) ---------- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field-label { font-size: 0.95rem; font-weight: 700; }
.field-hint { margin: 0; font-size: var(--fs-sm); color: var(--sec-muted); }
.field-error { display: none; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--err); }
.is-invalid ~ .field-error, [aria-invalid="true"] ~ .field-error, .field.is-invalid .field-error { display: block; }

.input, .textarea, .select {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1.4rem;
  background: #fff; color: var(--c-ink);
  border: 2px solid rgba(31, 41, 55, 0.35); border-radius: var(--r-pill);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 9rem; border-radius: var(--r-md); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6B7280; }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--c-orange-ink);
}
.input.is-invalid, .textarea.is-invalid, .select.is-invalid,
[aria-invalid="true"] { border-color: #B91C1C; box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18); }
.input.is-valid, .textarea.is-valid, .select.is-valid { border-color: var(--c-green); }
.form.is-loading { cursor: progress; }
.form.is-loading .btn { opacity: 0.6; pointer-events: none; }
.form-status { display: none; margin: 0; padding: 0.85rem 1.25rem; border-radius: var(--r-md); font-weight: 600; }
.form-status.is-success, .form-status.is-error { display: block; }
.form-status.is-success { background: var(--c-green-ink); color: var(--c-cream); }
.form-status.is-error { background: #B91C1C; color: #fff; }

/* ---------- Tiny phones ---------- */
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .brand-name { font-size: 0.9rem; }
  .btn-primary { padding-left: 1.3rem; }
  .btn-label { white-space: normal; }
}

/* ---------- 360px+ ---------- */
@media (min-width: 360px) {
  .step { gap: 0.25rem 1.5rem; }
}

/* ---------- 768px+ ---------- */
@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 4.75rem; }

  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 1.25rem;
    max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; border-radius: 0;
    visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: none;
  }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-link { min-height: 2.75rem; }

  .hero { min-height: min(46rem, calc(100vh - var(--header-h))); display: flex; align-items: center; }
  .hero > .container { width: min(calc(100% - 2 * var(--gutter)), var(--maxw)); }
  .hero,
  .section--photo {
    background-image:
      radial-gradient(55% 55% at 85% 20%, rgba(249, 115, 22, 0.3), transparent 70%),
      linear-gradient(100deg, rgba(17, 24, 39, 0.96) 0%, rgba(31, 41, 55, 0.78) 52%, rgba(31, 41, 55, 0.5) 100%),
      url("../img/bg-desktop.jpg");
  }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3rem; }
  .collage { padding: 2.5rem 1.5rem 2.75rem 2.25rem; }

  .steps { --step-pad: 2rem; }
  .step { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem 2rem; padding-block: 2.25rem; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

  .cta-panel { grid-template-columns: minmax(0, 1.4fr) auto; gap: 3rem; }

  .footer-grid { grid-template-columns: 1.3fr 0.8fr 1.3fr; gap: 3rem; align-items: start; }
  .footer-top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .footer-top .eyebrow { grid-column: 1 / -1; }

  .contact-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .contact-map { min-height: 100%; }
}

/* ---------- 1200px+ ---------- */
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; }
  .collage { padding: 3rem 2rem 3.25rem 3rem; }

  .audience-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-grid { gap: 1.75rem; }
  .card { min-height: 15rem; }
  .audience-card { min-height: 14rem; }

  .doc-layout { grid-template-columns: 16rem minmax(0, 44rem); justify-content: center; gap: 4.5rem; align-items: start; }
  .doc-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:hover .btn-icon::before,
  .btn:focus-visible .btn-icon::before { transform: none; }
  .btn-back:hover .btn-icon::before,
  .btn-back:focus-visible .btn-icon::before { transform: scaleX(-1); }
}