:root {
  --bg: #ffffff;
  --surface: #f6f4f8;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --line: #e2dfe7;
  --ink: #a81fc4;      /* purple for text and links, 5.7:1 on white */
  --ink-fill: #c430e0; /* the app's purple, for shapes */
  --on-ink: #ffffff;
  --radius: 22px;
  --maxw: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d13;
    --surface: #1a1720;
    --text: #f5f5f7;
    --muted: #a8a6b0;
    --line: #2e2a37;
    --ink: #e48df5;
    --ink-fill: #c430e0;
    --on-ink: #1a0a1f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav a { margin-right: 16px; color: var(--muted); font-size: 15px; white-space: nowrap; }
nav a:last-child { margin-right: 0; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero: the mark writes itself, like it does on the app's empty canvas */
.hero { padding: 64px 0 40px; text-align: center; }
.hero .mark { width: min(220px, 52vw); height: auto; margin: 0 auto 8px; overflow: visible; }
.hero .mark path { fill: none; stroke: var(--ink-fill); stroke-width: 100; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: write 1.6s .2s ease-in-out forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .mark path { animation: none; stroke-dashoffset: 0; } }
.hero h1 { font: 700 clamp(44px, 9vw, 76px)/1.02 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero p.lead { font-size: clamp(19px, 3vw, 23px); color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.showcase { margin-top: 44px; display: flex; gap: 24px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.showcase .phone { width: min(260px, 70vw); }
.showcase .duo { width: min(560px, 100%); }
.showcase img { border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(60, 20, 90, .18); background: #fff; }
.caption { color: var(--muted); font-size: 14px; margin: 14px auto 0; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 12px; }
section .sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
/* Each card carries one of the app's colors, so the page is drawn with the same palette */
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dot, var(--ink-fill)); display: block; }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.facts { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.facts h3 { margin: 0 0 8px; font-size: 18px; }
.facts ul { margin: 0; padding-left: 20px; color: var(--muted); }
.facts li { margin: 4px 0; }

/* Text pages */
.prose { max-width: 720px; padding: 48px 0 72px; }
.prose h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.02em; }
.prose h2 { font-size: 24px; margin: 36px 0 8px; }
.prose .meta { color: var(--muted); margin-bottom: 28px; }
.prose ul { padding-left: 22px; }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 12px 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { margin: 10px 0 0; color: var(--muted); }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

.button { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer p { margin: 6px 0; max-width: 760px; }
