/* Bubble's site: the web app's palette (web/src/styles.css), the system's own fonts, no scripts. */
:root {
  color-scheme: light dark;

  /* Ink and amber: the same in both themes, as the app's sidebar. */
  --ink: #0f2a33;
  --ink-tile: #17394a;
  --ink-active: #1f4a5b;
  --ink-text: #cfdfe2;
  --ink-muted: #9fb8bf;
  --ink-strong: #ffffff;
  --ink-edge: #4b7482;
  --amber: #f2a33a;
  --amber-hover: #f5b45e;
  --on-amber: #16242a;

  --bg: #f5f7f7;
  --surface: #ffffff;
  --surface-sunk: #eef3f4;
  --text: #12262d;
  --text-secondary: #55686e;
  --divider: #dfe6e7;
  --accent: #0e6b7a;
  --link: #0e6b7a;
  --focus: #0e6b7a;
  --icon-tint: #e6f1f3;
  --shadow: 0 1px 2px rgb(15 42 51 / 0.06);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --gutter: 16px;
  --width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0b1f26;
    --ink-tile: #15333f;
    --bg: #10252c;
    --surface: #16323b;
    --surface-sunk: #1b3a44;
    --text: #e6eff2;
    --text-secondary: #a7bcc3;
    --divider: #26434c;
    --accent: #49b5c5;
    --link: #6fcbd8;
    --focus: #7fd3df;
    --icon-tint: #1f4550;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
main { flex: 1; }
a { color: var(--link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 8px 14px; border-radius: 8px;
  background: var(--amber); color: var(--on-amber); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header: ink, like the app's sidebar. */
.site-header { background: var(--ink); color: var(--ink-text); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-strong); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.logo { flex: none; display: block; width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink-text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink-strong); }
.site-header a:focus-visible, .hero a:focus-visible, .cta a:focus-visible { outline-color: var(--amber); }
@media (max-width: 640px) { .nav .nav-link { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button-primary { background: var(--amber); color: var(--on-amber); }
.button-primary:hover { background: var(--amber-hover); }
.button-ghost { border: 1.5px solid var(--ink-edge); color: var(--ink-strong); }
.button-ghost:hover { border-color: var(--ink-muted); background: var(--ink-tile); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.nav .button-primary { color: var(--on-amber); }
.button .icon { width: 18px; height: 18px; }

/* Hero */
.hero { background: var(--ink); color: var(--ink-text); padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--ink-tile); color: var(--ink-text); font-size: 14px; font-weight: 600;
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--amber); }
.hero h1 { margin: 0 0 18px; color: var(--ink-strong); font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { margin: 0 0 30px; max-width: 34em; font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.availability { margin: 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: 15px; }
.availability li { margin: 4px 0; }
.availability strong { color: var(--ink-text); font-weight: 600; }
.hero-art { justify-self: center; width: 100%; max-width: 380px; }
.hero-art svg { width: 100%; height: auto; }
.art-ink { fill: var(--ink-active); }
.art-line { fill: var(--ink-text); }
.art-line-dim { opacity: 0.45; }
.art-amber { fill: var(--amber); }
.art-amber-line { fill: var(--on-amber); opacity: 0.55; }
.art-badge { fill: var(--ink-tile); stroke: var(--ink); stroke-width: 4; }
.art-lock { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { max-width: 280px; order: -1; justify-self: start; }
}
@media (max-width: 480px) {
  .actions .button { width: 100%; }
  .hero-art { max-width: 200px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-sunk { background: var(--surface-sunk); }
.section-head { max-width: 40em; margin: 0 0 36px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(30px, 4.6vw, 42px); }
.section-head p { margin: 0; color: var(--text-secondary); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 52px 0; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { padding: 24px; border: 1px solid var(--divider); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 16px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--icon-tint); color: var(--accent); }
.card-icon .icon { width: 22px; height: 22px; }
.card-lead { border-color: transparent; background: var(--ink); }
.card-lead h3 { color: var(--ink-strong); }
.card-lead p { color: var(--ink-text); }
.card-lead .card-icon { background: var(--ink-tile); color: var(--amber); }
.card-muted { background: transparent; box-shadow: none; border-style: dashed; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-sunk); color: var(--text-secondary); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }

/* How privacy works */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 56px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--ink); color: var(--amber); font-weight: 700; font-size: 16px;
}
.steps h3 { margin: 4px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--text-secondary); font-size: 16px; }
.facts { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--divider); box-shadow: var(--shadow); }
.facts h3 { margin: 0 0 10px; font-size: 17px; }
.facts h3:not(:first-child) { margin-top: 22px; }
.facts ul { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 16px; }
.facts li { margin: 5px 0; }
.facts .more { margin: 22px 0 0; font-size: 16px; }
@media (max-width: 820px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

/* Closing call to action */
.cta { background: var(--ink); color: var(--ink-text); padding: 64px 0; text-align: center; }
.cta h2 { margin: 0 0 10px; color: var(--ink-strong); font-size: clamp(30px, 4.6vw, 42px); }
.cta p { margin: 0 auto 28px; max-width: 34em; }
.cta .actions { justify-content: center; margin-bottom: 0; }

/* Footer */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--divider); color: var(--text-secondary); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* Not found */
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { margin: 0 0 12px; font-size: clamp(36px, 7vw, 56px); }
.notfound p { margin: 0; color: var(--text-secondary); font-size: 19px; }

/* Legal pages */
main.doc { display: block; width: 100%; max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 56px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); margin: 8px 0 4px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; letter-spacing: 0; margin: 24px 0 4px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc code { font-size: 15px; }
.draft { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border: 1px solid var(--text-secondary); border-radius: 999px; color: var(--text-secondary); font-size: 13px; }
.updated { color: var(--text-secondary); font-size: 15px; margin: 0 0 24px; }
