/* Guildhall marketing: the players' front page and /stores.
   One brand, two rooms. The front page is game night: the app's Night colours (deep teal-navy,
   a gold accent), real card art and real screens, with one stone-grey room. /stores is the
   office: a navy top and close, light grey and white rooms between, product screens and a price.
   Type: Alegreya Sans for display, Fira Sans for text. No serif, no cream grounds. */

@font-face { font-family: "Caesar Dressing"; src: url(assets/fonts/CaesarDressing-Regular-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(assets/fonts/AlegreyaSans-Bold-subset.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(assets/fonts/AlegreyaSans-ExtraBold-subset.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url(assets/fonts/FiraSans-Regular-subset.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url(assets/fonts/FiraSans-SemiBold-subset.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url(assets/fonts/FiraSans-Bold-subset.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ========== tokens ========== */
:root {
  color-scheme: dark;
  /* night grounds (the app's Night chamber) */
  --night: #12272d;
  --deep: #0c1a1f;
  --surface: #1a353b;
  --raised: #22434a;
  /* stone and paper, for the light rooms */
  --stone: #dde2e3;
  --stone-2: #e9edee;
  --paper: #f5f7f7;
  --white: #ffffff;
  /* inks */
  --ink: #eef2f0;        /* on night */
  --ink-2: #a9c2be;      /* secondary on night, 4.5:1 or better */
  --ink-dark: #12272d;   /* on stone and paper */
  --ink-dark-2: #3e5559; /* secondary on stone and paper */
  /* the accent */
  --gold: #e3c374;
  --gold-hi: #eed592;
  --on-gold: #12272d;

  --f-rune: "Caesar Dressing", "Alegreya Sans", sans-serif;
  --f-display: "Alegreya Sans", "Fira Sans", system-ui, sans-serif;
  --f-text: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* five sizes */
  --t-display: clamp(2rem, .9rem + 4.4vw, 4.75rem);
  --t-title: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);
  --t-heading: clamp(1.375rem, 1.1rem + .8vw, 1.75rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;

  --margin: clamp(1rem, 4vw, 3rem);
  --max: 80rem;
  --sec: clamp(5.5rem, 11vw, 10rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --r: 10px;
  --r-card: 4.6% / 3.4%;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ========== base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 var(--t-body)/1.6 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 50; background: var(--gold); color: var(--on-gold); padding: .75rem 1rem; font-weight: 600; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ========== type ========== */
.h2 { font: 400 var(--t-title)/1.05 var(--f-rune); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
h3 { font: 800 var(--t-heading)/1.1 var(--f-display); letter-spacing: -.01em; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 34em; }
.caption { font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.text-link { color: var(--gold); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--gold-hi); }

/* ========== buttons: one pill shape, gold or a quiet fill ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px; background: var(--gold); color: var(--on-gold); font: 700 1.0625rem/1.2 var(--f-text); text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-2 { background: var(--raised); color: var(--ink); }
.btn-2:hover { background: #2c545c; }
.btn-s { min-height: 2.75rem; padding: .55rem 1.2rem; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ========== the bar ========== */
.bar { position: relative; z-index: 20; background: var(--night); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand-emblem { height: 56px; width: auto; }
.brand-for { font: 700 1.0625rem/1 var(--f-display); color: var(--gold); padding-left: .1rem; }
.bar-links { display: flex; gap: 1.6rem; margin-left: auto; }
.bar-links a, .bar-signin { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink); padding-block: .6rem; transition: color .2s; }
.bar-links a:hover, .bar-signin:hover { color: var(--gold); }
.bar-actions { display: flex; align-items: center; gap: 1.2rem; }
.bar-menu-only { display: none; }
.bar-toggle { display: none; }

/* ========== players: the hero, a binder page ========== */
/* the stone: Greg Willson's castle wall under a night wash, behind the dark bands */
.stone-band { position: relative; isolation: isolate; overflow: hidden; }
.stone { position: absolute; inset: 0; z-index: -2; }
.stone img { width: 100%; height: 100%; object-fit: cover; }
.stone-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(12 26 31 / .8); }
.hero { background: var(--night); padding-block: clamp(2rem, 5vw, 4.5rem) var(--sec); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-emblem { display: block; width: clamp(88px, 10vw, 136px); height: auto; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.hero-h { font: 400 var(--t-display)/1.02 var(--f-rune); text-transform: uppercase; letter-spacing: .02em; }
.hero-h .l { display: inline-block; }
.hero-lead { font-size: 1.25rem; line-height: 1.5; max-width: 30em; margin-top: 2rem; }
.hero-text .actions { margin-top: 2.25rem; }
.hero-note { margin-top: 1.25rem; font-size: var(--t-small); color: var(--ink-2); }
.hero-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.hero-note a:hover { color: var(--gold); }

.sheet { background: var(--deep); border-radius: 14px; padding: clamp(.6rem, 1.4vw, 1rem); max-width: 34rem; justify-self: end; width: 100%; }
.pockets { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.45rem, 1vw, .75rem); }
.pockets li { background: var(--surface); border-radius: 8px; padding: clamp(.25rem, .6vw, .45rem); }
.pockets img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: var(--r-card); transition: transform .35s var(--ease); }
.pockets li:hover img { transform: translateY(-6px) rotate(-1.5deg); }

/* ========== players: game night, the pinned story ========== */
.night { background: var(--deep); padding-block: var(--sec); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.story-phone { position: sticky; top: max(1.5rem, calc(50vh - 22rem)); align-self: start; display: grid; justify-items: center; }
.story-phone .screen { grid-area: 1 / 1; width: min(100%, 20rem); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story-phone .screen.is-on { opacity: 1; transform: none; }
.screen { border-radius: 26px; background: var(--night); }
.steps { display: grid; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 26rem; transition: opacity .4s; }
.js .story.is-live .step { opacity: .4; }
.js .story.is-live .step.is-on { opacity: 1; }
.step h3 { font-size: var(--t-title); line-height: 1; letter-spacing: -.02em; }
.step p { margin-top: 1rem; font-size: 1.25rem; line-height: 1.55; }
.step-shot { display: none; }
.night-note { margin-top: 2rem; }

/* ========== players: the binder, on stone ========== */
.binder { background: var(--stone); color: var(--ink-dark); padding-block: var(--sec); }
.binder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.binder .lead { margin-top: 1.75rem; }
.facts { margin-top: 1.75rem; display: grid; gap: .75rem; }
.facts li { padding-left: 1.25rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink-dark); }
.binder .caption { margin-top: 1.5rem; color: var(--ink-dark-2); }
.binder-shot img { border-radius: var(--r); width: 100%; }

/* ========== players: the games ========== */
.games { background: var(--night); padding-block: var(--sec); }
.games-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: end; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(2.5rem, 5vw, 4rem); }
.tile { display: grid; }
.tile-art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.tile-tag { background: var(--surface); border-radius: 0 0 var(--r) var(--r); padding: 1.1rem 1.25rem; display: flex; align-items: center; min-height: 5.5rem; }
.tile-tag img { height: 3rem; width: auto; max-width: 70%; object-fit: contain; }
.soon-h { margin-top: clamp(3rem, 6vw, 5rem); }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.75rem; margin-top: 1.5rem; }
.soon img { height: 2.5rem; width: auto; max-width: 9rem; object-fit: contain; }
.games .caption { margin-top: 2.5rem; max-width: 46em; }

/* ========== the FAQ (both pages) ========== */
.faq, .s-faq { background: var(--stone-2); color: var(--ink-dark); padding-block: var(--sec); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-head .lead { margin-top: 1.5rem; }
.faq-art { margin-top: 2rem; border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qa { display: grid; gap: .6rem; }
.qa details { background: var(--white); border-radius: var(--r); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; min-height: 3.5rem; font: 800 1.25rem/1.25 var(--f-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 700 1.5rem/1 var(--f-text); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: #2b5054; }
.qa details p { padding: 0 1.35rem 1.3rem; max-width: 40em; }
.qa a, .faq-head a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.faq .text-link, .s-faq .text-link { color: var(--ink-dark); }

/* ========== players: the close ========== */
.close { background: var(--deep); padding-block: var(--sec); }
.close-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.close-photo img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.close-photo .caption { margin-top: .75rem; }
.close-text .h2 { font-size: var(--t-display); line-height: 1.02; }
.close-text .lead { margin-top: 1.5rem; }
.close-text .actions { margin-top: 2.25rem; }
.close-stores { margin-top: 2rem; }

/* ========== the footer (both pages) ========== */
.foot { background: var(--night); padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.foot-cols { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.foot-links { display: grid; gap: .55rem; align-content: start; }
.foot-links a { text-decoration: none; font-weight: 600; transition: color .2s; }
.foot-links a:hover { color: var(--gold); }
.foot-cols > * { min-width: 0; }
.credits { overflow-wrap: anywhere; display: grid; gap: .8rem; font-size: 1rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.credits strong { color: var(--ink); }
.credits a { color: var(--ink); }
.foot-word { margin-top: clamp(3rem, 6vw, 4.5rem); }
.foot-word img { width: min(100%, 10rem); height: auto; }
.foot-legal { margin-top: 1.25rem; font-size: var(--t-small); color: var(--ink-2); }

/* ========== stores: the hero ========== */
.s-hero { background: var(--paper); color: var(--ink-dark); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); overflow: hidden; }
.s-hero .hero-note { color: var(--ink-dark-2); }
.s-hero .hero-note a { color: var(--ink-dark); }
.s-hero .btn-2 { background: var(--ink-dark); color: var(--white); }
.s-hero .btn-2:hover { background: #24464d; }
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.s-hero-h { font: 400 clamp(2rem, .9rem + 3.6vw, 4rem)/1.04 var(--f-rune); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; max-width: 11em; }
.s-hero .hero-lead { margin-top: 1.5rem; }
.s-hero .actions { margin-top: 2rem; }
.s-hero-shots { position: relative; padding: 0 0 3rem 3.5rem; }
.shot-desk { border-radius: var(--r); width: 100%; }
.shot-phone { position: absolute; left: 0; bottom: 0; width: 27%; border-radius: 18px; outline: 6px solid var(--paper); }
.s-hero-shots .caption { position: absolute; right: 0; bottom: 0; text-align: right; max-width: 60%; }

/* ========== stores: the light rooms ========== */
.page-stores main > section:not(.s-contact):not(.s-faq) { color: var(--ink-dark); }
.page-stores main > section:not(.s-contact) .caption { color: var(--ink-dark-2); }
.page-stores .text-link { color: #1f5a63; }
.page-stores .text-link:hover { color: var(--ink-dark); }
.s-points { background: var(--white); padding-block: clamp(2rem, 4vw, 3rem); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.points li { font-size: 1.0625rem; }
.points strong { display: block; font: 800 var(--t-heading)/1.15 var(--f-display); margin-bottom: .35rem; }

.s-features { background: var(--paper); padding-block: var(--sec); }
.s-head { max-width: 46rem; }
.s-head .lead { margin-top: 1.25rem; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature-flip .feature-text { order: 2; }
.feature-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature-text p { margin-top: 1rem; }
.feature-text .caption { margin-top: 1rem; }
.feature-shot { border-radius: var(--r); width: 100%; background: var(--night); }

.s-brand { background: var(--white); padding-block: var(--sec); }
.s-brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.brand-controls .lead { margin-top: 1.25rem; }
.field-label { display: block; font-weight: 600; font-size: 1rem; margin: 2rem 0 .5rem; }
.field { width: 100%; max-width: min(100%, 22rem); min-height: 3.25rem; padding: .7rem 1rem; border: 2px solid #8fa3a6; border-radius: 8px; background: var(--white); color: var(--ink-dark); font: 700 1.25rem/1.2 var(--f-display); }
.field:focus { border-color: var(--ink-dark); outline: none; box-shadow: 0 0 0 3px var(--gold); /* taste-skill-ignore: the focus ring */ }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.swatches legend { margin-top: 1.75rem; }
.swatch { position: relative; display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span:not(.sr-only) { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c); transition: transform .2s var(--ease); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink-dark); /* taste-skill-ignore: the chosen swatch's ring */ }
.swatch:hover span:not(.sr-only) { transform: scale(1.08); }
.swatch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 4px; }
.swatch-any { padding: 0 .9rem; border-radius: 999px; background: var(--stone-2); font-weight: 600; font-size: 1rem; }
.swatch-any span { width: auto !important; height: auto !important; background: none !important; }
.brand-note { margin-top: 1rem; font-size: var(--t-small); color: var(--ink-dark-2); max-width: 32rem; min-height: 3em; }

/* the demo: a store's Guildhall drawn in the app's Night colours, themed by store-theme.mjs */
.demo { --store-accent: #278073; --store-on-accent: #ffffff; --store-accent-text: #4da193; --store-tint: #002520; --store-tint-strong: #00332c;
  background: var(--night); color: var(--ink); border-radius: 22px; padding: 1.5rem; max-width: 26rem; justify-self: center; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
.d-top { display: flex; align-items: center; gap: .75rem; }
.d-mark { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--store-accent); color: var(--store-on-accent); font: 800 1.125rem/1 var(--f-display); transition: background-color .3s; }
.d-words { display: grid; }
.d-name { font: 800 1.25rem/1.1 var(--f-display); }
.d-gh { font: 700 .9375rem/1.2 var(--f-display); color: var(--ink-2); }
.d-card { margin-top: 1.25rem; background: var(--surface); border-radius: 14px; padding: 1.1rem 1.2rem; border-top: 5px solid var(--store-accent); transition: border-color .3s; }
.d-since { font-size: .875rem; color: var(--ink-2); }
.d-player { font: 800 1.5rem/1.2 var(--f-display); font-variant: small-caps; letter-spacing: .02em; margin-top: .2rem; }
.d-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; }
.d-stats div { display: grid; }
.d-stats dt { font-size: .8125rem; color: var(--ink-2); order: 2; }
.d-stats dd { font: 800 1.5rem/1.1 var(--f-display); }
.d-stats small { font: 400 .8125rem var(--f-text); color: var(--ink-2); }
.d-event { margin-top: .75rem; background: var(--surface); border-radius: 14px; padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center; }
.d-time { font-size: .875rem; color: var(--ink-2); grid-row: span 2; text-align: center; }
.d-time b { display: block; font: 800 1.375rem/1 var(--f-display); color: var(--gold); }
.d-what { display: grid; }
.d-what span { font-size: .875rem; color: var(--ink-2); }
.d-btn { grid-column: 2; justify-self: start; margin-top: .5rem; padding: .5rem 1.1rem; border-radius: 999px; background: var(--store-accent); color: var(--store-on-accent); font-weight: 700; font-size: .9375rem; transition: background-color .3s; }
.d-powered { margin-top: 1rem; font-size: .8125rem; color: var(--ink-2); text-align: center; }
.d-powered strong { color: var(--ink); font-family: var(--f-display); }

.s-real { background: var(--stone-2); padding-block: var(--sec); }
.s-real-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.s-real-photo img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.s-real-photo .caption { margin-top: .75rem; }
.s-real-text .lead { margin-top: 1.5rem; }
.s-real-text p:last-child { margin-top: 1.5rem; }

.s-pricing { background: var(--white); padding-block: var(--sec); }
.s-pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.s-pricing-text .lead { margin-top: 1.5rem; }
.plan { background: var(--night); color: var(--ink); border-radius: 18px; padding: clamp(1.75rem, 3vw, 2.75rem); }

.plan-price { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem; margin-top: 1.25rem; font-variant-numeric: lining-nums; }
.plan-price .cur { font: 800 2.25rem/1 var(--f-display); color: var(--gold); margin-top: .6rem; }
.plan-price .amount { font: 800 clamp(5rem, 9vw, 7rem)/.85 var(--f-display); color: var(--gold); letter-spacing: -.03em; }
.plan-price .per { align-self: flex-end; font-size: 1.0625rem; line-height: 1.35; color: var(--ink-2); padding-left: .5rem; padding-bottom: .4rem; }
.plan-list { display: grid; gap: .6rem; margin: 1.75rem 0 2rem; }
.plan-list li { padding-left: 1.6rem; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: .1rem; top: .35em; width: .45rem; height: .8rem; border: solid var(--gold); border-width: 0 3px 3px 0; transform: rotate(45deg); }

.s-faq .faq-head .lead { margin-top: 1.5rem; }

.s-contact { background: var(--night); padding-block: var(--sec); }
.s-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.s-contact-text .lead { margin-top: 1.5rem; }
.offer { margin-top: 2rem; display: grid; gap: .5rem; max-width: 26rem; }
.offer div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; background: var(--surface); border-radius: 8px; padding: .8rem 1rem; }
.offer dt { color: var(--ink-2); }
.offer dd { font-weight: 700; }
.ask { background: var(--paper); color: var(--ink-dark); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; max-width: 30rem; justify-self: end; width: 100%; }
.ask-h { font: 800 1.75rem/1.1 var(--f-display); }
.ask-sub { margin-top: .4rem; color: var(--ink-dark-2); }
.ask-label { display: block; font-weight: 600; font-size: 1rem; margin: 1.25rem 0 .45rem; }
.ask-input { width: 100%; min-height: 3rem; padding: .65rem .9rem; border: 2px solid #8fa3a6; border-radius: 8px; background: var(--white); color: var(--ink-dark); }
.ask-input:focus { border-color: var(--ink-dark); outline: none; box-shadow: 0 0 0 3px var(--gold); /* taste-skill-ignore: the focus ring */ }
.ask-seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.ask-seg legend { margin-top: 1.25rem; }
.ask-seg label { position: relative; }
.ask-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ask-seg span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: 999px; background: var(--stone); font-weight: 600; font-size: 1rem; transition: background-color .2s; }
.ask-seg input:checked + span { background: var(--ink-dark); color: var(--white); }
.ask-seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.ask-send { margin-top: 1.75rem; }
.ask-note { margin-top: .75rem; font-size: var(--t-small); color: var(--ink-dark-2); text-align: center; }

/* ========== entrances: each part rises once, never hidden without script ========== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .pockets li { opacity: 0; transform: translateY(18px) rotate(-2deg); animation: deal .6s var(--ease) forwards; animation-delay: calc(120ms + var(--n, 0) * 70ms); }
.pockets li:nth-child(2) { --n: 1; } .pockets li:nth-child(3) { --n: 2; } .pockets li:nth-child(4) { --n: 3; } .pockets li:nth-child(5) { --n: 4; }
.pockets li:nth-child(6) { --n: 5; } .pockets li:nth-child(7) { --n: 6; } .pockets li:nth-child(8) { --n: 7; } .pockets li:nth-child(9) { --n: 8; }
@keyframes deal { to { opacity: 1; transform: none; } }
.js .hero-text > * { animation: rise .8s var(--ease) both; }
.js .hero-text > :nth-child(2) { animation-delay: 80ms; } .js .hero-text > :nth-child(3) { animation-delay: 160ms; } .js .hero-text > :nth-child(4) { animation-delay: 240ms; }
.js .s-hero-text > * { animation: rise .8s var(--ease) both; }
.js .s-hero-text > :nth-child(2) { animation-delay: 80ms; } .js .s-hero-text > :nth-child(3) { animation-delay: 160ms; } .js .s-hero-text > :nth-child(4) { animation-delay: 240ms; }
.js .shot-desk { animation: rise 1s var(--ease) 150ms both; }
.js .shot-phone { animation: rise 1s var(--ease) 350ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.close-photo img, .s-real-photo img { transition: transform 1.6s var(--ease); }
.js .close-photo:not(.is-in) img, .js .s-real-photo:not(.is-in) img { transform: scale(1.06); }
.feature-shot { transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .pockets li, .js .hero-text > *, .js .s-hero-text > * { opacity: 1 !important; transform: none !important; }
  .js .close-photo img, .js .s-real-photo img { transform: none !important; }
  .story-phone .screen { transform: none; }
}

/* ========== narrower ========== */
@media (max-width: 68rem) {
  .bar-links { gap: 1.1rem; }
  .s-hero-grid { grid-template-columns: 1fr; }
  .s-hero-h { max-width: 12em; }
  .s-hero-shots { max-width: 48rem; }
}

@media (max-width: 56rem) {
  .bar-in { column-gap: 1rem; }
  .bar-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: .25rem; background: none; border: 0; cursor: pointer; border-radius: 8px; }
  .bars, .bars::before, .bars::after { display: block; width: 1.3rem; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .bar-toggle[aria-expanded="true"] .bars { background: transparent; }
  .bar-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .bar-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .bar-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); padding: .5rem var(--margin) 1.25rem; }
  .bar-links.is-open { display: flex; }
  .bar-links a { display: block; padding-block: .8rem; font-size: 1.0625rem; }
  .bar-menu-only { display: block; }
  .bar-actions { margin-left: auto; }
  .bar-signin { display: none; }
  .hero-grid, .binder-grid, .faq-grid, .close-grid, .games-head, .s-brand-grid, .s-real-grid, .s-pricing-grid, .s-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet { justify-self: start; max-width: 30rem; }
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .step { min-height: 0; max-width: none; padding-block: 1.5rem; }
  .js .story.is-live .step { opacity: 1; }
  .step-shot { display: block; width: min(100%, 19rem); margin-top: 1.75rem; }
  .tiles { grid-template-columns: 1fr; max-width: 30rem; }
  .points { grid-template-columns: 1fr; }
  .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .ask { justify-self: stretch; max-width: none; }
  .faq-art { display: none; }
  .close-photo { max-width: 26rem; }
  .s-real-photo { max-width: 26rem; }
  .demo { justify-self: start; }
  .foot-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
  .credits { grid-column: 1 / -1; }
}

@media (max-width: 30rem) {
  .brand-for { display: none; }
  .wide-only { display: none; }
  .bar-actions .btn-s { padding-inline: .9rem; font-size: .875rem; }
  .actions .btn { flex: 1 1 auto; }
  .s-hero-shots { padding: 0 0 2.5rem 2rem; }
  .shot-phone { width: 30%; border-radius: 12px; outline-width: 4px; }
  .s-hero-shots .caption { max-width: 62%; }
  .tile-tag img { height: 2.5rem; }
  .soon { gap: 1.25rem 2rem; }
  .soon img { height: 2rem; max-width: 7rem; }
  .qa summary { font-size: 1.125rem; padding: 1rem 1.1rem; }
  .qa details p { padding: 0 1.1rem 1.1rem; }
  .d-stats { gap: .9rem; }
  .d-stats dd { font-size: 1.25rem; }
}
