:root {
  --bg: #14171a;
  --surface: #1c2126;
  --surface-2: #232a30;
  --line: #2f383f;
  --text: #e9ede9;
  --muted: #8d9a92;
  --sage: #8fbf9f;
  --coral: #e8836b;
  --gold: #dfb35c;
  --accent: var(--sage);
  --radius: 14px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -260px, #1f2a25 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, "Segoe UI", -apple-system, sans-serif;
}

body[data-mode="roast"] { --accent: var(--coral); }
body[data-mode="hype"]  { --accent: var(--gold); }

a { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.wrap-prose { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* --------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 20px;
  background: rgba(20, 23, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--serif); font-size: 21px;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.nav-brand span { color: var(--sage); }
.nav a.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a.nav-link:hover { color: var(--text); }
.nav-account { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pill {
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.pill strong { color: var(--sage); font-weight: 600; }
.btn-sm {
  padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600;
  color: #121a15; background: var(--sage); border: 0; border-radius: 8px;
  text-decoration: none; cursor: pointer; display: inline-block;
}
.btn-sm.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-sm.ghost:hover { color: var(--text); border-color: var(--accent); }

/* -------------------------------------------------------------------- hero */

.hero { padding: 66px 0 30px; text-align: center; }
.hero h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 8vw, 60px); line-height: 1.05; letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero p.sub {
  margin: 18px auto 0; max-width: 460px;
  font-size: 18px; color: var(--muted);
}
.hero .trust { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ panels */

.panel {
  display: grid; gap: 18px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}

.drop {
  display: grid; place-items: center; min-height: 210px; padding: 20px;
  border: 1.5px dashed var(--line); border-radius: 11px; background: var(--surface-2);
  cursor: pointer; transition: border-color .18s, background .18s;
}
.drop:hover, .drop:focus-visible, .drop.is-over {
  border-color: var(--accent); background: #262f34; outline: none;
}
.drop.has-image { padding: 10px; border-style: solid; }
.drop-copy { display: grid; gap: 5px; justify-items: center; text-align: center; }
.drop-icon { font-size: 26px; color: var(--accent); }
.preview { max-width: 100%; max-height: 340px; border-radius: 8px; display: block; }

.modes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 0; padding: 0; border: 0;
}
.mode {
  position: relative; display: grid; gap: 2px; padding: 11px 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode-name { font-weight: 600; font-size: 15px; }
.mode-hint { font-size: 12px; color: var(--muted); }
.mode:hover { border-color: #3d4850; }
.is-caption:has(:checked) { border-color: var(--sage);  background: #1e2a23; }
.is-roast:has(:checked)   { border-color: var(--coral); background: #2b211d; }
.is-hype:has(:checked)    { border-color: var(--gold);  background: #2a2519; }
.mode:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; color: var(--muted); }

input[type="text"], input[type="email"] {
  width: 100%; padding: 11px 13px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 15px;
}
input:focus { border-color: var(--accent); outline: none; }
input::placeholder { color: #6d7a73; }

.go {
  padding: 14px; font: inherit; font-size: 16px; font-weight: 650;
  color: #121a15; background: var(--accent); border: 0; border-radius: 10px;
  cursor: pointer; transition: filter .16s, transform .08s;
}
.go:hover:not(:disabled) { filter: brightness(1.08); }
.go:active:not(:disabled) { transform: translateY(1px); }
.go:disabled { opacity: .38; cursor: not-allowed; }
.go.is-busy { color: transparent; position: relative; }
.go.is-busy::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px;
  border: 2px solid #121a15; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.quota { margin: 0; text-align: center; min-height: 18px; }

/* ----------------------------------------------------------------- results */

.results { display: grid; gap: 12px; margin-top: 22px; }

.card {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--heat, var(--accent));
  border-radius: 11px; animation: rise .28s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.card[data-heat="1"] { --heat: var(--sage); }
.card[data-heat="2"] { --heat: var(--gold); }
.card[data-heat="3"] { --heat: var(--coral); }
.card-text { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.heat {
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--heat, var(--accent));
}
.copy {
  padding: 6px 12px; font: inherit; font-size: 13px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
}
.copy:hover { color: var(--text); border-color: var(--accent); }
.copy.done { color: var(--sage); border-color: var(--sage); }

.notice {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 11px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice.warn { border-left-color: var(--coral); }
.notice .btn-sm { margin-top: 12px; }

/* -------------------------------------------------------------- sections */

section.band { padding: 62px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.band h2 {
  margin: 0 0 8px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 5vw, 34px);
}
.band > .wrap-wide > p.lede, .band > .wrap > p.lede {
  margin: 0 0 30px; color: var(--muted); max-width: 520px;
}

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step {
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step .n {
  display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; color: #121a15;
  background: var(--sage); border-radius: 50%;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.samples { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sample {
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.sample .tone {
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.sample blockquote {
  margin: 10px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.45;
}

/* ------------------------------------------------------------------ pricing */

.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier {
  display: grid; gap: 14px; align-content: start; padding: 26px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.tier.featured { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage) inset; }
.tier .tag {
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--sage);
}
.tier .price { font-family: var(--serif); font-size: 42px; line-height: 1; }
.tier .price small { font-size: 15px; color: var(--muted); font-family: inherit; }
.tier .what { color: var(--muted); font-size: 15px; margin: 0; }
.tier ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.tier li + li { margin-top: 5px; }

/* -------------------------------------------------------------------- faq */

.faq { display: grid; gap: 2px; }
.faq details {
  padding: 16px 0; border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary:hover { color: var(--sage); }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ------------------------------------------------------------------- prose */

.prose { padding: 50px 0 20px; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 6vw, 40px); margin: 0 0 6px; }
.prose h2 { font-size: 19px; margin: 34px 0 8px; }
.prose p, .prose li { color: #c9d2cc; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

/* ------------------------------------------------------------------ footer */

.foot {
  margin-top: 60px; padding: 30px 20px 44px;
  border-top: 1px solid var(--line); text-align: center;
}
.foot nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.foot a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--text); }
.foot p { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 13px; }
