/* Cadence website. Colors match the app (Cadence/UI/Theme.swift). */
:root {
  --bg: #F3EFE5;
  --surface: #FCFAF5;
  --surface2: #ECE6D8;
  --ink: #14271F;
  --muted: #5E6B63;
  --accent: #1E4D3B;
  --on-accent: #FCFAF5;
  --accent-soft: #E1EADF;
  --gold: #A8823A;
  --line: rgba(20, 39, 31, 0.10);
  --shadow: 0 1px 2px rgba(20, 39, 31, 0.05), 0 12px 32px rgba(20, 39, 31, 0.08);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C211A;
    --surface: #13302A;
    --surface2: #1B3B32;
    --ink: #F4EFE3;
    --muted: #A9B8AF;
    --accent: #D9B36A;
    --on-accent: #0C211A;
    --accent-soft: #1F4236;
    --gold: #D9B36A;
    --line: rgba(244, 239, 227, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-soft { background: var(--surface2); color: var(--ink); }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta small { color: var(--muted); font-size: 14px; }
.phone { justify-self: center; width: min(340px, 100%); border-radius: 44px; padding: 10px; background: #0b0f0d; box-shadow: var(--shadow); }
.phone img { border-radius: 36px; }

/* Sections */
section { padding: 56px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin: 12px 0 6px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--gold); font-size: 20px; }
.quote { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 15px; color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 440px; justify-self: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px; }

.band { background: var(--accent-soft); border-radius: 32px; padding: 40px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { outline: 2px solid var(--gold); }
.plan h3 { font-size: 22px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .alt { color: var(--muted); font-size: 15px; margin-top: -8px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li::before { content: "✓  "; color: var(--gold); font-weight: 700; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Docs (privacy, terms, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 18px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); }
mark { background: #FFE58A; color: #3a2f00; padding: 0 4px; border-radius: 4px; }

details { background: var(--surface); border-radius: 16px; padding: 16px 20px; margin: 10px 0; box-shadow: var(--shadow); }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .tm { flex-basis: 100%; font-size: 12px; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .band { padding: 28px 20px; border-radius: 24px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
}
