/* AgencyGenie — marketing site
   Layout: deep-indigo "lamp" bands (hero, modules, footer) alternate with cool paper bands;
   circuit-cyan carries interaction, brass (the genie's cuffs) marks money and approvals. */
:root {
  --night: #0a1030;
  --night-2: #121a48;
  --night-3: #1c2766;
  --circuit: #4cc9f5;
  --genie: #3d6fe3;
  --brass: #d9a441;
  --paper: #f3f5fb;
  --paper-2: #e7ebf6;
  --white: #ffffff;
  --ink: #121733;
  --ink-soft: #4e5679;
  --on-night: #e9eeff;
  --on-night-soft: #a9b4dd;
  --line: rgba(18, 23, 51, .12);
  --line-night: rgba(169, 180, 221, .18);
  --ok: #2f9e6e;

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-xs: .8125rem;
  --s-sm: .9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.3125rem;
  --s-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --s-2xl: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

  --wrap: 1180px;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--genie); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--circuit); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: var(--s-2xl); font-weight: 700; }
h2 { font-size: var(--s-xl); font-weight: 700; }
h3 { font-size: var(--s-lg); font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--night { background: var(--night); color: var(--on-night); }
.band--paper2 { background: var(--paper-2); }
.band--white { background: var(--white); }

.eyebrow {
  font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--genie); font-weight: 500;
}
.band--night .eyebrow, .hero .eyebrow { color: var(--circuit); }
.lede { font-size: var(--s-lg); color: var(--ink-soft); max-width: 62ch; line-height: 1.55; }
.band--night .lede, .hero .lede { color: var(--on-night-soft); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.mono { font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: var(--s-sm);
  padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lamp { background: var(--brass); color: var(--night); }
.btn--lamp:hover { background: #e6b556; }
.btn--ghost { border-color: var(--line-night); color: var(--on-night); background: transparent; }
.btn--ghost:hover { border-color: var(--circuit); }
.btn--ink { background: var(--night); color: var(--on-night); }
.btn--ink:hover { background: var(--night-3); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--genie); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 16, 48, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-night); color: var(--on-night);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-night); flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; background: var(--night-2); object-fit: cover; }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand b { color: var(--circuit); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  color: var(--on-night-soft); text-decoration: none; font-size: var(--s-sm); font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-night); background: rgba(76, 201, 245, .08); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .login { color: var(--on-night); text-decoration: none; font-size: var(--s-sm); font-weight: 500; padding: 8px 10px; }
.header-cta .btn { padding: 10px 18px; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-night); color: var(--on-night);
  border-radius: 10px; width: 44px; height: 40px; cursor: pointer; font-size: 1rem;
}
.mobile-nav { display: none; }
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav { border-top: 1px solid var(--line-night); }
  .mobile-nav:not([hidden]) { display: block; }
  .mobile-nav .wrap { display: grid; gap: 4px; padding-block: 12px 20px; }
  .mobile-nav a { color: var(--on-night); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line-night); font-weight: 500; }
  .mobile-nav .btn { margin-top: 12px; color: var(--night); border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(61, 111, 227, .35), transparent 70%),
    radial-gradient(40% 50% at 15% 100%, rgba(76, 201, 245, .12), transparent 70%),
    var(--night);
}
.hero::after { /* circuit traces */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line-night) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-night) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 80% at 80% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 80% 35%, #000 0%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); }
.hero h1 em { font-style: normal; color: var(--circuit); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: var(--s-xs); color: var(--on-night-soft); font-family: var(--f-mono); letter-spacing: .02em; }
.hero-art { position: relative; min-width: 0; max-width: 520px; justify-self: center; width: 100%; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.wish {
  position: absolute; background: rgba(18, 26, 72, .9); border: 1px solid var(--line-night); border-radius: 12px;
  padding: 12px 14px; font-family: var(--f-mono); font-size: .75rem; line-height: 1.45; color: var(--on-night);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35); max-width: 230px; backdrop-filter: blur(6px);
}
.wish .k { color: var(--on-night-soft); display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; margin-bottom: 4px; }
.wish .v { font-weight: 500; }
.wish .tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.tag--ok { background: rgba(47, 158, 110, .2); color: #7fe0b3; }
.tag--brass { background: rgba(217, 164, 65, .18); color: #f0c879; }
.wish--a { left: -6%; top: 10%; }
.wish--b { right: -2%; bottom: 14%; }
@media (max-width: 880px) {
  .hero > .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .wish--a { left: 0; top: 4%; }
  .wish--b { right: 0; bottom: 6%; }
}

/* lifecycle strip */
.flow { position: relative; z-index: 1; border-top: 1px solid var(--line-night); }
.flow .wrap { padding-block: 22px 26px; display: grid; gap: 12px; }
.flow-label { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--on-night-soft); letter-spacing: .1em; text-transform: uppercase; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.flow li {
  counter-increment: step; position: relative; padding: 12px 12px 12px 14px; border: 1px solid var(--line-night); border-radius: 10px;
  font-size: var(--s-sm); color: var(--on-night); background: rgba(18, 26, 72, .55); min-width: 0;
}
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--circuit); margin-bottom: 2px; }
.flow li:last-child { border-color: rgba(217, 164, 65, .55); }
.flow li:last-child::before { color: var(--brass); }
@media (max-width: 880px) { .flow ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- problem ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.leaks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 560px) { .leaks { grid-template-columns: 1fr; } }
.leak { display: grid; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.leak h3 { font-size: 1.125rem; }
.leak p { color: var(--ink-soft); font-size: var(--s-sm); }
.cant {
  background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 28px;
  display: grid; gap: 14px;
}
.cant h3 { font-size: 1.1rem; }
.cant ul { list-style: none; display: grid; gap: 12px; }
.cant li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: var(--s-sm); color: var(--on-night-soft); }
.cant li::before { content: "✕"; color: #f08a8a; font-family: var(--f-mono); font-size: .8rem; padding-top: 2px; }
.cant strong { color: var(--on-night); font-weight: 600; }

/* ---------- catalog chain ---------- */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.link {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  display: grid; gap: 10px; align-content: start; min-width: 0;
}
.link:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translate(50%, -50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: var(--genie); color: #fff; display: grid; place-items: center;
  font-size: .85rem;
}
.link .lvl { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--genie); }
.link h3 { font-size: 1.15rem; }
.link p { font-size: var(--s-sm); color: var(--ink-soft); }
.link dl { margin: 6px 0 0; display: grid; gap: 6px; font-size: .8rem; }
.link dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }
.link dt { font-family: var(--f-mono); color: var(--ink-soft); }
.link dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.link--pkg { background: var(--night); color: var(--on-night); border-color: var(--night); }
.link--pkg .lvl { color: var(--brass); }
.link--pkg p { color: var(--on-night-soft); }
.link--pkg dl div { border-color: var(--line-night); }
.link--pkg dt { color: var(--on-night-soft); }
.chain-note { margin-top: 18px; font-size: var(--s-xs); color: var(--ink-soft); font-family: var(--f-mono); }
@media (max-width: 960px) {
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .chain { grid-template-columns: 1fr; gap: 22px; }
  .link:not(:last-child)::after { display: grid; right: 50%; top: auto; bottom: -11px; transform: translate(50%, 50%) rotate(90deg); }
  .link:nth-child(2)::after { display: grid; }
}

/* ---------- features grid (Basic) ---------- */
.basic-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.price-chip { font-family: var(--f-mono); font-size: var(--s-sm); padding: 8px 14px; border-radius: 999px; background: var(--night); color: var(--on-night); white-space: nowrap; }
.price-chip b { color: var(--brass); font-weight: 600; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fcell { padding: 24px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; background: var(--white); }
.fcell .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--paper-2); color: var(--genie); display: grid; place-items: center; margin-bottom: 6px; }
.fcell .ic svg { width: 18px; height: 18px; }
.fcell h3 { font-size: 1.05rem; }
.fcell p { font-size: var(--s-sm); color: var(--ink-soft); }
.fcell a { font-size: var(--s-sm); font-weight: 600; text-decoration: none; margin-top: 4px; }
@media (max-width: 1000px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

/* ---------- modules (night band) ---------- */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 920px) { .modules { grid-template-columns: 1fr; } }
.module {
  border: 1px solid var(--line-night); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 14px; align-content: start;
  background: linear-gradient(180deg, rgba(28, 39, 102, .6), rgba(18, 26, 72, .3));
}
.module header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.module .cost { font-family: var(--f-mono); color: var(--brass); font-size: var(--s-sm); white-space: nowrap; }
.module p { color: var(--on-night-soft); font-size: var(--s-sm); }
.module ul { list-style: none; display: grid; gap: 8px; }
.module li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: var(--s-sm); color: var(--on-night); }
.module li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--circuit); }
.module .portal { font-family: var(--f-mono); font-size: .75rem; color: var(--circuit); }

/* ---------- audiences ---------- */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .aud { grid-template-columns: 1fr; } }
.aud a {
  display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.aud a:hover { border-color: var(--genie); transform: translateY(-2px); }
.aud .kind { font-family: var(--f-mono); font-size: .7rem; color: var(--genie); text-transform: uppercase; letter-spacing: .1em; }
.aud p { font-size: var(--s-sm); color: var(--ink-soft); }
.aud .more { font-size: var(--s-sm); font-weight: 600; color: var(--genie); }
.aside-line { margin-top: 22px; font-size: var(--s-sm); color: var(--ink-soft); }

/* ---------- sign-off trail ---------- */
.trail { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trail-top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft); flex-wrap: wrap; }
.trail ol { list-style: none; margin: 0; padding: 0; }
.trail li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: var(--s-sm); }
.trail li:last-child { border-bottom: 0; }
.trail .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--genie); }
.trail .dot--ok { background: var(--ok); }
.trail .dot--pay { background: var(--brass); }
.trail .who { color: var(--ink-soft); font-size: .8rem; }
.trail time { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .trail li { grid-template-columns: 12px minmax(0, 1fr); } .trail time { grid-column: 2; } }
.checks { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.checks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: rgba(61, 111, 227, .12); color: var(--genie); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.band--night .checks li::before { background: rgba(76, 201, 245, .15); color: var(--circuit); }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare > div { border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.compare .before { background: var(--white); border: 1px solid var(--line); }
.compare .after { background: var(--night); color: var(--on-night); }
.compare h3 { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.compare .before h3 { color: var(--ink-soft); }
.compare .after h3 { color: var(--circuit); }
.compare ul { list-style: none; display: grid; gap: 12px; }
.compare li { font-size: var(--s-sm); padding-left: 18px; position: relative; }
.compare .before li { color: var(--ink-soft); }
.compare li::before { content: "—"; position: absolute; left: 0; color: var(--ink-soft); }
.compare .after li::before { content: "✓"; color: var(--circuit); }

/* ---------- pricing ---------- */
.ptease { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .ptease { grid-template-columns: 1fr; } }
.pcard { border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.pcard--base { background: var(--night); color: var(--on-night); }
.pcard--add { background: var(--white); border: 1px solid var(--line); }
.pcard .amt { font-family: var(--f-display); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.pcard .amt small { font-family: var(--f-mono); font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--on-night-soft); }
.pcard p { font-size: var(--s-sm); }
.pcard--base p { color: var(--on-night-soft); }
.addrows { list-style: none; display: grid; }
.addrows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.addrows li:last-child { border-bottom: 0; }
.addrows b { font-weight: 600; }
.addrows span { display: block; font-size: .85rem; color: var(--ink-soft); }
.addrows .p { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.taglist li { font-size: .8rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-night); color: var(--on-night); }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-opts { display: grid; gap: 12px; }
.opt {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer;
}
.opt:has(input:checked) { border-color: var(--genie); box-shadow: 0 0 0 1px var(--genie) inset; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--genie); }
.opt b { display: block; font-weight: 600; }
.opt span { display: block; font-size: .875rem; color: var(--ink-soft); }
.opt .p { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt--locked { cursor: default; background: var(--paper-2); }
.total {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 26px;
  display: grid; gap: 12px;
}
.total .k { font-family: var(--f-mono); font-size: .75rem; color: var(--on-night-soft); letter-spacing: .1em; text-transform: uppercase; }
.total output { font-family: var(--f-display); font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.total output small { font-family: var(--f-mono); font-size: .9rem; font-weight: 400; color: var(--on-night-soft); }
.total ul { list-style: none; display: grid; gap: 6px; font-size: .85rem; color: var(--on-night-soft); padding-top: 10px; border-top: 1px solid var(--line-night); }
.total li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .examples { grid-template-columns: 1fr; } }
.ex { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.ex .who { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--genie); }
.ex ul { list-style: none; display: grid; gap: 6px; font-size: .875rem; color: var(--ink-soft); }
.ex li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.ex .sum { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--s-sm); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }
td.c { text-align: center; color: var(--genie); font-weight: 700; }
td.c.no { color: var(--ink-soft); font-weight: 400; }
tbody th { font-weight: 600; }
.trow-group td { background: var(--paper-2); font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.3rem; color: var(--genie); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); max-width: 70ch; display: grid; gap: 10px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--night); color: var(--on-night); overflow: hidden; position: relative; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.cta-band h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
.cta-band p { color: var(--on-night-soft); margin-top: 12px; max-width: 56ch; }
.cta-band .hero-actions { margin-top: 24px; }
.cta-band img { width: 220px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4)); }
@media (max-width: 700px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band img { width: 150px; } }

/* ---------- page head (inner pages) ---------- */
.page-head { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.page-head .wrap { padding-block: clamp(44px, 6vw, 76px); display: grid; gap: 16px; position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); max-width: 18ch; }
.page-head .lede { color: var(--on-night-soft); }
.page-head::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 340px; height: 340px; opacity: .14;
  background: url("../img/genie-900.webp") center / contain no-repeat;
}
@media (max-width: 700px) { .page-head::after { width: 200px; height: 200px; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { font-size: .85rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-night); color: var(--on-night); text-decoration: none; }
.jump a:hover { border-color: var(--circuit); }

/* feature detail blocks */
.fdetail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.fdetail:first-of-type { border-top: 0; }
@media (max-width: 820px) { .fdetail { grid-template-columns: 1fr; } }
.fdetail .meta { display: grid; gap: 12px; align-content: start; }
.fdetail .meta p { color: var(--ink-soft); }
.fdetail .incl { font-family: var(--f-mono); font-size: .75rem; color: var(--genie); text-transform: uppercase; letter-spacing: .1em; }
.fdetail ul.points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
@media (max-width: 560px) { .fdetail ul.points { grid-template-columns: 1fr; } }
.points li { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--paper-2); }
.points b { font-weight: 600; }
.points span { color: var(--ink-soft); font-size: var(--s-sm); }
.module-block { scroll-margin-top: 90px; }
.module-block + .module-block { margin-top: 56px; }
.module-block .fdetail { border-top: 1px solid var(--line-night); }
.band--night .points li { border-left-color: var(--night-3); }
.band--night .points span, .band--night .fdetail .meta p { color: var(--on-night-soft); }
.band--night .fdetail .incl { color: var(--brass); }

/* solution blocks */
.sol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-block: 48px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.sol:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 820px) { .sol { grid-template-columns: 1fr; } }
.sol .meta { display: grid; gap: 14px; align-content: start; }
.sol .meta p { color: var(--ink-soft); }
.starter { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.starter-top { padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.starter ul { list-style: none; }
.starter li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: var(--s-sm); }
.starter li:last-child { border-bottom: 0; }
.starter li span { color: var(--ink-soft); font-family: var(--f-mono); font-size: .75rem; white-space: nowrap; }
.mods { display: flex; flex-wrap: wrap; gap: 8px; }
.mods span { font-size: .8rem; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }

/* forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
form.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: var(--s-sm); font-weight: 600; }
label .opt-l { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  font: inherit; font-size: var(--s-sm); font-weight: 400; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-size: var(--s-sm); font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper); }
.chips label:has(input:checked) { border-color: var(--genie); background: rgba(61, 111, 227, .08); }
.chips input { accent-color: var(--genie); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: var(--s-sm); padding: 12px 14px; border-radius: 10px; }
.form-msg--ok { background: rgba(47, 158, 110, .12); color: #1f6e4c; }
.form-msg--err { background: rgba(200, 60, 60, .1); color: #9a2b2b; }
.fine { font-size: .8rem; color: var(--ink-soft); }
.side-card { background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.side-card .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-soft); }
.side-card .v { font-size: 1.15rem; font-weight: 600; user-select: all; }
.side-card a { color: var(--circuit); text-decoration: none; }
.side-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--on-night-soft); font-size: var(--s-sm); }

/* legal */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal nav { display: none; } }
.legal nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 2px; font-size: .875rem; }
.legal nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.legal nav a:hover { background: var(--paper-2); color: var(--ink); }
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: 1.35rem; margin-top: 24px; scroll-margin-top: 96px; }
.prose p, .prose li { color: #343b5e; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose .updated { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: #070b22; color: var(--on-night-soft); font-size: var(--s-sm); }
.site-footer .wrap { padding-block: 56px 28px; display: grid; gap: 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { max-width: 34ch; }
.foot-contact { display: grid; gap: 4px; }
.foot-contact a { color: var(--on-night); text-decoration: none; font-weight: 600; }
.site-footer h4 { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { color: var(--on-night-soft); text-decoration: none; }
.site-footer ul a:hover { color: var(--on-night); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-night); font-size: .8rem; }
.foot-bottom .mono { letter-spacing: .06em; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .wrap { display: grid; gap: 16px; justify-items: center; padding-block: 64px; }
.nf img { width: 180px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
