/* ==========================================================================
   FanFliks | https://fanfliks.ai/
   One stylesheet for every page.

   1.  Tokens
   2.  Base
   3.  Typography & text helpers
   4.  Layout & spacing utilities
   5.  Header, navigation, footer
   6.  Buttons & links
   7.  Motion
   8.  Home page
   9.  FAQ
   10. Legal pages (terms, privacy)
   11. 404 page
   12. Cookie consent (strip + Privacy Preferences dialog)
   13. Responsive
   14. Reduced motion
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */
:root {
  --bg: #F6F5F1;
  --text: #121213;
  --muted: #57544E;
  --line: #E2DFD8;
  --card: #FFFFFF;
  --accent: #0B74AE;
  --footer: #6B6862;
  --inverse-muted: #B5B2AC;
  --subtle: #B5B2AC;
  --media-bg: #E9E8E4;
  --outline: rgba(18, 18, 19, .25);

  --font-body: Inter, system-ui, sans-serif;
  --font-display: Archivo, 'Arial Narrow', sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --header-h: 76px;   /* header height on small screens; the menu panel opens right below it */
}


/* 2. Base
   ========================================================================== */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .72; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Image focal points (object-position) */
.pos-40-30 { object-position: 40% 30%; }
.pos-40-45 { object-position: 40% 45%; }
.pos-50-25 { object-position: 50% 25%; }
.pos-50-40 { object-position: 50% 40%; }
.pos-50-45 { object-position: 50% 45%; }
.pos-50-54 { object-position: 50% 54%; }
.pos-50-62 { object-position: 50% 62%; }
.pos-52-55 { object-position: 52% 55%; }


/* 3. Typography & text helpers
   ========================================================================== */
.eyebrow { font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.dsp { font-family: var(--font-display); font-stretch: 68%; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; margin: 0; line-height: .92; text-wrap: balance; }

.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-inverse-muted { color: var(--inverse-muted); }
.text-center { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }


/* 4. Layout & spacing utilities
   ========================================================================== */
.site { background: var(--bg); color: var(--text); font-family: var(--font-body); min-width: 0; padding-bottom: 8px; overflow-x: clip; }

.wrap { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding-left: 40px; padding-right: 40px; }
.wrap--narrow { max-width: 860px; }

.pt-56 { padding-top: 56px; }
.pt-72 { padding-top: 72px; }
.pt-80 { padding-top: 80px; }
.pt-110 { padding-top: 110px; }
.pt-150 { padding-top: 150px; }
.pt-160 { padding-top: 160px; }
.mt-160 { margin-top: 160px; }


/* 5. Header, navigation, footer
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); padding-top: 24px; padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-header::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; background: var(--bg); z-index: -1; }
.site-header::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; top: 100%; height: 16px; background: linear-gradient(rgba(18, 18, 19, .07), transparent); border-top: 1px solid var(--line); opacity: 0; transition: opacity .25s; pointer-events: none; }
.site-header.scrolled::after { opacity: 1; }

.logo { display: block; width: 120px; height: 30px; }
.logo--sm { width: 100px; height: 25px; }

/* Main navigation. It is a popover (the hamburger menu) on small screens, so the
   browser's default popover box styles are reset here for the inline desktop menu. */
.site-nav { display: flex; gap: 32px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: var(--muted); position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; }

.header-cta { background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 999px; white-space: nowrap; }

/* Hamburger button (small screens only, see Responsive) */
.menu-toggle { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--outline); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.menu-toggle__close { display: none; }
.site-header:has(.site-nav:popover-open) .menu-toggle__open { display: none; }
.site-header:has(.site-nav:popover-open) .menu-toggle__close { display: block; }

/* Breadcrumb */
.breadcrumb { padding-top: 20px; font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; content: "/" / ""; color: var(--subtle); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

.site-footer { padding-top: 56px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--footer); }
.site-footer--spaced { padding-top: 110px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }


/* 6. Buttons & links
   ========================================================================== */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

.btn { display: flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--outline { border: 1px solid var(--outline); padding: 14px 26px; }

.btn-light { background: var(--bg); color: var(--text); font-weight: 700; font-size: 15px; padding: 16px 28px; border-radius: 999px; }

.link-arrow { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }


/* 7. Motion
   Hero entrance is pure CSS. Scroll reveal classes (.armed/.shown) are added
   by js/main.js only for elements below the fold.
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

.in1 { animation: rise .9s var(--ease-out) both; }
.in2 { animation: rise .9s var(--ease-out) .12s both; }
.in3 { animation: rise .9s var(--ease-out) .24s both; }
.in4 { animation: rise 1.2s var(--ease-out) .4s both; }

.armed { opacity: 0; transform: var(--from, translateY(40px)); }
.shown { opacity: 1; transform: none; transition: opacity .9s ease var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }


/* 8. Home page
   ========================================================================== */

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.hero__title { font-size: clamp(68px, 10vw, 150px); }
.intro { margin: 0; max-width: 460px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.intro--wide { max-width: 480px; }

/* App screenshot stage with floating chips */
.app-stage { position: relative; display: flex; justify-content: center; }
.shot { display: block; width: 300px; height: 650px; border-radius: 46px; border: 7px solid #1C1C1F; background: #000; object-fit: cover; object-position: top; box-sizing: content-box; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .35), 0 12px 24px -8px rgba(0, 0, 0, .18); }

.chip { position: absolute; width: 190px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .18); text-align: left; }
.chipL { top: 210px; left: calc(50% - 370px); animation: pop .7s cubic-bezier(.2, .8, .3, 1.2) 1.2s both; }
.chipR { top: 470px; left: calc(50% + 180px); animation: pop .7s cubic-bezier(.2, .8, .3, 1.2) 1.45s both; }
.chip__icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chip__icon--gold { background: #FFF4CF; }
.chip__icon--orange { background: #FFE9DE; }
.chip__text { display: flex; flex-direction: column; gap: 2px; }
.chip__title { font-size: 15px; }
.chip__sub { font-size: 12px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; text-align: center; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-size: 64px; }
.stat__label { font-size: 14px; color: var(--muted); }

/* Full-width game day photo */
.moment { position: relative; height: clamp(320px, 52vw, 640px); border-radius: 32px; overflow: hidden; }

/* Section heading (eyebrow + title, centered) */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }

/* How it works */
.how { display: flex; flex-direction: column; gap: 52px; }
.how__title { font-size: clamp(52px, 6.5vw, 96px); }
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 20px; }
.step__media { position: relative; height: 400px; border-radius: 24px; overflow: hidden; }
.step__media--app { background: var(--media-bg); }
.step__body { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.step__title { margin: 0; font-size: 21px; font-weight: 800; }
.step__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Rewards */
.rewards { display: flex; flex-wrap: wrap; gap: 88px; align-items: center; justify-content: center; }
.rewards__copy { flex: 1 1 420px; max-width: 500px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.rewards__head { display: flex; flex-direction: column; gap: 16px; }
.rewards__title { font-size: clamp(52px, 6vw, 84px); }
.features { display: flex; flex-direction: column; gap: 22px; }
.feature { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 18px; }
.feature__title { font-size: 18px; font-weight: 800; }
.feature__text { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Creators */
.creators { display: flex; flex-direction: column; gap: 44px; }
.creators__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.creators__head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.creators__title { font-size: clamp(52px, 6vw, 88px); }
.creators__aside { display: flex; flex-direction: column; gap: 18px; max-width: 360px; }
.creators__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.creators__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.creators__tile { position: relative; height: 460px; border-radius: 24px; overflow: hidden; }

/* For schools */
.schools-card { border-radius: 32px; background: var(--text); color: var(--bg); padding: clamp(36px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.schools__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.schools__title { font-size: clamp(48px, 5.5vw, 84px); }
.schools__text { margin: 0; font-size: 18px; line-height: 1.6; color: var(--inverse-muted); max-width: 520px; }

/* Closing "Get the app" card */
.get-card { border-radius: 32px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-wrap: wrap; }
.get__copy { flex: 1 1 440px; min-width: 0; padding: clamp(36px, 5vw, 72px); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.get__title { font-size: clamp(56px, 7vw, 112px); }
.get__media { flex: 1 1 440px; min-width: 0; position: relative; min-height: 540px; }


/* 9. FAQ
   ========================================================================== */
.faq-section { display: flex; flex-direction: column; gap: 32px; }
.faq__title { font-size: clamp(48px, 5vw, 72px); text-align: center; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 600 17px/1.35 var(--font-body); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform .2s; }
.faq[open] summary svg { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 40px 24px 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.faq summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }


/* 10. Legal pages (terms, privacy)
   ========================================================================== */
.legal-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.legal-hero__title { font-size: clamp(64px, 9vw, 132px); }

.legal { max-width: 820px; margin: 0 auto; box-sizing: border-box; padding: 64px 40px 40px; font-size: 16px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.legal h2 { font-family: var(--font-display); font-stretch: 68%; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; color: var(--text); margin: 0 0 18px; text-wrap: balance; }
.legal h3 { font: 800 22px/1.25 var(--font-body); color: var(--text); margin: 52px 0 14px; text-wrap: balance; }
.legal h4 { font: 700 17px/1.35 var(--font-body); color: var(--text); margin: 34px 0 10px; }
.legal h5 { font: 700 15px/1.4 var(--font-body); color: var(--text); margin: 30px 0 10px; letter-spacing: .02em; }
.legal p { margin: 0 0 16px; text-wrap: pretty; }
.legal b,
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--accent); border-bottom: 1px solid rgba(11, 116, 174, .35); }
.legal u { text-decoration: none; }
.legal ul,
.legal ol { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin: 0 0 8px; }
.legal li::marker { color: var(--accent); }
.legal .align { text-align: center; }
.legal .fright { text-align: right; }
.legal .clip { overflow: hidden; }
.legal .order-letter { list-style-type: lower-latin; }
.legal h3.align { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); font-family: var(--font-display); font-stretch: 68%; text-transform: uppercase; font-size: 34px; letter-spacing: .01em; }
.legal .new-style { margin-top: 56px; padding: clamp(24px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.legal .new-style h3:first-child { margin-top: 0; padding-top: 0; border: 0; }
.legal .new-style b { font-weight: 500; color: var(--muted); }
.legal ol.order-number { list-style: none; padding: 0; margin: 48px 0 0; counter-reset: sec; }
.legal .order-number > li { counter-increment: sec; border-top: 1px solid var(--line); padding: 36px 0 12px; margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; }
.legal .order-number > li::before { content: counter(sec, decimal-leading-zero); font: 700 13px/1 var(--font-body); letter-spacing: .14em; color: var(--accent); padding-top: 10px; }
.legal .order-number > li > * { grid-column: 2; }
.legal .order-number > li > ol { margin: 0; padding-left: 20px; }
.legal .checkmark-list-type-2 { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.legal .checkmark-list-type-2 li { position: relative; padding-left: 22px; margin: 0; }
.legal .checkmark-list-type-2 li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legal .lead { font-size: 19px; line-height: 1.6; color: var(--text); }

/* One-off spacing inside the legal documents (override the heading/paragraph defaults above) */
.legal .mt-10 { margin-top: 10px !important; }
.legal .mt-15 { margin-top: 15px !important; }
.legal .mt-35 { margin-top: 35px !important; }
.legal .pt-25 { padding-top: 25px !important; }


/* 11. 404 page
   ========================================================================== */
.nf-code { font-size: clamp(150px, 30vw, 340px); line-height: .8; color: var(--text); position: relative; display: inline-block; }
.nf-code span { color: var(--accent); }
.nf-title { font-size: clamp(48px, 6.5vw, 96px); }

.popular { display: flex; flex-direction: column; gap: 28px; }
.popular__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.popular__card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease-out), box-shadow .25s, opacity .2s; }
.popular__card:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .14); }
.popular__card b { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; }
.popular__card span { font-size: 15px; line-height: 1.5; color: var(--muted); }


/* 12. Cookie consent
   Markup is injected by js/cookie-consent.js. The strip sits on the brand
   dark; its link uses the lighter accent (#069BDD) because --accent on the
   dark background is below 4.5:1. Breakpoints for this component are kept
   here: tablet below 1024px, mobile below 768px.
   ========================================================================== */
:root {
  --cc-dark: var(--text);
  --cc-accent-on-dark: #069BDD;
  --cc-accent-hover: #09618F;
  --cc-green: #15803D;
  --cc-switch-off: #8A867F;
}

.cc-strip-open body { padding-bottom: var(--cc-strip-h, 0px); }
.cc-locked { overflow: hidden; }

/* Buttons (shared by strip and dialog) */
.cc-btn { font: 700 14px/1.2 var(--font-body); padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.cc-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cc-btn--light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.cc-btn--light:hover { background: rgba(255, 255, 255, .1); border-color: #FFFFFF; }
.cc-btn--dark { background: transparent; color: var(--text); border-color: var(--text); }
.cc-btn--dark:hover { background: rgba(18, 18, 19, .06); }
.cc-btn--accent { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.cc-btn--accent:hover { background: var(--cc-accent-hover); border-color: var(--cc-accent-hover); }
.cc-btn--accent:focus-visible { outline-color: var(--accent); }
.cc-strip .cc-btn--accent:focus-visible { outline-color: #FFFFFF; }

/* Bottom strip */
@keyframes cc-up { from { transform: translateY(100%); } to { transform: none; } }

.cc-strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 16px 32px; padding: 16px 40px calc(16px + env(safe-area-inset-bottom)); background: var(--cc-dark); color: #FFFFFF; font: 400 14px/1.5 var(--font-body); box-shadow: 0 -12px 32px -12px rgba(0, 0, 0, .35); animation: cc-up .4s var(--ease-out); }
.cc-strip[hidden] { display: none; }
.cc-strip__text { margin: 0; }
.cc-strip__link { color: var(--cc-accent-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.cc-strip__actions { display: flex; gap: 10px; flex: none; }

/* Footer "Cookie Preferences" (a button styled like the footer links) */
.footer-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: opacity .2s; }
.footer-link:hover { opacity: .72; }
.footer-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Privacy Preferences dialog */
@keyframes cc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }

.cc-dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 0; border: 0; border-radius: 12px; background: var(--card); color: var(--text); font-family: var(--font-body); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.cc-dialog[open] { display: flex; animation: cc-in .25s var(--ease-out); }
.cc-dialog::backdrop { background: rgba(18, 18, 19, .6); animation: cc-fade .25s; }
.cc-dialog__box { display: flex; flex-direction: column; width: 100%; min-height: 0; }

.cc-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 20px 18px 28px; border-bottom: 1px solid var(--line); }
.cc-dialog__title { margin: 0; font: 800 30px/1 var(--font-display); font-stretch: 68%; text-transform: uppercase; letter-spacing: -.005em; }
.cc-dialog__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; transition: background-color .2s; }
.cc-dialog__close:hover { background: var(--media-bg); }
.cc-dialog__close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.cc-dialog__body { padding: 18px 28px 6px; overflow-y: auto; overscroll-behavior: contain; }
.cc-dialog__intro { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.cc-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 4px; padding: 18px 0; }
.cc-cat + .cc-cat { border-top: 1px solid var(--line); }
.cc-cat__title { margin: 0; font: 700 16px/1.3 var(--font-body); color: var(--text); }
label.cc-cat__title { cursor: pointer; }
.cc-cat__always { font-size: 13px; font-weight: 700; color: var(--cc-green); }
.cc-cat__text { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Switch: a real checkbox with role="switch" */
.cc-switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--cc-switch-off); cursor: pointer; transition: background-color .2s; }
.cc-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease-out); }
.cc-switch:checked { background: var(--accent); }
.cc-switch:checked::before { transform: translateX(18px); }
.cc-switch:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.cc-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px 22px; border-top: 1px solid var(--line); }
.cc-dialog__delete { font: 400 13px/1.4 var(--font-body); color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-dialog__delete:hover { color: var(--text); }
.cc-dialog__delete:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cc-dialog__actions { display: flex; gap: 10px; }

/* Tablet: buttons wrap under the text */
@media (max-width: 1023px) {
  .cc-strip { flex-direction: column; text-align: center; padding-left: 32px; padding-right: 32px; }
}

/* Mobile: centred text, full-width buttons, "Delete My Preferences" under them */
@media (max-width: 767px) {
  .cc-strip { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); gap: 14px; }
  .cc-strip__actions { flex-direction: column; width: 100%; gap: 8px; }
  .cc-strip .cc-btn { width: 100%; padding: 12px 20px; }

  .cc-dialog__head { padding: 18px 12px 14px 20px; }
  .cc-dialog__title { font-size: 26px; }
  .cc-dialog__body { padding: 14px 20px 4px; }
  .cc-dialog__foot { flex-direction: column-reverse; align-items: stretch; padding: 16px 20px 18px; gap: 14px; }
  .cc-dialog__actions { flex-direction: column; gap: 8px; }
  .cc-dialog__actions .cc-btn { width: 100%; padding: 12px 20px; }
  .cc-dialog__delete { align-self: center; }
}


/* 13. Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .chipL,
  .chipR { display: none; }
}

/* Hamburger menu: below 800px the inline menu no longer fits on one row.
   Needs the Popover API; older browsers keep the wrapping inline menu. */
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 800px) {
  @supports selector(:popover-open) {
    .site-header { height: var(--header-h); padding-top: 0; padding-bottom: 0; gap: 12px; flex-wrap: nowrap; }
    .header-cta { margin-left: auto; }
    .menu-toggle { display: inline-flex; }

    .site-nav:not(:popover-open) { display: none; }
    .site-nav:popover-open {
      position: fixed; inset: var(--header-h) 0 auto 0; width: auto; height: auto;
      max-height: calc(100dvh - var(--header-h)); overflow-y: auto; box-sizing: border-box;
      display: flex; flex-direction: column; gap: 0; margin: 0; padding: 8px 40px 32px;
      background: var(--bg); border: 0; border-top: 1px solid var(--line);
      box-shadow: 0 28px 40px -24px rgba(18, 18, 19, .28);
      font-family: var(--font-display); font-stretch: 68%; font-weight: 800; text-transform: uppercase;
      font-size: 34px; line-height: 1; letter-spacing: -.005em; color: var(--text);
      animation: menu-in .22s var(--ease-out);
    }
    .site-nav:popover-open a { padding: 18px 0; border-bottom: 1px solid var(--line); }
  }
}

@media (max-width: 600px) {
  .wrap,
  .legal { padding-left: 20px; padding-right: 20px; }
  .site-nav { gap: 18px; order: 3; width: 100%; }
  .site-nav:popover-open { padding-left: 20px; padding-right: 20px; }
  .shot { width: 260px; height: 563px; border-radius: 40px; }

  .legal-hero { padding-top: 32px; }
  .legal-hero__inner { padding-bottom: 40px; }
  .legal { padding-top: 40px; font-size: 15px; }
  .legal h3 { font-size: 19px; }
  .legal h3.align { font-size: 28px; }
  .legal .order-number > li { grid-template-columns: 1fr; }
  .legal .order-number > li > * { grid-column: 1; }
  .legal .order-number > li::before { padding: 0 0 12px; }
}

@media (max-width: 359px) {
  .site-header .logo { width: 100px; height: 25px; }
  .header-cta { padding: 10px 16px; }
}


/* 14. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in1, .in2, .in3, .in4,
  .chipL, .chipR { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* separate rule: browsers without :popover-open would drop a combined selector list */
  .site-nav:popover-open { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-strip,
  .cc-dialog[open],
  .cc-dialog::backdrop { animation: none; }
  .cc-btn,
  .cc-switch,
  .cc-switch::before { transition: none; }
}
