/*
 * SMW Risk/Reward Calculator: same look as the Stock Market Wolf CRM and Trade Journal.
 * Base tokens and components are copied from the journal so both pages match.
 * Fonts are bundled in ./fonts (SIL OFL), so the page makes no outside requests.
 */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(fonts/inter-tight-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(fonts/inter-tight-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(fonts/inter-tight-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(fonts/archivo-latin-800-normal.woff2) format("woff2"); }

:root {
	--wolf-black: #0e0a08;
	--wolf-cream: #f4f1ed;
	--wolf-stone: #9e978e;
	--amber: #f0ac27;
	--amber-gradient: linear-gradient(135deg, #f4c13c, #e88a1a);
	--amber-gradient: linear-gradient(135deg, oklch(0.84 0.15 85), oklch(0.7 0.17 55));
	--amber-ink: #8a5b06;
	--amber-wash: #fbf1dc;

	--page: #f7f4ef;
	--surface: #ffffff;
	--surface-2: #efeae2;
	--ink: #1c1612;
	--ink-2: #5f574e;
	--ink-3: #8a8178;
	--line: #e7e1d8;
	--line-strong: #d6cec2;

	--good: #2f7a3e;
	--good-wash: #e8f3ea;
	--bad: #b3261e;
	--bad-wash: #fbeceb;

	--amber-line: rgba(240, 172, 39, 0.18);
	--amber-line-strong: rgba(240, 172, 39, 0.45);
	--shadow-soft: 0 1px 2px rgba(28, 22, 18, 0.04), 0 12px 32px -16px rgba(28, 22, 18, 0.12);
	--shadow-tile: 0 1px 2px rgba(28, 22, 18, 0.05);
	--shadow-lift: 0 10px 24px -12px rgba(28, 22, 18, 0.22);
	--glow-amber: 0 10px 15px -3px rgba(240, 172, 39, 0.3), 0 4px 6px -4px rgba(240, 172, 39, 0.3);

	--sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: "Archivo", ui-sans-serif, system-ui, sans-serif;
	color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background:
		radial-gradient(60rem 40rem at 100% -10%, rgba(240, 172, 39, 0.08), transparent 60%),
		radial-gradient(50rem 36rem at 15% 110%, rgba(224, 123, 22, 0.06), transparent 60%),
		var(--page);
	background-attachment: fixed;
	color: var(--ink);
	font: 15px/1.5 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--amber-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
h3 { font-size: 1rem; line-height: 1.4; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Dark top bar, like the CRM sidebar */
.top { background: var(--wolf-black); color: var(--wolf-cream); }
.top-in { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { color: var(--wolf-cream); text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.wordmark { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.product { color: var(--wolf-stone); font-size: .875rem; font-weight: 500; }
.top .link { color: var(--wolf-stone); text-decoration-color: rgba(158, 151, 142, .5); }
.top .link:hover { color: var(--wolf-cream); }
.inline { margin: 0; }

.eyebrow { font-size: .8125rem; font-weight: 500; color: var(--amber-ink); margin: 0 0 .5em; }
.lede { color: var(--ink-2); font-size: 1.075rem; max-width: 34em; }
.points { padding-left: 1.1em; }
.points li { margin: .4em 0; }
.points li::marker { color: var(--amber); }

/* Surfaces: big rounded cards holding rounded tiles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); padding: 22px; }
.tile { background: var(--surface); border: 1px solid var(--amber-line); border-radius: 16px; box-shadow: var(--shadow-tile); padding: 16px 18px; }

.auth { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 32px; align-items: start; }
.auth-card { padding: 28px; }
.auth-card .switch { color: var(--ink-2); font-size: .875rem; margin-bottom: 0; }

/* Controls */
label { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
label small { color: var(--ink-3); font-size: .75rem; font-weight: 400; }
input, textarea, select {
	font: inherit; font-size: .875rem; color: var(--ink); background: var(--surface);
	border: 1px solid var(--line-strong); border-radius: 12px; padding: .55rem .85rem; width: 100%;
	outline: none; transition: border-color 120ms, box-shadow 120ms;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--amber-ink); box-shadow: 0 0 0 4px var(--amber-wash); }
:where(button, a, summary):focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.span2 { grid-column: span 2; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input { flex: 1 1 200px; width: auto; }

/* Buttons: primary is the amber pill, others are quiet pills */
.btn {
	font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; border: 0;
	background: var(--amber-gradient); color: #160d07; border-radius: 999px; padding: .6rem 1.25rem;
	box-shadow: var(--glow-amber); transition: filter 120ms, transform 120ms, background-color 120ms, border-color 120ms;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.ghost, .btn.warn {
	background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
	box-shadow: none; font-weight: 500;
}
.btn.ghost:hover { background: var(--amber-wash); border-color: var(--amber-line-strong); filter: none; }
.btn.small { padding: .42rem .95rem; font-size: .8125rem; }
.btn.warn { color: var(--bad); }
.btn.warn:hover { background: var(--bad-wash); border-color: var(--bad); filter: none; }
.link { font: inherit; font-size: .875rem; background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--amber-ink); color: var(--ink); }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { color: var(--ink-2); font-size: .875rem; }

.note { border-radius: 16px; padding: 10px 14px; margin: 0 0 14px; font-size: .875rem; }
.note.ok { background: var(--good-wash); color: var(--good); }
.note.err { background: var(--bad-wash); color: var(--bad); }


/* ------------------------------------------------------------------ *
 * Calculator
 * ------------------------------------------------------------------ */
:root {
	/* Grade scale: A+ deep green through F red */
	--g-aplus: #1e7a3c;
	--g-a: #3c8c2f;
	--g-b: #7d9416;
	--g-c: #c98a0a;
	--g-d: #d4621a;
	--g-f: #b3261e;
}
.intro { padding-top: 40px; padding-bottom: 8px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 16px; padding-bottom: 8px; }
.calc form { display: flex; flex-direction: column; gap: 14px; }
.calc fieldset { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); padding: 18px 22px 22px; margin: 0; min-width: 0; }
.calc legend { float: left; width: 100%; font-weight: 600; font-size: 1rem; padding: 0; margin: 0 0 14px; }
.calc legend + * { clear: both; }

/* Segmented control, like the CRM tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { font: inherit; font-size: .8125rem; font-weight: 500; background: none; border: 0; color: var(--ink-2); padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; transition: background-color 120ms, color 120ms; }
.tabs button:hover { color: var(--ink); background: var(--surface); }
.tabs button[aria-selected="true"] { background: var(--amber-gradient); color: #160d07; box-shadow: var(--glow-amber); }
.calc legend .step { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 999px; background: var(--amber-gradient); color: #160d07; font-size: .75rem; margin-right: 8px; vertical-align: 1px; }
.calc .hint { color: var(--ink-2); font-size: .8125rem; margin: 2px 0 12px; }
.field-row { display: flex; gap: 8px; align-items: end; }
.field-row label { flex: 1 1 auto; }
.field-row .btn { flex: 0 0 auto; white-space: nowrap; }
.unit { position: relative; display: block; }
.unit input { padding-left: 1.6rem; }
.unit.pct input { padding-left: .85rem; padding-right: 1.8rem; }
.unit::before { content: attr(data-u); position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .875rem; pointer-events: none; }
.unit.pct::before { left: auto; right: .85rem; }
.unit.plain input { padding-left: .85rem; }
.unit.plain::before { content: none; }

/* Take-profit rows */
.tps { display: flex; flex-direction: column; gap: 8px; }
.tp { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) minmax(0, 1fr) 8.4em 2.2em; gap: 8px; align-items: center; }
.tp-head { font-size: .75rem; font-weight: 500; color: var(--ink-3); }
.tp-head span:nth-child(4) { text-align: right; }
.tp .n { width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 999px; background: var(--amber-wash); color: var(--amber-ink); font-weight: 600; font-size: .8125rem; }
.tp .r { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .875rem; color: var(--ink-2); text-align: right; }
.tp .r.bad { color: var(--bad); }
.x { width: 2.2em; height: 2.2em; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; font: inherit; font-size: 1rem; line-height: 1; padding: 0; }
.x:hover { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
.x:disabled { visibility: hidden; }
.alloc { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.alloc .meter { flex: 1 1 160px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.alloc .meter i { display: block; height: 100%; width: 0; background: var(--amber-gradient); border-radius: 999px; transition: width 200ms; }
.alloc .meter i.over { background: var(--bad); }
.alloc .txt { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Result card */
.result { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.grade-card { padding: 22px; text-align: center; }
.grade-card .k { color: var(--ink-2); font-size: .8125rem; font-weight: 500; margin: 0 0 10px; }
.badge { --c: var(--ink-3); width: 132px; height: 132px; margin: 0 auto; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, white); border: 6px solid var(--c); color: var(--c); font: 800 3.4rem/1 var(--display); letter-spacing: -0.02em; }
.badge[data-g="A+"] { --c: var(--g-aplus); }
.badge[data-g="A"] { --c: var(--g-a); }
.badge[data-g="B"] { --c: var(--g-b); }
.badge[data-g="C"] { --c: var(--g-c); }
.badge[data-g="D"] { --c: var(--g-d); }
.badge[data-g="F"] { --c: var(--g-f); }
.verdict { font-size: 1.15rem; font-weight: 600; margin: 14px 0 2px; }
.score { color: var(--ink-2); font-size: .875rem; font-variant-numeric: tabular-nums; margin: 0; }
.scale { display: flex; gap: 4px; margin: 16px auto 0; max-width: 300px; }
.scale span { flex: 1; font-size: .6875rem; font-weight: 600; color: #fff; border-radius: 999px; padding: .15rem 0; opacity: .3; }
.scale span.on { opacity: 1; }
.scale .s-aplus { background: var(--g-aplus); }
.scale .s-a { background: var(--g-a); }
.scale .s-b { background: var(--g-b); }
.scale .s-c { background: var(--g-c); }
.scale .s-d { background: var(--g-d); }
.scale .s-f { background: var(--g-f); }

.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nums .tile { padding: 12px 14px; }
.nums .k { color: var(--ink-2); font-size: .75rem; font-weight: 500; }
.nums .v { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.nums .s { color: var(--ink-3); font-size: .75rem; margin-top: 2px; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: grid; grid-template-columns: 1.5em 1fr; gap: 8px; font-size: .875rem; align-items: start; }
.checks li::before { content: ""; width: 1.25em; height: 1.25em; border-radius: 999px; margin-top: .1em; background: var(--surface-2) center/70% no-repeat; }
.checks li.ok::before { background-color: var(--good-wash); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%232f7a3e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks li.warn::before { background-color: var(--amber-wash); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v5.5M8 12.2v.1' fill='none' stroke='%238a5b06' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.checks li.bad::before { background-color: var(--bad-wash); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23b3261e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.checks b { font-weight: 600; display: block; }
.checks span { color: var(--ink-2); }

.how summary { cursor: pointer; font-weight: 600; font-size: .9375rem; }
.how table { margin-top: 12px; }
.how p { color: var(--ink-2); font-size: .875rem; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink-2); font-weight: 500; font-size: .8125rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 18px; }
.next .card h2 { margin-bottom: .3em; }
.next .card p { color: var(--ink-2); font-size: .9rem; margin: 0 0 14px; }
.btn.as-link { display: inline-block; text-decoration: none; }
.foot { color: var(--ink-2); font-size: .8125rem; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 28px; }
.foot strong { color: var(--ink); font-weight: 600; }

@media (max-width: 899px) {
	.calc { grid-template-columns: 1fr; }
	.result { position: static; }
}
@media (max-width: 767px) {
	input, select, textarea { font-size: 16px; }
	.grid, .next { grid-template-columns: 1fr; }
	.span2 { grid-column: auto; }
	.calc fieldset { padding: 16px; }
	.tp { grid-template-columns: 2em minmax(0, 1fr) minmax(0, .8fr) 6.4em 2em; gap: 6px; }
	.field-row { flex-direction: column; align-items: stretch; }
	.intro { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* v2: options */
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.lbl small { color: var(--ink-3); font-size: .75rem; font-weight: 400; }
.lbl-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lbl-row label { display: inline; }
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; flex: 0 0 auto; }
.seg button { font: inherit; font-size: .75rem; font-weight: 600; background: none; border: 0; color: var(--ink-2); padding: .2rem .65rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--amber-ink); box-shadow: var(--shadow-tile); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.stock-calc { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--amber-wash); color: var(--amber-ink); font-size: .875rem; font-weight: 500; }
.stock-calc.bad { background: var(--bad-wash); color: var(--bad); }
legend .opt { font-size: .75rem; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
@media (max-width: 760px) {
	.grid3 { grid-template-columns: 1fr 1fr; }
	.grid3 label:first-child { grid-column: span 2; }
	.lbl-row { flex-wrap: wrap; }
}
.tp .r { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.tp .r b { color: var(--good); font-weight: 600; }
.tp .r span { font-size: .75rem; font-weight: 500; color: var(--ink-3); }
.tp .r.bad b { color: var(--bad); }
.pl { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--good-wash); border: 1px solid rgba(47, 122, 62, .18); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pl .k { font-size: .875rem; font-weight: 600; color: var(--ink); }
.pl .k small { display: block; font-size: .75rem; font-weight: 400; color: var(--ink-2); }
.pl .v { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--good); }
.pl.neg { background: var(--bad-wash); border-color: rgba(179, 38, 30, .2); }
.pl.neg .v { color: var(--bad); }
.pl[hidden] { display: none; }
.lbl .lbl-row { flex-wrap: wrap; row-gap: 6px; }
.lbl .lbl-row label { white-space: nowrap; }
.be { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.be label { display: inline; font-size: .875rem; font-weight: 600; color: var(--ink); }
.be select { width: auto; min-width: 12rem; font: inherit; font-size: .875rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: .45rem .75rem; }
.path { list-style: none; margin: 12px 0 0 6px; padding: 0 0 0 16px; border-left: 2px solid var(--amber-line-strong); display: flex; flex-direction: column; gap: 10px; }
.path li { position: relative; font-size: .875rem; color: var(--ink-2); }
.path li::before { content: ''; position: absolute; left: -24px; top: .3em; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--amber); }
.path li.risk::before { border-color: var(--bad); }
.path li.safe::before { border-color: var(--good); background: var(--good-wash); }
.path li.done::before { border-color: var(--good); background: var(--good); }
.path li b { display: block; color: var(--ink); font-weight: 600; }
.path[hidden] { display: none; }
.be .unit { width: 6.5rem; }
.be small { flex-basis: 100%; color: var(--ink-3); font-size: .75rem; }

small.warn-hint { color: var(--bad); font-weight: 500; }

.next .eyebrow { margin-bottom: .4em; }
.next .fine { font-size: .75rem; color: var(--ink-3); margin: 10px 0 0; }

/* v4: account gate (same look as the Trade Journal's sign-in page) */
.muted { color: var(--ink-2); margin: 0; font-size: .9rem; }
.top-links { display: inline-flex; gap: 16px; align-items: center; }
.top .link { color: var(--wolf-stone); }
.empty { color: var(--ink-2); text-align: center; padding: 40px 16px; }

body.signed-out { background: var(--page); }
body.signed-out .foot { max-width: none; margin-top: 0; padding: 18px 24px 28px; border-top: 1px solid var(--line); background: var(--surface); }
body.signed-out .foot p { max-width: 1040px; margin-left: auto; margin-right: auto; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 60px); padding: 0; max-width: none; gap: 0; align-items: stretch; }
.auth-hero {
	background:
		radial-gradient(40rem 30rem at 0% 0%, rgba(240, 172, 39, .16), transparent 60%),
		radial-gradient(36rem 26rem at 100% 100%, rgba(224, 123, 22, .12), transparent 60%),
		var(--wolf-black);
	color: var(--wolf-cream);
	display: flex; align-items: center; justify-content: flex-end; padding: 56px 48px;
}
.hero-in { max-width: 500px; width: 100%; }
.auth-hero .eyebrow { color: var(--amber); }
.auth-hero h1 { color: var(--wolf-cream); font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.025em; margin-bottom: .45em; }
.auth-hero .lede { color: rgba(244, 241, 237, .72); font-size: 1.05rem; margin: 0 0 26px; }
.auth-hero .points { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 14px; }
.auth-hero .points li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: rgba(244, 241, 237, .78); font-size: .95rem; }
.auth-hero .points li b { color: var(--wolf-cream); font-weight: 600; }
.auth-hero .points svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 3px; border-radius: 999px; background: var(--amber-gradient); color: #160d07; margin-top: 1px; }

.peek { background: rgba(255, 255, 255, .04); border: 1px solid rgba(244, 241, 237, .1); border-radius: 20px; padding: 16px 18px 12px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); }
.peek-head { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; font-weight: 600; color: var(--wolf-cream); margin-bottom: 12px; }
.peek-chip { font-weight: 500; font-size: .72rem; color: var(--wolf-stone); border: 1px solid rgba(244, 241, 237, .14); border-radius: 999px; padding: .1rem .55rem; }
.peek-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.peek-stats div { display: flex; flex-direction: column; gap: 2px; }
.peek-stats .k { font-size: .72rem; color: var(--wolf-stone); }
.peek-stats .v { font-size: 1.25rem; font-weight: 600; color: var(--wolf-cream); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.peek-stats .v.sm { font-size: .875rem; line-height: 1.3; padding-top: .2rem; }
.peek-chart { width: 100%; height: 64px; display: block; }
.peek-note { margin: 4px 0 0; font-size: .68rem; color: rgba(158, 151, 142, .7); text-align: right; }

.auth-panel { display: flex; align-items: center; justify-content: flex-start; padding: 56px 48px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); padding: 26px 28px 24px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; }
.auth-tabs a { flex: 1; text-align: center; text-decoration: none; font-size: .875rem; font-weight: 500; color: var(--ink-2); padding: .55rem .5rem; border-radius: 999px; transition: background-color 120ms, color 120ms; }
.auth-tabs a:hover { color: var(--ink); background: var(--surface); }
.auth-tabs a[aria-current="page"] { background: var(--amber-gradient); color: #160d07; font-weight: 600; box-shadow: var(--glow-amber); }
.auth-tabs[hidden] { display: none; }
.form-head h2 { font-size: 1.35rem; margin: 0 0 4px; letter-spacing: -0.015em; }
.form-head .muted { margin: 0; }
.auth-card .stack { gap: 16px; }
.auth-card input { padding: .7rem .9rem; font-size: .95rem; }
.btn.block { width: 100%; padding: .8rem 1.25rem; font-size: .95rem; }
.auth-card .switch { text-align: center; margin: 0; font-size: .875rem; color: var(--ink-2); }
.auth-card .switch.fine { font-size: .8rem; color: var(--ink-3); }
.pw { position: relative; }
.pw input { padding-right: 2.8rem; }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; border-radius: 10px; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.reveal:hover, .reveal.on { color: var(--amber-ink); background: var(--amber-wash); }
.reveal svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
	.auth { grid-template-columns: 1fr; min-height: 0; padding: 0; gap: 0; }
	.auth-hero { justify-content: center; padding: 28px 20px 92px; }
	.auth-hero h1 { font-size: 1.9rem; }
	.auth-hero .lede { font-size: .975rem; margin-bottom: 0; }
	.auth-hero .points, .auth-hero .peek { display: none; }
	.auth-panel { justify-content: center; padding: 0 16px 28px; margin-top: -72px; }
	.auth-card { max-width: 480px; padding: 20px 18px 18px; border-radius: 22px; }
	.auth-card input { font-size: 16px; }
}

body.signed-out .top-links { display: none; }
@media (max-width: 520px) {
	.top .product { display: none; }
	.top .wordmark { white-space: nowrap; }
}
