/* ScribeFace — the app's design system, on the web.
   Same tokens as Sources/ScribeFace/Views/Theme.swift, so the site and the product
   read as one thing. */

:root {
  --accent: #0E8F86;
  --accent-bright: #2CBBAE;
  --bg: #F5F7F7;
  --surface: #FFFFFF;
  --ink: #141A19;
  --ink-muted: #646E6C;
  --hairline: rgba(20, 26, 25, 0.10);
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2CBBAE;
    --accent-bright: #2CBBAE;
    --bg: #101514;
    --surface: #18201F;
    --ink: #ECF1F0;
    --ink-muted: #8A9694;
    --hairline: rgba(236, 241, 240, 0.12);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---------- Landing ---------- */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}

.mark {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 28px;
  display: block;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero .tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-muted);
  margin: 0 auto 40px;
  max-width: 30ch;
  text-wrap: balance;
}

.hero .accent { color: var(--accent); }

/* Store buttons. Present but disabled until the apps are approved — a dead link
   would be worse than an honest "coming soon". */
.stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}

.store[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.store-icon {
  width: 22px;
  height: 22px;
  flex: none;
  background: currentColor;
  /* Apple logo, so the button is recognisable without shipping an image. */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"/></svg>') center / contain no-repeat;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 15px;
  font-weight: 600;
}

.store-text small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

footer a { margin: 0 10px; }

/* ---------- Legal documents ---------- */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.back {
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 32px;
}

.doc h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.updated {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: 8px;
}

.doc h2 {
  font-size: 20px;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
}

.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

/* The "short version" — the part people actually read. */
.summary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 20px 20px 40px;
  list-style: none;
}
.summary { padding-left: 20px; }
.summary li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}
.summary li:last-child { margin-bottom: 0; }
.summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
