/* The public pages (home, pricing, terms, privacy, refunds), in the design of DESIGN.md: black-and-white chrome,
   colour only in the illustrations. Same tokens as the app (app.css). */
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/fonts/outfit.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #ffffff; --panel: #ffffff; --surface: #f5f5f5; --ink: #18181b; --muted: #45515e; --muted-light: #86909c;
  --line: rgba(0, 0, 0, 0.08); --line-strong: rgba(0, 0, 0, 0.16); --border: #181e25; --ok: #15803d;
  --coral: #f05223; --coral-2: #ff7a50; --sky: #0284c7; --sky-2: #38bdf8; --sage: #10b981; --sage-2: #34d399;
  --shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', var(--font);
  --gutter: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11; --panel: #18181b; --surface: #232327; --ink: #f4f4f5; --muted: #b4b4bb; --muted-light: #8b8b94;
    --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.2); --border: #e4e4e7; --ok: #4ade80;
    --shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
@media (max-width: 1023px) { :root { --gutter: 24px; } }
@media (max-width: 767px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Navigation: logo left, links and the two buttons right; on a phone the links fold into a menu. */
.site-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-top .brand { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; margin-right: auto; }
.site-top nav { display: flex; gap: 12px; align-items: center; }
.site-top nav a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 9999px; }
.site-top nav a:hover { background: var(--surface); }
.site-top nav a[aria-current] { font-weight: 500; background: var(--surface); }
.site-menu { display: none; position: relative; }
.site-menu summary { list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 9999px; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu[open] nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; gap: 2px; min-width: 180px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 767px) {
  .site-top > nav { display: none; }
  .site-menu { display: block; }
  .site-top .btn-secondary { display: none; }
}

/* Buttons: pills, black for the main action, an outline for the other. */
.cta, .btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: .5rem 1.25rem; border-radius: 9999px; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s; }
.cta, .btn-primary { background: var(--ink); color: var(--bg); font-weight: 500; border: 1px solid var(--ink); }
.cta:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface); }
.btn-lg { padding: .75rem 1.6rem; font-size: 1.05rem; }

main { max-width: 860px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
main.wide { max-width: 1200px; }

/* Home: the hero over flat geometric shapes, three floating pills, then the card grid. */
.hero { position: relative; text-align: center; padding: 72px 0 40px; isolation: isolate; }
.hero-art { position: absolute; inset: -40px calc(-1 * var(--gutter)) 0; z-index: -1; width: calc(100% + 2 * var(--gutter)); height: calc(100% + 40px); pointer-events: none; }
.hero-copy { position: relative; max-width: 730px; margin: 0 auto; }
@media (max-width: 1023px) { .hero-art { opacity: .35; } }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 auto 28px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .875rem; }

.pills { display: flex; gap: 32px; justify-content: center; margin: 24px 0 64px; }
.feature-pill { display: flex; align-items: center; gap: 14px; padding: 1.5rem 2rem; background: var(--panel); border-radius: 9999px; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; flex: 1 1 0; max-width: 360px; }
.feature-pill b { display: block; font-size: 1.125rem; font-weight: 500; line-height: 1.25; }
.feature-pill div > span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.icon-dot { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.icon-dot svg { width: 22px; height: 22px; }
.icon-dot.coral { background: var(--coral); } .icon-dot.sky { background: var(--sky); } .icon-dot.sage { background: var(--sage); }
@media (max-width: 1023px) { .pills { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; gap: 16px; } .feature-pill { flex: 0 0 300px; scroll-snap-align: start; } }
@media (max-width: 767px) { .pills { flex-direction: column; overflow: visible; } .feature-pill { flex: none; max-width: none; border-radius: 28px; } }

.section-title { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.4; margin: 0 0 18px; }
.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 64px; }
.flagship { position: relative; overflow: hidden; min-height: 460px; border-radius: 3.75rem; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #18181b; }
.flagship svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flagship::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%); }
.flagship > div { position: relative; z-index: 1; }
.flagship .tag { font-size: .8125rem; opacity: .85; }
.flagship h3 { font-family: var(--font-display); font-weight: 500; font-size: 2.25rem; line-height: 1.15; margin: 6px 0 8px; }
.flagship p { margin: 0; opacity: .9; max-width: 440px; }
.badge-new { position: absolute; top: 28px; right: 28px; z-index: 1; padding: 3px 10px; border-radius: 9999px; background: #fff; color: #18181b; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.stack { display: grid; gap: 20px; }
.small-card { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; }
.small-card .thumb { flex: none; width: 96px; aspect-ratio: 9 / 16; border-radius: 1.5rem; overflow: hidden; }
.small-card .thumb svg { display: block; width: 100%; height: 100%; }
.small-card h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 500; }
.small-card p { margin: 0; color: var(--muted); font-size: .875rem; }
.small-card .tag { display: block; color: var(--muted-light); font-size: .8125rem; margin-top: 8px; }
@media (max-width: 1023px) { .showcase { grid-template-columns: 1fr; } .flagship { min-height: 360px; border-radius: 40px; } }

.price-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 24px; }
.price-strip div { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.price-strip b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.2; }
.price-strip span { color: var(--muted); font-size: .875rem; }
.closing { text-align: center; padding: 48px 0 8px; }

/* Pricing and the legal pages. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 500; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.free { color: var(--ok); font-weight: 600; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
td, th { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; white-space: nowrap; }
.doc h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin-top: 0; }
.doc h2 { margin-top: 32px; font-size: 1.25rem; font-weight: 600; }
footer { border-top: 1px solid var(--line); padding: 24px var(--gutter); text-align: center; color: var(--muted); font-size: .875rem; }
footer a { color: var(--muted); margin: 0 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .cta:hover, .btn-primary:hover { transform: none; } }
@media (max-width: 767px) { .flagship { min-height: 540px; padding: 28px; border-radius: 32px; } .flagship h3 { font-size: 1.75rem; } .flagship svg { opacity: .6; } }
