/* =========================================================
   SIP Digital — design system
   Ink + cream base, "Sip" orange as the primary pop,
   electric lime for live/build accents.
   ========================================================= */
:root {
  --ink: #0c0b10;
  --ink-2: #16141c;
  --ink-3: #221f2a;
  --line-dark: rgba(255, 255, 255, 0.1);
  --cream: #f5efe4;
  --cream-2: #ebe3d4;
  --line-light: rgba(12, 11, 16, 0.12);
  --text-on-dark: #f5efe4;
  --muted-on-dark: #a39d93;
  --text-on-light: #0c0b10;
  --muted-on-light: #5d5850;
  --sip: #ff5a1f;          /* primary action */
  --sip-deep: #e0410a;
  --lime: #c8f53c;         /* live / build accent */
  --violet: #8b7bff;       /* app accent */
  --error: #ff6b6b;
  --error-bg: #3a1618;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --line-field: rgba(245, 239, 228, 0.4); /* form borders: 3:1 against the dark surfaces */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
/* Lime disappears on light and orange surfaces, so the ring turns ink there. */
.on-light :focus-visible, .build-card :focus-visible, .cta-band :focus-visible, .ticker :focus-visible { outline-color: var(--ink); }
.build-card--dark :focus-visible, .work__feature :focus-visible, .work__next :focus-visible { outline-color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sip); }
.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
}
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.h2 { font-size: clamp(38px, 6vw, 76px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sip); --fg: var(--ink); /* ink on orange is 6.3:1; white was 3.1:1 */
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); background: var(--sip-deep); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--text-on-dark); border-color: rgba(245,239,228,.35); }
.btn--ghost:hover { background: rgba(245,239,228,.08); box-shadow: none; border-color: var(--cream); }
.on-light .btn--ghost { --fg: var(--ink); border-color: rgba(12,11,16,.3); }
.on-light .btn--ghost:hover { background: rgba(12,11,16,.06); border-color: var(--ink); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--lime:hover { background: #b6e52a; box-shadow: 0 10px 30px -10px rgba(200,245,60,.6); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- ticker ---------- */
.ticker { background: var(--sip); color: var(--ink); overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.2); }
.ticker__track { display: flex; gap: 48px; width: max-content; padding: 10px 0; animation: ticker 38s linear infinite; }
.ticker__track span { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 48px; }
.ticker__track span::after { content: "✦"; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(12,11,16,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.logo b { color: var(--sip); font-weight: 800; }
.logo .serif { font-size: 24px; margin-left: 6px; color: var(--muted-on-dark); }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-dark); transition: color .2s; }
.nav__links a:hover { color: var(--cream); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__cta .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-dark); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--cream); margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__sheet { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav__cta .btn { padding: 0 16px; }
  /* visibility keeps the closed menu's links out of the tab order */
  .nav__sheet { display: block; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .4s var(--ease), visibility 0s .4s; }
  .nav[data-open="true"] .nav__sheet { max-height: 460px; visibility: visible; transition: max-height .4s var(--ease), visibility 0s; }
  .nav__sheet ul { list-style: none; margin: 0; padding: 8px var(--gutter) 24px; display: grid; gap: 4px; }
  .nav__sheet a:not(.btn) { display: block; padding: 14px 0; text-decoration: none; font-size: 22px; font-weight: 700; border-bottom: 1px solid var(--line-dark); }
  .nav__sheet .btn { margin-top: 14px; width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  opacity: .6; pointer-events: none;
}
.hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(255,90,31,.28), transparent 65%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); margin: 22px 0 24px; }
.hero h1 .serif { color: var(--sip); font-size: 1.04em; }
.hero h1 .underline { position: relative; white-space: nowrap; }
.hero h1 .underline svg { position: absolute; left: 0; bottom: -0.12em; width: 100%; height: .3em; }
.hero h1 .underline path { stroke: var(--lime); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { color: var(--muted-on-dark); margin: 0 0 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark); list-style: none; padding: 0; }
.hero__meta li::before { content: "✓ "; color: var(--lime); }

/* --- the live build stage --- */
.stage { position: relative; }
.switch {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px;
  background: var(--ink-2); border: 1px solid var(--line-dark); margin-bottom: 18px;
}
.switch button {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark);
  transition: background .3s var(--ease), color .2s;
}
.switch button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.stage__canvas { position: relative; aspect-ratio: 1 / .86; }
.stage__status {
  position: absolute; z-index: 5; left: 0; bottom: -6px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 16px 8px 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.stage__status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,245,60,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,245,60,0); } 100% { box-shadow: 0 0 0 0 rgba(200,245,60,0); } }
.stage__steps { display: flex; gap: 6px; margin-left: 4px; }
.stage__steps i { width: 18px; height: 4px; border-radius: 2px; background: var(--ink-3); transition: background .4s; }
.stage__steps i.on { background: var(--lime); }

/* browser mock */
.mock-browser {
  position: absolute; left: 0; top: 0; width: 86%;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  overflow: hidden;
  transition: transform .8s var(--ease), opacity .6s, width .8s var(--ease);
}
.mock-browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); }
.mock-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.mock-browser__bar i:nth-child(1) { background: #ff5f57; } .mock-browser__bar i:nth-child(2) { background: #febc2e; } .mock-browser__bar i:nth-child(3) { background: #28c840; }
.mock-browser__url { margin-left: 10px; flex: 1; height: 24px; border-radius: 6px; background: var(--ink); font-family: var(--font-mono); font-size: 11px; color: var(--muted-on-dark); display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.mock-browser__body { padding: 18px; display: grid; gap: 12px; }

/* phone mock */
.mock-phone {
  position: absolute; right: 0; bottom: 4%; width: 34%; aspect-ratio: 9 / 18.5;
  background: var(--ink); border: 8px solid #2a2733; border-radius: 34px;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden; padding: 26px 12px 12px;
  display: grid; gap: 9px; align-content: start;
  transition: transform .8s var(--ease), opacity .6s, right .8s var(--ease), width .8s var(--ease);
}
.mock-phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 12px; background: #2a2733; border-radius: 999px; }

/* build blocks: wireframe → designed → live */
.blk { border-radius: 8px; border: 1.5px dashed rgba(245,239,228,.28); background: transparent; transition: background .7s var(--ease), border-color .7s, transform .7s var(--ease), box-shadow .7s; position: relative; overflow: hidden; }
.blk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); transform: translateX(-100%); }
.stage[data-phase="1"] .blk, .stage[data-phase="2"] .blk, .stage[data-phase="3"] .blk { border-style: solid; border-color: transparent; }
.stage[data-phase="1"] .blk { background: var(--ink-3); }
.stage[data-phase="1"] .blk::after { animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.blk--nav { height: 14px; width: 100%; }
.blk--hero { height: 120px; }
.blk--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0 !important; background: none !important; }
.blk--row .blk { height: 64px; }
.blk--btn { height: 26px; width: 38%; border-radius: 999px; }
.blk--line { height: 9px; width: 80%; border-radius: 4px; }
.blk--line.short { width: 52%; }
.blk--ph-hero { height: 90px; border-radius: 12px; }
.blk--ph-card { height: 46px; border-radius: 10px; }
.blk--ph-tab { height: 32px; border-radius: 12px; margin-top: 6px; }

/* phase 2+: designed */
.stage[data-phase="2"] .blk--hero, .stage[data-phase="3"] .blk--hero { background: linear-gradient(135deg, var(--sip) 0%, #ff8a3d 55%, #ffc46b 100%); }
.stage[data-phase="2"] .blk--nav, .stage[data-phase="3"] .blk--nav { background: linear-gradient(90deg, var(--cream) 0 14%, transparent 14% 60%, var(--ink-3) 60%); height: 14px; }
.stage[data-phase="2"] .blk--row .blk, .stage[data-phase="3"] .blk--row .blk { background: var(--ink-3); }
.stage[data-phase="2"] .blk--row .blk:nth-child(2), .stage[data-phase="3"] .blk--row .blk:nth-child(2) { background: var(--cream); }
.stage[data-phase="2"] .blk--btn, .stage[data-phase="3"] .blk--btn { background: var(--lime); }
.stage[data-phase="2"] .blk--line, .stage[data-phase="3"] .blk--line { background: rgba(245,239,228,.5); }
.stage[data-phase="2"] .blk--ph-hero, .stage[data-phase="3"] .blk--ph-hero { background: linear-gradient(160deg, var(--violet), #4b3df0); }
.stage[data-phase="2"] .blk--ph-card, .stage[data-phase="3"] .blk--ph-card { background: var(--ink-3); }
.stage[data-phase="2"] .blk--ph-card:nth-of-type(odd), .stage[data-phase="3"] .blk--ph-card:nth-of-type(odd) { background: var(--cream); }
.stage[data-phase="2"] .blk--ph-tab, .stage[data-phase="3"] .blk--ph-tab { background: var(--sip); }

/* hero text inside the mock appears when designed */
.blk__copy { position: absolute; left: 16px; bottom: 14px; right: 16px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(14px, 2vw, 24px); line-height: 1; opacity: 0; transform: translateY(8px); transition: opacity .6s .2s, transform .6s .2s var(--ease); }
.blk__copy small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 6px; }
.blk--ph-hero .blk__copy { color: #fff; font-size: clamp(11px, 1.4vw, 16px); left: 10px; bottom: 10px; }
.stage[data-phase="2"] .blk__copy, .stage[data-phase="3"] .blk__copy { opacity: 1; transform: none; }

/* phase 3: live — a lift + glow */
.stage[data-phase="3"] .mock-browser { box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(200,245,60,.35); }
.stage[data-phase="3"] .mock-phone { box-shadow: 0 40px 70px -20px rgba(0,0,0,.9), 0 0 0 2px rgba(200,245,60,.45); }
.live-badge { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; background: var(--lime); color: var(--ink); padding: 4px 8px; border-radius: 999px; font-weight: 700; opacity: 0; transform: scale(.8); transition: .4s var(--ease); }
.stage[data-phase="3"] .live-badge { opacity: 1; transform: none; }

/* switch layouts */
.stage[data-type="website"] .mock-phone { opacity: 0; transform: translateY(30px) scale(.9); pointer-events: none; }
.stage[data-type="website"] .mock-browser { width: 100%; }
.stage[data-type="app"] .mock-browser { opacity: 0; transform: translateY(-20px) scale(.95); }
.stage[data-type="app"] .mock-phone { right: 30%; width: 40%; bottom: 0; transform: rotate(-3deg); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.on-light { background: var(--cream); color: var(--text-on-light); }
.on-light .kicker { color: var(--muted-on-light); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .lead { color: var(--muted-on-light); margin: 0; }
.section__head h2 { margin-top: 18px; }

/* what we build */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.build-card {
  position: relative; border-radius: var(--radius); padding: 30px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: #fff; border: 1px solid var(--line-light);
  transition: transform .4s var(--ease), box-shadow .4s;
  overflow: hidden;
}
.build-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(12,11,16,.35); }
.build-card--dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.build-card--sip { background: var(--sip); color: var(--ink); border-color: var(--sip); }
.build-card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; opacity: .7; }
.build-card h3 { font-size: clamp(32px, 3.4vw, 46px); margin: 10px 0 12px; line-height: .95; letter-spacing: -0.035em; font-weight: 800; }
.build-card p { margin: 0; opacity: .82; }
.build-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.build-card li { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.build-card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.build-card__link:hover .arrow { transform: translateX(4px); }
.build-card__link .arrow { transition: transform .25s var(--ease); }

/* process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: step; }
.process__track { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--line-dark); }
.process__track span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--sip), var(--lime)); transition: width 1.6s var(--ease); }
.process.in .process__track span { width: 100%; }
.step { position: relative; padding: 0 28px 0 0; }
.step__dot { width: 70px; height: 70px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line-dark); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 15px; position: relative; z-index: 1; transition: border-color .4s, background .4s, color .4s; }
.process.in .step:nth-child(2) .step__dot { transition-delay: .2s; }
.process.in .step:nth-child(3) .step__dot { transition-delay: .8s; }
.process.in .step:nth-child(4) .step__dot { transition-delay: 1.4s; }
.process.in .step__dot { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.step h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; margin: 26px 0 10px; font-weight: 800; line-height: 1; }
.step p { color: var(--muted-on-dark); margin: 0 0 14px; max-width: 34ch; }
.step__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }

/* work */
.work { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.work__next { border-radius: var(--radius); background: var(--ink); color: var(--cream); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 18px; align-items: flex-start; }
.work__next h3 { font-size: clamp(34px, 3.6vw, 52px); margin: 0; }
.work__next h3 .serif { color: var(--sip); }
.work__next p { margin: 0; color: var(--muted-on-dark); max-width: 32ch; }
.work__next .kicker { color: var(--muted-on-dark); }
.work__feature { border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; }
.work__feature-body { padding: 24px 28px 28px; display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.work__feature h3 { margin: 6px 0 4px; font-size: 32px; letter-spacing: -0.03em; }
.work__feature p { margin: 0; color: var(--muted-on-dark); }
.tagline { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sip); }


/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted-on-light); max-width: 64ch; }

/* final CTA */
.cta-band { position: relative; overflow: hidden; background: var(--sip); color: var(--ink); border-radius: calc(var(--radius) * 1.6); padding: clamp(40px, 7vw, 96px); }
.cta-band h2 { font-size: clamp(44px, 8vw, 120px); }
.cta-band .serif { color: var(--ink); }
.cta-band p { font-size: 20px; max-width: 46ch; margin: 22px 0 32px; }
.cta-band .btn { --bg: var(--ink); --fg: var(--cream); }
.cta-band .btn:hover { background: #000; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.cta-band .btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(12,11,16,.4); }
.cta-band .btn--ghost:hover { background: rgba(12,11,16,.08); border-color: var(--ink); }
.cta-band__ring { position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255,255,255,.14); pointer-events: none; }

/* footer */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line-dark); }
.footer__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: start; }
.footer__big { font-size: clamp(56px, 12vw, 180px); font-weight: 800; letter-spacing: -0.06em; line-height: .8; margin: 48px 0 24px; color: var(--ink-3); user-select: none; }
.footer__big b { color: var(--sip); }
.footer small, .footer a { color: var(--muted-on-dark); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--cream); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* mobile sticky CTA */
.mobile-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { max-width: 620px; }
  .builds { grid-template-columns: 1fr; }
  .build-card { min-height: 0; }
  .work { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero__ctas .btn { width: 100%; }
  .process { grid-template-columns: 1fr; gap: 36px; }
  .process__track { left: 34px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process__track span { width: 100% !important; height: 0; transition: height 1.6s var(--ease); }
  .process.in .process__track span { height: 100%; }
  .step { padding: 0 0 0 96px; }
  .step__dot { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 12px; }
  .switch button { padding: 9px 13px; }
  .stage__canvas { aspect-ratio: 1 / 1.08; }
  .stage__status { position: relative; bottom: auto; margin-top: 18px; display: inline-flex; }
  .live-badge { right: auto; left: 14px; }
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    padding: 8px; border-radius: 999px; background: rgba(22,20,28,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-dark); transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: 15px; }
  .footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   QUOTE FLOW
   ========================================================= */
.quote-page { min-height: 100vh; display: flex; flex-direction: column; }
.qnav { border-bottom: 1px solid var(--line-dark); }
.qnav .wrap { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.qnav a.back { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); text-decoration: none; }
.qnav a.back:hover { color: var(--cream); }

.quote { flex: 1; display: grid; grid-template-columns: 380px minmax(0, 1fr); }
.quote > * { min-width: 0; }
.quote__aside { background: var(--ink-2); border-right: 1px solid var(--line-dark); padding: 48px 40px; position: relative; overflow: hidden; }
.quote__aside h1 { font-size: 52px; margin: 18px 0 16px; }
.quote__aside h1 .serif { color: var(--sip); }
.quote__aside p { color: var(--muted-on-dark); margin: 0 0 28px; }
.quote__steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 4px; }
.quote__steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-weight: 600; color: var(--muted-on-dark); transition: color .3s; }
.quote__steps li span { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-dark); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; transition: .3s var(--ease); flex: none; }
.quote__steps li[data-state="current"] { color: var(--cream); }
.quote__steps li[data-state="current"] span { border-color: var(--sip); background: var(--sip); color: var(--ink); }
.quote__steps li[data-state="done"] span { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.quote__help { border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: 15px; color: var(--muted-on-dark); }
.quote__help a { color: var(--cream); font-weight: 700; }

.quote__main { padding: 48px clamp(16px, 6vw, 88px) 64px; max-width: 860px; width: 100%; }
.progress { height: 6px; border-radius: 999px; background: var(--ink-3); overflow: hidden; margin-bottom: 14px; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--sip), var(--lime)); border-radius: 999px; transition: width .6s var(--ease); }
.progress-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 36px; }

.qstep { display: none; animation: stepIn .5s var(--ease); }
.qstep.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
.qstep h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 0 0 10px; }
.qstep > p.sub { color: var(--muted-on-dark); margin: 0 0 32px; }

fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend, .label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 6px; padding: 0; }
.hint { display: block; color: var(--muted-on-dark); font-size: 14px; margin-bottom: 14px; }
.opt { color: var(--muted-on-dark); font-weight: 400; font-size: 14px; }

.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-card { position: relative; }
.type-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-card label {
  display: flex; flex-direction: column; gap: 14px; min-height: 180px; padding: 22px;
  border-radius: var(--radius); border: 2px solid var(--line-dark); background: var(--ink-2); cursor: pointer;
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.type-card label:hover { border-color: rgba(245,239,228,.35); transform: translateY(-3px); }
.type-card input:checked + label { border-color: var(--sip); background: linear-gradient(160deg, rgba(255,90,31,.16), var(--ink-2) 60%); }
.type-card input:focus-visible + label { outline: 3px solid var(--lime); outline-offset: 3px; }
.type-card .glyph { width: 52px; height: 40px; position: relative; flex: none; }
.type-card strong { font-size: 24px; letter-spacing: -0.02em; }
.type-card small { color: var(--muted-on-dark); font-size: 14px; line-height: 1.4; }
.type-card .check { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-dark); display: grid; place-items: center; font-size: 14px; color: transparent; transition: .25s; pointer-events: none; }
.type-card input:checked ~ .check { background: var(--sip); border-color: var(--sip); color: var(--ink); }
.g-browser { position: absolute; inset: 0 8px 6px 0; border: 2px solid var(--cream); border-radius: 6px; }
.g-browser::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--cream); }
.g-phone { position: absolute; right: 0; bottom: 0; width: 18px; height: 30px; border: 2px solid var(--sip); border-radius: 5px; background: var(--ink-2); }
.glyph--app .g-phone { left: 14px; width: 24px; height: 40px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-dark); background: var(--ink-2); cursor: pointer; font-weight: 600; font-size: 15px; transition: .2s; user-select: none; }
.chip label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted-on-dark); transition: .2s; flex: none; }
.chip input[type="checkbox"] + label::before { border-radius: 4px; }
.chip label:hover { border-color: rgba(245,239,228,.4); }
.chip input:checked + label { border-color: var(--lime); background: rgba(200,245,60,.1); }
.chip input:checked + label::before { background: var(--lime); border-color: var(--lime); box-shadow: inset 0 0 0 3px var(--ink-2); }
.chip input:focus-visible + label { outline: 3px solid var(--lime); outline-offset: 2px; }

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input, textarea.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px;
  background: var(--ink-2); border: 1.5px solid var(--line-dark); color: var(--cream);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #948e84; }
.input:hover { border-color: rgba(245,239,228,.3); }
.input:focus { outline: none; border-color: var(--sip); box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
.input[aria-invalid="true"] { border-color: var(--error); }
.err { display: none; color: var(--error); font-size: 14px; font-weight: 600; margin-top: 8px; }
.err.show { display: block; }
.err::before { content: "! "; }

.branch { border-left: 3px solid var(--sip); padding-left: 20px; margin: 8px 0 30px; }
.branch[hidden] { display: none; }
.branch__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sip); margin: 0 0 20px; }
.branch--app { border-color: var(--violet); }
.branch--app .branch__title { color: var(--violet); }

.qactions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.qactions .btn--ghost { min-width: 120px; }
.qactions .btn:only-child { margin-left: auto; }

.review { display: grid; gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); margin-bottom: 24px; }
.review > div { background: var(--ink-2); padding: 16px 20px; display: grid; grid-template-columns: 160px 1fr auto; gap: 14px; align-items: start; }
.review dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); padding-top: 3px; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review button { background: none; border: 0; color: var(--sip); font-weight: 700; cursor: pointer; padding: 0; font-size: 14px; }
.consent { font-size: 14px; color: var(--muted-on-dark); }
.consent a, .consent-check a { color: var(--cream); text-underline-offset: 3px; }
.consent a:hover, .consent-check a:hover { color: var(--lime); }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(-45deg, transparent 50%, var(--cream) 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select.input option { background: var(--ink-2); color: var(--cream); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1.5px solid var(--line-dark); background: var(--ink-2); font-size: 14px; color: var(--muted-on-dark); margin: 0 0 30px; cursor: pointer; line-height: 1.5; }
.consent-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime); flex: none; cursor: pointer; }
.consent-check:has(input:checked) { border-color: var(--lime); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* status: error */
.alert { display: none; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 14px; background: var(--error-bg); border: 1px solid rgba(255,107,107,.5); margin-bottom: 24px; }
.alert.show { display: flex; }
.alert strong { display: block; margin-bottom: 2px; }
.alert p { margin: 0; color: #f3c6c6; font-size: 15px; }
.alert .alert__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--error); color: var(--ink); display: grid; place-items: center; font-weight: 800; }

/* status: loading */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(12,11,16,.25); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.sending { display: none; margin-bottom: 24px; padding: 20px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.sending.show { display: block; }
.sending__row { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.sending__bar { height: 4px; border-radius: 4px; background: var(--ink-3); overflow: hidden; margin-top: 14px; }
.sending__bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--sip), var(--lime)); animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
form[aria-busy="true"] .qstep { opacity: .55; pointer-events: none; }

/* status: success */
.success { display: none; animation: stepIn .6s var(--ease); }
.success.show { display: block; }
.success__badge { width: 84px; height: 84px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-bottom: 28px; }
.success__badge svg { width: 40px; height: 40px; }
.success__badge path { stroke: var(--ink); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .2s var(--ease) forwards; }
.success h2 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 14px; }
.success h2 .serif { color: var(--sip); }
.success .ref { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--muted-on-dark); margin-bottom: 30px; }
.success .ref b { color: var(--cream); }
.next-steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.next-steps li { background: var(--ink-2); padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.next-steps li span { font-family: var(--font-mono); color: var(--lime); font-weight: 700; }
.next-steps strong { display: block; }
.next-steps p { margin: 2px 0 0; color: var(--muted-on-dark); font-size: 15px; }
.optional-call { border-radius: var(--radius); padding: 26px; background: linear-gradient(140deg, rgba(255,90,31,.18), rgba(139,123,255,.12)); border: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.optional-call h3 { margin: 0 0 4px; font-size: 22px; }
.optional-call p { margin: 0; color: var(--muted-on-dark); }

.book { max-width: none; }
.book__frame { border-radius: var(--radius); background: #fff; overflow: hidden; min-height: 400px; }
.book__frame:has(.book__empty:not([hidden])) { background: var(--ink-2); border: 1px dashed var(--line-dark); }
.book__empty { padding: 40px 32px; display: grid; gap: 6px; justify-items: start; }
.book__empty p { color: var(--muted-on-dark); margin: 0 0 18px; }
.book__empty code { font-family: var(--font-mono); font-size: 14px; color: var(--lime); }

@media (max-width: 960px) {
  .quote { grid-template-columns: 1fr; }
  .quote__aside { padding: 28px var(--gutter) 8px; border-right: 0; background: transparent; }
  .quote__aside h1 { font-size: 40px; margin: 12px 0 10px; }
  .quote__aside p { margin-bottom: 0; }
  .quote__steps, .quote__help { display: none; }
  .quote__main { padding-top: 24px; }
  .is-done .quote__aside { display: none; }
  .is-done .quote__main { padding-top: 40px; }
}
@media (max-width: 640px) {
  .type-cards { grid-template-columns: 1fr; }
  .type-card label { min-height: 0; flex-direction: row; align-items: center; padding: 18px; }
  .type-card label > div { display: grid; gap: 2px; }
  .type-card strong { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chip { flex: 1 1 calc(50% - 10px); }
  .chip label { width: 100%; }
  .chips--stack .chip { flex-basis: 100%; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; }
  .qactions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--ink) 30%); padding: 28px 0 16px; margin-top: 24px; border-top: 0; }
  .qactions .btn { flex: 1; }
  .qactions .btn--ghost { flex: 0 0 auto; min-width: 0; }
  .optional-call .btn { width: 100%; }
}

/* ---------- form field borders (contrast) ---------- */
.input, textarea.input, .chip label, .type-card label, .consent-check { border-color: var(--line-field); }

/* ---------- very small phones (320px) ---------- */
@media (max-width: 360px) {
  .logo .serif { display: none; }
  .nav__cta .btn { padding: 0 12px; }
  .qactions { gap: 8px; }
  .qactions .btn { padding: 0 14px; font-size: 15px; min-width: 0; }
  .qactions .btn .arrow { display: none; }
}
