@import url('./base.css');

:root { --orange: #ff795c; --muted: #68736d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-kicker, .view-kicker { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .15em; }

.problem-section { padding: 130px clamp(22px, 7.6vw, 116px); background: var(--ink); color: var(--cream); display: grid; grid-template-columns: .35fr 1.65fr; gap: 40px; }
.section-kicker { color: var(--acid); padding-top: 14px; }
.problem-copy h2, .workspace-heading h2, .source-section h2, .pricing-section h2 { margin: 0; font-size: clamp(44px, 6.5vw, 96px); line-height: .94; letter-spacing: -.06em; }
.problem-copy > p { max-width: 720px; margin: 32px 0 66px; color: #c4d0c8; font-family: Georgia, serif; font-size: clamp(19px, 2vw, 26px); line-height: 1.45; }
.flow { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.35); }
.flow article { min-height: 260px; padding: 24px 28px 10px 0; border-right: 1px solid rgba(255,255,255,.2); }
.flow article + article { padding-left: 24px; }
.flow article:last-child { border-right: 0; }
.flow article > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); font-family: Georgia, serif; font-style: italic; }
.flow h3 { margin: 56px 0 12px; font-size: 24px; letter-spacing: -.04em; }
.flow p { margin: 0; color: #aebbb3; font-size: 13px; line-height: 1.55; }

.workspace-section { padding: 120px clamp(18px, 5vw, 76px); background: var(--cream); }
.workspace-heading { max-width: 1360px; margin: 0 auto 56px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 80px; align-items: end; }
.workspace-heading .eyebrow { margin-bottom: 20px; }
.privacy-note { max-width: 390px; border-top: 1px solid var(--ink); padding-top: 18px; }
.privacy-note strong { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.privacy-note p { color: var(--muted); font-family: Georgia, serif; line-height: 1.5; }

.app-shell { max-width: 1360px; min-height: 780px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0,1fr); border: 1px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 16px 16px 0 var(--mint); }
.app-sidebar { display: flex; flex-direction: column; gap: 5px; padding: 24px 16px; background: var(--ink); color: white; }
.app-identity { display: flex; align-items: center; gap: 10px; padding: 0 9px 28px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 16px; }
.app-identity .brand-mark { background: var(--acid); color: var(--ink); }
.app-identity strong, .app-identity small { display: block; }
.app-identity strong { font-size: 14px; }
.app-identity small { margin-top: 3px; color: #96a69c; font-size: 10px; }
.side-action { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #b8c4bd; text-align: left; font-size: 12px; font-weight: 800; cursor: pointer; }
.side-action:hover, .side-action.active { background: rgba(217,255,85,.1); color: var(--acid); }
.side-action b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 9px; }
.side-spacer { flex: 1; min-height: 100px; }
.local-status { display: flex; gap: 9px; align-items: center; padding: 18px 8px 4px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.14); }
.local-status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(217,255,85,.12); }
.local-status strong, .local-status small { display: block; }
.local-status strong { font-size: 10px; }
.local-status small { margin-top: 3px; color: #829088; font-size: 8px; }
.app-content { min-width: 0; background: #f8f7f2; }
.app-view { display: none; padding: clamp(24px, 4vw, 52px); }
.app-view.active { display: block; }
.view-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.view-kicker { margin: 0 0 9px; color: #7b857f; }
.view-header h3 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.05em; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.metric-row div { padding: 22px; border-right: 1px solid var(--line); }
.metric-row div:last-child { border-right: 0; }
.metric-row span, .metric-row strong { display: block; }
.metric-row span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.metric-row strong { margin-top: 10px; font-family: Georgia, serif; font-size: 35px; font-style: italic; }
.records-toolbar { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 12px; }
.records-toolbar label { flex: 1; }
input, select, textarea { width: 100%; border: 1px solid #c8cec9; border-radius: 8px; background: white; color: var(--ink); padding: 12px 13px; font: inherit; font-size: 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(184,224,206,.55); }
textarea { resize: vertical; }
.quiet-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 11px; font-weight: 900; cursor: pointer; }
.quiet-button:hover { border-color: var(--ink); }
.records-list { display: grid; gap: 10px; }
.record-row { display: grid; grid-template-columns: 48px 1.6fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.record-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--mint); font-family: Georgia, serif; font-style: italic; font-size: 18px; }
.record-row strong, .record-row small { display: block; }
.record-row strong { font-size: 12px; }
.record-row small { color: var(--muted); margin-top: 4px; font-size: 10px; }
.status-pill { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 99px; background: #eef3ee; color: #43554a; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.status-pill.action { background: #fff0e8; color: #8a432d; }
.row-actions { display: flex; gap: 6px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; }
.icon-button:hover { background: var(--acid); }
.empty-state { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #b9c1bc; border-radius: 12px; background: rgba(255,255,255,.5); }
.empty-state.hidden { display: none; }
.empty-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50% 50% 50% 10px; background: var(--mint); font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.empty-state h4 { margin: 20px 0 8px; font-size: 20px; }
.empty-state p { max-width: 430px; margin: 0 20px 22px; color: var(--muted); font-family: Georgia, serif; line-height: 1.45; }

form { display: grid; gap: 18px; }
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 8px; overflow: hidden; background: #d8ddd9; }
.form-progress span { padding: 11px 14px; background: white; color: #838d87; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.form-progress .current { background: var(--acid); color: var(--ink); }
fieldset { margin: 0; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 12px; background: white; }
legend { padding: 0 10px 0 0; font-size: 18px; font-weight: 900; letter-spacing: -.03em; }
legend span { display: inline-grid; place-items: center; width: 29px; height: 29px; margin-right: 9px; border-radius: 50%; background: var(--ink); color: var(--acid); font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.field-note { margin: -2px 0 24px 38px; color: var(--muted); font-family: Georgia, serif; font-size: 13px; }
.field-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
label { display: block; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
label input, label select, label textarea { margin-top: 8px; text-transform: none; letter-spacing: normal; }
.file-drop { display: grid; place-items: center; min-height: 92px; padding: 16px; border: 1px dashed #93a097; border-radius: 9px; background: #f5f8f5; text-align: center; cursor: pointer; }
.file-drop input { position: absolute; opacity: 0; pointer-events: none; }
.file-drop span { max-width: 500px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: normal; line-height: 1.45; }
.file-drop b { color: var(--ink); }
.question-stack { display: grid; gap: 9px; margin-bottom: 18px; }
.check-card { display: flex; gap: 13px; align-items: flex-start; padding: 15px; border: 1px solid #d5dad6; border-radius: 9px; cursor: pointer; text-transform: none; letter-spacing: normal; }
.check-card:has(input:checked) { border-color: var(--ink); background: #f2f8ed; }
.check-card input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.check-card span { flex: 1; }
.check-card b, .check-card small { display: block; }
.check-card b { font-size: 12px; }
.check-card small { margin-top: 4px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.decision-card { margin: 22px 0; padding: 22px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 7px 7px 0 var(--mint); }
.decision-card.action { background: #fff2eb; box-shadow: 7px 7px 0 var(--orange); }
.decision-card.clear { background: #f3f8ed; box-shadow: 7px 7px 0 var(--acid); }
.decision-card strong { display: block; font-size: 18px; }
.decision-card > p:last-child { margin: 8px 0 0; color: var(--muted); font-family: Georgia, serif; line-height: 1.45; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0 0; }
.form-footer p { max-width: 500px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.source-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; padding: 130px clamp(22px, 7.6vw, 116px); background: var(--paper); border-top: 1px solid var(--ink); }
.source-copy { padding-top: 48px; }
.source-copy p { margin: 0 0 34px; font-family: Georgia, serif; font-size: 20px; line-height: 1.5; }
.source-copy .text-link { display: block; width: fit-content; margin-top: 22px; }
.pricing-section { display: grid; grid-template-columns: 1fr minmax(360px, .65fr); gap: 10vw; align-items: center; padding: 130px clamp(22px, 7.6vw, 116px); background: var(--mint); border-top: 1px solid var(--ink); }
.pricing-section > div > p:last-child { font-family: Georgia, serif; font-size: 20px; }
.price-card { padding: 30px; border: 1px solid var(--ink); border-radius: 14px; background: var(--cream); box-shadow: 12px 12px 0 var(--acid), 13px 13px 0 var(--ink); }
.price-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.price-top > span { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.price-top strong { font-size: 36px; letter-spacing: -.05em; }
.price-top small { display: block; color: var(--muted); font-size: 9px; text-align: right; letter-spacing: .04em; }
.price-card ul { display: grid; gap: 14px; padding: 24px 0; margin: 0; list-style: none; }
.price-card li { font-size: 13px; }
.price-card li::before { content: '✓'; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 9px; border-radius: 50%; background: var(--mint); font-size: 10px; font-weight: 900; }
.price-card .button { width: 100%; }
.price-card > small { display: block; margin-top: 14px; color: var(--muted); line-height: 1.4; }
footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; padding: 60px clamp(22px, 5vw, 76px); background: var(--ink); color: white; }
footer p { margin: 0; color: #a9b7ae; font-family: Georgia, serif; line-height: 1.5; }
footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #a9b7ae; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 17px; border-radius: 99px; background: var(--ink); color: white; font-size: 11px; font-weight: 800; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.article-main { background: var(--cream); }
.article-hero { padding: 100px clamp(22px, 10vw, 150px) 70px; border-bottom: 1px solid var(--ink); background: var(--paper); }
.article-hero h1 { max-width: 1220px; font-size: clamp(58px, 9vw, 132px); }
.article-deck { max-width: 800px; margin: 40px 0 28px; font-family: Georgia, serif; font-size: clamp(21px, 2.4vw, 31px); line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.article-meta span::before { content: '●'; color: #6d7c72; margin-right: 8px; }
.article-content { max-width: 1240px; margin: 0 auto; padding: 90px 24px 130px; display: grid; grid-template-columns: 240px minmax(0, 740px); gap: 90px; justify-content: center; }
.article-toc { align-self: start; position: sticky; top: 24px; display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.article-toc strong { margin-bottom: 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.article-toc a { color: var(--muted); font-size: 11px; line-height: 1.35; }
.article-toc a:hover { color: var(--ink); }
.article-copy { min-width: 0; }
.article-copy p, .article-copy li { font-family: Georgia, serif; font-size: 18px; line-height: 1.72; }
.article-copy h2 { margin: 72px 0 20px; font-size: clamp(31px, 4vw, 48px); line-height: 1.02; letter-spacing: -.05em; }
.article-intro { margin-top: 0; font-size: 23px !important; line-height: 1.55 !important; }
.article-copy ul { padding-left: 22px; }
.article-callout { margin: 38px 0; padding: 24px 26px; border: 1px solid var(--ink); background: var(--mint); box-shadow: 7px 7px 0 var(--acid); }
.article-callout p { margin-bottom: 0; font-size: 16px; }
.checklist { padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.checklist li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.checklist li > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); border: 1px solid var(--ink); font-size: 11px; font-weight: 900; }
.checklist p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.article-cta { margin: 80px 0; padding: 48px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 12px 12px 0 var(--mint); }
.article-cta h2 { margin-top: 0; }
.article-cta > p:not(.eyebrow) { font-size: 17px; }
.article-sources { padding-top: 20px; border-top: 1px solid var(--ink); }
.article-sources h2 { font-size: 26px; }
.article-sources p { font-size: 14px; }
.article-sources a { text-decoration: underline; text-underline-offset: 3px; }

@media print { .site-header, .hero, .signal-strip, .problem-section, .source-section, .pricing-section, footer, .app-sidebar, .workspace-heading, .view-header button, .records-toolbar { display: none !important; } .workspace-section { padding: 0; } .app-shell { display: block; border: 0; box-shadow: none; } .app-view { padding: 0; } }
@media (max-width: 980px) { .problem-section { grid-template-columns: 1fr; } .flow { grid-column: 1; grid-template-columns: 1fr 1fr; } .workspace-heading, .source-section, .pricing-section { grid-template-columns: 1fr; } .app-shell { grid-template-columns: 190px minmax(0,1fr); } .record-row { grid-template-columns: 44px 1fr auto; } .record-row > div:nth-child(3), .record-row > div:nth-child(4) { display: none; } footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .flow { grid-template-columns: 1fr; } .flow article { min-height: auto; padding: 24px 0 30px !important; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); } .flow h3 { margin-top: 26px; } .workspace-section { padding-inline: 12px; } .app-shell { display: block; box-shadow: 8px 8px 0 var(--mint); } .app-sidebar { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; } .app-identity, .side-spacer, .local-status, #exportJson, #exportCsv { display: none; } .side-action { grid-template-columns: 20px 1fr auto; } .app-view { padding: 24px 14px; } .metric-row { grid-template-columns: 1fr; } .metric-row div { border-right: 0; border-bottom: 1px solid var(--line); } .field-grid.two { grid-template-columns: 1fr; } .form-footer { align-items: stretch; flex-direction: column; } footer { grid-template-columns: 1fr; } .article-content { grid-template-columns: 1fr; gap: 28px; padding-top: 50px; } .article-toc { position: static; } .article-hero { padding-inline: 18px; } .article-cta { padding: 28px 22px; } }
@media (max-width: 520px) { .view-header { flex-direction: column; } .record-row { grid-template-columns: 40px 1fr; } .row-actions { grid-column: 2; } .records-toolbar { flex-direction: column; } .source-section, .pricing-section { padding-inline: 18px; } }
