/* Writezu — site styles. Midnight and gold: a deep navy ground, cool ivory text, and gold used
   sparingly — the main action, the logo, and the word being read. Shared by every page. */

@font-face {
  font-family: "Inter Var";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ground and surfaces, darkest to lightest */
  --night: #0b1120;
  --night-2: #0e1528;
  --panel: #131c31;
  --panel-2: #192440;
  --panel-3: #20304f;
  --line: #22304d;
  --line-2: #2e3f63;
  /* text */
  --ivory: #e8edf5;
  --mist: #9aa7bd;
  --dim: #6b7891;
  /* the accent */
  --gold: #dab660;
  --gold-hi: #ebcb7e;
  --gold-ink: #1a1406;
  --gold-wash: rgba(218, 182, 96, 0.12);
  /* status */
  --ok: #7fcfa0;
  --err: #f08c7a;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter Var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label: "Jakarta", "Inter Var", system-ui, sans-serif;
  --maxw: 1140px;

  /* The names the account pages were written against, pointed at the new palette. */
  --bg: var(--night);
  --bg2: var(--night-2);
  --panel2: var(--panel-2);
  --panel3: var(--panel-3);
  --border: var(--line);
  --border2: var(--line-2);
  --fg: var(--ivory);
  --muted: var(--mist);
  --faint: var(--dim);
  --gold2: var(--gold-hi);
  --gold-deep: #c99a33;
  --ink: var(--gold-ink);
  --serif: var(--display);
  --text: var(--ivory);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.gold { color: var(--gold-hi); }
.link { color: var(--gold-hi); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-family: var(--label); font-size: 15px; font-weight: 650;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn.primary { background: var(--gold); color: var(--gold-ink); }
.btn.primary:hover { background: var(--gold-hi); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ivory); }
.btn.ghost:hover { border-color: var(--mist); }
.btn.block { width: 100%; height: 48px; font-size: 15.5px; }
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* ── header ── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 750; font-size: 18px; letter-spacing: 0.005em; }
.brand img.mark { height: 22px; width: auto; }
footer .brand img.mark { height: 17px; }
.nav-links { display: flex; gap: 26px; margin-left: 24px; font-size: 14.5px; color: var(--mist); }
.nav-links a:hover { color: var(--ivory); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 460px) { .nav-cta .btn.ghost { display: none; } }

/* ── account pages (signup, sign in, forgot, reset, download) ── */
main.auth { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px 72px; }
.card {
  width: 100%; max-width: 448px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 34px 30px;
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.55);
}
@media (max-width: 480px) { .card { padding: 28px 20px; } }
.card.wide { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--label); font-size: 11.5px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold-hi); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; background: var(--night-2);
}
.card h1 { font-size: 28px; margin: 16px 0 6px; }
.card .sub { color: var(--mist); font-size: 15px; margin-bottom: 22px; }

.field { display: block; font-family: var(--label); font-size: 13px; font-weight: 600; color: var(--mist); margin: 14px 0 0; }
.field input {
  width: 100%; margin-top: 7px; padding: 12px 13px;
  background: var(--night-2); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ivory); font: inherit; font-family: var(--sans); font-weight: 400; font-size: 15px; outline: none;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }

.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 14px; margin-bottom: 10px;
  background: #ffffff; color: #1b1d22; border: 1px solid #d7dbe3; border-radius: 10px;
  font-family: var(--label); font-weight: 650; font-size: 14.5px;
}
.oauth-btn:hover { background: #eef1f6; }
.oauth-or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12.5px; margin: 6px 0 14px; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.msg { margin-top: 12px; font-size: 13.5px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.fine { font-size: 12.5px; color: var(--dim); margin-top: 16px; line-height: 1.55; }
.fine a { color: var(--gold-hi); }

.legal h2 { font-size: 20px; margin: 28px 0 8px; color: var(--ivory); }
.legal p { color: var(--mist); font-size: 15px; margin: 0 0 10px; max-width: 68ch; }
.legal ul { color: var(--mist); font-size: 15px; margin: 0 0 12px; padding-left: 20px; max-width: 68ch; }
.legal li { margin: 5px 0; }

/* ── homepage ── */
.hero { position: relative; padding: 76px 0 28px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -220px 0 auto; height: 620px; pointer-events: none;
  background: radial-gradient(48% 60% at 50% 0%, rgba(80, 116, 196, 0.22), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); margin: 20px 0 0; }
.hero h1 em { font-style: italic; color: var(--gold-hi); font-weight: 500; }
.hero .lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--mist); margin: 20px 0 0; max-width: 54ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
.hero .trust { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--dim); font-size: 13.5px; }
.hero .trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust svg { width: 15px; height: 15px; color: var(--mist); }

/* The prompter: a slide being read aloud, the words already said dimmed, the one now in gold. */
.prompter {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--night-2);
  box-shadow: 0 30px 80px rgba(2, 6, 18, 0.6);
}
.prompter-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); font-family: var(--label); font-size: 12.5px; color: var(--mist); }
.prompter-bar .live { display: inline-flex; align-items: center; gap: 6px; color: #f6a08e; font-weight: 700; letter-spacing: 0.06em; font-size: 11px; }
.prompter-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f07a63; }
.prompter-bar .clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ivory); }
.prompter-body { padding: 34px 30px 30px; min-height: 270px; }
.prompter-text { font-family: var(--display); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.5; color: var(--ivory); }
.prompter-text .w { transition: color .35s, opacity .35s; }
.prompter-text .w.read { color: var(--mist); opacity: 0.55; }
.prompter-text .w.now { color: var(--gold-hi); text-shadow: 0 0 22px rgba(240, 205, 120, 0.35); }
.prompter-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mist); }
.prompter-foot .meter { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.prompter-foot .meter i { width: 3px; border-radius: 2px; background: var(--gold); opacity: .85; animation: meter 1.1s ease-in-out infinite; }
.prompter-foot .meter i:nth-child(1) { height: 6px; animation-delay: -.2s; }
.prompter-foot .meter i:nth-child(2) { height: 12px; animation-delay: -.5s; }
.prompter-foot .meter i:nth-child(3) { height: 9px; animation-delay: -.8s; }
.prompter-foot .meter i:nth-child(4) { height: 14px; animation-delay: -.35s; }
.prompter-foot .meter i:nth-child(5) { height: 7px; animation-delay: -.65s; }
@keyframes meter { 50% { transform: scaleY(.45); } }
@media (prefers-reduced-motion: reduce) { .prompter-foot .meter i { animation: none; } .prompter-text .w { transition: none; } }

section.band { padding: 84px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.sec-head { max-width: 64ch; margin: 0 0 44px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { font-family: var(--label); color: var(--gold-hi); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 0; }
.sec-head p { color: var(--mist); font-size: 17px; margin: 16px 0 0; }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.tool .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; background: var(--night-2); border: 1px solid var(--line-2); color: var(--gold-hi); }
.tool .ic svg { width: 21px; height: 21px; }
.tool h3 { font-size: 21px; margin-bottom: 8px; }
.tool p { color: var(--mist); font-size: 14.5px; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.split .sec-head { margin-bottom: 0; position: sticky; top: 96px; }
@media (max-width: 900px) { .split .sec-head { position: static; } }
.list { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list > div { background: var(--panel); padding: 18px 22px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; }
.list svg { width: 20px; height: 20px; color: var(--gold-hi); margin-top: 2px; grid-row: span 2; }
.list b { font-family: var(--label); font-weight: 700; font-size: 15.5px; color: var(--ivory); }
.list span { color: var(--mist); font-size: 14.5px; }

.note { margin-top: 18px; font-size: 13.5px; color: var(--dim); }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principle { padding: 22px 0 0; border-top: 2px solid var(--line-2); }
.principle h3 { font-size: 19px; margin-bottom: 8px; }
.principle p { color: var(--mist); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step .n { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--label); font-weight: 750; font-size: 14px; color: var(--gold-ink); background: var(--gold); margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--mist); font-size: 14px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-family: var(--label); font-weight: 650; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-hi); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--mist); font-size: 14.5px; padding: 0 0 18px; max-width: 66ch; }

.final { text-align: center; padding: 92px 0; }
.final h2 { font-size: clamp(32px, 4.6vw, 50px); }
.final p { color: var(--mist); font-size: 17px; margin: 16px auto 0; max-width: 52ch; }
.final .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ── download page ── */
.dlcard { text-align: center; }
.dlcard .big { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 16px; }
.dlmeta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; color: var(--dim); font-size: 13px; }
.dlmeta span { display: inline-flex; align-items: center; gap: 7px; }
.dlmeta svg { width: 16px; height: 16px; }
.note-card { max-width: 640px; margin: 30px auto 0; text-align: left; background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.note-card h3 { font-size: 17px; margin-bottom: 6px; }
.note-card p { color: var(--mist); font-size: 14px; }
.dlcard .steps { margin-top: 30px; text-align: left; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--mist); font-size: 13.5px; margin-top: auto; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ivory); }
.foot-copy { color: var(--dim); font-size: 12.5px; }
.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; }
