:root {
  --bg: #09090b; --panel: #111113; --panel-2: #18181b; --line: #27272a; --line-2: #3f3f46;
  --ink: #fafafa; --soft: #dedee3; --muted: #b4b4bd; --dim: #92929c;
  --brand: #ff6e32; --brand-2: #ffc29e;
  --good: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --good-hl: rgba(74, 222, 128, .16); --warn-hl: rgba(251, 191, 36, .18); --bad-hl: rgba(248, 113, 113, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Geist, Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 110, 50, .35); }

/* backdrop: orange glow + fading grid */
.glow { position: absolute; left: 50%; top: -320px; width: 1200px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 110, 50, .26), transparent); pointer-events: none; z-index: 0; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .75; transform: translateX(-50%) scale(1.06); } }
.grid-bg { position: absolute; inset: 0 0 auto; height: 1100px; background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask: radial-gradient(ellipse at 50% 15%, #000 15%, transparent 65%); mask: radial-gradient(ellipse at 50% 15%, #000 15%, transparent 65%); pointer-events: none; z-index: 0; }
.top, main, .foot { position: relative; z-index: 1; }

.top { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 22px 24px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.logo b { color: var(--brand); }
.top nav { display: flex; gap: 6px; flex: 1; }
.navlink { background: none; border: 0; padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: none; transition: color .2s, background .2s; }
.navlink:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.cta { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 14px; font-size: 14px; text-decoration: none; transition: border-color .2s, background .2s; }
.cta:hover { border-color: var(--brand); background: rgba(255, 110, 50, .08); }

main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero { text-align: center; padding: 28px 0 26px; }
.announce { display: inline-flex; gap: 6px; align-items: center; font: 13px var(--mono); color: var(--soft); border: 1px solid var(--line); background: var(--panel-2); border-radius: 99px; padding: 6px 14px; cursor: pointer; transition: border-color .2s; animation: up .7s var(--ease) both; }
.announce b { color: var(--brand); font-weight: 500; }
.announce span { transition: transform .25s var(--ease); }
.announce:hover { border-color: var(--line-2); } .announce:hover span { transform: translateX(3px); }
h1 { font: 600 clamp(38px, 5.4vw, 68px)/1.03 Geist, sans-serif; letter-spacing: -.045em; margin: 16px auto 12px; text-wrap: balance; max-width: 1050px; color: var(--ink); }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.5; }
.copy:not([hidden]) h1 { animation: up .7s .05s var(--ease) both; }
.copy:not([hidden]) .sub { animation: up .7s .12s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

/* app card */
.app { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 1060px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 17, 19, .82); backdrop-filter: blur(8px); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04); animation: up .8s .2s var(--ease) both; scroll-margin-top: 20px; }
.pane { padding: 20px 22px 22px; min-width: 0; }
.pane.right { border-left: 1px solid var(--line); }
.k { font: 500 11px var(--mono); color: var(--dim); letter-spacing: .07em; text-transform: uppercase; margin: 0 0 12px; }

.pane-head { margin-bottom: 12px; }
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; }
.tab { position: relative; z-index: 1; border: 0; background: none; padding: 6px 13px; font-size: 13.5px; font-weight: 500; color: var(--dim); cursor: pointer; border-radius: 6px; transition: color .2s; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; top: 3px; bottom: 3px; left: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; transition: transform .3s var(--ease), width .3s var(--ease); }

.box { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.box:focus-within { border-color: rgba(255, 110, 50, .6); box-shadow: 0 0 0 3px rgba(255, 110, 50, .12); }
textarea, .readout { display: block; width: 100%; min-height: 170px; max-height: 460px; overflow: auto; border: 0; background: transparent; color: var(--soft); font: 15px/1.7 Geist, Inter, system-ui, sans-serif; padding: 14px 16px; resize: vertical; white-space: pre-wrap; word-break: break-word; }
textarea:focus { outline: none; }
textarea::placeholder { color: var(--dim); }
.box.scanning::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(transparent, rgba(255, 110, 50, .14) 80%, rgba(255, 110, 50, .5)); animation: scan 1.1s ease-in-out infinite; pointer-events: none; }
@keyframes scan { from { transform: translateY(-60px); } to { transform: translateY(280px); } }
.gamein { display: block; width: 100%; margin-top: 10px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--soft); padding: 0 14px; font: 13.5px Geist, sans-serif; transition: border-color .2s; }
.gamein:focus { outline: none; border-color: rgba(255, 110, 50, .6); }
.gamein::placeholder { color: var(--dim); }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.btn { background: var(--brand); color: #0b0b0c; border: 0; border-radius: 8px; height: 40px; padding: 0 18px; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: transform .1s, box-shadow .2s, filter .2s; }
.btn:hover { box-shadow: 0 0 24px -4px rgba(255, 110, 50, .7); filter: brightness(1.05); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; }
.samples { color: var(--dim); font-size: 13.5px; }
.link { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--soft); font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.link:hover { color: var(--ink); text-decoration-color: var(--brand); }

/* highlights in the email */
.readout mark { color: inherit; border-radius: 3px; padding: 0 2px; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 0 100%; animation: hl .45s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms); }
.readout mark.good { --hl: var(--good-hl); color: #bbf7d0; } .readout mark.warn { --hl: var(--warn-hl); color: #fde68a; } .readout mark.bad { --hl: var(--bad-hl); color: #fecaca; }
.readout mark sup { font-size: 9.5px; color: var(--muted); margin-left: 2px; }
@keyframes hl { to { background-size: 100% 100%; } }

/* right pane */
.empty { height: 100%; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; padding: 24px; }
.empty-t { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--soft); }
.hint { color: var(--dim); font-size: 14px; margin: 0; max-width: 300px; }
.pane.right:has(#result:not([hidden])) .empty { display: none; }

.result { animation: up .4s var(--ease) both; }
.verdict { display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.verdict h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.verdict .score { margin-left: auto; font: 12px var(--mono); color: var(--muted); }
.verdict-l { color: var(--muted); margin: 6px 0 14px 19px; font-size: 14px; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); animation: up .35s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
.notes .n { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; font: 500 10.5px/18px var(--mono); text-align: center; background: var(--panel-2); color: var(--muted); }
.notes .good .n { background: rgba(74, 222, 128, .14); color: var(--good); } .notes .warn .n { background: rgba(251, 191, 36, .14); color: var(--warn); } .notes .bad .n { background: rgba(248, 113, 113, .14); color: var(--bad); }
.notes .n:empty { width: 6px; height: 6px; margin: 9px 6px 0; border-radius: 50%; background: var(--line-2); }
.notes .good .n:empty { background: var(--good); } .notes .warn .n:empty { background: var(--warn); } .notes .bad .n:empty { background: var(--bad); }
.legend { color: var(--dim); font-size: 12px; margin: 8px 0 0; }
.legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 5px 1px 10px; } .legend i:first-child { margin-left: 0; }
.part { margin-top: 24px; animation: up .4s var(--ease) both; }
.part h3 { font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { padding: 10px 12px; } .facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; } .facts span { color: var(--dim); font-size: 12px; }
.fitline { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.pill { flex: none; font: 500 11px var(--mono); padding: 2px 8px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.titles { list-style: none; padding: 0; margin: 4px 0 0; color: var(--dim); font-size: 12.5px; }
.titles li { padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titles li::before { content: '▸ '; color: var(--line-2); }
.draft { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; font: 14px/1.65 Geist, Inter, system-ui, sans-serif; color: var(--soft); }
.copy-btn { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--soft); border-radius: 7px; padding: 4px 10px; font: 500 12px Geist, sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.copy-btn:hover { background: var(--brand); color: #0b0b0c; border-color: var(--brand); }
.partial { margin: 0 0 14px; padding: 9px 12px; border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .06); border-radius: 8px; color: var(--soft); font-size: 13px; }
.partial b { color: var(--warn); font-weight: 600; }
.tip { margin: 14px 0 0; padding: 10px 12px; border-left: 2px solid var(--brand); background: rgba(255, 110, 50, .06); color: var(--muted); font-size: 13.5px; border-radius: 0 8px 8px 0; }
.tip b { color: var(--ink); font-weight: 600; }
.err { color: var(--bad); margin: 0; font-size: 14px; }
.fine { color: var(--dim); font-size: 12.5px; }
.fine a { color: var(--muted); }

/* below the fold */
.pricing { max-width: 1060px; margin: 96px auto 0; }
.pricing h2 { font-size: 36px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 6px; }
.sub.small { font-size: 15px; margin: 0 0 24px; max-width: none; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--panel); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan b { font-weight: 600; font-size: 15px; }
.plan b i { font: normal 500 10.5px var(--mono); color: var(--brand); border: 1px solid rgba(255, 110, 50, .35); border-radius: 99px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.plan em { font-style: normal; font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.plan em small { font-size: 13px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.plan span { color: var(--muted); font-size: 14px; }
.plan.soon em, .plan.soon span { opacity: .55; }
.pricing .fine { margin-top: 14px; }

.foot { max-width: 1200px; margin: 110px auto 0; padding: 26px 24px 84px; border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; color: var(--dim); font-size: 13.5px; }
.foot .logo { font-size: 15px; }

/* bot check: invisible, but if Cloudflare ever needs a click it shows bottom-left */
.ts { position: fixed; left: 16px; bottom: 16px; z-index: 30; }

/* feedback */
.fb-open { position: fixed; right: 20px; bottom: 20px; z-index: 20; border: 1px solid var(--line-2); background: rgba(24, 24, 27, .9); backdrop-filter: blur(8px); color: var(--soft); border-radius: 99px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); transition: border-color .2s, color .2s, transform .2s var(--ease); }
.fb-open:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.fb { position: fixed; right: 20px; bottom: 70px; z-index: 21; width: min(360px, calc(100vw - 28px)); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: pop .25s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.fb-head { display: flex; justify-content: space-between; align-items: center; }
.fb-t { margin: 0; font-weight: 600; }
.fb-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.fb-x:hover { color: var(--ink); background: var(--panel-2); }
.fb-sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 12px; }
.fb-rate { display: flex; gap: 8px; margin-bottom: 10px; }
.fb-chip { flex: 1; border: 1px solid var(--line-2); background: var(--bg); color: var(--soft); border-radius: 8px; padding: 8px; font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.fb-chip:hover { border-color: var(--muted); }
.fb-chip[aria-pressed="true"] { border-color: var(--brand); background: rgba(255, 110, 50, .1); color: var(--ink); }
.fb textarea, .fb input { display: block; width: 100%; min-height: 0; max-height: none; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--soft); padding: 9px 11px; font: 13.5px/1.5 Geist, sans-serif; resize: vertical; margin-bottom: 8px; }
.fb textarea:focus, .fb input:focus { outline: none; border-color: rgba(255, 110, 50, .6); }
.fb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.fb-row .btn { height: 34px; padding: 0 14px; font-size: 13.5px; }
.fb-done { color: var(--good); font-size: 14px; margin: 10px 0 0; }
.was { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.was .thanks { color: var(--good); }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top { justify-content: space-between; }
  .hero { padding-top: 40px; }
  .app { grid-template-columns: 1fr; }
  .pane.right { border-left: 0; border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  main { padding: 0 14px; }
  .top { padding: 18px 14px; }
  .announce { font-size: 11.5px; }
  .pane { padding: 16px; }
  .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }
