/* ZeroGPT: copy-editor's markup.
   System fonts only. Highlighter marks are the one signature element. */

:root,
[data-theme="light"] {
	--bg: #f4f5fb;
	--surface: #ffffff;
	--surface-2: #eceefa;
	--ink: #13152b;
	--muted: #586079;
	--line: #dcdff0;
	--accent: #3b3ff2;
	--accent-ink: #ffffff;
	--accent-soft: #e5e6ff;
	--danger: #b3243f;
	--danger-soft: #fde8ed;
	--ok: #11794f;
	--ok-soft: #dff5ea;

	--mark-hi: #ffb3cf;
	--mark-mid: #ffe36e;
	--mark-low: #3cc08a;
	--band-hi: #e23f7a;
	--band-mid: #e3a200;
	--band-low: #1f9d6a;

	--shadow: 0 1px 2px rgba(19, 21, 43, 0.04), 0 18px 40px -18px rgba(40, 44, 120, 0.22);
	--ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);

	--foot-bg: #121431;
	--foot-ink: #eef0ff;
	--foot-muted: #a3a9cf;
	--foot-line: rgba(255, 255, 255, 0.12);

	--radius-s: 12px;
	--radius-m: 18px;
	--radius-l: 26px;
}

[data-theme="dark"] {
	--bg: #0c0e1d;
	--surface: #151833;
	--surface-2: #1e2247;
	--ink: #eef0ff;
	--muted: #a6acca;
	--line: #2a2f58;
	--accent: #9396ff;
	--accent-ink: #0c0e1d;
	--accent-soft: #24285a;
	--danger: #ff9cb2;
	--danger-soft: #3c1a27;
	--ok: #6fe0ae;
	--ok-soft: #12392b;

	--mark-hi: rgba(255, 116, 170, 0.38);
	--mark-mid: rgba(255, 214, 64, 0.34);
	--mark-low: #4ed59d;
	--band-hi: #ff6fa2;
	--band-mid: #ffd23f;
	--band-low: #4ed59d;

	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);

	--foot-bg: #080a16;
	--foot-ink: #eef0ff;
	--foot-muted: #9399c0;
	--foot-line: rgba(255, 255, 255, 0.1);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; min-height: 100%; }

body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}

.skip-link {
	position: fixed; left: 16px; top: 12px; z-index: 100;
	background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px;
	text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.nav, .home, .page, .footer-inner, .footer-base {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- Buttons & small controls ---------- */

.button, .icon-button, .mode, .text-link, .button-link { font: inherit; }

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 1px solid transparent;
	background: var(--accent); color: var(--accent-ink);
	padding: 11px 18px; border-radius: 999px;
	font-weight: 650; text-decoration: none; cursor: pointer;
	transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.button:hover { text-decoration: none; filter: brightness(1.07); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }

.button-small { padding: 7px 14px; font-size: .92rem; }
.button-large { padding: 14px 24px; font-size: 1.05rem; }
.button-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-quiet:hover { border-color: var(--ink); filter: none; }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover { color: var(--ink); filter: none; }
.button-light { background: #fff; color: #13152b; }

.icon-button {
	width: 40px; height: 40px; display: grid; place-items: center;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	border-radius: 50%; cursor: pointer;
}
.icon-button:hover { border-color: var(--ink); }

.theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: inline-flex; }

.text-link, .button-link {
	color: var(--ink); text-decoration: none; background: none; border: 0;
	cursor: pointer; padding: 8px 10px; border-radius: 999px; font-weight: 550;
}
.text-link:hover { background: var(--surface-2); }

.chip {
	display: inline-flex; align-items: center; padding: 3px 11px;
	border-radius: 999px; font-size: .85rem; font-weight: 650;
	background: var(--surface-2); color: var(--ink); white-space: nowrap;
}
.chip-hi { background: var(--mark-hi); }
.chip-mid { background: var(--mark-mid); }
.chip-low { background: var(--ok-soft); color: var(--ok); }

/* ---------- Header / navigation ---------- */

.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; }

.nav {
	position: relative;
	display: flex; align-items: center; gap: 14px;
	padding: 8px 10px 8px 16px;
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	backdrop-filter: blur(16px) saturate(1.4);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 42px; width: auto; }
.brand-logo .logo-light { display: block; }
.brand-logo .logo-dark { display: none; }
[data-theme="dark"] .brand-logo .logo-light { display: none; }
[data-theme="dark"] .brand-logo .logo-dark { display: block; }

.nav-menu { flex: 1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a {
	color: var(--muted); text-decoration: none; font-weight: 550;
	padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.account-menu { position: relative; }
.account-trigger {
	list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer;
	padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--surface); font-weight: 600;
}
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger:hover { border-color: var(--ink); }
.account-trigger img, .avatar-photo {
	width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block;
}
.account-trigger .chevron { width: 12px; height: 12px; color: var(--muted); transition: transform .15s; }
.account-menu[open] .chevron { transform: rotate(180deg); }
.profile-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-panel {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-m); padding: 8px; box-shadow: var(--shadow);
	display: flex; flex-direction: column; gap: 2px;
}
.account-who { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-who span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.account-panel a, .account-panel button {
	display: flex; align-items: center; gap: 10px; width: 100%;
	padding: 9px 10px; border-radius: 10px; border: 0; background: none;
	color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; text-align: left;
}
.account-panel a:hover, .account-panel button:hover { background: var(--surface-2); }
.account-panel .icon { color: var(--muted); }

.avatar, .avatar-large {
	display: grid; place-items: center; border-radius: 50%;
	background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.avatar { width: 32px; height: 32px; font-size: .78rem; }
.avatar-large, .profile-card .avatar-photo { width: 92px; height: 92px; font-size: 1.7rem; }

.nav-toggle { display: none; margin-left: auto; }
.burger, .burger::before, .burger::after {
	display: block; width: 16px; height: 2px; border-radius: 99px;
	background: currentColor; position: relative; transition: transform .2s, top .2s, background-color .2s;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

/* ---------- Marks: the signature ---------- */

.mk {
	padding: .06em .2em; margin: 0 -.2em; border-radius: .3em;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
	background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 100%;
	animation: sweep .65s cubic-bezier(.3, .7, .2, 1) forwards;
	animation-delay: calc(.4s + var(--i, 0) * .3s);
}
.mk-hi  { background-image: linear-gradient(var(--mark-hi), var(--mark-hi)); }
.mk-mid { background-image: linear-gradient(var(--mark-mid), var(--mark-mid)); }
.mk-low {
	background-image: linear-gradient(var(--mark-low), var(--mark-low));
	background-size: 0% 3px; border-radius: 0; animation-name: sweep-low;
}
.mk.on { animation: none; background-size: 100% 100%; }
.mk-low.on { background-size: 100% 3px; }

@keyframes sweep { to { background-size: 100% 100%; } }
@keyframes sweep-low { to { background-size: 100% 3px; } }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-hi { background: var(--mark-hi); }
.sw-mid { background: var(--mark-mid); }
.sw-low { background: var(--surface); border-bottom: 3px solid var(--mark-low); border-radius: 0; height: 12px; }

/* ---------- Home: hero ---------- */

.home { padding-bottom: 40px; }

.hero {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(32px, 5vw, 72px); align-items: center;
	padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 64px);
}
@font-face {
	font-family: "0KDBOLIDDA";
	src: url("/css/0KDBOLIDDA.ttf") format("truetype");
	font-display: swap;
}
.hero h1 {
	font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.35; letter-spacing: 0;
	max-width: 16em; font-weight: 400;
}
.si { font-family: "0KDBOLIDDA", sans-serif; font-weight: 400; letter-spacing: 0; }
.si-latin { letter-spacing: -0.04em; }
.font-waiting .si-title { opacity: 0; transform: translateY(.12em); }
.font-waiting .si-title.is-font-ready { opacity: 1; transform: translateY(0); transition: opacity .38s ease-out, transform .38s ease-out; }
@media (prefers-reduced-motion: reduce) {
	.font-waiting .si-title.is-font-ready { transition: none; }
}
.hero-lede { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 44ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; color: var(--muted); font-size: .95rem; }
.hero-facts b { color: var(--ink); font-size: 1.25rem; margin-right: 4px; font-variant-numeric: tabular-nums; }

.specimen {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-l); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px);
}
.specimen-head {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	color: var(--muted); font-size: .9rem; font-weight: 600;
	padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.specimen-text { font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.95; max-width: 52ch; }
.specimen .legend { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Section scaffolding ---------- */

.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.lede { color: var(--muted); margin-top: 12px; font-size: 1.05rem; max-width: 62ch; }

.workbench, .how, .stories { padding-top: clamp(48px, 7vw, 96px); }

/* ---------- Workbench ---------- */

.bench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

.pane {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 20px;
	min-width: 0;
}
.editor { display: flex; flex-direction: column; gap: 14px; }

.mode-switch {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
	background: var(--surface-2); border-radius: 14px; overflow: visible;
}
.mode {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
	color: var(--muted); font-weight: 600; cursor: pointer;
}
.mode:hover { color: var(--ink); }
.mode:disabled { cursor: not-allowed; }
.mode:disabled:hover { color: var(--muted); }
.mode.is-soon { position: relative; overflow: visible; }
.mode.is-soon .mode-label { display: inline-flex; align-items: center; gap: 8px; opacity: .62; }
.soon-badge {
	position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 4px;
	padding: 2px 8px 2px 6px; border-radius: 999px;
	background: var(--accent); color: #fff;
	font-size: .68rem; font-weight: 700; letter-spacing: .01em;
	line-height: 1.4; white-space: nowrap; pointer-events: none;
}
.soon-mark { width: 11px; height: 11px; fill: currentColor; flex: none; }
.mode.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 21, 43, .14); }
[data-theme="dark"] .mode.is-active { background: var(--accent-soft); box-shadow: none; }

textarea {
	flex: 1; width: 100%; min-height: 340px; resize: vertical;
	padding: 16px 18px; border-radius: 16px;
	background: var(--bg); color: var(--ink);
	border: 1px solid var(--line);
	font: inherit; font-size: 1.02rem; line-height: 1.7;
}
textarea::placeholder { color: var(--muted); opacity: .8; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

.editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.count { margin: 0; font-variant-numeric: tabular-nums; }

.banner {
	margin-top: 4px; padding: 11px 14px; border-radius: var(--radius-s);
	background: var(--danger-soft); color: var(--danger); font-weight: 550;
}
.banner-ok { background: var(--ok-soft); color: var(--ok); }
.field-error { color: var(--danger); font-size: .9rem; margin-top: 6px; }

/* Reading pane */

.reading { display: flex; flex-direction: column; }
.reading-empty { margin: auto 0; display: grid; gap: 14px; max-width: 42ch; padding: 12px 8px; color: var(--muted); }
.reading-empty-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.15; }
.reading-empty .hint { margin: 0; }
.reading-loading { min-height: 320px; margin: auto 0; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; animation: loading-enter .45s ease-out both; }
.cross-check-mark { position: relative; display: grid; place-items: center; width: 190px; height: 64px; margin-bottom: 8px; overflow: hidden; animation: logo-float 2.4s ease-in-out infinite; }
.cross-check-mark img { position: relative; z-index: 1; width: 180px; height: auto; object-fit: contain; }
.scan-line { position: absolute; z-index: 2; inset: 0 0 auto; height: 2px; background: var(--accent); animation: logo-scan 1.5s ease-in-out infinite; }
.reading-loading-title { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 750; }
.reading-loading-copy { display: flex; align-items: center; justify-content: center; margin: 0; color: var(--muted); font-size: .9rem; }
.loading-dots { display: inline-flex; gap: 4px; margin-left: 5px; }
.loading-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot-bounce .9s ease-in-out infinite alternate; }
.loading-dots i:nth-child(2) { animation-delay: .18s; }
.loading-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes logo-scan { 0% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(64px); opacity: 0; } }
@keyframes logo-float { 50% { transform: translateY(-3px); } }
@keyframes loading-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dot-bounce { to { opacity: .3; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
	.reading-loading, .cross-check-mark, .scan-line, .loading-dots i { animation: none; }
}

.verdict-row { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.report-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.report-login-note { margin: 0; }
.dial {
	--dial: var(--band-mid);
	position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%;
	display: grid; place-content: center; text-align: center;
	background: conic-gradient(var(--dial) calc(var(--score) * 1%), var(--surface-2) 0);
	transition: background .5s;
}
.dial::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.dial > * { position: relative; }
.dial strong { font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dial span { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.dial[data-band="hi"] { --dial: var(--band-hi); }
.dial[data-band="low"] { --dial: var(--band-low); }

.verdict { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.score-figures { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--muted); }
.score-figures b { color: var(--ink); font-variant-numeric: tabular-nums; }
.estimate-note { margin-top: 8px; color: var(--muted); font-size: .9rem; }

.pane-title { font-size: 1.05rem; letter-spacing: -0.01em; margin: 22px 0 10px; }
.marked { font-size: 1.05rem; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.marked .mk { animation-delay: calc(min(var(--i, 0), 14) * .08s); }
.reading .legend { margin-top: 16px; }

.sentences { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.sentences summary { cursor: pointer; font-weight: 650; padding: 4px 0; }
.sentence-list { display: grid; gap: 0; margin-top: 8px; }
.sentence-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sentence-list li:last-child { border-bottom: 0; }
.sentence-list p { margin-bottom: 8px; }
.sentence-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.sentence-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sentence-bar { margin-top: 6px; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sentence-bar::after {
	content: ""; display: block; height: 100%; width: var(--bar, 0%);
	background: var(--band-mid); border-radius: 99px;
}
.sentence-list .b-hi .sentence-bar::after { background: var(--band-hi); }
.sentence-list .b-low .sentence-bar::after { background: var(--band-low); }
.empty { color: var(--muted); }

.rewrite-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rewrite-head .pane-title { margin-top: 0; }
pre {
	margin: 14px 0 0; padding: 16px 18px; border-radius: 16px; min-height: 140px;
	white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.75;
	background: var(--bg); border: 1px solid var(--line);
}

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-visual {
	display: flex; align-items: center; min-height: 164px; padding: 22px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
	margin-bottom: 20px;
}
.mini { font-size: 1.02rem; line-height: 1.9; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 3px; background: var(--accent); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini del { color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: var(--band-hi); display: block; }
.mini ins { display: block; margin-top: 6px; text-decoration: none; background: var(--ok-soft); color: var(--ok); padding: 2px 8px; border-radius: 8px; font-weight: 550; width: fit-content; }

.step h3 { display: flex; align-items: flex-start; gap: 12px; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
.step-no {
	flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 750; margin-top: -1px;
}
.step p { margin: 10px 0 0 40px; color: var(--muted); }

/* ---------- Stories ---------- */

.quote-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.quote {
	display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
	padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.quote blockquote p { line-height: 1.55; }
.quote figcaption { color: var(--muted); font-size: .92rem; font-weight: 600; }
.quote-lead { grid-row: span 3; background: var(--accent-soft); border-color: transparent; padding: clamp(26px, 4vw, 44px); }
.quote-lead blockquote p { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.025em; line-height: 1.25; font-weight: 700; }
.quote-lead figcaption { color: var(--ink); }

/* ---------- Closing ---------- */

.closing {
	margin-top: clamp(56px, 8vw, 104px);
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-l);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.closing h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 18ch; }
.closing p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.closing-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */

.page { padding: clamp(32px, 5vw, 64px) 0 24px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.045em; }
.contact-panel { max-width: 720px; }
.contact-panel p { color: var(--muted); }
.contact-whatsapp { margin-top: 20px; }
.policy-panel { display: grid; gap: 28px; }
.policy-panel section { max-width: 82ch; }
.policy-panel p + p { margin-top: 12px; }
.policy-panel p { color: var(--muted); }
.policy-panel a { color: var(--accent); }

.panel {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-l); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px);
}
.panel-flush { padding: 8px clamp(16px, 3vw, 28px); }
.panel-title { font-size: 1.3rem; margin-bottom: 8px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.field-label { display: block; margin: 8px 0 -2px; font-size: .92rem; font-weight: 650; }

.input-wrap {
	display: flex; align-items: center; gap: 10px; padding: 0 14px;
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s);
	color: var(--muted);
}
.input-wrap:focus-within { border-color: var(--accent); box-shadow: var(--ring); color: var(--ink); }
.input-wrap input {
	flex: 1; min-width: 0; width: 100%; padding: 13px 0; border: 0; outline: none;
	background: transparent; color: var(--ink); font: inherit;
}
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus,
.input-wrap input:autofill {
	-webkit-text-fill-color: var(--ink);
	caret-color: var(--ink);
	box-shadow: 0 0 0 1000px var(--bg) inset;
}
.file-wrap input { padding: 10px 0; font-size: .92rem; }
.code-input { font-size: 1.4rem !important; letter-spacing: .5em; font-variant-numeric: tabular-nums; font-weight: 700; }
.code-input::placeholder { letter-spacing: .5em; opacity: .35; }

.reveal { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.reveal:hover { color: var(--ink); }
.reveal-off { display: none; }
.reveal[aria-pressed="true"] .reveal-on { display: none; }
.reveal[aria-pressed="true"] .reveal-off { display: inline-flex; }

.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .88rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-button { width: 100%; }
.google-button .icon { width: 1.25rem; height: 1.25rem; }
.auth-card .hint, .auth-card .banner { margin-top: 14px; }
.auth-card .stack + .stack { margin-top: 10px; }
.form-actions { margin-top: 10px; }

/* Auth: one rounded block, statement on the left, form on the right */

.auth {
	width: min(1040px, calc(100% - 40px)); margin: clamp(24px, 5vw, 56px) auto 0;
	display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
	background: var(--surface);
}
.auth-side {
	background: var(--accent); color: var(--accent-ink);
	padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px;
}
.auth-side h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.04em; }
.auth-side > p:not(.auth-sample) { opacity: .85; }
.perks { display: grid; gap: 12px; margin-top: 10px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks .icon { margin-top: 3px; }
.auth-sample {
	margin-top: auto; padding-top: 28px; font-size: 1.1rem; line-height: 2;
	--mark-hi: #ffb3cf; --mark-low: #fff; color: #13152b;
}
.auth-sample .mk-hi { color: #13152b; }
.auth-sample .mk-low { color: var(--accent-ink); }
.auth-card { padding: clamp(24px, 4vw, 52px); }
.auth-card h1 { font-size: clamp(2rem, 3.5vw, 2.6rem); letter-spacing: -0.04em; }
.auth-card .lede { margin: 10px 0 20px; font-size: 1rem; }

/* Profile */

.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 32px 24px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-l); box-shadow: var(--shadow);
}
.profile-card strong { font-size: 1.25rem; margin-top: 10px; letter-spacing: -0.02em; }
.profile-card .hint { margin: 0 0 12px; overflow-wrap: anywhere; }
.profile-card .avatar-large { font-size: 2rem; }
.page > .banner { margin: 0 0 16px; }

/* History */

.history li {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: center;
	padding: 16px 0; border-top: 1px solid var(--line);
}
.history li:first-child { border-top: 0; }
.h-kind { display: flex; align-items: center; gap: 14px; }
.h-kind .hint { margin: 0; }
.h-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.h-verdict { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.h-score { color: var(--muted); font-variant-numeric: tabular-nums; }
.h-words { margin: 0; font-variant-numeric: tabular-nums; }
.chip-note { background: var(--accent-soft); color: var(--accent); }

.empty-state { display: grid; justify-items: start; gap: 8px; padding: 28px 8px; color: var(--muted); }
.empty-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.empty-state .button { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer {
	margin-top: clamp(56px, 8vw, 104px);
	background: var(--foot-bg); color: var(--foot-ink);
	border-radius: 36px 36px 0 0;
}
.footer-inner {
	display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 32px;
	padding: clamp(36px, 5vw, 64px) 0 40px;
}
.site-footer .brand { color: var(--foot-ink); }
.site-footer .brand-logo .logo-light,
[data-theme="dark"] .site-footer .brand-logo .logo-light { display: none; }
.site-footer .brand-logo .logo-dark,
[data-theme="dark"] .site-footer .brand-logo .logo-dark { display: block; }
.footer-line { margin: 16px 0 22px; color: var(--foot-muted); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 4px; color: var(--foot-ink); }
.footer-col a, .footer-col p { color: var(--foot-muted); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base {
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 20px 0 28px; border-top: 1px solid var(--foot-line);
	color: var(--foot-muted); font-size: .88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.hero, .bench, .quote-grid, .profile-grid, .auth { grid-template-columns: 1fr; }
	.quote-lead { grid-row: auto; }
	.steps { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.footer-lead { grid-column: 1 / -1; }
	.hero h1 { max-width: none; }
	.auth-sample { display: none; }
}

@media (max-width: 900px) {
	.nav-toggle { display: grid; }
	.nav-menu {
		display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
		flex-direction: column; align-items: stretch; gap: 14px; padding: 14px;
		background: var(--surface); border: 1px solid var(--line);
		border-radius: var(--radius-m); box-shadow: var(--shadow);
	}
	.nav-menu.is-open { display: flex; }
	.nav-links { flex-direction: column; margin: 0; }
	.nav-links a { padding: 12px; font-size: 1.05rem; }
	.nav-actions {
		margin: 0; flex-wrap: wrap; justify-content: space-between;
		padding-top: 14px; border-top: 1px solid var(--line);
	}
	.nav-actions > .button, .nav-actions > .text-link { flex: 1; text-align: center; }
	.account-menu { flex: 1 1 100%; }
	.account-trigger { width: 100%; }
	.account-panel { position: static; box-shadow: none; margin-top: 8px; }
}

@media (max-width: 560px) {
	.nav, .home, .page, .footer-inner, .footer-base { width: calc(100% - 28px); }
	.nav { padding-left: 12px; }
	.verdict-row { flex-direction: column; align-items: flex-start; }
	.history li { grid-template-columns: 1fr; gap: 8px; }
	.footer-inner { grid-template-columns: 1fr; }
	.site-footer { border-radius: 28px 28px 0 0; }
	.editor-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
	.editor-actions #submit-check { grid-column: 1 / -1; order: -1; }
	.mode { font-size: .92rem; padding: 10px 6px; }
	.step p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mk { animation: none; background-size: 100% 100%; }
	.mk-low { background-size: 100% 3px; }
	.caret { animation: none; }
	*, *::before, *::after { transition: none !important; }
}
