:root {
  --bg: #ffffff;
  --soft: #f5f5f4;
  --soft-2: #fafaf9;
  --ink: #0b0b0d;
  --text: #4a4a52;
  --muted: #6b6b75;
  --display-muted: #85858f;
  --line: #e7e7e5;
  --link: #4f46e5;
  --win: #0a0a0a;
  --win-2: #141416;
  --win-3: #1c1c1f;
  --win-line: rgba(255, 255, 255, .09);
  --win-text: #ededef;
  --win-muted: #9a9aa3;
  --cyan: #45c4f9;
  --violet: #6a5cff;
  --magenta: #ff3fe1;
  --good: #15803d;
  --good-soft: #e7f6ec;
  --good-dark: #4ade80;
  --ok: #b45309;
  --ok-soft: #fdf2dc;
  --ok-dark: #fbbf24;
  --bad: #c2253a;
  --bad-soft: #fde8ea;
  --bad-dark: #ff6b72;
  --hl-pink: #f9a8d4;
  --hl-orange: #fdba74;
  --hl-red: #fca5a5;
  --hl-gray: #d4d4d8;
  --hl-yellow: #fde68a;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-win: 0 0 0 1px rgba(255, 255, 255, .08), 0 48px 110px -40px rgba(20, 20, 30, .45), 0 20px 48px -24px rgba(20, 20, 30, .2);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.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 { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -.03em; margin: 56px 0 14px; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; margin: 26px 0 6px; }
.mono { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* Top bar */
.topbar {
  background: linear-gradient(90deg, #120f1f, #1c1430 50%, #120f1f);
  color: #e9e7f2; font-size: 13px; text-align: center; padding: 8px 16px;
}
.topbar .mono { color: #b9b3d6; margin: 0 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.header-row { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px 24px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 500; }
.nav a { color: #3f3f46; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-cta { margin-left: auto; }

@media (max-width: 820px) {
  .header-row { flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .nav { gap: 20px; padding-bottom: 2px; }
}

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: 999px; padding: 13px 22px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pill:hover { text-decoration: none; transform: translateY(-1px); }
.pill:active { transform: translateY(0); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #26262b; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #ececec; }
.pill-soft { background: var(--soft); color: var(--ink); }
.pill-soft:hover { background: #ebebe9; }
.pill-ghost { background: rgba(255, 255, 255, .08); color: var(--win-text); border: 1px solid var(--win-line); }
.pill-ghost:hover { background: rgba(255, 255, 255, .14); }
.pill-sm { font-size: 13.5px; padding: 9px 16px; }
.pill .arrow { transition: transform .15s ease; }
.pill:hover .arrow { transform: translateX(2px); }

/* Hero */
.hero { position: relative; padding: 64px 0 24px; isolation: isolate; }
.hero-field { position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 11, 13, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 11, 13, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 50% at 22% 22%, rgba(69, 196, 249, .30) 0%, transparent 72%),
    radial-gradient(34% 48% at 78% 24%, rgba(255, 63, 225, .22) 0%, transparent 72%),
    radial-gradient(50% 50% at 50% 8%, rgba(125, 110, 255, .22) 0%, transparent 72%);
  filter: blur(40px);
}
.hero-copy { text-align: center; max-width: 1120px; }
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 8.4vw, 84px); line-height: 1.04; letter-spacing: -.045em; color: var(--ink); margin: 0; }
.display-sm { font-size: clamp(36px, 6.6vw, 68px); }
.display-muted { color: var(--display-muted); }
.hero .display + .display { margin-top: 2px; }
.hero .sub { font-size: clamp(17px, 2vw, 19px); line-height: 1.5; color: var(--text); max-width: 560px; margin: 22px auto 0; }
.hero-tool { max-width: 860px; margin: 40px auto 0; padding: 0 16px; }
.hero-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .rise-2 { animation-delay: .08s; }
  .rise-3 { animation-delay: .16s; }
  .rise-4 { animation-delay: .26s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* App window */
.window { background: var(--win); color: var(--win-text); border-radius: 22px; box-shadow: var(--shadow-win); overflow: hidden; text-align: left; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--win-line); }
.dots { display: inline-flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.window-title { font-size: 13.5px; color: var(--win-text); font-weight: 500; }
.window-title span { color: var(--win-muted); font-weight: 400; }
.status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: #c7d2fe; background: rgba(106, 92, 255, .16);
  border: 1px solid rgba(106, 92, 255, .35); border-radius: 999px; padding: 4px 10px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8b80ff; }
.status.is-working::before { animation: pulse 1s ease-in-out infinite; }
.status.is-done { color: #bbf7d0; background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .3); }
.status.is-done::before { background: var(--good-dark); }
@keyframes pulse { 50% { opacity: .25; } }

.window-body { padding: 14px 16px 16px; }
.field-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--win-line); padding: 2px 0 10px; margin-bottom: 8px; }
.field-row label { font-size: 13px; color: var(--win-muted); width: 56px; flex: none; }
.window input[type="text"], .window textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--win-text); background: transparent;
  border: 0; border-radius: 10px; padding: 8px 4px; outline: none;
}
.window textarea { min-height: 300px; resize: vertical; line-height: 1.65; }
.window textarea.short { min-height: 170px; }
.window input::placeholder, .window textarea::placeholder { color: #75757f; }
.window input[type="text"]:focus-visible, .window textarea:focus-visible { box-shadow: inset 0 0 0 1px rgba(139, 128, 255, .55); background: rgba(255, 255, 255, .02); }
.window-label { display: block; font-size: 13px; color: var(--win-muted); margin: 2px 0 4px; }
.window-foot { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; border-top: 1px solid var(--win-line); padding-top: 12px; margin-top: 6px; }
.window-foot .meta { font-size: 12.5px; color: var(--win-muted); font-family: var(--font-mono); }
.window-foot .pill { margin-left: auto; }
.window .linklike { color: #c7c2ff; }
.notice { font-size: 13.5px; background: rgba(106, 92, 255, .16); color: #e0dcff; border-radius: 10px; padding: 9px 12px; margin: 0 0 10px; }
.notice[hidden] { display: none; }

.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--link); cursor: pointer; }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Run log inside the window */
.run-log { list-style: none; margin: 4px 0 8px; padding: 12px 14px; background: var(--win-2); border: 1px solid var(--win-line); border-radius: 14px; font-size: 13.5px; }
.run-log[hidden] { display: none; }
.run-log li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; color: var(--win-text); }
.run-log li .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--win-muted); width: 96px; flex: none; }
.run-log li .v { color: #d4d4d8; }
.run-log li .tick { width: 16px; flex: none; text-align: center; font-weight: 700; }
.run-log li.pass .tick { color: var(--good-dark); }
.run-log li.fail .tick { color: var(--bad-dark); }
.run-log li.total { border-top: 1px solid var(--win-line); margin-top: 6px; padding-top: 10px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .run-log li { animation: logIn .28s ease both; }
  @keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
}

/* Ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; margin-top: 56px; background: var(--soft-2); }
.ticker-track { display: flex; width: max-content; padding: 14px 0; }
.ticker-track span { font-size: 14.5px; font-weight: 500; color: #3f3f46; padding: 0 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.ticker-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--magenta)); }
.ticker-track s { color: var(--muted); text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* Results */
.results { margin-top: 28px; }
.results[hidden] { display: none; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 14px; }
.card h2, .card h3 { margin-top: 0; }
.card h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }

.score-card { background: var(--soft); border-color: var(--soft); }
.score-row { display: flex; align-items: center; gap: 22px; }
.score-ring { position: relative; width: 108px; height: 108px; flex: none; }
.score-ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.score-ring .track { stroke: #e4e4e2; }
.score-ring .bar { stroke: currentColor; transition: stroke-dashoffset .9s cubic-bezier(.2, .7, .2, 1); }
.score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--ink); }
.score-num strong { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.score-num span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.verdict { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; }
.verdict-note { margin: 0; color: var(--text); font-size: 15px; }
.tone-good { color: var(--good); }
.tone-ok { color: var(--ok); }
.tone-bad { color: var(--bad); }

.flags { list-style: none; margin: 0; padding: 0; counter-reset: fix; }
.flags li { display: grid; grid-template-columns: 58px 1fr; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.flags li:first-child { border-top: 0; padding-top: 2px; }
.flags li::before { counter-increment: fix; content: "FIX " counter(fix, decimal-leading-zero); grid-row: span 2; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--bad); padding-top: 4px; }
.flags .ico { display: none; }
.flags .t { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.flags .fix { color: var(--text); font-size: 14.5px; }
.flags .fix b { color: var(--ink); font-weight: 600; }
.passes { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.passes summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.passes .flags { margin-top: 8px; }
.passes .flags li { padding: 8px 0; }
.passes .flags li::before { content: "PASS"; color: var(--good); counter-increment: none; grid-row: auto; }
.passes .t { font-weight: 500; font-size: 14.5px; }

/* Dark draft card for the rewrite */
.draft { background: var(--win); color: var(--win-text); border-radius: 20px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-win); }
.draft .window-bar h2 { font-family: var(--font); font-size: 13.5px; font-weight: 500; color: var(--win-text); margin: 0; letter-spacing: 0; }
.draft .window-bar .pill { margin-left: auto; }
.draft-meta { display: grid; grid-template-columns: 70px 1fr; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--win-line); font-size: 14px; margin: 0; }
.draft-meta dt { color: var(--win-muted); }
.draft-meta dd { margin: 0; color: var(--win-text); font-weight: 500; word-break: break-word; }
.draft-body { white-space: pre-wrap; word-wrap: break-word; font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--win-text); margin: 0; padding: 16px 18px; }
.draft-foot { padding: 0 18px 16px; color: var(--win-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.draft-foot p { margin: 0; }
.draft-foot .linklike { color: #c7c2ff; font-size: 13px; }

/* Light email block (templates) */
.email-out { background: var(--soft-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; white-space: pre-wrap; word-wrap: break-word; font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0; }
.email-out .subj { display: block; font-weight: 600; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.small { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* CTA: dark glow section */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--win); color: #fff; border-radius: 24px; padding: 40px 24px; margin: 18px 0; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; opacity: .75; filter: blur(50px);
  background:
    radial-gradient(40% 50% at 22% 40%, rgba(69, 196, 249, .45) 0%, transparent 70%),
    radial-gradient(40% 50% at 78% 45%, rgba(255, 63, 225, .38) 0%, transparent 70%),
    radial-gradient(55% 55% at 50% 75%, rgba(106, 92, 255, .5) 0%, transparent 70%);
}
.cta p { margin: 0 auto 22px; font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; max-width: 620px; color: #fff; }
.cta .kicker { color: #d9d4ff; display: block; margin-bottom: 12px; }

/* Spam highlight */
mark { background: var(--hl-pink); color: var(--ink); border-radius: 4px; padding: 0 3px; }
mark.c-urgency, mark.c-phishing-like { background: var(--hl-red); }
mark.c-overpromise { background: var(--hl-orange); }
mark.c-money { background: var(--hl-pink); }
mark.c-salesy { background: var(--hl-gray); }
mark.c-formatting { background: var(--hl-yellow); }
.hl-out { background: var(--soft-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; white-space: pre-wrap; word-wrap: break-word; margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.85; color: var(--ink); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.cats li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink); background: var(--bg); }
.cats li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hl-gray); }
.cats .c-urgency::before, .cats .c-phishing-like::before { background: #ef4444; }
.cats .c-overpromise::before { background: #f59e0b; }
.cats .c-money::before { background: #ec4899; }
.cats .c-salesy::before { background: #9ca3af; }
.cats .c-formatting::before { background: #eab308; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--soft-2); }

/* Subject tester */
.subj-result { border-top: 1px solid var(--line); padding: 16px 0; }
.subj-result:first-of-type { border-top: 0; padding-top: 0; }
.subj-line { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
.subj-line q { font-weight: 600; color: var(--ink); quotes: "\201C" "\201D"; word-break: break-word; }
.pill-tag { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.pill-tag.good { background: var(--good-soft); color: var(--good); }
.pill-tag.ok { background: var(--ok-soft); color: var(--ok); }
.pill-tag.bad { background: var(--bad-soft); color: var(--bad); }
.suggest { font-size: 14.5px; margin: 10px 0 0; color: var(--ink); }
.mt { margin-top: 10px; }
.flush { margin: 0; }

/* How it works */
.motion { padding: 88px 0 24px; }
.motion-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .motion-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.kicker { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.motion h2 { margin: 12px 0 14px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.motion h2 .display-muted { display: block; }
.motion .lede { font-size: 17px; color: var(--text); margin: 0 0 28px; max-width: 460px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step-item { border-top: 1px solid var(--line); }
.step-item:last-child { border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 18px 0; cursor: pointer; font: inherit; color: inherit; }
.step .kicker { color: #8a8a94; }
.step-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: #b4b4bc; transition: color .2s; }
.step:hover .step-title { color: #7c7c86; }
.step[aria-selected="true"] .step-title { color: var(--ink); }
.step[aria-selected="true"] .kicker { color: var(--muted); }
.step-desc { margin: -6px 0 18px 132px; color: var(--text); font-size: 15.5px; max-width: 440px; }
.step-desc[hidden] { display: none; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 2px; }
  .step-desc { margin-left: 0; }
}

.stage { position: relative; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; filter: blur(50px); opacity: .7;
  background: radial-gradient(45% 50% at 25% 40%, rgba(69, 196, 249, .35), transparent 70%), radial-gradient(45% 50% at 75% 60%, rgba(255, 63, 225, .25), transparent 70%);
}
.stage .window { min-height: 420px; }
.panel-body { padding: 18px; }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) .panel-body > * { animation: logIn .45s ease both; }
  .panel:not([hidden]) .panel-body > *:nth-child(2) { animation-delay: .1s; }
  .panel:not([hidden]) .panel-body > *:nth-child(3) { animation-delay: .2s; }
  .panel:not([hidden]) .panel-body > *:nth-child(4) { animation-delay: .3s; }
  .panel:not([hidden]) .panel-body > *:nth-child(5) { animation-delay: .4s; }
  .panel:not([hidden]) .panel-body > *:nth-child(6) { animation-delay: .5s; }
}
.mock-line { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; background: var(--win-2); border: 1px solid var(--win-line); margin-bottom: 8px; font-size: 14px; color: #e4e4e7; }
.mock-line .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #c7d2fe; background: rgba(106, 92, 255, .2); border-radius: 6px; padding: 2px 7px; flex: none; min-width: 74px; text-align: center; }
.mock-line .ok { color: var(--good-dark); font-weight: 700; flex: none; width: 14px; }
.mock-line .no { color: var(--bad-dark); font-weight: 700; flex: none; width: 14px; }
.mock-line del { color: #a1a1aa; text-decoration-color: var(--bad-dark); }
.mock-line ins { text-decoration: none; color: #bbf7d0; }
.mock-score { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 12px 4px; border-top: 1px solid var(--win-line); margin-top: 6px; }
.mock-score b { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.mock-score span { color: var(--good-dark); font-weight: 600; }
.mock-score .tone-bad-dark { color: var(--bad-dark); }
.mock-caption { color: var(--win-muted); font-size: 13px; margin: 2px 0 12px; }

/* Templates */
.tpl-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 28px 0 8px; }
.tpl-nav a { display: inline-block; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); color: var(--ink); }
.tpl-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.tpl { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin: 16px 0; scroll-margin-top: 90px; transition: box-shadow .2s, border-color .2s; }
.tpl:hover { border-color: #d6d6d3; box-shadow: 0 20px 40px -28px rgba(20, 20, 30, .25); }
.tpl h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
.tpl .when { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.tpl .email-out { margin-bottom: 14px; }
.tpl-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Content */
.content { padding-bottom: 8px; }
.content p, .content li { color: var(--text); font-size: 16.5px; line-height: 1.7; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content strong { color: var(--ink); font-weight: 600; }
/* Collapsible guide: headings only until opened */
.guide-lede { color: var(--muted) !important; font-size: 15px !important; margin: -4px 0 0; }
.guide { border-top: 1px solid var(--line); margin-top: 20px; counter-reset: guide; }
.guide-item { border-bottom: 1px solid var(--line); }
.guide-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 22px; align-items: center; gap: 10px; padding: 20px 0; }
.guide-item summary::-webkit-details-marker { display: none; }
.guide-item summary::before { counter-increment: guide; content: counter(guide, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.guide-item summary::after { content: "+"; justify-self: end; font-size: 24px; font-weight: 300; line-height: 1; color: var(--ink); transition: transform .2s; }
.guide-item[open] summary::after { transform: rotate(45deg); }
.guide-item summary h2 { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.3; letter-spacing: -.02em; margin: 0; transition: color .15s; }
.guide-item summary:hover h2 { color: #3f3f46; }
.guide-body { padding: 0 0 22px 50px; }
.guide-body > :first-child { margin-top: 0; }
.guide-body > :last-child { margin-bottom: 0; }
@media (max-width: 560px) { .guide-body { padding-left: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .guide-item[open] .guide-body { animation: logIn .3s ease both; }
}

.faq { margin-top: 72px; }
.faq > h2 { text-align: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 300; line-height: 1; color: var(--ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }
.faq h3 { font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0; display: inline; }

.related-head { margin-top: 64px; display: block; }
.related { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 14px 0 8px; }
@media (min-width: 680px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; background: var(--soft); border-radius: 18px; padding: 18px; color: var(--text); transition: background-color .15s, transform .15s; }
.related a:hover { text-decoration: none; background: #efefed; transform: translateY(-2px); }
.related a strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.related a span { font-size: 14px; }
.related a span::after { content: " \2192"; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 88px; padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-start; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.foot-nav a { color: var(--ink); font-weight: 500; }
.site-footer p { margin: 4px 0; }
.site-footer .made a { color: var(--ink); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }

@media (max-width: 560px) {
  .header-cta { display: none; }
  .window-title span { display: none; }
  .topbar { font-size: 12.5px; }
}

@media (min-width: 640px) {
  .window-body { padding: 16px 22px 20px; }
  .cta { padding: 52px 40px; }
  .card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.content > .guide:first-child { margin-top: 56px; }

/* Follow-up cadence strip */
.cadence { list-style: none; padding: 0; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .85); overflow: hidden; }
.cadence li { padding: 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; text-align: left; }
.cadence li:first-child { border-left: 0; }
.cadence-step { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 560px) {
  .cadence { grid-template-columns: 1fr 1fr; }
  .cadence li:nth-child(3) { border-left: 0; }
  .cadence li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Subject line tables */
.subject-table td { vertical-align: middle; }
.subject-table td:first-child { min-width: 170px; }
.subject-table td:first-child strong { color: var(--ink); font-weight: 600; }
.subject-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.content section + section { margin-top: 8px; }
.subject-table { table-layout: fixed; min-width: 540px; }
.subject-table th:first-child { width: 36%; }
.subject-table th:last-child { width: 86px; }
@media (max-width: 600px) {
  .subject-table { min-width: 0; table-layout: auto; }
  .subject-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .subject-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .subject-table tr:last-child { border-bottom: 0; }
  .subject-table td { display: block; padding: 0; border: 0; }
  .subject-table td:first-child { grid-column: 1; grid-row: 1; min-width: 0; align-self: center; }
  .subject-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .subject-table td:last-child { grid-column: 2; grid-row: 1; width: auto; }
}
