/* Plume — plumeapp.net. One stylesheet. Colours and type follow design/still-life-v2/tokens.json:
   a white page, three greys of ink, one accent (the blue spark), DM Sans only. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-raised: #ffffff;
  --line: #ebebeb;
  --line-dashed: #bdbdbd;
  --ink: #222222;
  --ink-2: #444444;
  --muted: #6a6a6a;
  --primary: #222222;
  --on-primary: #ffffff;
  --spark: #2f6fed;
  --mark-bg: #fff4c2;
  --font: "DM Sans", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
  --measure: 40rem;
  --wide: 68rem;
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1c1c1e;
    --surface-raised: #242426;
    --line: #2c2c2e;
    --line-dashed: #5a5a5e;
    --ink: #f5f5f5;
    --ink-2: #d1d1d6;
    --muted: #a1a1a6;
    --primary: #f5f5f5;
    --on-primary: #111111;
    --spark: #6ea0ff;
    --mark-bg: #3a3320;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.025em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.015em; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.35rem 0; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }
p, li { text-wrap: pretty; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--line-dashed); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 4px; }

code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--surface); padding: 0.1em 0.3em; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 0.75rem; z-index: 10; background: var(--bg); padding: 0.5rem 0.75rem; border-radius: 8px; }

/* ------------------------------------------------------------------ header */

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; text-decoration: none; padding: 4px 0; }
.brand img { width: auto; height: 32px; }
.site-nav ul { display: flex; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; padding: 0.5rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-dashed); }

/* ------------------------------------------------------------------ main */

main { display: block; }
.page { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.page-wide { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 2rem; }

.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 1.5rem; }
.fine { font-size: 0.9375rem; color: var(--muted); }
.crumbs { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }

.spark { display: inline-block; width: 0.8em; height: 0.8em; color: var(--spark); vertical-align: -0.05em; }

/* Buttons: at most one filled button per screen, as in the app. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 160ms ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.98); }
.button svg { width: 18px; height: 18px; flex: none; }
.cta-row { margin: 1.75rem 0 0.75rem; }

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

.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.25rem); letter-spacing: -0.035em; max-width: 14ch; margin: 0 auto 1.25rem; }
.hero .lede { max-width: 36rem; margin: 0 auto; }
.hero .fine { margin-top: 0.5rem; }

.stage-figure { margin: 3rem auto 0; max-width: 46rem; }
.stage-figure img { width: 100%; border-radius: var(--radius); }
.stage-figure figcaption { margin-top: 0.9rem; font-size: 0.9375rem; color: var(--muted); }

.section-title { text-align: center; margin: 0 0 2.5rem; }
.steps { padding: 5rem 0 2rem; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: 3rem;
  align-items: center;
  max-width: 58rem;
  margin: 0 auto 4.5rem;
}
.step:nth-of-type(even) { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); }
.step:nth-of-type(even) .step-text { order: 2; }
.step h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); letter-spacing: -0.025em; margin: 0 0 0.9rem; }
.step-text p { color: var(--ink-2); max-width: 32rem; }
.step-n { font-size: 0.9375rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.step-n .spark { width: 0.9rem; height: 0.9rem; }

.phone-stage { background: var(--surface); border-radius: 36px; padding: 28px; display: flex; justify-content: center; }
.phone { width: 100%; max-width: 274px; border-radius: 34px; border: 1px solid var(--line); background: var(--bg); }

.band { max-width: 58rem; margin: 0 auto; padding: 4rem 0; border-top: 1px solid var(--line); }
.not-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.not-list li { margin: 0; color: var(--ink-2); }
.not-list strong { display: block; color: var(--ink); font-size: 1.1875rem; margin-bottom: 0.3rem; }

.four-lines { list-style: none; padding: 0; margin: 0 auto 1.5rem; max-width: 40rem; counter-reset: line; }
.four-lines li { counter-increment: line; position: relative; padding: 0.9rem 0 0.9rem 2.6rem; margin: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.four-lines li:last-child { border-bottom: 0; }
.four-lines li::before { content: counter(line); position: absolute; left: 0; top: 0.9rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 0.875rem; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.band .more { text-align: center; color: var(--muted); }

.closing { text-align: center; padding: 4rem 0 3rem; border-top: 1px solid var(--line); max-width: 58rem; margin: 0 auto; }
.closing h2 { margin-top: 0; }

/* ------------------------------------------------------------------ content pages */

.page h2 { scroll-margin-top: 1rem; }
.faq section { border-top: 1px solid var(--line); padding: 0.25rem 0 0.5rem; }
.faq h3 { margin-top: 1.25rem; }
.faq p { color: var(--ink-2); }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; color: var(--ink); border-bottom-color: var(--line-dashed); }
tbody th { font-weight: 600; width: 28%; }
td { color: var(--ink-2); }
table.compare { min-width: 34rem; }
table.compare tbody th { width: 22%; }

.card-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1rem; }
.card-list li { margin: 0; }
.card-list a { display: block; text-decoration: none; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.4rem; }
.card-list a:hover { border-color: var(--line-dashed); }
.card-list strong { display: block; font-size: 1.125rem; margin-bottom: 0.35rem; }
.card-list span { color: var(--ink-2); font-size: 0.9875rem; }

.disclaimer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }

.logo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.logo-tile { display: grid; place-items: center; min-height: 140px; border-radius: 20px; border: 1px solid var(--line); padding: 1.5rem; }
.logo-tile.light { background: #ffffff; }
.logo-tile.dark { background: #111111; }
.logo-tile img { max-height: 72px; width: auto; }
.downloads { font-size: 0.9875rem; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.shots .phone { border-radius: 22px; max-width: none; }

/* Legal pages, rendered from docs/legal */
.legal .effective { color: var(--muted); font-size: 0.9375rem; }
.legal h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.0625rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal blockquote { margin: 1rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 2px solid var(--line-dashed); color: var(--muted); }
.draft-note { background: var(--surface); border-radius: 16px; padding: 0.9rem 1.1rem; font-size: 0.9375rem; color: var(--ink-2); margin: 0 0 1.75rem; }
.toc { font-size: 0.9375rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.75rem 0; margin: 1.5rem 0 2rem; }
.toc p { margin: 0 0 0.25rem; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin: 0.15rem 0; }
mark.ph { background: var(--mark-bg); color: var(--ink); border-radius: 4px; padding: 0 0.2em; }

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

.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: 2.5rem var(--gutter) 3rem; display: grid; gap: 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.footer-legal li { margin: 0; }
.footer-legal a { font-weight: 600; font-size: 0.9875rem; padding: 0.3rem 0; display: inline-block; }
.footer-more { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.footer-more li { margin: 0; }
.footer-more a { color: var(--ink-2); padding: 0.3rem 0; display: inline-block; }
.footer-note { font-size: 0.875rem; color: var(--muted); margin: 0; max-width: 46rem; }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .site-header { padding: 1rem var(--gutter); }
  .brand img { height: 28px; }
  .site-nav ul { gap: 0 1rem; }
  .hero { padding-top: 1.25rem; }
  .stage-figure { margin-top: 2.25rem; }
  .steps { padding-top: 3.5rem; }
  .step, .step:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; margin-bottom: 3.5rem; }
  .step:nth-of-type(even) .step-text { order: 0; }
  .phone-stage { padding: 20px; border-radius: 28px; }
  .phone { max-width: 240px; }
  .not-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .band, .closing { padding: 3rem 0; }
  .four-lines li { font-size: 1.0625rem; }
  .logo-tiles { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .shots .phone { border-radius: 14px; }
  tbody th { width: auto; }
  table.compare { min-width: 0; }
  table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compare tr { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  table.compare th, table.compare td { display: block; border: 0; padding: 0.2rem 0; width: auto; }
  table.compare tbody th { width: auto; font-size: 1.0625rem; margin-bottom: 0.3rem; }
  table.compare td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
  table.compare td + td { margin-top: 0.5rem; }
}

@media (max-width: 420px) {
  .site-nav .nav-optional { display: none; }
  .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header nav, .site-footer .footer-more, .skip { display: none; }
  a { text-decoration: none; }
}
