/* =========================================================================
   Foyer & Co. — site styles
   "Blueprint & brass" — graphite ground, single brass accent, both themes.
   ========================================================================= */

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---- Tokens: LIGHT (default) ------------------------------------------- */
:root {
  --bg:          #F4F5F7;
  --surface:     #FFFFFF;
  --surface-2:   #ECEEF1;
  --surface-3:   #E3E6EA;
  --border:      #D7DBE1;
  --border-2:    #C6CBD3;
  --text:        #191D23;
  --text-muted:  #545C67;
  --text-faint:  #686F7A;

  --accent:      #B5842B;   /* brass fills / decoration */
  --accent-2:    #C99A3E;   /* lighter brass */
  --accent-link: #8A6015;   /* AA text link on light bg */
  --accent-ink:  #17130A;   /* text that sits ON a brass surface */

  --good:        #2E7D5B;
  --warn:        #9A6A0F;

  --ring:        #B5842B;

  --shadow-sm: 0 1px 2px rgba(20,25,32,.06), 0 2px 6px rgba(20,25,32,.05);
  --shadow-md: 0 6px 20px rgba(20,25,32,.10), 0 2px 6px rgba(20,25,32,.06);
  --shadow-lg: 0 24px 60px rgba(20,25,32,.16), 0 8px 24px rgba(20,25,32,.08);

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --hero-glow: radial-gradient(120% 90% at 50% 8%, rgba(181,132,43,.16), transparent 60%);
  color-scheme: light;
}

/* ---- Tokens: DARK ------------------------------------------------------ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #101318;
    --surface:     #171B21;
    --surface-2:   #1E242C;
    --surface-3:   #262E38;
    --border:      #2A313B;
    --border-2:    #38414D;
    --text:        #ECEAE4;
    --text-muted:  #A3ABB6;
    --text-faint:  #7B8590;

    --accent:      #D7A94E;
    --accent-2:    #E7BF6C;
    --accent-link: #E4BC6A;
    --accent-ink:  #15110A;

    --good:        #4BB98A;
    --warn:        #E0B15C;

    --ring:        #D7A94E;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 26px rgba(0,0,0,.5);
    --shadow-lg: 0 30px 70px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.4);

    --hero-glow: radial-gradient(120% 90% at 50% 6%, rgba(215,169,78,.20), transparent 62%);
    color-scheme: dark;
  }
}
/* explicit toggle wins both directions */
:root[data-theme="dark"] {
  --bg:#101318; --surface:#171B21; --surface-2:#1E242C; --surface-3:#262E38;
  --border:#2A313B; --border-2:#38414D; --text:#ECEAE4; --text-muted:#A3ABB6; --text-faint:#7B8590;
  --accent:#D7A94E; --accent-2:#E7BF6C; --accent-link:#E4BC6A; --accent-ink:#15110A;
  --good:#4BB98A; --warn:#E0B15C; --ring:#D7A94E;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 8px 26px rgba(0,0,0,.5);
  --shadow-lg:0 30px 70px rgba(0,0,0,.6),0 10px 30px rgba(0,0,0,.4);
  --hero-glow: radial-gradient(120% 90% at 50% 6%, rgba(215,169,78,.20), transparent 62%);
  color-scheme: dark;
}

/* ---- Base -------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; font-weight: 700; letter-spacing: -.01em; }
p { text-wrap: pretty; }
a { color: var(--accent-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
::selection { background: var(--accent); color: var(--accent-ink); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-link);
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--accent); display:inline-block; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--text-muted); margin-top: .9rem; font-size: 1.08rem; }
.lede { color: var(--text-muted); font-size: 1.15rem; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --_bg: var(--accent); --_fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--_bg); color: var(--_fg);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--brass { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--ghost { --_bg: transparent; --_fg: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---- Top nav ----------------------------------------------------------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand small { font-family: var(--font-mono); font-weight: 500; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); display:block; margin-top: 1px; }
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a { color: var(--text-muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem .7rem; border-radius: 8px; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__links > .btn { display: none; }  /* CTA lives in nav__cta on desktop */
.nav__toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 9px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn--ghost, .nav__cta .btn--brass { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .8rem var(--gutter) 1.2rem; box-shadow: var(--shadow-md);
  }
  .nav__links[hidden] { display: none; }
  .nav__links a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav__links > .btn { display: inline-flex; margin-top: .5rem; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero::before { content:""; position:absolute; inset:0; background: var(--hero-glow); pointer-events:none; }
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .8rem; margin-bottom: 1.4rem;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 800; letter-spacing: -.03em; }
.hero h1 .brass { color: var(--accent-link); }
.hero__sub { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 30ch; margin-top: 1.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.4rem; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.hero__meta dd { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-top: .15rem; }

/* Threshold visual */
.threshold {
  position: relative; aspect-ratio: 4 / 4.4; width: 100%;
  perspective: 1100px;
  display: grid; place-items: center;
}
.threshold__stage { position: relative; width: 86%; height: 92%; transform-style: preserve-3d; }
.frame {
  position: absolute; inset: 0; margin: auto;
  border-radius: 20px;
  border: 1.5px solid var(--border-2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 80%, transparent));
}
.frame.f1 { inset: 0; box-shadow: var(--shadow-lg); }
.frame.f2 { inset: 8% 9%; opacity: .92; }
.frame.f3 { inset: 17% 18%; opacity: .8; }
.frame.f4 {
  inset: 26% 27%;
  background: radial-gradient(120% 120% at 50% 30%, color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-2));
  display: grid; place-items: center;
}
.frame.f4::after {
  content:""; width: 46%; height: 58%; border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 60%, transparent), transparent);
  filter: blur(2px); opacity: .8;
}
.threshold__scan {
  position: absolute; left: 8%; right: 8%; height: 2px; top: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .0;
  animation: scan 6s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: 20%; opacity: 0; } 20% { opacity: .9; } 50% { top: 74%; opacity: .5; } 80% { opacity: 0; } }

.chip {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .42rem .7rem .42rem .55rem; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.chip.c1 { top: 14%; left: -6%; animation-delay: .0s; }
.chip.c2 { top: 40%; right: -8%; animation-delay: .8s; }
.chip.c3 { bottom: 20%; left: -4%; animation-delay: 1.6s; }
.chip.c4 { bottom: 6%; right: 2%; animation-delay: 2.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---- Logo strip / trust (honest, no fake logos) ------------------------ */
.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1.3rem; }
.strip p { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.strip ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.strip li { font-size: .85rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem; }

/* ---- Steps (how it works) ---------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.5rem 1.7rem;
}
.step__n { counter-increment: step; font-family: var(--font-mono); font-size: .78rem; color: var(--accent-link); letter-spacing: .1em; }
.step__n::before { content: "0" counter(step); }
.step__ico { width: 42px; height: 42px; margin: 1rem 0 .9rem; color: var(--accent-link); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-muted); margin-top: .5rem; font-size: .98rem; }
.step__line { position: absolute; top: 2.1rem; right: -.7rem; width: 1.4rem; height: 1px; background: var(--border-2); }
.steps .step:last-child .step__line { display: none; }

/* ---- Feature / services grid ------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-md); }
.card__ico { width: 38px; height: 38px; color: var(--accent-link); margin-bottom: 1rem; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--text-muted); margin-top: .5rem; font-size: .96rem; }

/* Add-ons list */
.addons { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; margin-top: 2.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.6rem); }
.addons h3 { font-size: 1.4rem; }
.addons p { color: var(--text-muted); margin-top: .6rem; }
.addons ul { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: .7rem; }
.addons li { display: flex; align-items: flex-start; gap: .7rem; font-size: .98rem; }
.addons li svg { width: 20px; height: 20px; color: var(--accent-link); flex: none; margin-top: .15rem; }
.addons__aside { display: grid; gap: .8rem; }
.addons__aside .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* ---- Pricing calculator ------------------------------------------------ */
.pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.calc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.calc label { font-weight: 600; }
.calc__sqft { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; margin: 1.4rem 0 .5rem; accent-color: var(--accent); height: 6px; cursor: pointer; }
.calc__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); }
.calc__out {
  margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px dashed var(--border-2);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.calc__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 3.6rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.calc__price span { color: var(--accent-link); }
.calc__note { font-size: .86rem; color: var(--text-muted); max-width: 22ch; text-align: right; }
.calc__cta { margin-top: 1.6rem; }
.calc__cta .btn { width: 100%; }
.pricing__aside { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.pricing__aside h3 { font-size: 1.5rem; }
.pricing__aside p { color: var(--text-muted); }
.examples { list-style: none; padding: 0; display: grid; gap: .55rem; margin-top: .5rem; }
.examples li { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: .9rem; padding: .7rem .95rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.examples li span:last-child { color: var(--accent-link); font-weight: 600; }

/* ---- Markets ----------------------------------------------------------- */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.market { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.1rem 1.2rem; }
.market svg { width: 30px; height: 30px; color: var(--accent-link); margin-bottom: .7rem; }
.market h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.market p { color: var(--text-muted); font-size: .88rem; margin-top: .25rem; }

/* ---- Team -------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.member { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.member__avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto .95rem;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
}
.member h3 { font-size: 1.08rem; }
.member .role { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-link); margin-top: .3rem; }
.member p { color: var(--text-muted); font-size: .9rem; margin-top: .6rem; }

/* ---- FAQ --------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .7rem; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; font-family: var(--font-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s ease; color: var(--accent-link); }
.qa summary .plus::before, .qa summary .plus::after { content:""; position:absolute; inset: 0; margin: auto; background: currentColor; }
.qa summary .plus::before { width: 14px; height: 2px; }
.qa summary .plus::after { width: 2px; height: 14px; }
.qa[open] summary .plus { transform: rotate(135deg); }
.qa__body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }
.qa__body p + p { margin-top: .7rem; }

/* ---- Contact ----------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: start; }
.contact__intro h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.contact__intro p { color: var(--text-muted); margin-top: 1rem; }
.contact__cards { display: grid; gap: .8rem; margin-top: 1.8rem; }
.contact__card { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.contact__card:hover { text-decoration: none; border-color: var(--accent); }
.contact__card svg { width: 24px; height: 24px; color: var(--accent-link); flex: none; }
.contact__card .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.contact__card .v { font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.form .req { color: var(--accent-link); }
.form input, .form textarea, .form select {
  width: 100%; padding: .8rem .9rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); transition: border-color .18s ease, box-shadow .18s ease;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .hint { font-size: .82rem; color: var(--text-faint); margin-top: .8rem; }
.form .consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; color: var(--text-muted); margin: .3rem 0 1.2rem; }
.form .consent input { width: auto; margin-top: .2rem; flex: none; }
.form .btn { width: 100%; }
.form__status { font-size: .9rem; margin-top: .9rem; min-height: 1.2em; color: var(--good); }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand p { color: var(--text-muted); font-size: .92rem; max-width: 34ch; }
.footer__brand address { font-style: normal; color: var(--text-muted); font-size: .9rem; margin-top: 1rem; line-height: 1.7; }
.footer__brand address a { color: var(--text-muted); }
.footer h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer ul a { color: var(--text-muted); text-decoration: none; font-size: .93rem; }
.footer ul a:hover { color: var(--text); }
.footer__bar { border-top: 1px solid var(--border); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; }
.footer__bar p, .footer__bar a { font-size: .84rem; color: var(--text-faint); }
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer__bar a { text-decoration: none; }
.footer__bar a:hover { color: var(--text); }

/* ---- Legal / prose pages ----------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.legal__head { max-width: 760px; margin-bottom: 2.5rem; }
.legal__head .eyebrow { color: var(--accent-link); }
.legal__head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal__head p { color: var(--text-muted); margin-top: .9rem; }
.legal__updated { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); margin-top: 1rem; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-top: .9rem; }
.prose ul, .prose ol { margin-top: .9rem; padding-left: 1.3rem; display: grid; gap: .45rem; }
.prose a { color: var(--accent-link); }
.notice { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.8rem 0; }
.notice p { color: var(--text-muted); font-size: .95rem; margin-top: 0; }
.notice strong { color: var(--text); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; }
.toc h2 { font-size: .8rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 .8rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.toc a { color: var(--text-muted); text-decoration: none; font-size: .93rem; }
.toc a:hover { color: var(--accent-link); }

/* ---- Skip link --------------------------------------------------------- */
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: .7rem 1.1rem; border-radius: 0 0 8px 0; font-weight: 600; }
.skip:focus { left: 0; }

/* ---- Reveal (base state VISIBLE; motion only enhances) ----------------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .threshold { max-width: 460px; margin-inline: auto; order: -1; aspect-ratio: 4/3.4; }
  .hero__sub { max-width: 48ch; }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .step__line { display: none; }
  .markets { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .pricing__grid, .addons, .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps, .cards, .markets, .team { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 1.8rem; }
  .calc__note { text-align: left; max-width: none; }
  .hero__meta { gap: 1.2rem 1.6rem; }
  .chip { font-size: .66rem; padding: .36rem .6rem .36rem .5rem; }
  .chip.c1 { left: 0; } .chip.c3 { left: 0; }
  .chip.c2 { right: -1%; } .chip.c4 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
