/* Spacer web design system — mirrors Spacer/DesignSystem.swift */
:root {
  --canvas: #F4F4F5;
  --surface: #FFFFFF;
  --surface-muted: #ECECEF;
  --ink: #1A1A1E;
  --ink-secondary: #6C6C74;
  --ink-tertiary: #A4A4AC;
  --hairline: #E4E4E8;
  --accent: #2E6CF6;
  --destructive: #E5484D;
  --radius-card: 14px;
  --radius-button: 12px;
  --pad: 24px;
  --font-grotesk: "Space Grotesk", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-grotesk);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Type scale */
.display {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.heading { font-size: 24px; font-weight: 600; }
.headline { font-size: 19px; font-weight: 600; }
.body { font-size: 18px; font-weight: 400; }
.callout { font-size: 16px; font-weight: 400; }
.footnote { font-size: 14px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.muted { color: var(--ink-secondary); }
.tertiary { color: var(--ink-tertiary); }

/* Layout */
.container { max-width: 1040px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 72px 0; }
.center { text-align: center; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand .wordmark {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.09em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-secondary);
}
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 80px; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 28px; text-align: center; }
.hero .logo-tile { width: 116px; height: 116px; border-radius: 24px; }
.hero p.lede { max-width: 560px; font-size: 20px; color: var(--ink-secondary); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-grotesk); font-size: 17px; font-weight: 600;
  color: var(--canvas); background: var(--ink);
  padding: 16px 30px; border-radius: var(--radius-button);
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.button:hover { opacity: 0.88; }
.button:active { transform: scale(0.97); }
.button.small { padding: 11px 20px; font-size: 15px; }
.button.ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline);
}

/* Cards — flat, hairline only */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px;
}
.card .icon-tile {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--ink-secondary); font-size: 15px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin: 40px auto 0; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { text-align: left; }
.plan .plan-name { margin-bottom: 6px; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--ink-secondary); letter-spacing: 0; }
.plan ul { list-style: none; margin-top: 14px; }
.plan li { padding: 7px 0; font-size: 15px; color: var(--ink-secondary); border-top: 1px solid var(--hairline); }
.plan.featured { border-color: var(--ink); border-width: 2px; }

/* Strip */
.strip {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  padding: 34px 0;
}
.strip .mono-line { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-secondary); text-align: center; }

/* Footer */
footer { padding: 40px 0 56px; }
.foot-row {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--hairline);
}
.foot-row a { color: var(--ink-secondary); text-decoration: none; font-size: 14px; }
.foot-row a:hover { color: var(--ink); }

/* Docs (privacy/terms/support) */
.doc { max-width: 720px; margin: 0 auto; padding: 64px var(--pad) 96px; }
.doc h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 6px; }
.doc .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.09em; color: var(--ink-tertiary); text-transform: uppercase; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-secondary); font-size: 16px; line-height: 1.65; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc strong { color: var(--ink); }
.doc .placeholder {
  border: 1px dashed var(--ink-tertiary); border-radius: var(--radius-card);
  padding: 28px; margin-top: 28px; color: var(--ink-tertiary);
  font-family: var(--font-mono); font-size: 13px;
}

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 18px 22px; margin-bottom: 12px;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
details summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-tertiary); }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; }
