/* Wren marketing site. Colours mirror design/tokens/colors.json in the product repo
   ("the signed card", 2026-11-02): ink on warm paper, no brand hue. One inverse object
   per screen; here it is the primary button. */
:root {
  --bg: #f3f2ef;          /* page: warm grey paper */
  --bg-2: #efede9;        /* sunken */
  --card: #ffffff;
  --ink: #1d1a17;         /* headings, the bird, the wordmark */
  --ink-2: #45413b;       /* body text */
  --muted: #6b665e;       /* secondary text */
  --line: #e3e0da;        /* hairline, decorative */
  --line-strong: #8a847a; /* functional border, 3:1 */
  --on-ink: #f6f3ee;      /* words on an ink fill */
  --ok: #2b7a3b;
  --radius: 12px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, strong { color: var(--ink); }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink-2); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
/* The bird (a static mark, ink) beside the word. */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.brand .mark { height: 20px; width: auto; color: var(--ink); flex: none; }
footer .brand .mark { height: 16px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-2); color: var(--on-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-2); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; max-width: 16ch; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); max-width: 44ch; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .note { width: 100%; color: var(--muted); font-size: 14px; margin-top: 4px; }
.shot { margin: 40px auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 30px 80px -40px rgba(29, 26, 23, 0.35); }
.shot img { width: 100%; }
.caption { font-size: 14px; color: var(--muted); margin: 10px 2px 0; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.sub { color: var(--ink-2); max-width: 60ch; margin: 0 0 36px; font-size: 18px; }

.outcome { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.outcome:first-of-type { border-top: 0; }
.outcome.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.outcome.flip .text { order: 2; }
.outcome ul { padding-left: 18px; margin: 12px 0 0; color: var(--ink-2); }
.outcome li { margin: 6px 0; }
.outcome .limit { margin-top: 14px; font-size: 14px; color: var(--muted); }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 20px 60px -36px rgba(29, 26, 23, 0.4); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 6px 0 0; color: var(--ink-2); }

/* Asks: the owner's words, with the outcome each one buys. */
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ask { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 16px; color: var(--ink); }
.ask q { quotes: "\201C" "\201D"; }
.ask q::before, .ask q::after { color: var(--muted); font-weight: 600; }
.ask .why { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 820px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; color: var(--ink); }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; margin: 14px 0 18px; color: var(--ink-2); }
.plan li { margin: 5px 0; }
.plan.featured { border-color: var(--ink); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer .brand { font-size: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Prose page (Get started) */
.prose { max-width: 740px; }
.prose h2 { margin-top: 48px; }
.prose ol, .prose ul { color: var(--ink-2); padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose .tip { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); font-size: 15px; }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .outcome, .outcome.flip { grid-template-columns: 1fr; gap: 22px; }
  .outcome.flip .text { order: 0; }
  .grid, .asks, .plans { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 28px; }
  section { padding: 48px 0; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412; --bg-2: #100e0c; --card: #201d1a; --ink: #f2efea; --ink-2: #cfc9c0; --muted: #a39d93;
    --line: #34302b; --line-strong: #7a7369; --on-ink: #161412; --ok: #7fd08e;
  }
  :root:not([data-theme="light"]) .btn-primary:hover { background: #ffffff; }
  :root:not([data-theme="light"]) .shot, :root:not([data-theme="light"]) .frame { box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7); }
}

/* Invitation form: one row, the button is the inverse object. */
.invite { max-width: 520px; }
.invite-row { display: flex; gap: 8px; }
.invite input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); }
.invite input::placeholder { color: var(--muted); }
.invite input:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); border-color: var(--ink); }
.invite .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.invite-status { font-size: 14px; color: var(--muted); margin: 8px 2px 0; min-height: 1.4em; }
.invite-status:empty { display: none; }
@media (max-width: 520px) { .invite-row { flex-direction: column; } }
.invite .note { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Legal pages: long prose, one column, tables for providers. */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 14px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 2px 0; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}


/* Pricing: two picks (cards that act as radio buttons) and a running total. */
.pick { margin-top: 30px; }
.pick-title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 14px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; }
.options { display: grid; gap: 14px; }
.options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.options-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font: inherit; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; cursor: pointer; }
.opt:hover { border-color: var(--line-strong); }
.opt.is-on { border: 2px solid var(--ink); padding: 19px 19px 17px; }
.opt.is-on::after { content: "\2713"; position: absolute; top: 14px; right: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; display: grid; place-items: center; }
.opt-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.opt-price { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.opt-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.opt-text { font-size: 15px; line-height: 1.45; }
.opt-foot { font-size: 13px; color: var(--muted); margin-top: 6px; }
.opt .badge { position: absolute; top: -11px; left: 16px; font-size: 12px; font-weight: 600; background: var(--ink); color: var(--on-ink); padding: 3px 10px; border-radius: 999px; }
.pick-note { color: var(--muted); font-size: 14px; max-width: 760px; margin: 12px 0 0; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.total-label { font-weight: 600; color: var(--ink); }
.total-amount { font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 860px) { .options-2, .options-4 { grid-template-columns: 1fr; } .opt.is-on .badge { top: -11px; } }
