:root {
  --ink: #181713;
  --muted: #6f6c62;
  --paper: #f7f3ea;
  --paper-2: #eee8da;
  --line: rgba(35, 32, 24, 0.13);
  --lime: #c8ff5b;
  --lime-dark: #8ec822;
  --violet: #8165ff;
  --rose: #ff8c7a;
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(48, 42, 25, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(28, 26, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 26, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
.is-hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(90px); pointer-events: none; opacity: .33; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: var(--lime); top: -220px; right: -90px; }
.ambient-two { width: 360px; height: 360px; background: #b3a6ff; bottom: -180px; left: -120px; }

.topbar {
  height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, .82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 23px; letter-spacing: -.04em; }
.brand > span:last-child > span { color: var(--violet); }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; background: var(--ink); border-radius: 10px; }
.brand-mark i { display: block; width: 3px; border-radius: 4px; background: var(--lime); animation: equalize 1.5s ease-in-out infinite; }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 20px; animation-delay: -.2s; }
.brand-mark i:nth-child(3) { height: 15px; animation-delay: -.5s; }
.brand-mark i:nth-child(4) { height: 7px; animation-delay: -.8s; }
@keyframes equalize { 50% { transform: scaleY(.45); } }

.top-actions { display: flex; gap: 16px; align-items: center; }
.pilot-badge { border: 1px solid var(--violet); color: var(--violet); border-radius: 999px; padding: 5px 9px; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.save-state { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.save-state span { width: 7px; height: 7px; background: var(--lime-dark); border-radius: 50%; }
.ghost-button { border: 0; background: transparent; padding: 8px 0; cursor: pointer; font-size: 13px; color: var(--muted); }

main { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }
.hero { min-height: calc(100vh - 78px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 16px 40px; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-weight: 800; color: var(--violet); font-size: 11px; margin-bottom: 20px; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 8.4vw, 116px); line-height: .88; letter-spacing: -.065em; font-weight: 500; max-width: 1100px; }
.hero h1 em { font-weight: 400; color: var(--violet); }
.hero > p { font-size: clamp(16px, 2vw, 21px); line-height: 1.6; color: var(--muted); max-width: 670px; margin: 32px 0; }
.primary-button, .secondary-button { border: 1px solid var(--ink); border-radius: 999px; padding: 15px 24px; cursor: pointer; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button { background: var(--ink); color: var(--white); box-shadow: 6px 6px 0 var(--lime); }
.primary-button:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--lime); }
.primary-button span { margin-left: 18px; }
.secondary-button { background: transparent; color: var(--ink); }
.secondary-button:hover { background: var(--white); }
.trust-row { display: flex; gap: 28px; margin-top: 36px; color: var(--muted); font-size: 12px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--lime-dark); font-weight: 900; }
.wave { height: 70px; margin-top: 60px; display: flex; align-items: center; gap: 5px; opacity: .32; }
.wave b { display: block; width: 3px; background: var(--ink); border-radius: 4px; height: calc(8px + (var(--n, 1) * 4px)); }
.wave b:nth-child(3n) { height: 43px; }.wave b:nth-child(4n) { height: 24px; }.wave b:nth-child(5n) { height: 58px; }.wave b:nth-child(7n) { height: 32px; }

.wizard { min-height: calc(100vh - 110px); margin: 32px 0 56px; display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.8fr); border: 1px solid var(--line); border-radius: 30px; background: rgba(255, 253, 248, .8); box-shadow: var(--shadow); overflow: hidden; }
.wizard-aside { background: var(--ink); color: var(--white); padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; min-height: 720px; }
.step-kicker { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.wizard-aside h2 { font-family: Georgia, serif; font-size: 40px; letter-spacing: -.04em; font-weight: 500; margin: 14px 0; }
.wizard-aside > div > p:last-child { color: #bbb7ae; line-height: 1.6; }
.step-list { list-style: none; padding: 0; margin: 40px 0; }
.step-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; color: #77736c; padding: 10px 0; font-size: 13px; }
.step-list i { width: 25px; height: 25px; border: 1px solid #4e4b46; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.step-list li.is-active { color: var(--white); }.step-list li.is-active i { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.step-list li.is-done { color: #b8b3aa; }.step-list li.is-done i { border-color: var(--lime); color: var(--lime); }
.privacy-card { border-top: 1px solid #3e3b36; padding-top: 24px; display: flex; gap: 12px; align-items: flex-start; }
.privacy-card span { color: var(--lime); font-size: 24px; }.privacy-card p { margin: 0; color: #aaa69e; font-size: 12px; line-height: 1.55; }.privacy-card strong { color: var(--white); }
.wizard-panel { padding: clamp(28px, 5vw, 72px); min-width: 0; }
.mobile-progress { display: none; }
.form-heading { margin-bottom: 34px; }
.form-heading small { color: var(--violet); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.form-heading h2 { font-family: Georgia, serif; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; font-weight: 500; margin: 12px 0; }
.form-heading p { color: var(--muted); line-height: 1.6; max-width: 700px; }
.question { margin-bottom: 28px; }
.question > label, .question > legend { display: block; font-weight: 780; margin-bottom: 10px; font-size: 14px; }
.question > label span, .question > legend span { font-weight: 500; color: var(--muted); }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.text-input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.74); color: var(--ink); border-radius: 14px; padding: 14px 16px; outline: none; transition: border .2s, box-shadow .2s;
}
.text-input:focus, .textarea:focus, .select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(129,101,255,.12); }
.textarea { min-height: 122px; resize: vertical; line-height: 1.55; }.textarea.tall { min-height: 240px; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.grid-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card label { display: block; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.65); padding: 18px; cursor: pointer; min-height: 94px; transition: border .2s, background .2s, transform .2s; }
.choice-card label strong { display: block; font-size: 14px; margin-bottom: 5px; }.choice-card label span { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; }
.choice-card input:checked + label { border-color: var(--ink); background: var(--lime); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.choice-card input:focus-visible + label { outline: 3px solid rgba(129,101,255,.4); }
.inline-check { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.62); }
.inline-check input { margin-top: 3px; accent-color: var(--violet); }.inline-check label { font-size: 13px; line-height: 1.5; color: var(--muted); }.inline-check strong { color: var(--ink); }
.section-divider { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.subheading { font-family: Georgia, serif; font-size: 25px; font-weight: 500; margin: 0 0 18px; }
.range-wrap { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.range-wrap input { width: 100%; accent-color: var(--violet); }.range-value { min-width: 45px; text-align: center; background: var(--ink); color: var(--white); border-radius: 999px; padding: 5px 9px; font-size: 12px; }
.dictate-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.dictate-button { border: 0; background: var(--paper-2); border-radius: 999px; padding: 7px 11px; font-size: 11px; cursor: pointer; }.dictate-button.is-listening { background: var(--rose); }
.form-navigation { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.validation-message { background: #fff0ec; color: #8e3d2e; border: 1px solid #ffc6bb; padding: 12px 15px; border-radius: 12px; font-size: 13px; margin-bottom: 20px; }

.result { margin: 46px auto 80px; max-width: 1120px; }
.result-heading { display: flex; justify-content: space-between; gap: 28px; align-items: center; margin-bottom: 30px; }
.result-heading h2 { font-family: Georgia, serif; font-size: clamp(40px, 6vw, 70px); letter-spacing: -.055em; line-height: .95; font-weight: 500; margin: 8px 0 14px; max-width: 760px; }
.result-heading p { color: var(--muted); }
.score-ring { width: 118px; height: 118px; border: 9px solid var(--lime); outline: 1px solid var(--line); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--white); flex: 0 0 auto; }.score-ring strong { font-size: 25px; }.score-ring span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.missing-alert { background: #fff3c9; border: 1px solid #ecd274; border-radius: 16px; padding: 17px 20px; margin-bottom: 22px; line-height: 1.5; font-size: 13px; }
.integrity-alert { background: #edffd0; border: 1px solid #acd951; border-radius: 16px; padding: 17px 20px; margin-bottom: 22px; line-height: 1.5; font-size: 13px; }
.missing-alert ul { margin: 8px 0 0; padding-left: 20px; }
.result-tabs { display: flex; gap: 6px; padding: 6px; background: var(--paper-2); border-radius: 999px; width: fit-content; margin-bottom: 18px; }
.result-tab { border: 0; border-radius: 999px; background: transparent; padding: 10px 16px; cursor: pointer; font-size: 12px; font-weight: 750; }.result-tab.is-active { background: var(--white); box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.tab-panel { border: 1px solid var(--line); background: rgba(255,253,248,.9); border-radius: var(--radius); padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow); }
.summary-lead { font-family: Georgia, serif; font-size: 25px; line-height: 1.45; margin: 0 0 25px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.summary-item { background: var(--paper); border-radius: 14px; padding: 15px; }.summary-item small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; margin-bottom: 6px; }.summary-item strong { font-size: 13px; }
.production-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.prompt-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }.prompt-card.is-wide { grid-column: 1 / -1; }.prompt-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }.prompt-card h3 { margin: 0; font-size: 13px; }.copy-button { border: 0; background: var(--paper-2); border-radius: 999px; padding: 6px 10px; cursor: pointer; font-size: 10px; }.prompt-content { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.55; color: #3f3d37; max-height: 330px; overflow: auto; }.settings-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 15px; }.setting-pill { background: var(--ink); color: var(--white); border-radius: 12px; padding: 10px; text-align: center; }.setting-pill small { display: block; color: #aaa69e; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }.setting-pill strong { font-size: 12px; }
.raw-json { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.55; color: #4a4842; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.capability-chip { border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 11px; display: flex; flex-direction: column; gap: 4px; }
.capability-chip strong { font-size: 11px; }.capability-chip small { font-size: 9px; color: var(--muted); }
.upload-panel { border: 1px dashed var(--violet); background: rgba(129,101,255,.05); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.qa-grid, .cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qa-grid label, .cost-grid label { font-size: 11px; color: var(--muted); }.qa-grid input, .cost-grid input { margin-top: 5px; }
.qa-summary { display: inline-flex; flex-direction: column; background: var(--ink); color: var(--white); padding: 12px 17px; border-radius: 14px; margin: 14px 0 22px; }.qa-summary strong { font-size: 22px; }.qa-summary span { font-size: 9px; color: #aaa69e; text-transform: uppercase; }
.cost-total { text-align: right; }.cost-total strong { color: var(--violet); }
.warning-dot { background: var(--rose) !important; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(430px, 92vw); background: var(--paper); z-index: 80; box-shadow: -20px 0 70px rgba(0,0,0,.2); padding: 28px; overflow-y: auto; }
.drawer > header { display: flex; justify-content: space-between; align-items: flex-start; }.drawer h2 { font-family: Georgia, serif; font-size: 35px; margin: 5px 0 12px; }.drawer header small { color: var(--violet); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(24,23,19,.45); backdrop-filter: blur(3px); z-index: 70; }
.icon-button { border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.projects-list { display: grid; gap: 10px; margin-top: 24px; }.project-row { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 15px; cursor: pointer; }.project-row strong, .project-row span { display: block; }.project-row span { color: var(--muted); font-size: 10px; margin-top: 5px; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(24,23,19,.82); display: grid; place-items: center; padding: 20px; }
.modal-card { width: min(440px, 100%); background: var(--paper); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }.modal-card h2 { font-family: Georgia, serif; font-size: 38px; margin: 0; }.modal-card > small { color: var(--violet); text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }.modal-card label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; }.brand.compact { margin-bottom: 8px; }
.toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; z-index: 50; font-size: 12px; }.toast.is-visible { opacity: 1; transform: translateY(0); }
.nav-link { text-decoration: none; display: inline-flex; align-items: center; }
.portfolio-link { display: inline-block; margin-top: 24px; color: var(--ink); font-size: 13px; font-weight: 750; text-underline-offset: 4px; }
.site-footer { width: min(100% - 40px, 1240px); margin: 0 auto 30px; border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }.site-footer nav { display: flex; gap: 18px; }.site-footer a { color: inherit; }
.review-history { display: grid; gap: 9px; margin-top: 18px; }.review-history article { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: baseline; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }.review-history article small { color: var(--muted); text-align: right; }.review-history article p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.portfolio-section { padding: 90px 0 110px; }.portfolio-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 32px; }.portfolio-heading h2 { font: 500 clamp(42px,6vw,72px)/.98 Georgia,serif; letter-spacing: -.05em; max-width: 780px; margin: 0 0 12px; }.portfolio-heading p { color: var(--muted); }.portfolio-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.portfolio-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,248,.85); color: var(--ink); text-decoration: none; transition: transform .2s,box-shadow .2s,border-color .2s; }.portfolio-card:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: 0 14px 30px rgba(48,42,25,.1); }.portfolio-card > span { color: var(--violet); font: 500 22px Georgia,serif; }.portfolio-card strong { display: block; }.portfolio-card p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 5px 0 0; }.portfolio-card i { font-style: normal; font-size: 11px; font-weight: 800; }

@media (max-width: 860px) {
  .topbar { height: 66px; }.save-state { display: none; } main { width: min(100% - 20px, 700px); }
  .hero { min-height: calc(100vh - 66px); padding-top: 50px; }.hero h1 { font-size: clamp(48px, 14vw, 76px); }.trust-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .wizard { display: block; margin-top: 18px; }.wizard-aside { display: none; }.wizard-panel { padding: 24px 18px 30px; }.mobile-progress { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; color: var(--muted); font-size: 11px; }.mobile-progress > div { height: 4px; background: var(--paper-2); flex: 1; border-radius: 5px; overflow: hidden; }.mobile-progress i { display: block; height: 100%; background: var(--violet); transition: width .3s; }
  .choice-grid, .grid-two, .grid-three, .production-grid, .summary-grid, .capability-grid, .qa-grid, .cost-grid, .portfolio-grid { grid-template-columns: 1fr; }.prompt-card.is-wide { grid-column: auto; }.settings-row { grid-template-columns: repeat(2, 1fr); }.portfolio-heading { align-items: flex-start; flex-direction: column; }
  .result-heading { align-items: flex-start; }.score-ring { width: 90px; height: 90px; border-width: 7px; }.result-tabs { width: 100%; overflow-x: auto; }.result-tab { white-space: nowrap; }.result-actions > * { flex: 1 1 190px; }
}

@media (max-width: 560px) {
  .topbar { width: 100%; min-width: 0; padding: 0 15px; gap: 10px; }
  .brand { flex: 0 0 auto; gap: 9px; font-size: 20px; }.brand-mark { width: 32px; height: 32px; }
  .top-actions { min-width: 0; gap: 11px; }.top-actions .pilot-badge, #sessionButton, #resetButton { display: none; }.top-actions .ghost-button { font-size: 11px; white-space: nowrap; }
  .hero { width: 100%; padding: 48px 8px 36px; overflow: hidden; }.hero h1 { width: 100%; max-width: 100%; font-size: clamp(42px, 11.8vw, 52px); line-height: .94; letter-spacing: -.055em; }.hero > p { width: 100%; font-size: 15px; }
  .trust-row { align-items: center; }.wave { transform: scale(.8); }
  .form-heading h2 { font-size: 39px; }.form-navigation { gap: 10px; }.form-navigation button { padding: 13px 17px; }.result-heading { display: block; }.score-ring { margin-top: 20px; }
}

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