/* Post for Site — one stylesheet.
   Fonts are a system stack: no Google Fonts request, which keeps first paint
   instant and avoids sending every visitor's IP to a third party on a product
   that sells privacy-adjacent restraint. */

:root {
  color-scheme: light dark;

  --bg-top: #f6f3ee;
  --bg-mid: #efeae2;
  --bg-bot: #1a1a1a;

  --panel: #ffffff;
  --panel-2: #faf8f4;
  --chrome: #f3efe8;

  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #63605b;
  --line: #e2dcd3;
  --line-strong: #c8c2b8;

  --accent: #141414;
  --accent-ink: #ffffff;
  --ok: #15803d;
  --ok-bg: #ecfdf5;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --err: #9f1239;
  --err-bg: #fff1f2;
  --x-bg: #111111;
  --li-bg: #e8f0fe;
  --li-ink: #0a5cb8;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 80px -24px rgba(0, 0, 0, 0.28);

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #16151a;
    --bg-mid: #101014;
    --bg-bot: #050506;

    --panel: #17171b;
    --panel-2: #1d1d22;
    --chrome: #1f1f25;

    --ink: #f2f0ec;
    --ink-2: #d6d3cd;
    --muted: #9d9a94;
    --line: #2e2e36;
    --line-strong: #43434e;

    --accent: #f2f0ec;
    --accent-ink: #101014;
    --ok: #4ade80;
    --ok-bg: #052e1a;
    --warn: #fcd34d;
    --warn-bg: #2e2408;
    --err: #fda4af;
    --err-bg: #3b0d17;
    --x-bg: #f2f0ec;
    --li-bg: #10243d;
    --li-ink: #7fb2f0;

    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px -24px rgba(0, 0, 0, 0.7);
  }
  .plat.x { color: #101014 !important; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bot) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :focus-visible { outline-color: #7fb2f0; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- shell ---------- */

/* The shell is exactly one viewport tall so the browser-window metaphor holds:
   the page itself never scrolls, only the stage inside it. Flex children need
   an explicit min-height:0, otherwise they refuse to shrink below their content
   and push the whole document taller than the screen. */
.shell {
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
  max-width: 1140px;
  width: 100%;
  margin-inline: auto;
}

.brand {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-actions { display: flex; align-items: center; gap: 10px; }

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}
.chip.is-licensed { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.is-spent { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

.link-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

.browser {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.chrome {
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.dots { display: flex; gap: 6px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots .r { background: #ff5f57; }
.dots .y { background: #febc2e; }
.dots .g { background: #28c840; }

.omnibox {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] {
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line);
  border-bottom-color: var(--panel);
  margin-bottom: -1px;
}

.stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
  position: relative;
}
.panel { display: none; }
.panel.is-active { display: block; animation: fadeIn 0.3s ease both; }

/* ---------- home ---------- */

.home-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 100%;
}

.samples {
  border-right: 1px solid var(--line);
  background: var(--panel-2);
  padding: 24px 22px;
}
.samples h2 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 14px;
}
.sample {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.sample .meta {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 8px;
}
.sample .body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.samples .note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.cta {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cta h1 {
  font-size: clamp(25px, 3.1vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.cta .sub {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 430px;
}

.field { margin-bottom: 4px; }
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}
input[type="url"], input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--panel-2);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input[type="url"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
input[aria-invalid="true"] { border-color: var(--err); }

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}
.examples .lbl { font-size: 12px; color: var(--muted); }
.example-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
}
.example-chip:hover { border-color: var(--line-strong); color: var(--ink); }

.hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 18px;
  transition: transform 0.12s ease, background 0.15s, opacity 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-block { width: 100%; margin-top: 12px; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--line-strong); color: var(--ink); }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ---------- banners ---------- */

.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.banner strong { display: block; margin-bottom: 2px; }
.banner .banner-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.banner.info { background: var(--panel-2); color: var(--ink-2); border-color: var(--line); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.error { background: var(--err-bg); color: var(--err); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner .btn { padding: 7px 12px; font-size: 12.5px; }
.banner.error .btn-ghost, .banner.warn .btn-ghost { border-color: currentColor; color: inherit; }

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

.content { padding: 34px 30px 52px; max-width: 760px; }
.content h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.content .lead {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.content h3 { font-size: 15px; margin-bottom: 4px; }

.cards { display: grid; gap: 12px; }
.card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--panel-2);
}
.card .n { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  align-items: stretch;
}
.price {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
}
.price.featured {
  background: var(--panel);
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.price .amt { font-size: 27px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.price .amt span { font-size: 13px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; font-size: 13px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.price ul li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.price .btn { margin-top: 14px; width: 100%; }

.licence-box {
  margin-top: 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel-2);
}
.licence-box h3 { margin-bottom: 6px; }
.licence-box p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.licence-form { display: flex; gap: 8px; flex-wrap: wrap; }
.licence-form input { flex: 1; min-width: 220px; font-family: var(--mono); font-size: 13px; }

.faq h3 { font-size: 14px; margin: 0 0 4px; }
.faq p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- wizard ---------- */

.wizard { padding: 30px 26px 44px; max-width: 700px; }
.progress { display: flex; gap: 6px; margin-bottom: 24px; }
.progress span { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.35s ease; }
.progress span.on i, .progress span.done i { width: 100%; }
.progress span.done i { background: var(--line-strong); }

.wizard h2 { font-size: 19px; margin-bottom: 6px; letter-spacing: -0.02em; }
.wizard .desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.source-line {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 18px;
  word-break: break-all;
}

.options { display: grid; gap: 10px; margin-bottom: 22px; }
.option {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--panel-2);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.option:hover { border-color: var(--line-strong); background: var(--panel); }
.option[aria-pressed="true"] { border-color: var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--ink); }
.option strong { display: block; font-size: 14px; margin-bottom: 3px; }
.option em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.tones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.tone {
  border: 1.5px solid var(--line);
  background: var(--panel-2);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.tone:hover { border-color: var(--line-strong); background: var(--panel); }
.tone[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tone[aria-pressed="true"] em { color: inherit; opacity: 0.75; }
.tone strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.tone em { display: block; font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- loading ---------- */

.loading {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
}
.loading .spinner { width: 22px; height: 22px; border-width: 2.5px; color: var(--line-strong); }
.loading .line { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); min-height: 20px; }
.loading .sub { font-size: 13px; color: var(--muted); max-width: 340px; line-height: 1.5; }

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

.results { padding: 30px 26px 44px; }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.results-head h2 { font-size: 19px; letter-spacing: -0.02em; }
.results-head .note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

.post {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
}
.post.is-busy { opacity: 0.6; }
.post-top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.plat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.plat.x { background: var(--x-bg); color: #fff; }
.plat.li { background: var(--li-bg); color: var(--li-ink); }
.angle { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.count.over { color: var(--err); font-weight: 600; }

.post-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 12px;
  flex: 1;
}
.fold-note {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 10px;
}
.post-why {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  line-height: 1.5;
}
.post-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.post-actions button, .post-actions a {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-actions button:hover:not(:disabled), .post-actions a:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.post-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.post-actions .sep { flex: 1; }

.upgrade {
  margin-top: 22px;
  padding: 18px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.upgrade .actions { justify-content: center; margin-top: 12px; }

/* ---------- toast ---------- */

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--panel);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease both;
  max-width: min(90vw, 460px);
  text-align: center;
}

.foot {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: color-mix(in srgb, var(--bg-bot) 20%, #ffffff);
  font-family: var(--mono);
  opacity: 0.55;
}

.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  /* Sample posts are the strongest proof we have, so on small screens they
     move below the form rather than disappearing. */
  .samples { order: 2; border-right: none; border-top: 1px solid var(--line); }
  .cta { order: 1; padding: 30px 22px; }
  .posts { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { padding: 10px; }
  /* Three items do not fit across a phone. The wordmark also appears as the
     eyebrow above the headline, so the top-left copy is the one to drop. */
  .brand-row > .brand:first-child { display: none; }
  .brand-row { justify-content: flex-end; }
  .brand-actions { gap: 8px; }
  .chip { font-size: 10.5px; padding: 4px 8px; }
  .link-btn { font-size: 11.5px; }
  .browser { border-radius: 12px; }
  .chrome { padding: 8px 10px; }
  .dots { display: none; }
  .content, .wizard, .results { padding-left: 18px; padding-right: 18px; }
  .cta { padding: 26px 18px 32px; }
  .cta h1 { font-size: 24px; }
  .tones { grid-template-columns: 1fr; }
  .brand-row .brand:first-child { font-size: 11px; }
  .results-head { align-items: flex-start; }
}

.content-actions { margin-top: 22px; }
.hint-spaced { margin-top: 16px; }

/* ══════════════ additions: richer landing, options, refine dialog ══════════════ */

.assurances {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.assurances li { display: flex; align-items: center; gap: 6px; }
.assurances li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.samples .sample .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.section-head { margin-top: 40px; }

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rule {
  border-left: 2px solid var(--line-strong);
  padding: 2px 0 2px 14px;
}
.rule h3 { font-size: 14px; margin-bottom: 4px; }
.rule p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.plainlist { list-style: none; display: grid; gap: 9px; }
.plainlist li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.plainlist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--line-strong);
}

.price .summary {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 38px;
}
.price ul li.absent { color: var(--muted); opacity: 0.7; }
.price ul li.absent::before { content: "· "; color: var(--muted); }
.price .tagline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.price.featured .tagline { color: var(--ink); }
.price.is-current { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }

.licence-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-bottom: 12px; }
.licence-fields .field { margin: 0; }
#licence-key { font-family: var(--mono); font-size: 13px; }

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pricing-notes h3 { font-size: 13px; margin-bottom: 4px; }
.pricing-notes p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.chosen-idea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.chosen-idea strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.chosen-idea span { color: var(--muted); }

.choice-block { margin-bottom: 22px; }
.choice-block h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 9px;
}

.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  border: 1.5px solid var(--line);
  background: var(--panel-2);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--line-strong); background: var(--panel); color: var(--ink); }
.pill[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.read-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  margin-bottom: 18px;
  overflow: hidden;
}
.read-panel summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.read-panel summary::-webkit-details-marker { display: none; }
.read-panel summary::before {
  content: "▸";
  color: var(--muted);
  transition: transform 0.15s;
  display: inline-block;
}
.read-panel[open] summary::before { transform: rotate(90deg); }
.read-panel .read-body { padding: 0 16px 16px; }
.read-panel h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 5px;
  font-weight: 500;
}
.read-panel ul { list-style: none; display: grid; gap: 5px; }
.read-panel li {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.read-panel li::before { content: "·"; position: absolute; left: 3px; color: var(--muted); }
.read-panel .dim li { color: var(--muted); }
.read-panel .note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 10px; font-style: italic; }

.post-actions .primary-action {
  border-color: var(--line-strong);
  font-weight: 600;
  color: var(--ink);
}
.post-actions .locked { opacity: 0.55; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
  animation: fadeIn 0.15s ease both;
}
.modal-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
}
.modal-card h3 { font-size: 17px; margin-bottom: 5px; letter-spacing: -0.01em; }
.modal-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.modal-card .pills { margin-bottom: 18px; }
.modal-card .field { margin-bottom: 16px; }
.modal-card .actions { justify-content: flex-end; }

@media (max-width: 900px) {
  .rules { grid-template-columns: 1fr; }
  .pricing-notes { grid-template-columns: 1fr; gap: 14px; }
  .licence-fields { grid-template-columns: 1fr; }
}

/* ══════════════ headings need air ══════════════
   Every section title gets a hairline and real space beneath it, so a title
   never sits directly on top of the text it introduces. */

.content h2 {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.content h2 + .lead { margin-top: -2px; }
.content .section-head { margin-top: 48px; }

.faq h3 {
  font-size: 14.5px;
  margin: 0 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.faq h3:first-child { padding-top: 0; border-top: none; }
.faq p { margin-bottom: 22px; }
.faq p:last-child { margin-bottom: 0; }

.card h3, .rule h3, .pricing-notes h3 { margin-bottom: 7px; }
.rule { padding-top: 4px; padding-bottom: 4px; }

.price h3 {
  font-size: 15px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.price.featured h3 { border-bottom-color: var(--line-strong); }

.wizard h2, .results-head h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.results-head h2 { border-bottom: none; padding-bottom: 0; margin-bottom: 4px; }

.choice-block h3 {
  padding-bottom: 8px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.modal-card h3 {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.samples h2 {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.licence-box h3 {
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

/* ══════════════ four plans, with launch pricing ══════════════ */

.price-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }

.price .amt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 26px;
  margin-bottom: 6px;
}
.price .amt .was {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration-thickness: 1.5px;
}
.price .amt span { font-size: 12.5px; font-weight: 500; color: var(--muted); }

.saving {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.save-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--ok-bg);
  color: var(--ok);
}
.save-note { font-size: 11px; color: var(--muted); }

.price .headline {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price .summary { min-height: 0; margin-bottom: 12px; font-size: 12px; }
.price ul { font-size: 12.5px; line-height: 1.65; }
.price h3 { font-size: 14px; }

@media (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* Keep the tagline slot reserved on every card so the prices line up, and let
   the four cards stretch to a common height. */
.price .tagline {
  min-height: 15px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price .tagline:empty { visibility: hidden; }
.price.is-current .tagline { color: var(--ok); }

/* ══════════════ the founder's own note, length, and what we promise ══════════════ */

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  background: var(--panel-2);
  color: var(--ink);
  resize: vertical;
  min-height: 74px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
textarea::placeholder { color: var(--muted); opacity: 0.75; }

.choice-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

.optional {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
  vertical-align: 1px;
}

/* Said plainly, where it is actually read — not buried in the policy page. */
.assurance {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-2);
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 22px 0;
}
.assurance strong {
  display: block;
  color: var(--ink-2);
  margin-bottom: 3px;
  font-size: 13px;
}
.assurance.compact { margin: 0 0 18px; }

.modal-card textarea { min-height: 62px; font-size: 13.5px; }
.modal-card .choice-note { margin-top: 7px; }

/* ══════════════ pricing, rebuilt: three cards and a billing toggle ══════════════ */

.price-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }

.price { padding: 20px; }
.price h3 { font-size: 15px; padding-bottom: 10px; margin-bottom: 12px; }

/* One price line: struck anchor, the price, the period, the saving. */
.price .amt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 15px;
  margin-bottom: 12px;
}
.price .amt .now { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.price .amt .was { font-size: 15px; font-weight: 500; color: var(--muted); }
.price .amt span { font-size: 13px; font-weight: 500; color: var(--muted); }
.price .amt .save-badge { margin-left: 2px; }

.price .headline {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  margin-bottom: 10px;
}
.price .summary,
.price .billing-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 0;
}
.price ul { font-size: 13px; line-height: 1.7; }
.price ul li { margin-bottom: 1px; }

.billing-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  margin-bottom: 14px;
}
.billing-option {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.billing-option:hover { color: var(--ink); }
.billing-option[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.price-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* Pricing needs more room than prose does. */
.content.content-wide { max-width: 1040px; }

/* Reserved so the price lines up across all three cards. */
.billing-slot { min-height: 40px; margin-bottom: 12px; display: flex; align-items: center; }
.billing-toggle { margin-bottom: 0; }

/* The reserved toggle row only earns its space when the cards sit side by
   side. Stacked, it is just a hole above the price. */
@media (max-width: 900px) {
  .billing-slot:empty { display: none; }
  .price .tagline:empty { display: none; }
}
