/* Tethered website: one stylesheet, no build step. Colors follow the app's Tethered theme. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #12204a;
  --text: #16203b;
  --muted: #55607a;
  --accent: #3b8be8;
  --accent-soft: #e4effc;
  --tile-lavender: #ece8fb;
  --tile-yellow: #fff4d6;
  --border: #d9e0ee;
  --draft-bg: #fff4d6;
  --draft-border: #e6c56a;
  --radius: 16px;
  --max: 920px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1430;
    --surface: #141f45;
    --ink: #e8eefc;
    --text: #e8eefc;
    --muted: #a6b1cf;
    --accent: #7fb6ff;
    --accent-soft: #1b2b5c;
    --tile-lavender: #221f4a;
    --tile-yellow: #3a3220;
    --border: #283666;
    --draft-bg: #3a3220;
    --draft-border: #8a7434;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.site {
  background: var(--ink);
  color: var(--bg);
}
@media (prefers-color-scheme: dark) { header.site { background: #070d22; color: var(--text); } }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.site a { color: inherit; text-decoration: none; opacity: 0.85; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

main { padding: 40px 0 56px; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink); }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 10px; color: var(--ink); }
h3 { font-size: 18px; margin: 24px 0 6px; color: var(--ink); }
p, li { max-width: 68ch; }
.lead { font-size: 20px; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { padding: 24px 0 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--ink); color: var(--bg); border: 2px solid var(--ink);
}
.button.secondary { background: transparent; color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card.lavender { background: var(--tile-lavender); }
.card.yellow { background: var(--tile-yellow); }
.card.sky { background: var(--accent-soft); }

.promise { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; margin: 24px 0; }
.draft {
  background: var(--draft-bg); border: 1.5px solid var(--draft-border); border-radius: 12px;
  padding: 12px 16px; margin: 0 0 24px; font-weight: 600;
}
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--ink); }
.table-scroll { overflow-x: auto; }

ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }

footer.site { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer.site a { color: var(--muted); }
