@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibmplexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibmplexmono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibmplexmono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibmplexmono-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/spacegrotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/spacegrotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/spacegrotesk-700.woff2') format('woff2');
}
/* The App Factory — "Enterprise Manifest" theme.
   An industrial checklist for enterprise software.
   Bone paper, carbon ink, signal orange. Nothing like the market:
   no gradients-for-decoration, no emoji confetti — precision, grid,
   oversized checkboxes, stamps, mono manifest labels. */

:root {
  --paper: #F4F1E9;
  --paper-2: #ECE7D8;
  --card: #FCFAF4;
  --ink: #17140F;
  --ink-2: #2B251B;
  --muted: #6F6452;
  --line: #D8CDB4;
  --signal: #FF4D00;
  --signal-deep: #B93600;
  --gold: #D9A441;
  --night: #131009;
  --night-2: #1D1811;
  --night-ink: #F2ECDD;
  --night-muted: #A89A80;
  --night-line: #38301F;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,20,15,.07), 0 16px 40px -18px rgba(23,20,15,.25);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--signal); color: #fff; }

/* ---------- type utilities ---------- */
.mono-kicker {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--signal-deep);
  display: flex; align-items: center; gap: 12px;
}
.mono-kicker::before { content: ""; width: 28px; height: 2px; background: var(--signal); display: inline-block; }
.section h2, .hero h1 { font-family: var(--font-display); letter-spacing: -0.03em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 13px 28px; display: flex; align-items: center; gap: 30px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.logo .mark {
  width: 30px; height: 30px; background: var(--ink); border-radius: 7px;
  display: grid; place-items: center; position: relative;
}
.logo .mark::after {
  content: ""; width: 14px; height: 8px;
  border-left: 3.5px solid var(--signal); border-bottom: 3.5px solid var(--signal);
  transform: rotate(-45deg) translateY(-1px);
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  text-decoration: none; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 500;
}
.nav-links a:hover { color: var(--signal-deep); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--card); color: var(--ink);
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: none; }
.btn-primary { background: var(--signal); border-color: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 11.5px; }
.btn-ghost { background: transparent; box-shadow: none; }

/* ---------- hero ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: 90px 28px 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(46px, 6.4vw, 84px);
  font-weight: 700; line-height: .98;
  margin: 26px 0 22px; text-wrap: balance;
}
.hero h1 .strike { position: relative; white-space: nowrap; }
.hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 6px; background: var(--signal); transform: rotate(-1.2deg);
}
.hero h1 .check-word { color: var(--signal-deep); }
.hero .sub { font-size: 18px; color: var(--ink-2); max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-strip span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust-strip span::before { content: ""; width: 9px; height: 9px; background: var(--signal); border-radius: 2px; }

/* manifest card — the deliverables checklist */
.manifest-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden; transform: rotate(.6deg);
}
.manifest-head {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--night-ink);
  padding: 14px 22px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
}
.manifest-head .live { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.manifest-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.manifest-items { list-style: none; }
.manifest-items li {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 22px; border-top: 1px solid var(--line);
  cursor: pointer; user-select: none;
  transition: background .15s;
}
.manifest-items li:hover { background: var(--paper); }
.manifest-items li .item-no { font-family: var(--font-mono); font-size: 11px; color: var(--muted); width: 30px; }
.manifest-items li .item-name { font-weight: 600; font-size: 16px; flex: 1; }
.manifest-items li .item-note { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.manifest-foot {
  padding: 16px 22px; border-top: 2px dashed var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.manifest-foot strong { color: var(--signal-deep); }

/* the checkbox — signature element */
.cbox {
  width: 30px; height: 30px; flex: none;
  border: 2.5px solid var(--ink); border-radius: 7px;
  display: grid; place-items: center; background: #fff;
  transition: background .18s, border-color .18s;
}
.cbox svg { width: 18px; height: 18px; }
.cbox svg path {
  stroke: var(--signal); stroke-width: 3.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  transition: stroke-dashoffset .28s ease .05s;
}
li.done .cbox { background: var(--ink); border-color: var(--ink); }
li.done .cbox svg path { stroke-dashoffset: 0; stroke: #fff; }
li.done .item-name { color: var(--ink); }
li:not(.done) .item-name { color: var(--muted); }
li:not(.done) .item-note { color: #B4A88F; }

/* stamp */
.stamp {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--signal-deep); border: 3px solid var(--signal-deep);
  border-radius: 6px; padding: 8px 18px;
  transform: rotate(-4deg);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 4 -1'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-size: 120px;
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap; padding: 15px 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.marquee-track { display: inline-block; animation: scroll 30s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin: 0 30px; }
.marquee .s { color: var(--signal); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 100px 28px 20px; }
.section h2 {
  font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; line-height: 1.02;
  margin: 20px 0 16px; text-wrap: balance;
}
.section h2 em { font-style: normal; color: var(--signal-deep); }
.section .lede { font-size: 17px; color: var(--ink-2); max-width: 660px; margin-bottom: 48px; }

/* steps */
.steps { border-top: 2px solid var(--ink); }
.step {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; align-items: center;
  padding: 28px 6px; border-bottom: 2px solid var(--ink);
  transition: background .15s;
}
.step:hover { background: var(--card); }
.step .num { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--signal-deep); letter-spacing: .1em; }
.step h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; max-width: 560px; }
.step .cbox { width: 34px; height: 34px; }

/* ---------- quest (clearance list) ---------- */
.clearance {
  background: var(--night); border-radius: 22px;
  padding: clamp(30px, 5vw, 70px);
  color: var(--night-ink);
  position: relative; overflow: hidden;
  border: 2px solid #000;
}
.clearance::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242,236,221,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,236,221,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(760px 420px at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}
.clearance .mono-kicker { color: var(--gold); }
.clearance .mono-kicker::before { background: var(--gold); }
.clearance h2 { color: var(--night-ink); }
.clearance h2 em { color: var(--gold); }
.clearance .lede { color: var(--night-muted); }
.quest-card {
  position: relative; background: var(--card); color: var(--ink);
  border: 2px solid #000; border-radius: var(--radius);
  max-width: 760px; margin: 0 auto; overflow: hidden;
  box-shadow: 10px 10px 0 rgba(0,0,0,.45);
}
.quest-card-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 26px; border-bottom: 2px solid var(--ink); background: var(--paper-2);
}
.quest-card-head .item-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--signal-deep); }
.quest-card-head .spacer { flex: 1; }
.quest-card-body { padding: 30px 30px 34px; }
.quest-card-body h3 { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 14px 0 8px; }
.quest-card-body .q-desc { color: var(--ink-2); margin-bottom: 24px; font-size: 15.5px; }
.q-field { margin-bottom: 18px; }
.q-field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.q-hint { display: block; font-size: 13px; color: var(--muted); margin: -4px 0 7px; }
.q-field input, .q-field textarea, .q-field select {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  border: 2px solid var(--ink); border-radius: 8px;
  padding: 12px 15px; background: #fff; color: var(--ink); outline: none;
}
.q-field input:focus, .q-field textarea:focus, .q-field select:focus { border-color: var(--signal-deep); box-shadow: 3px 3px 0 var(--signal); }
.quest-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quest-progress { max-width: 760px; margin: 24px auto 0; }
.quest-progress .bar { height: 10px; background: rgba(242,236,221,.14); border: 1px solid var(--night-line); border-radius: 999px; overflow: hidden; }
.quest-progress .bar div { height: 100%; width: 0; background: var(--signal); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.quest-progress .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; color: var(--night-muted); margin-top: 10px; text-transform: uppercase; display: flex; justify-content: space-between; }
.blueprint { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 20px 22px; margin: 18px 0; }
.blueprint h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--signal-deep); margin-bottom: 12px; }
.blueprint ul { list-style: none; }
.blueprint li { font-size: 14.5px; padding: 8px 0 8px 34px; position: relative; color: var(--ink-2); border-top: 1px dashed var(--line); }
.blueprint li:first-child { border-top: 0; }
.blueprint li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 16px; height: 16px;
  border: 2.5px solid var(--signal-deep); border-radius: 4px; background: var(--signal);
}
/* utility: must beat component display rules (e.g. .modal) regardless of source order */
.hidden { display: none !important; }

/* ---------- consultant ---------- */
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.consult-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: var(--shadow); position: relative;
  display: flex; flex-direction: column;
}
.consult-card.human { background: var(--ink); color: var(--night-ink); border-color: #000; }
.consult-card .c-type { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--signal-deep); margin-bottom: 14px; }
.consult-card.human .c-type { color: var(--gold); }
.consult-card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.consult-card p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 20px; }
.consult-card.human p { color: var(--night-muted); }
.consult-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.consult-card li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 14.5px; border-top: 1px dashed var(--line); }
.consult-card.human li { border-color: var(--night-line); color: var(--night-ink); }
.consult-card li .cbox { width: 22px; height: 22px; border-width: 2px; border-radius: 5px; margin-top: 2px; }
.consult-card li .cbox svg { width: 13px; height: 13px; }
.consult-card .c-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.consult-card .c-price small { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .06em; }
.consult-card.human .c-price small { color: var(--night-muted); }

/* ---------- enterprise floor ---------- */
.floor { background: var(--night); color: var(--night-ink); margin-top: 110px; border-top: 2px solid #000; border-bottom: 2px solid #000; position: relative; overflow: hidden; }
.floor::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(217,164,65,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,164,65,.06) 1px, transparent 1px);
  background-size: 54px 54px; pointer-events: none;
}
.floor-inner { max-width: 1240px; margin: 0 auto; padding: 100px 28px; position: relative; }
.floor .mono-kicker { color: var(--gold); } .floor .mono-kicker::before { background: var(--gold); }
.floor h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1; margin: 22px 0 18px; text-wrap: balance; }
.floor h2 em { font-style: normal; color: var(--signal); }
.floor .lede { color: var(--night-muted); font-size: 18px; max-width: 640px; margin-bottom: 54px; }
.todo-duel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.todo-panel { border: 2px solid var(--night-line); border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.todo-panel.factory { border-color: var(--signal); }
.todo-panel-head { padding: 16px 24px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; border-bottom: 2px solid var(--night-line); display: flex; justify-content: space-between; align-items: center; }
.todo-panel.factory .todo-panel-head { border-color: var(--signal); color: var(--gold); }
.todo-panel ul { list-style: none; }
.todo-panel li { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--night-line); font-size: 15px; font-weight: 500; }
.todo-panel li:first-child { border-top: 0; }
.todo-panel .cbox { border-color: var(--night-muted); background: transparent; width: 26px; height: 26px; }
.todo-panel li.done .cbox { background: var(--signal); border-color: var(--signal); }
.todo-panel.you .empty { padding: 40px 24px; text-align: center; color: var(--night-muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; }
.todo-panel.you .empty .big-check { width: 54px; height: 54px; margin: 0 auto 16px; border: 3px dashed var(--night-line); border-radius: 12px; display: grid; place-items: center; color: var(--gold); font-size: 26px; }
.sla-row { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 44px; }
.sla-row div { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.sla-row div strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--night-ink); letter-spacing: 0; margin-bottom: 4px; }
.sla-row div strong i { font-style: normal; color: var(--signal); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.tier:hover { transform: translate(-2px, -4px); }
.tier.featured { background: var(--ink); color: var(--night-ink); }
.tier .t-name { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--signal-deep); margin-bottom: 12px; }
.tier.featured .t-name { color: var(--gold); }
.tier .t-price { font-family: var(--font-display); font-size: 40px; font-weight: 700; margin-bottom: 6px; }
.tier .t-price small { font-size: 15px; font-weight: 500; font-family: var(--font-body); color: var(--muted); }
.tier.featured .t-price small { color: var(--night-muted); }
.tier .t-desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 22px; }
.tier.featured .t-desc { color: var(--night-muted); }
.tier ul { list-style: none; margin-bottom: 28px; flex: 1; }
.tier li { display: flex; gap: 12px; padding: 8px 0; font-size: 14.5px; border-top: 1px dashed var(--line); align-items: flex-start; }
.tier.featured li { border-color: var(--night-line); }
.tier li .cbox { width: 20px; height: 20px; border-width: 2px; border-radius: 5px; margin-top: 3px; }
.tier li .cbox svg { width: 12px; height: 12px; }
.credit-note {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  line-height: 1.7;
}
.credit-note strong { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }
.fee-strip {
  margin-top: 22px; border: 2px dashed var(--ink); border-radius: var(--radius);
  padding: 22px 28px; display: flex; gap: 34px; flex-wrap: wrap; align-items: center;
  background: var(--card);
}
.fee-strip .fee { display: flex; gap: 14px; align-items: center; }
.fee-strip .fee strong { font-family: var(--font-display); font-size: 19px; }
.fee-strip .fee span { font-size: 13.5px; color: var(--muted); display: block; }
.fee-strip .fee .cbox { width: 24px; height: 24px; }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--ink); margin-top: 110px; padding: 46px 28px 60px; }
.foot-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .flow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
footer .flow b { color: var(--signal-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tiers { grid-template-columns: 1fr; max-width: 560px; }
  .todo-duel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .consult-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 70px 1fr; }
  .step .cbox { display: none; }
  .consult-card { padding: 24px 18px; }
  .chat-msgs { padding: 14px; }
  .chat-input { padding: 10px; gap: 8px; }
}

/* ---------- sign-in modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(23,20,15,.55);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.modal-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  max-width: 420px; width: 100%; padding: 38px 36px;
  display: flex; flex-direction: column; gap: 14px;
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } }
.modal-card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.05; }
.modal-card .q-desc { margin-bottom: 6px; }
.btn-apple, .btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; text-transform: none; letter-spacing: 0; font-size: 15px;
  font-family: var(--font-body); padding: 14px;
}
.btn-apple { background: #000; color: #fff; border-color: #000; }
.btn-apple:hover { box-shadow: 4px 4px 0 var(--signal); }
.btn-google { background: #fff; color: var(--ink); }
.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 14px 7px 8px; background: var(--card);
}
.user-chip .cbox { background: var(--ink); border-color: var(--ink); }

/* ---------- AI consultant chat ---------- */
.chat-panel { margin: 6px 0 18px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.chat-msgs { max-height: 300px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg {
  font-size: 14px; line-height: 1.55; padding: 11px 14px; border-radius: 10px;
  max-width: 92%; white-space: pre-wrap;
}
.chat-msg.assistant { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; }
.chat-msg.assistant::before {
  content: "AI CONSULTANT"; display: block;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; color: var(--signal-deep); margin-bottom: 6px;
}
.chat-msg.user { background: var(--ink); color: var(--night-ink); align-self: flex-end; }
.chat-msg.typing { color: var(--muted); }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 2px solid var(--ink); background: var(--card); }
.chat-input input {
  flex: 1; border: 2px solid var(--ink); border-radius: 8px; padding: 10px 14px;
  font-family: var(--font-body); font-size: 14px; outline: none; background: #fff; color: var(--ink);
}
.chat-input input:focus { border-color: var(--signal-deep); box-shadow: 3px 3px 0 var(--signal); }
.chat-note {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--muted); padding: 9px 14px; border-top: 1px dashed var(--line);
  text-transform: uppercase;
}

.login-note{margin:10px 0 0;font-size:13px;color:var(--muted);line-height:1.5}

/* sign-in modal: error note + "optional" fine print */
.auth-error {
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.fineprint {
  color: var(--muted, #6b7280);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 10px 0 0;
  text-align: center;
}

/* ---------- hero prompt (Lovable-style chat entry) ---------- */
.hero-prompt {
  display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 8px 8px 8px 20px; margin-bottom: 12px; max-width: 560px;
}
.hero-prompt input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 10px 0; min-width: 0;
}
.hero-prompt input::placeholder { color: var(--muted); }
.hero-prompt-note { font-size: 13px; color: var(--muted); margin: 0 0 34px; }
@media (max-width: 640px) {
  .hero-prompt { flex-direction: column; align-items: stretch; padding: 12px; }
  .hero-prompt .btn { width: 100%; }
}
