:root {
  --ink: #111827;
  --muted: #64748b;
  --paper: #f5f2eb;
  --white: #fff;
  --line: #d8d4cb;
  --orange: #f26722;
  --orange-dark: #c7440c;
  --green: #17805c;
  --yellow: #d49113;
  --red: #c53b35;
  --shadow: 0 20px 60px rgba(17, 24, 39, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, textarea, input, select { font: inherit; }
button { color: inherit; }
.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; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; background: var(--ink); color: white; padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -.03em; font-size: 1.18rem; }
.brand-mark { width: 42px; height: 42px; display: block; border-radius: 50%; box-shadow: 0 5px 14px rgba(17, 24, 39, .14); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.usage-pill { color: var(--muted); font-size: .72rem; font-weight: 750; }
.account-button { padding: 8px 13px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-size: .78rem; font-weight: 850; cursor: pointer; }
.account-button:hover { background: var(--ink); color: white; }
.register-button { padding: 8px 13px; border: 0; border-radius: 999px; background: var(--ink); color: white; font-size: .78rem; font-weight: 850; cursor: pointer; }
.header-signout { border: 0; border-bottom: 1px solid currentColor; padding: 3px 0; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 750; cursor: pointer; }
.header-user { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; font-weight: 750; }
.plan-badge { padding: 3px 7px; border-radius: 999px; background: #e6f4ee; color: var(--green); font-size: .62rem; font-weight: 900; text-transform: uppercase; }

main { overflow: hidden; }
.hero { max-width: 1040px; margin: 0 auto; padding: 24px 28px 18px; text-align: center; }
.eyebrow, .step { margin: 0 0 14px; color: var(--orange-dark); font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.35rem); letter-spacing: -.065em; line-height: 1; font-weight: 950; }
h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 500; }
.hero-copy { max-width: 720px; margin: 12px auto 0; font-size: clamp(.95rem, 1.8vw, 1.08rem); color: #475569; }

.workspace, .results { width: min(100% - 32px, 1040px); margin: 0 auto 90px; }
.workspace { padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.workspace-head, .result-heading, .rewrite-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
h2, h3 { letter-spacing: -.035em; line-height: 1.1; }
h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { margin: 0; font-size: 1.45rem; }
.text-button, .copy-button { border: 0; background: transparent; padding: 8px 0; color: var(--orange-dark); font-weight: 800; cursor: pointer; border-bottom: 1px solid currentColor; }
.text-button:hover, .copy-button:hover { color: var(--ink); }
textarea { width: 100%; min-height: 230px; margin: 0; padding: 22px; resize: vertical; border: 1px solid #bfc3c7; border-radius: 12px; color: var(--ink); background: #fcfcfa; font-size: 1.07rem; line-height: 1.7; outline: none; }
textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 103, 34, .13); }
.input-meta { display: flex; justify-content: space-between; gap: 20px; margin: 8px 2px 18px; color: var(--muted); font-size: .76rem; }
.input-status { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.clear-input { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--orange-dark); font-size: .76rem; font-weight: 800; cursor: pointer; }
.clear-input:hover { color: var(--ink); }
.clear-input:disabled { border-color: transparent; color: #a5a8ad; cursor: default; }
.privacy-note { display: inline-flex; align-items: center; gap: 4px; }
.controls-grid { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(320px, 1.15fr); gap: 16px; align-items: end; margin-bottom: 18px; }
.profile-note { margin: -7px 2px 16px; padding: 9px 12px; border-left: 3px solid var(--orange); border-radius: 0 7px 7px 0; background: #fff8f0; color: #5f493d; font-size: .76rem; }
.reference-input { margin: -5px 0 18px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f6; }
.reference-input summary { padding: 12px 14px; cursor: pointer; color: var(--ink); font-size: .84rem; font-weight: 850; }
.reference-input summary span { margin-left: 6px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.reference-input-body { padding: 0 14px 14px; }
.reference-input-body label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.reference-input textarea { min-height: 150px; padding: 14px; font-size: .9rem; line-height: 1.55; background: white; }
.reference-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: .7rem; }
.profile-picker { display: grid; gap: 7px; margin: 0; color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.profile-picker select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: .9rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.mode-picker { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-picker legend { margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mode-picker label { position: relative; cursor: pointer; }
.mode-picker input { position: absolute; opacity: 0; }
.mode-picker label span { min-height: 48px; display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f6; transition: .2s ease; }
.mode-picker label strong { font-size: .94rem; }
.mode-picker label small { color: var(--muted); }
.mode-picker input:checked + span { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--orange); background: white; }
.mode-picker input:focus-visible + span { outline: 3px solid rgba(242, 103, 34, .35); outline-offset: 2px; }
.primary-button { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border: 0; border-radius: 12px; background: var(--ink); color: white; font-size: 1.1rem; font-weight: 850; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.primary-button:hover { background: #253047; transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.form-error { margin: 14px 0 0; padding: 11px 14px; border-radius: 8px; background: #fff0ef; color: #9e2822; font-weight: 700; }
.usage-note { margin: 10px 2px 0; color: var(--muted); text-align: center; font-size: .76rem; }
.limit-card { margin-top: 18px; padding: 22px; border: 1px solid #e5c9ad; border-radius: 13px; background: #fff8f0; }
.limit-card h3 { font-size: 1.15rem; }
.limit-card p { margin: 8px 0; color: var(--muted); font-size: .86rem; }
.limit-card > div { display: flex; align-items: center; gap: 18px; margin-top: 15px; }
.secondary-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 9px; background: white; font-weight: 850; cursor: pointer; }
.secondary-button:hover { background: var(--ink); color: white; }

.results { scroll-margin-top: 24px; }
.reference-result { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; margin-top: 18px; }
.reference-result .step { margin-bottom: 6px; }
.reference-score { align-self: center; color: var(--orange-dark); font-size: 1.8rem; }
.reference-result > .panel-intro, .reference-columns { grid-column: 1 / -1; }
.reference-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reference-columns div { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #faf9f6; }
.reference-columns h4 { margin: 0 0 5px; font-size: .78rem; }
.reference-columns p { margin: 0; color: var(--muted); font-size: .82rem; }
.result-heading { margin-bottom: 24px; }
.comparison-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 22px 26px; border: 1px solid #a8d4c0; border-radius: 16px; background: #f1faf6; }
.comparison-card .step { margin-bottom: 7px; color: var(--green); }
.comparison-card h3 { font-size: 1.2rem; }
.comparison-grid { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 10px; }
.comparison-grid div { padding-left: 14px; border-left: 1px solid #c8dfd4; }
.comparison-grid span, .comparison-grid strong { display: block; }
.comparison-grid span { color: var(--muted); font-size: .67rem; }
.comparison-grid strong { margin-top: 2px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.comparison-grid strong.good { color: var(--green); }
.comparison-grid strong.bad { color: var(--red); }
.comparison-grid strong.neutral { color: var(--muted); }
.score-card { display: grid; grid-template-columns: 190px minmax(0, 1fr) 210px; align-items: center; gap: clamp(24px, 4vw, 52px); padding: clamp(28px, 5vw, 52px); border-radius: 22px; background: var(--ink); color: white; }
.gauge { --score: 0deg; width: 190px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--orange) var(--score), #344056 0); position: relative; }
.gauge::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--ink); }
.gauge > div { z-index: 1; display: flex; align-items: baseline; }
.gauge strong { font-size: 4rem; line-height: 1; letter-spacing: -.08em; }
.gauge span { color: #94a3b8; }
.gauge.good { --gauge-color: var(--green); background: conic-gradient(#27a878 var(--score), #344056 0); }
.gauge.medium { background: conic-gradient(#f6ad30 var(--score), #344056 0); }
.gauge.bad { background: conic-gradient(#ef665f var(--score), #344056 0); }
.score-kicker { margin: 0 0 10px; color: #a9b4c7; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.score-copy h3 { font-size: clamp(2rem, 5vw, 3.8rem); }
.score-copy p:last-child { max-width: 620px; margin: 18px 0 0; color: #cbd5e1; font-size: 1.07rem; }
.substance-score { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid #3b475d; border-radius: 15px; background: #1b2537; }
.substance-score p { margin: 0 0 5px; color: #a9b4c7; font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.substance-score strong { font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.substance-score small { margin-top: 10px; color: #94a3b8; font-size: .68rem; }
.substance-track { height: 7px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #344056; }
.substance-track span { display: block; height: 100%; border-radius: inherit; background: #38b889; transition: width .3s ease; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.result-stats div { min-width: 0; padding: 20px 18px; background: white; }
.result-stats strong, .result-stats span { display: block; }
.result-stats strong { font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-stats span { margin-top: 5px; color: var(--muted); font-size: .77rem; }
.result-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.panel, .heatmap-card, .tldr-card { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.panel h3 { margin-bottom: 26px; }
.panel .panel-intro { margin: -14px 0 26px; color: var(--muted); font-size: .82rem; }
.score-breakdown { display: grid; gap: 9px; margin-bottom: 26px; }
.breakdown-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #eceae4; }
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-copy { display: grid; gap: 1px; }
.breakdown-copy strong { font-size: .82rem; }
.breakdown-copy small { color: var(--muted); font-size: .68rem; }
.breakdown-value { min-width: 46px; text-align: right; font-size: .88rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.breakdown-value.plus { color: var(--red); }
.breakdown-value.minus { color: var(--green); }
.signal-title { margin: 0 0 15px; color: var(--muted); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.metrics { display: grid; gap: 18px; }
.metric-label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: .9rem; }
.metric-label strong { font-variant-numeric: tabular-nums; }
.metric-track { height: 7px; overflow: hidden; border-radius: 10px; background: #eceae4; }
.metric-track span { height: 100%; display: block; border-radius: inherit; }
.metric-track .good { background: var(--green); }
.metric-track .medium { background: var(--yellow); }
.metric-track .bad { background: var(--red); }
.metric-hint { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.statement-analysis { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.statement-analysis h4 { margin: 0 0 5px; font-size: .95rem; }
.statement-analysis > p { margin: 0 0 13px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.statement-types { display: flex; flex-wrap: wrap; gap: 7px; }
.statement-type { padding: 6px 9px; border: 1px solid #d9dde2; border-radius: 999px; background: #f7f8f9; color: #465164; font-size: .7rem; font-weight: 750; }
.statement-projection, .statement-forecast, .statement-speculation { border-color: #e6c987; background: #fff7df; color: #775514; }
.statement-measured { border-color: #a9d8c4; background: #effaf5; color: #17654d; }
.argument-leverage { display: grid; gap: 5px; margin-top: 14px; padding: 13px 14px; border-left: 4px solid var(--yellow); border-radius: 0 9px 9px 0; background: #fff8e7; color: #5d491c; }
.argument-leverage strong { font-size: .8rem; }
.argument-leverage span { font-size: .74rem; line-height: 1.5; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.findings li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.findings li > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 900; font-size: .75rem; }
.findings p { margin: 1px 0 0; font-size: .93rem; }
.findings .good > span { background: var(--green); }
.findings .warn > span { background: var(--yellow); }
.findings .bad > span { background: var(--red); }
.insight-stack { display: grid; gap: 18px; }
.positive-panel { border-color: #b9dccb; background: #f4fbf7; }
.positive-panel h3 { margin-bottom: 18px; }
.positive-kicker { margin: 0 0 8px; color: #167255; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.positive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.positive-list li { position: relative; padding-left: 23px; color: #315f50; font-size: .85rem; }
.positive-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.missing-panel h3 { margin-bottom: 18px; }
.missing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.missing-list li { position: relative; padding-left: 23px; color: #475569; font-size: .85rem; }
.missing-list li::before { position: absolute; left: 0; font-weight: 900; }
.missing-list .missing::before { content: "+"; color: var(--orange-dark); }
.missing-list .complete::before { content: "✓"; color: var(--green); }
.heatmap-card { margin-top: 18px; background: #fff; }
.heatmap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.heatmap-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 13px; color: var(--muted); font-size: .68rem; }
.heatmap-legend span::before { content: ""; width: 10px; height: 10px; display: inline-block; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.legend-red::before { background: #ef9994; }
.legend-yellow::before { background: #f7d676; }
.legend-green::before { background: #8fd8b8; }
.legend-blue::before { background: #92c6ee; }
.heatmap-output { margin-top: 28px; padding: 24px; border-radius: 12px; background: #f8f8f6; font-family: Georgia, serif; font-size: 1.07rem; line-height: 2; white-space: pre-wrap; }
.heatmap-output mark { position: relative; padding: 2px 3px; border-radius: 4px; color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: help; }
.heat-fog-high { background: #f3aaa6; text-decoration: underline 2px #bd312a; text-underline-offset: 3px; }
.heat-fog-medium { background: #f7c5c1; text-decoration: underline 2px #bd312a; text-underline-offset: 3px; }
.heat-fact { background: #acd3f1; text-decoration: underline 2px #2779b8; text-underline-offset: 3px; }
.heat-example { background: #a9dfc7; text-decoration: underline 2px #17805c; text-underline-offset: 3px; }
.heat-task { background: #f8dd89; text-decoration: underline 2px #b57a08; text-underline-offset: 3px; }
.heatmap-output mark::after { content: attr(data-tooltip); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 9px); width: min(270px, 70vw); padding: 9px 11px; border-radius: 7px; background: var(--ink); color: white; font: 600 .72rem/1.4 Inter, ui-sans-serif, sans-serif; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .15s ease, transform .15s ease; }
.heatmap-output mark:hover::after, .heatmap-output mark:focus::after { opacity: 1; transform: translate(-50%, 0); }
.heatmap-note { margin: 14px 0 0; color: var(--muted); font-size: .72rem; }
.tldr-card { margin-top: 18px; border-color: #bfdacb; background: #f5fbf8; }
.suggestions-card { margin-top: 18px; padding: clamp(24px, 4vw, 38px); border: 1px solid #bfdacb; border-radius: 18px; background: #f5fbf8; }
.result-method { margin-top: 18px; }
.suggestions-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.suggestions-head h3 { margin-top: 5px; }
.suggestions-method { margin: 12px 0 24px; color: #315f50; font-size: .88rem; }
.suggestion-list { display: grid; gap: 14px; }
.suggestion-item { padding: 20px; border: 1px solid #cce3d7; border-radius: 13px; background: white; }
.suggestion-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; color: #315f50; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.severity { padding: 4px 8px; border-radius: 999px; letter-spacing: 0; text-transform: none; }
.severity-hint { background: #eef2f6; color: #556274; }
.severity-notice { background: #fff2cf; color: #855d00; }
.severity-critical { background: #fde4e2; color: #a52d28; }
.suggestion-item small { display: block; margin: 13px 0 4px; color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.suggestion-item blockquote { margin: 0; padding: 11px 13px; border-left: 3px solid var(--orange); background: #faf9f6; color: #3d4654; font: 1rem/1.55 Georgia, serif; }
.suggestion-item p { margin: 0; color: #475569; font-size: .86rem; line-height: 1.55; }
.suggestion-item .suggestion-copy { color: #204f40; font-weight: 700; }
.suggestion-copy-button { margin-top: 16px; }
.suggestions-note, .suggestions-empty { margin: 18px 0 0; color: var(--muted); font-size: .74rem; }
.rewrite-output { min-height: 96px; margin: 28px 0; font-family: Georgia, serif; font-size: clamp(1.14rem, 2.4vw, 1.4rem); line-height: 1.65; }
.rewrite-note { margin: -14px 0 22px; color: var(--muted); font-size: .76rem; }

footer { max-width: 1180px; margin: 0 auto; padding: 30px 28px 40px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer strong { color: var(--ink); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: white; box-shadow: var(--shadow); font-weight: 750; }

.modal { width: min(92vw, 580px); max-height: 90vh; padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(17, 24, 39, .3); }
.modal::backdrop { background: rgba(17, 24, 39, .58); backdrop-filter: blur(3px); }
.modal-shell { position: relative; display: grid; gap: 15px; padding: clamp(25px, 5vw, 42px); }
.modal-shell.wide { width: min(92vw, 960px); }
.modal:has(.wide) { width: min(94vw, 960px); }
.modal-close { position: absolute; right: 18px; top: 13px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.modal-copy { margin: 0 0 6px; color: var(--muted); }
.modal label { display: grid; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.modal input { min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.primary-button.compact { min-height: 50px; }
.auth-links, .account-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.auth-links button, .account-actions button { border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; background: transparent; color: var(--orange-dark); font-size: .78rem; font-weight: 800; cursor: pointer; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 10px; }
.pricing-grid article { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.pricing-grid article > strong { display: block; margin: 15px 0 5px; font-size: 1.7rem; }
.pricing-grid strong small { color: var(--muted); font-size: .7rem; }
.pricing-grid p { color: var(--muted); font-size: .8rem; }
.pricing-grid ul { min-height: 130px; padding-left: 18px; color: #475569; font-size: .78rem; }
.pricing-grid li { margin: 6px 0; }
.pro-card { border-color: #e4b68f !important; background: #fff9f3 !important; }
.coming-badge { display: inline-block; margin-bottom: 10px; padding: 4px 8px; border-radius: 999px; background: #fde2cc; color: var(--orange-dark); font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.account-summary { display: flex; justify-content: space-between; padding: 15px; border-radius: 10px; background: white; }
.history-list { max-height: 220px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.history-list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.account-actions .danger-link { color: var(--red); }

button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid rgba(242, 103, 34, .45); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  .topbar { height: 62px; padding: 0 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .usage-pill { display: none; }
  .header-user { display: none; }
  .header-actions { gap: 7px; }
  .account-button, .register-button { padding: 7px 10px; font-size: .7rem; }
  .hero { padding: 18px 18px 14px; }
  .workspace, .results { width: min(100% - 20px, 1040px); }
  .workspace { padding: 22px 16px; border-radius: 16px; }
  .workspace-head, .result-heading { align-items: start; }
  textarea { min-height: 220px; padding: 16px; }
  .input-meta { flex-direction: column; gap: 3px; }
  .controls-grid { grid-template-columns: 1fr; gap: 13px; }
  .reference-input summary span { display: block; margin: 2px 0 0 17px; }
  .reference-meta { flex-direction: column; gap: 2px; }
  .reference-columns { grid-template-columns: 1fr; }
  .mode-picker { grid-template-columns: 1fr; }
  .score-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .substance-score { width: 100%; text-align: left; }
  .gauge { width: 160px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .rewrite-head { align-items: start; }
  .comparison-card { align-items: stretch; flex-direction: column; }
  .comparison-grid { grid-template-columns: 1fr 1fr; width: 100%; }
  .heatmap-head { align-items: start; flex-direction: column; }
  .suggestions-head { align-items: start; flex-direction: column; }
  .heatmap-legend { justify-content: flex-start; }
  .heatmap-output { padding: 17px; font-size: 1rem; }
  footer { flex-direction: column; padding-inline: 18px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid ul { min-height: 0; }
}

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