@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap");

:root {
  --ground: #E9E3D6;
  --surface: #F3EFE4;
  --input: #F3EFE4;
  --ink: #23241C;
  --ink-secondary: #3C3E30;
  --muted: #5C5F4E;
  --faint: #979A84;
  --hairline: #CBC3B0;
  --olive: #4C5637;
  --olive-hover: #3D4629;
  --olive-light: #A8B07C;
  --partial: #D9834F;
  --rust: #A8461F;
  --rust-deep: #8A3A17;
  --rust-tint: #F3E7D6;
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ground); color: var(--ink); font-family: Archivo, sans-serif; }
button, input, textarea { font: inherit; }
button { border-radius: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
[hidden] { display: none !important; }

.view { min-height: 100dvh; background: var(--ground); }
.landing-header, .app-header { min-height: 66px; padding: 14px clamp(20px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; border-bottom: 2px solid var(--ink); }
.wordmark { font: 800 21px/1 Archivo, sans-serif; letter-spacing: -.02em; }
.wordmark span { color: var(--olive); }
.wordmark-button { padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.landing-tagline { color: var(--muted); font-size: 13px; line-height: 1.35; }
.eyebrow, .state-mark, .kicker { font-weight: 700; font-size: 10px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow, .state-mark { color: var(--muted); }
.button { min-height: 48px; padding: 16px 26px; border: 0; text-align: left; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer; }
.button-primary { background: var(--olive); color: #fff; }
.button-primary:hover { background: var(--olive-hover); }
.button:disabled { opacity: .45; cursor: not-allowed; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)); border-bottom: 2px solid var(--ink); }
.hero-copy { padding: clamp(44px, 6vw, 84px) clamp(20px, 5vw, 56px) 64px; }
.hero-copy h1, .gate-intro h1, .tool-intro h1 { max-width: 13ch; margin: 24px 0 28px; font: 800 clamp(38px, 6.4vw, 82px)/.94 Archivo, sans-serif; letter-spacing: -.035em; }
.kicker { color: var(--olive); }
.lead { max-width: 54ch; margin: 0 0 20px; color: var(--ink-secondary); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; text-wrap: pretty; }
.supporting { max-width: 54ch; margin: 0 0 34px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-actions span { max-width: 24ch; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.price-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 6vw, 84px) clamp(20px, 5vw, 56px) 64px; background: var(--surface); }
.price-panel .kicker { color: var(--muted); margin-bottom: 22px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 0 15px; border-bottom: 2px solid var(--ink); }
.price-line + .price-line { padding: 15px 0; }
.price-line span { font-weight: 600; font-size: 17px; line-height: 1.2; }
.price-line strong { font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; letter-spacing: -.02em; }
.price-panel p { margin: 18px 0 0; color: var(--ink-secondary); font-size: 14.5px; line-height: 1.5; }

.section { padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 56px) 0; border-bottom: 2px solid var(--ink); }
.section h2, .beta-section h2 { max-width: 20ch; margin: 0 0 18px; font: 800 clamp(32px, 3.6vw, 46px)/1.02 Archivo, sans-serif; letter-spacing: -.03em; }
.section-intro { max-width: 70ch; margin: 0 0 40px; color: var(--ink-secondary); font-size: 16.5px; line-height: 1.55; text-wrap: pretty; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 26px 28px 34px 0; border-bottom: 1px solid var(--hairline); }
.step strong { display: block; margin-bottom: 14px; color: var(--olive); font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.step h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.step p { max-width: 34ch; margin: 0; color: var(--ink-secondary); font-size: 14.5px; line-height: 1.5; }

.about-section { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: clamp(28px, 8vw, 120px); align-items: start; padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 56px); border-bottom: 2px solid var(--ink); background: var(--surface); }
.about-mark { color: var(--olive); font-size: 11px; font-weight: 700; line-height: 1.35; letter-spacing: .14em; }
.about-copy { max-width: 720px; }
.about-copy h2 { max-width: 14ch; margin: 18px 0 24px; font: 800 clamp(34px, 4.6vw, 60px)/.98 Archivo, sans-serif; letter-spacing: -.035em; }
.about-copy p { max-width: 58ch; margin: 0 0 18px; color: var(--ink-secondary); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.about-copy .small-copy { margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.beta-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(40px, 5vw, 68px) clamp(20px, 5vw, 56px) clamp(48px, 6vw, 76px); border-bottom: 2px solid var(--ink); }
.beta-section h2 { max-width: 16ch; }
.beta-section .section-intro { max-width: 52ch; margin-bottom: 14px; }
.small-copy { max-width: 52ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.beta-card { padding: clamp(22px, 3vw, 32px); border: 2px solid var(--ink); background: var(--surface); }
.beta-card .kicker { color: var(--muted); margin-bottom: 18px; }
.beta-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.1; }
.beta-card p { max-width: 34ch; margin: 0 0 22px; color: var(--ink-secondary); font-size: 15px; line-height: 1.5; }
.tool-first { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: clamp(36px, 8vw, 120px); align-items: start; max-width: 1260px; margin: 0 auto; padding: clamp(56px, 9vw, 130px) clamp(20px, 5vw, 56px) clamp(64px, 8vw, 110px); border-bottom: 2px solid var(--ink); }
.tool-first-intro h1 { max-width: 8ch; margin: 20px 0 26px; font: 800 clamp(52px, 8vw, 104px)/.9 Archivo, sans-serif; letter-spacing: -.05em; }
.tool-first-intro p { max-width: 42ch; margin: 0; color: var(--ink-secondary); font-size: 18px; line-height: 1.52; }
.unlock-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 28px 56px; align-items: center; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px); border-bottom: 2px solid var(--ink); background: var(--surface); }
.unlock-panel h2 { max-width: 16ch; margin: 12px 0 12px; font: 800 clamp(30px, 4vw, 48px)/1 Archivo, sans-serif; letter-spacing: -.035em; }
.unlock-panel > div > p { max-width: 54ch; margin: 0; color: var(--ink-secondary); font-size: 16px; line-height: 1.5; }
.unlock-form { max-width: 420px; }
.also-consider { margin-top: 28px; padding: 22px; border: 2px solid var(--ink); background: var(--input); }
.also-consider ul { display: grid; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.also-consider li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.also-consider li:first-child { padding-top: 0; border-top: 0; }
.also-consider strong { font-size: 14px; }
.also-consider span { color: var(--ink-secondary); font-size: 13.5px; line-height: 1.45; }
.result-note { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--hairline); color: var(--muted); font-size: 13px; line-height: 1.45; }
.result-note p { margin: 0; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 24px; padding: 32px clamp(20px, 5vw, 56px) 40px; }
.site-footer p { max-width: 92ch; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.site-footer span { flex: none; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.gate-view, .tool-view { background: var(--ground); }
.app-header { min-height: 74px; }
.gate-layout, .tool-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(36px, 8vw, 120px); max-width: 1260px; margin: 0 auto; padding: clamp(56px, 9vw, 130px) clamp(20px, 5vw, 56px) clamp(64px, 8vw, 110px); }
.gate-intro h1, .tool-intro h1 { margin-top: 20px; margin-bottom: 26px; max-width: 10ch; }
.gate-intro h1 span { color: var(--olive); }
.gate-intro > p, .tool-intro > p { max-width: 44ch; margin: 0; color: var(--ink-secondary); font-size: 17px; line-height: 1.52; text-wrap: pretty; }
.rule-note { display: flex; align-items: center; gap: 14px; margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12px; font-weight: 600; }
.rule-note span:first-child { color: var(--olive); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.access-card, .gap-card { align-self: start; padding: clamp(24px, 4vw, 40px); border: 2px solid var(--ink); background: var(--surface); }
.access-card .kicker, .gap-card .kicker { margin-bottom: 28px; color: var(--muted); }
label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
input, textarea { width: 100%; border: 2px solid var(--ink); border-radius: 0; background: var(--input); color: var(--ink); padding: 14px 13px; font-size: 15px; line-height: 1.3; }
select { width: 100%; min-height: 50px; border: 2px solid var(--ink); border-radius: 0; background: var(--input); color: var(--ink); padding: 14px 13px; font: inherit; font-size: 15px; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input { min-height: 50px; }
textarea { resize: vertical; }
.button-wide { width: 100%; margin-top: 20px; }
.microcopy { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-error { margin: 12px 0 0; padding-top: 10px; border-top: 2px solid var(--rust); color: var(--rust-deep); font-size: 13px; font-weight: 600; line-height: 1.45; }
.tool-header-right { display: flex; align-items: center; gap: 20px; }
.text-button { padding: 10px 0; border: 0; background: transparent; color: var(--olive); font-size: 13px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--olive-hover); }
.tool-tabs { display: flex; gap: clamp(20px, 4vw, 42px); padding: 0 clamp(20px, 5vw, 56px); border-bottom: 1px solid var(--hairline); background: var(--ground); }
.tool-tab { padding: 17px 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.tool-tab.is-active { border-bottom-color: var(--olive); color: var(--olive); }
.tool-tab:hover { color: var(--olive); }
.tool-panel { background: var(--ground); }
.tool-layout { padding-bottom: clamp(46px, 7vw, 80px); }
.tool-legend { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; max-width: 250px; margin-top: 52px; padding-top: 16px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12px; font-weight: 600; }
.legend-number { color: var(--olive); font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.field-group + .field-group { margin-top: 22px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { min-width: 0; }
.button-secondary { min-height: 50px; padding: 14px 18px; border: 2px solid var(--ink); background: transparent; color: var(--olive); }
.button-secondary:hover { background: var(--surface); }
.condition-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.condition-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--olive); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; }
.condition-chip button { padding: 0; border: 0; background: transparent; color: var(--olive); font-size: 17px; line-height: .8; cursor: pointer; }
.statement-question + .statement-question { margin-top: 22px; }
.statement-question textarea { min-height: 92px; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.3; }
#description-count { color: var(--faint); }
.result-section { padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 56px) clamp(48px, 7vw, 84px); border-top: 2px solid var(--ink); background: var(--surface); }
.result-wrap { max-width: 1160px; margin: 0 auto; }
.result-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: end; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.result-top h2 { max-width: 18ch; margin: 12px 0 0; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; }
.result-code-box { min-width: min(100%, 280px); padding: 16px; border: 2px solid var(--ink); background: var(--input); }
.result-code { color: var(--olive); font-size: 15px; font-weight: 700; }
.result-cfr { margin-top: 6px; color: var(--muted); font-size: 12px; }
.read-as { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.caution { margin: 24px 0 0; padding: 14px 16px; border: 1px solid var(--rust); background: var(--rust-tint); color: var(--rust-deep); font-size: 14px; line-height: 1.5; }
.tier-list { margin-top: 28px; border-top: 2px solid var(--ink); }
.tier-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.tier-row.status-border-met { border-left: 4px solid var(--olive); padding-left: 14px; }
.tier-row.status-border-partial { border-left: 4px solid var(--partial); padding-left: 14px; }
.tier-row.status-border-gap { border-left: 4px solid var(--rust); padding-left: 14px; }
.tier-pct { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.tier-pct small { font-size: 12px; letter-spacing: 0; }
.tier-criteria { margin: 0 0 7px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.tier-need { margin: 0; color: var(--ink-secondary); font-size: 13.5px; line-height: 1.45; }
.status { display: inline-block; padding: 7px 9px; font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.status-met { background: var(--olive); color: #fff; }
.status-partial { border: 1px solid var(--olive); color: var(--olive); }
.status-gap { background: var(--rust-tint); color: var(--rust-deep); }
.ask-instead { margin-top: 28px; padding: 22px; border: 2px solid var(--ink); background: var(--input); }
.ask-instead ul { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 20px; color: var(--ink-secondary); font-size: 15px; line-height: 1.5; }
.ask-instead p { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.result-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 28px 56px; align-items: start; margin-top: 48px; padding: clamp(22px, 4vw, 34px); border: 2px solid var(--ink); background: var(--input); }
.result-contact h3 { margin: 12px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.02; letter-spacing: -.03em; }
.result-contact > div > p { max-width: 42ch; margin: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.5; }
.result-contact-form { padding-left: 28px; border-left: 1px solid var(--hairline); }
.result-contact-form .button-wide { margin-top: 14px; }
.contact-success { margin: 12px 0 0; color: var(--olive); font-size: 13px; font-weight: 700; line-height: 1.45; }
.result-next-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 28px 56px; align-items: center; margin-top: 18px; padding: clamp(22px, 4vw, 34px); border: 2px solid var(--ink); background: var(--ground); }
.result-next-steps h3 { margin: 12px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.02; letter-spacing: -.03em; }
.result-next-steps > div > p { max-width: 42ch; margin: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.5; }
.next-step-actions { display: grid; gap: 10px; }
.next-step-actions .button { display: flex; align-items: center; gap: 14px; justify-content: flex-start; width: 100%; }
.next-step-actions .button strong { color: var(--olive); font-size: 18px; line-height: 1; }
.result-heading { margin: 0 0 22px; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; }
.secondary-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.secondary-card { padding: 22px; border: 2px solid var(--ink); background: var(--input); }
.secondary-card h3 { margin: 0 0 20px; font-size: 22px; line-height: 1.05; letter-spacing: -.02em; }
.secondary-row + .secondary-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.secondary-row strong { display: block; margin-bottom: 5px; color: var(--olive); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.secondary-row p { margin: 0; color: var(--ink-secondary); font-size: 13.5px; line-height: 1.45; }
.statement-output { max-width: 820px; padding: clamp(22px, 4vw, 34px); border: 2px solid var(--ink); background: var(--input); }
.statement-output p { margin: 0; white-space: pre-wrap; color: var(--ink-secondary); font-size: 16px; line-height: 1.65; }
.paste-note { margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); color: var(--muted); font-size: 13px; line-height: 1.5; }
.file-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.file-help-section { padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 56px); border-bottom: 2px solid var(--ink); }
.file-help-section + .file-help-section { border-left: 1px solid var(--hairline); }
.file-help-section h2 { max-width: 15ch; margin: 14px 0 18px; font: 800 clamp(30px, 4vw, 48px)/1 Archivo, sans-serif; letter-spacing: -.035em; }
.file-help-section h3 { margin: 32px 0 10px; font-size: 17px; }
.file-help-section p { max-width: 54ch; margin: 0 0 18px; color: var(--ink-secondary); font-size: 15px; line-height: 1.55; }
.file-help-section .small-copy { margin-top: 24px; color: var(--muted); font-size: 13px; }
.read-block { max-width: 940px; margin-top: 14px; padding: 22px; border: 2px solid var(--ink); background: var(--input); }
.read-block p { max-width: 70ch; margin: 12px 0 0; color: var(--ink-secondary); font-size: 15px; line-height: 1.6; }
.read-block ul { display: grid; gap: 10px; margin: 12px 0 0; padding-left: 20px; color: var(--ink-secondary); font-size: 15px; line-height: 1.5; }
.read-against { border-left: 5px solid var(--rust); }
.read-missing { border-left: 5px solid var(--partial); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.copy-button { border: 2px solid var(--ink); background: transparent; color: var(--olive); }
.feedback-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; }
.feedback-button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--olive); background: transparent; color: var(--olive); font-size: 12px; font-weight: 700; cursor: pointer; }
.feedback-button:hover { background: var(--surface); }
.feedback-form { flex-basis: 100%; max-width: 620px; }
.feedback-form textarea { min-height: 82px; margin-top: 8px; }
.feedback-form .button { min-height: 38px; margin-top: 10px; padding: 10px 16px; font-size: 13px; }
.feedback-thanks { color: var(--olive); font-weight: 700; }
.loading-card { max-width: 1160px; margin: 0 auto; }
.loading-line { height: 12px; margin-bottom: 14px; background: var(--hairline); animation: pulse 1.2s ease-in-out infinite alternate; }
.loading-line:nth-child(2) { width: 72%; }
.loading-line:nth-child(3) { width: 48%; }
@keyframes pulse { from { opacity: .45; } to { opacity: .9; } }

@media (max-width: 640px) {
  .landing-header, .app-header { align-items: flex-start; flex-direction: column; }
  .tool-header-right { width: 100%; justify-content: space-between; }
  .hero-copy h1, .gate-intro h1, .tool-intro h1 { font-size: clamp(42px, 13vw, 66px); }
  .price-line span { max-width: 15ch; }
  .tier-row { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .tier-row .status { grid-column: 2; justify-self: start; }
  .tool-tabs { gap: 18px; overflow-x: auto; }
  .tool-tab { white-space: nowrap; }
  .inline-field { align-items: stretch; }
  .inline-field .button-secondary { padding-right: 14px; padding-left: 14px; }
  .about-section { grid-template-columns: 1fr; gap: 28px; }
  .result-contact { grid-template-columns: 1fr; gap: 24px; }
  .result-next-steps { grid-template-columns: 1fr; gap: 24px; }
  .tool-first, .unlock-panel { grid-template-columns: 1fr; gap: 28px; }
  .unlock-form { max-width: none; }
  .file-help { grid-template-columns: 1fr; }
  .file-help-section + .file-help-section { border-left: 0; }
  .result-contact-form { padding-left: 0; padding-top: 24px; border-top: 1px solid var(--hairline); border-left: 0; }
}