:root {
  --ink: #0c0d10;
  --ink-2: #121318;
  --ink-3: #181a20;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ecebe6;
  --mute: #9a9aa2;
  --dim: #8a8b92;
  --lamp: #ffb547;
  --lamp-soft: rgba(255, 181, 71, .14);
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.55 var(--sans); overflow-x: hidden;
  background-image: radial-gradient(900px 500px at 78% -120px, rgba(255, 181, 71, .09), transparent 70%);
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }

/* header */
.top {
  display: flex; align-items: center; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 18px 24px;
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; font-size: 17px; }
.bulb { width: 14px; height: 14px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px var(--lamp-soft), 0 0 22px 4px rgba(255, 181, 71, .45); }
.topnav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.topnav a { color: var(--mute); text-decoration: none; }
.topnav a:hover { color: var(--text); }

/* pills + buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px;
  border-radius: 999px; background: #f4f3ef; color: #0c0d10; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
}
.pill:hover { background: #fff; }
.pill-ghost { background: transparent; color: var(--text); border-color: var(--line-2); min-height: 36px; font-size: 14px; padding: 0 16px; }
.pill-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn {
  min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #f4f3ef; color: #0c0d10; font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.btn:hover { background: #fff; }
.btn-quiet { background: var(--ink-3); color: var(--text); }
.btn-quiet:hover { background: #20232b; }
.link { background: none; border: 0; padding: 0; color: var(--lamp); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 0 72px; }
.kicker { margin: 0 0 14px; color: var(--lamp); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
h1 {
  margin: 0; font: 400 clamp(36px, 6.4vw, 72px)/1.02 var(--display); letter-spacing: -.025em; max-width: 15ch;
}
h1 em { font-style: italic; color: var(--lamp); }
.lede { margin: 20px 0 0; max-width: 56ch; color: var(--mute); font-size: 18px; }

/* studio */
.studio {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--ink-2); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.preview { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.preview-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2c33; }
.addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch {
  border: 1px solid var(--line-2); background: var(--lamp-soft); color: var(--lamp); border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.switch[aria-checked="false"] { background: transparent; color: var(--mute); }
#preview { width: 100%; height: 440px; border: 0; display: block; background: #fff; }
.controls { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sliders { display: grid; gap: 16px; }
.slider { display: grid; gap: 8px; font-size: 14px; color: var(--mute); }
.slider span { display: flex; justify-content: space-between; }
.slider output { color: var(--text); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #2a2c33; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #2a2c33; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #f4f3ef; border: 3px solid var(--ink-2); box-shadow: 0 0 0 1px var(--line-2); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #f4f3ef; border: 3px solid var(--ink-2); }
.applies { margin: -4px 0 0; font-size: 13.5px; color: var(--dim); }
.applies b { color: var(--text); font-weight: 600; }
.grab { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px dashed rgba(255, 181, 71, .45); border-radius: var(--r); background: rgba(255, 181, 71, .05); }
.bookmarklet {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; flex: none;
  background: var(--lamp); color: #1d1405; font-weight: 600; text-decoration: none; cursor: grab;
  box-shadow: 0 8px 28px -8px rgba(255, 181, 71, .7);
}
.moon { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -4px -2px 0 0 #1d1405; }
.grab-help { display: grid; gap: 2px; font-size: 13.5px; color: var(--mute); min-width: 0; }
.grab-help b { color: var(--text); font-weight: 600; }
.flash { margin: -6px 0 0; min-height: 1.4em; font-size: 13.5px; color: var(--lamp); }
.phones { font-size: 14px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 14px; }
.phones summary { cursor: pointer; color: var(--text); }
.phones ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* bands */
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; margin-bottom: 28px; align-items: start; }
h2 { margin: 0; font: 400 clamp(28px, 3.6vw, 40px)/1.08 var(--display); letter-spacing: -.02em; }
.band-head p { margin: 0; color: var(--mute); max-width: 60ch; }

.siteform { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.field { display: grid; gap: 6px; flex: 1 1 260px; font-size: 13px; color: var(--mute); }
.field input {
  min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-2); font-size: 15px; width: 100%;
}
.trialnote { color: var(--dim); font-size: 13.5px; margin: 12px 0 18px; }
.sites { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sites li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sites li:first-child { border-top: 0; }
.sites li.on { background: var(--lamp-soft); }
.sites .h { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sites .v { color: var(--mute); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sites .act { margin-left: auto; display: flex; gap: 16px; }
.sites .empty { color: var(--dim); font-size: 14px; }
.filebtn { display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* reader */
.reader-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.paste { display: grid; gap: 14px; position: sticky; top: 16px; }
.paste textarea {
  width: 100%; resize: vertical; min-height: 160px; padding: 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--ink-2); font-size: 14px; line-height: 1.5;
}
.reader-ctl { display: grid; gap: 14px; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-2); }
.seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 999px; font-size: 13.5px; color: var(--mute); cursor: pointer; }
.seg button[aria-checked="true"] { background: #f4f3ef; color: #0c0d10; font-weight: 600; }

.page {
  --fs: 19px; --lw: 64ch; --bg: #111216; --fg: #d9d6cd; --hd: #f1eee6; --ac: #ffb547;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 5vw, 56px); min-height: 360px; font-size: var(--fs); line-height: 1.68; overflow-wrap: break-word;
}
.page > * { max-width: var(--lw); margin-left: auto; margin-right: auto; }
.page.tone-dusk { --bg: #1b1d24; --fg: #cfd3dc; --hd: #eef0f5; --ac: #9cc3ff; }
.page.tone-ember { --bg: #17110b; --fg: #e3cfb4; --hd: #f6e6cf; --ac: #ffb06b; }
.page.face-serif { font-family: var(--display); font-variation-settings: "opsz" 14; }
.page.face-sans { font-family: var(--sans); }
.page h1, .page h2, .page h3, .page h4 { color: var(--hd); font-family: var(--display); font-weight: 600; line-height: 1.2; margin-top: 1.4em; margin-bottom: .5em; letter-spacing: -.01em; }
.page h1 { font-size: 1.7em; } .page h2 { font-size: 1.4em; } .page h3 { font-size: 1.18em; }
.page > :first-child { margin-top: 0; }
.page p { margin-top: 0; margin-bottom: 1em; }
.page a { color: var(--ac); }
.page blockquote { border-left: 3px solid var(--ac); padding-left: 1em; margin-left: 0; color: var(--hd); font-style: italic; }
.page pre, .page code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; }
.page pre { white-space: pre-wrap; background: rgba(255, 255, 255, .04); padding: 1em; border-radius: 10px; }
.page .hint { color: var(--dim); font-style: italic; }

/* limits */
.limitlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.limitlist li { background: var(--ink); padding: 22px; color: var(--mute); font-size: 15px; }
.limitlist b { display: block; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.limitlist a { color: var(--lamp); }

/* unlock */
.unlock-card {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 181, 71, .07), transparent 60%), var(--ink-2);
}
.unlock-card p { color: var(--mute); max-width: 54ch; }
.gets { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.unlock-act { display: grid; gap: 14px; justify-items: start; }
.paid { margin: 0; color: var(--lamp); font-weight: 600; }
body.pro #pay, body.pro #payTop { display: none; }

.foot { max-width: 1180px; margin: 0 auto; padding: 32px 24px 48px; color: var(--dim); font-size: 13.5px; border-top: 1px solid var(--line); }

/* tablet */
@media (max-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .preview { border-right: 0; border-bottom: 1px solid var(--line); }
  #preview { height: 340px; }
  .band-head, .reader-grid, .unlock-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .paste { position: static; }
}
/* phone */
@media (max-width: 560px) {
  .top { padding: 14px 16px; gap: 12px; }
  .topnav { display: none; }
  #payTop { margin-left: auto; }
  main { padding: 0 16px; }
  .hero { padding: 28px 0 48px; gap: 26px; }
  .lede { font-size: 16.5px; }
  .controls { padding: 18px; }
  #preview { height: 300px; }
  .grab { flex-direction: column; align-items: flex-start; }
  .row .btn { flex: 1 1 auto; }
  .band { padding: 48px 0; }
  .limitlist { grid-template-columns: minmax(0, 1fr); }
  .siteform .btn { width: 100%; }
  .sites .act { margin-left: 0; }
  .foot { padding: 28px 16px 40px; }
}

/* FAQ */
.faqlist { margin: 0; display: grid; gap: 18px; max-width: 760px; }
.faqlist dt { color: var(--text); font-weight: 600; }
.faqlist dd { margin: 4px 0 0; color: var(--mute); font-size: 15px; }
.faqlist a { color: inherit; }
