:root {
  --ink: #102b3a;
  --ink-2: #1c4052;
  --paper: #f6f7f8;
  --surface: #ffffff;
  --mist: #BED4E2;
  --line: #b9d0d4;
  --accent: #147966;
  --accent-dark: #147966;
  --warm: #0f5c4d;
  --warning: #e7f4f1;
  --danger: #9a3c35;
  --shadow: 0 20px 50px rgba(11, 39, 53, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px #0b5e9a; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: white; padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 5vw; color: white; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: #52cbb6; color: var(--ink); border-radius: 40% 60% 48% 52%; font-size: .8rem; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand small { color: #9eddd3; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-size: .9rem; color: #d8e9ec; }
.site-header nav a:hover { color: white; }
.prototype-banner { padding: .75rem 5vw; color: var(--ink); background: var(--mist); border-bottom: 1px solid var(--warm); text-align: center; }
.update-notice { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .65rem 1rem; color: var(--ink); background: var(--mist); border-bottom: 1px solid var(--warm); }
.update-notice[hidden] { display: none; }
.update-notice .button { min-height: 44px; padding-block: .5rem; }

.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 4rem; align-items: center; padding: 5.5rem 5vw 6.5rem; color: white; background-color: var(--ink); background-image: radial-gradient(circle at 85% 20%, rgba(41,183,158,.24), transparent 28%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: auto, 38px 38px, 38px 38px; }
.hero::after { content: ""; position: absolute; width: 18rem; height: 18rem; right: -7rem; bottom: -8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 46% 54% 63% 37%; transform: rotate(17deg); }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 1.25rem; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; letter-spacing: -.035em; }
h3 { font-size: 1.1rem; }
.hero-lede { max-width: 720px; color: #d9eaed; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1rem; border: 2px solid transparent; border-radius: .65rem; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { color: #092a2b; background: #52cbb6; }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); }
.hero .button-primary { color: #092a2b; background: #52cbb6; border-color: #52cbb6; }
.hero .button-secondary { color: white; background: transparent; border-color: rgba(255,255,255,.65); }
.trust-list { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; padding: 0; margin: 0; list-style: none; color: #c7dfe3; font-size: .9rem; }
.trust-list li::before { content: "✓"; margin-right: .4rem; color: var(--accent); font-weight: 900; }
.hero .eyebrow, .trust-list li::before { color: #70ddca; }
.install-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 720px; margin-top: 1.5rem; padding: 1rem; color: #d9eaed; background: rgba(8,29,40,.7); border: 1px solid rgba(255,255,255,.2); border-radius: .8rem; }
.install-panel strong { color: white; }
.install-panel p { margin: .2rem 0 0; font-size: .88rem; }
.install-panel .button { flex: 0 0 auto; }

.route-card { position: relative; z-index: 1; padding: 1.5rem; background: rgba(8,29,40,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 1.3rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.route-card-label { color: #ffc174; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.route-card ol { padding: 0; margin: 0; list-style: none; }
.route-card li { display: grid; grid-template-columns: 2rem 1fr; column-gap: .8rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.route-card li span { grid-row: 1 / 3; color: #70ddca; font-size: .75rem; font-weight: 900; }
.route-card li strong { line-height: 1.2; }
.route-card li small { color: #bfd5da; }

.builder-section, .content-section, .legal-section { padding: 5rem 5vw; }
.builder-section { background: var(--paper); }
.section-heading { max-width: 820px; margin-bottom: 2rem; }
.section-heading > p:last-child { color: #496776; }
.section-heading.compact { margin-bottom: 2.5rem; }
.notice { max-width: 1050px; margin-bottom: 1.5rem; padding: 1rem 1.2rem; background: var(--mist); border-left: 5px solid var(--ink-2); border-radius: .3rem .7rem .7rem .3rem; }
.draft-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem 1rem; max-width: 1050px; margin: 0 0 1.5rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: .7rem; }
.draft-controls .consent-check { align-items: center; }
.draft-controls input { width: 1.5rem; height: 1.5rem; }
.draft-controls p { grid-column: 1 / -1; margin: 0; color: #58717d; font-size: .88rem; }
.text-button { min-height: 44px; padding: .45rem .7rem; color: #075e50; background: transparent; border: 0; border-radius: .4rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.text-button:hover { background: var(--paper); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; max-width: 1200px; }
.form-card { min-width: 0; margin: 0; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 8px 24px rgba(15,50,65,.05); }
.form-card-wide { grid-column: 1 / -1; }
.form-card-sensitive { background: var(--mist); border-color: var(--warm); }
legend { padding: 0 .45rem; color: var(--ink); font-size: 1.05rem; font-weight: 850; }
label:not(.check):not(.consent-check) { display: block; margin: 1rem 0 .35rem; font-weight: 750; }
input[type="text"], input:not([type]), textarea, select { width: 100%; min-height: 48px; padding: .72rem .8rem; color: var(--ink); background: white; border: 1px solid #829fa8; border-radius: .45rem; }
textarea { resize: vertical; }
.field-help, fieldset small { display: block; color: #58717d; font-size: .88rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; min-height: 44px; padding: .55rem; border-radius: .4rem; }
.check:hover { background: var(--paper); }
.check input { width: 1.5rem; height: 1.5rem; margin-top: .05rem; flex: 0 0 auto; }
.radio-stack { display: grid; gap: .2rem; }
.optional { color: #49636e; font-size: .8rem; font-weight: 500; }
.privacy-rule { margin: .9rem 0 0; padding: .8rem; background: var(--mist); border-radius: .45rem; font-size: .9rem; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; max-width: 1200px; margin-top: 1.4rem; padding: 1.2rem 0; }
.consent-check { display: flex; align-items: flex-start; gap: .65rem; max-width: 720px; font-weight: 700; }
.consent-check input { width: 1.5rem; height: 1.5rem; margin-top: .05rem; flex: 0 0 auto; }
.form-error { width: 100%; margin: 0; color: var(--danger); font-weight: 750; }

.recommendation { max-width: 1200px; margin-top: 3rem; padding: 1.8rem; background: white; border: 2px solid var(--ink); border-radius: 1rem; box-shadow: var(--shadow); }
.recommendation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.recommendation-top h2 { margin-bottom: 1.2rem; }
.recommendation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.result-card { padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; }
.result-card h3 { margin-bottom: .7rem; }
.result-card ul, .result-card ol { margin-bottom: 0; padding-left: 1.25rem; }
.result-card li + li { margin-top: .45rem; }
.result-card.warning { background: var(--); border-color: var(--warm); }
.result-card.costs { grid-column: 1 / -1; }
.result-card.desktop-handoff { grid-column: 1 / -1; color: white; background: var(--ink-2); border-color: var(--ink-2); }
.cost-row { display: grid; grid-template-columns: minmax(180px, .8fr) 1.4fr auto; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.cost-row:first-of-type { border-top: 0; }
.cost-row small { color: #5b737e; }
.result-actions { display: flex; flex-wrap: wrap; gap: .7rem; grid-column: 1 / -1; padding-top: .5rem; }
.result-actions .button-secondary { background: var(--paper); }

.content-section:nth-of-type(even) { background: white; }
.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; padding: 0; list-style: none; }
.steps li { min-height: 190px; padding: 1.2rem; background: white; border-top: 4px solid var(--accent); box-shadow: 0 10px 30px rgba(15,50,65,.08); }
.steps li > span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1.2rem; background: var(--ink); color: white; border-radius: 50%; font-weight: 900; }
.steps strong { font-size: 1.1rem; }
.steps p { color: #526d78; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { color: white; background: var(--ink); }
tbody th { width: 22%; }

.offers { background: var(--paper) !important; }
.offer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.offer-card { padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: .9rem; }
.offer-card.featured { color: white; background: var(--ink); border-color: var(--ink); transform: translateY(-.6rem); }
.offer-name { margin-bottom: .2rem; font-weight: 850; }
.offer-price { margin-bottom: .7rem; font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; }
.offer-kicker { margin-bottom: .5rem; color: var(--accent-dark); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.offer-card.featured .offer-kicker { color: #70ddca; }
.offer-card ul { padding-left: 1.2rem; }
.checkout-ack { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: .7rem; background: #f7faf9; color: var(--ink); font-size: .88rem; line-height: 1.45; }
.checkout-ack[hidden] { display: none; }
.checkout-ack input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; }

.legal-section { color: white; background: var(--ink-2); }
.legal-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.legal-grid article { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; }
.legal-grid p { color: #496776; }
.legal-grid h3 { color: var(--ink); }

footer { padding: 2.5rem 5vw; color: #cde0e4; background: #091d27; }
footer p { margin-bottom: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }
.footer-links a { color: #8adacb; }

.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--paper); }
.offline-page main { max-width: 34rem; padding: 2rem; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.offline-page h1 { font-size: clamp(2rem, 8vw, 3.4rem); }

@media (max-width: 920px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 4rem; }
  .route-card { max-width: 680px; }
  .steps, .offer-grid, .legal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recommendation-grid { grid-template-columns: 1fr; }
  .result-card.costs, .result-actions { grid-column: auto; }
}

@media (max-width: 660px) {
  .site-header { padding-inline: 1rem; }
  .hero, .builder-section, .content-section, .legal-section { padding: 3rem 1rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.15rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .hero { padding-top: 3.2rem; }
  .hero-lede { font-size: 1.06rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .install-panel { align-items: stretch; flex-direction: column; }
  .install-panel .button { width: 100%; }
  .form-grid, .steps, .offer-grid, .legal-grid { grid-template-columns: 1fr; }
  .form-card-wide { grid-column: auto; }
  .form-card { padding: 1.1rem; }
  .draft-controls { grid-template-columns: 1fr; }
  .draft-controls p { grid-column: auto; }
  .draft-controls .text-button { justify-self: start; }
  .form-submit { align-items: stretch; }
  .form-submit .button { width: 100%; }
  .offer-card.featured { transform: none; }
  .cost-row { grid-template-columns: 1fr; gap: .25rem; }
  .recommendation { padding: 1rem; }
  .recommendation-top { flex-direction: column; }
  .recommendation-top .button { width: 100%; }
  .update-notice { align-items: stretch; flex-direction: column; }
}

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

.form-progress {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.form-progress-step {
  flex: 1;
  padding: .6rem .9rem;
  border-radius: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #6b8792;
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.form-progress-step.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.form-progress-step.is-done {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.form-progress-num {
  display: inline-block;
  margin-right: .35rem;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-nav .button {
  min-width: 9rem;
}

.idea-assessment {
  max-width: 1050px;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--mist);
  border-left: 5px solid var(--ink-2);
  border-radius: .3rem .7rem .7rem .3rem;
}

/* ---------------------------------------------------------------------------------------------
   Vibe accent system (OA Starter Kit output only).
   A fixed, pre-approved set of named archetypes (see business-essentials.js) each set exactly
   four custom properties on a `[data-vibe]` host element. This is deliberately a hint, not a
   reskin: only the handful of rules below that explicitly reference `--vibe-*` change at all -
   the rest of the page keeps the same navy/teal/paper system regardless of vibe. There is no
   runtime blending between archetypes; every id here is its own fixed treatment.
--------------------------------------------------------------------------------------------- */
[data-vibe="indie-community"]            { --vibe-accent: #d97a3f; --vibe-accent-ink: #2a1608; --vibe-radius: 1.3rem; --vibe-tracking: 0; }
[data-vibe="tech-startup"]               { --vibe-accent: #4f6df5; --vibe-accent-ink: #ffffff; --vibe-radius: .5rem;  --vibe-tracking: -.01em; }
[data-vibe="corporate-professional"]     { --vibe-accent: #2d5f7c; --vibe-accent-ink: #ffffff; --vibe-radius: .3rem;  --vibe-tracking: 0; }
[data-vibe="premium-considered"]         { --vibe-accent: #a9822f; --vibe-accent-ink: #241c08; --vibe-radius: .9rem;  --vibe-tracking: .02em; }
[data-vibe="wellness-calm"]              { --vibe-accent: #7a9e7e; --vibe-accent-ink: #16231a; --vibe-radius: 1.6rem; --vibe-tracking: 0; }
[data-vibe="healthtech"]                 { --vibe-accent: #2f9ea3; --vibe-accent-ink: #ffffff; --vibe-radius: .9rem;  --vibe-tracking: 0; }
[data-vibe="insurtech-wellness-finance"] { --vibe-accent: #3c6e8f; --vibe-accent-ink: #ffffff; --vibe-radius: .6rem;  --vibe-tracking: 0; }
[data-vibe="creative-studio"]            { --vibe-accent: #c65b8a; --vibe-accent-ink: #22101a; --vibe-radius: 1.1rem; --vibe-tracking: .01em; }

/* ---------------------------------------------------------------------------------------------
   OA Starter Kit output page (starter-kit.html). Builds on the same .plan-wrap/.result-card/
   .idea-assessment pattern thank-you.html already uses - these are the few new pieces needed on
   top of that: the tailored business-essentials checklist and a copy-to-clipboard prompt block.
--------------------------------------------------------------------------------------------- */
.kit-header {
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
  background: var(--ink);
  border-radius: var(--vibe-radius, .9rem);
  border-top: 4px solid var(--vibe-accent, var(--accent));
  color: white;
  letter-spacing: var(--vibe-tracking, 0);
}
.kit-header .eyebrow { color: var(--vibe-accent, #70ddca); }
.kit-header p { color: #d9eaed; }

.prompt-block {
  position: relative;
  margin: 1rem 0 1.5rem;
  padding: 1.1rem 1.2rem;
  background: var(--ink-2);
  color: #e7f2f3;
  border-radius: .6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.prompt-block .copy-prompt {
  position: absolute;
  top: .6rem;
  right: .6rem;
}

.essentials-intro {
  max-width: 900px;
  margin-bottom: 1.2rem;
  padding: .9rem 1.1rem;
  background: var(--warning);
  border-left: 5px solid var(--warm);
  border-radius: .3rem .7rem .7rem .3rem;
  font-size: .92rem;
}

.essentials-list { display: grid; gap: .8rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.essentials-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--vibe-accent, var(--accent));
  border-radius: var(--vibe-radius, .6rem);
}
.essentials-item input[type="checkbox"] { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: 0 0 auto; }
.essentials-item label { display: block; margin: 0 0 .25rem; font-weight: 800; }
.essentials-item p { margin: 0; color: #4c6771; font-size: .9rem; }
.essentials-item.is-done { opacity: .6; }
.essentials-item.is-done label { text-decoration: line-through; }

/* ---------------------------------------------------------------------------------------------
   OA Blueprint output page (blueprint.html). Reuses .kit-header/.prompt-block/.essentials-*
   from the OA Starter Kit output above (Blueprint includes everything in the Starter Kit) -
   these are the few additional pieces it needs: a numbered step list for the self-service guide,
   and a collapsible FAQ.
--------------------------------------------------------------------------------------------- */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.2rem; }
.step-item {
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.4rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--vibe-radius, .7rem);
}
.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--vibe-accent, var(--accent));
  color: var(--vibe-accent-ink, white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex: 0 0 auto;
}
.step-item h3 { margin: 0 0 .4rem; }
.step-item p { margin: 0 0 .6rem; color: #4c6771; }
.step-item .prompt-block { margin: .8rem 0 0; }

.faq-list { display: grid; gap: .6rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.faq-item { border: 1px solid var(--line); border-radius: .6rem; background: white; }
.faq-item summary {
  cursor: pointer;
  padding: .9rem 1.1rem;
  font-weight: 800;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0; padding: 0 1.1rem 1rem; color: #4c6771; font-size: .93rem; }
