/* ReciproCal — light/modern, red · white · gold. Light + dark themes. */
:root {
  /* Light theme (default / primary) */
  --bg: #ffffff;
  --bg-warm: #faf7f3;
  --surface: #ffffff;
  --surface-2: #fbf8f4;
  --border: rgba(28, 22, 20, 0.10);
  --text: #1c1613;
  --muted: #6f665f;
  --red: #d9302a;
  --red-strong: #b81f1a;
  --gold: #b8862f;
  --gold-soft: #ecd7a6;
  --ring: rgba(217, 48, 42, 0.18);
  --shadow: 0 20px 50px -26px rgba(120, 30, 20, 0.30);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #171310;
    --bg-warm: #1e1814;
    --surface: #211a15;
    --surface-2: #251d17;
    --border: rgba(255, 255, 255, 0.10);
    --text: #f6efe8;
    --muted: #ab9f95;
    --red: #ff5147;
    --red-strong: #ff6a61;
    --gold: #e6b45f;
    --gold-soft: #7c6538;
    --ring: rgba(255, 81, 71, 0.28);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.72);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #171310;
  --bg-warm: #1e1814;
  --surface: #211a15;
  --surface-2: #251d17;
  --border: rgba(255, 255, 255, 0.10);
  --text: #f6efe8;
  --muted: #ab9f95;
  --red: #ff5147;
  --red-strong: #ff6a61;
  --gold: #e6b45f;
  --gold-soft: #7c6538;
  --ring: rgba(255, 81, 71, 0.28);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(150%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand-mark { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-cal { color: var(--red); }
.nav-links { display: flex; gap: 24px; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.nav-controls { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--red); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun,
:root:not([data-theme]) .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-btn .sun { display: none; }
  :root:not([data-theme]) .theme-btn .moon { display: block; }
}
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 84px 24px 36px; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--red); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  background: linear-gradient(115deg, var(--red) 25%, var(--gold) 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { max-width: 640px; margin: 24px auto 0; font-size: 1.2rem; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 650; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px var(--red); }
.btn-primary:hover { background: var(--red-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface-2); }
.btn-ghost:hover { border-color: var(--red); }

/* Badges */
.badges { max-width: var(--max); margin: 18px auto 0; padding: 0 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; color: var(--muted);
}
.badge span { font-size: 1rem; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 92px 24px; }
.section-alt { background: var(--bg-warm); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.025em; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 16px auto 0; font-size: 1.08rem; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card h3::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); margin-right: 10px; vertical-align: middle; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Steps */
.steps { list-style: none; max-width: 720px; margin: 46px auto 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(125deg, var(--red), var(--gold)); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin-top: 4px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(260px, 380px)); gap: 20px; justify-content: center; margin-top: 46px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; position: relative; }
.plan-featured { border-color: var(--red); box-shadow: var(--shadow); }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; }
.price { font-size: 2.6rem; font-weight: 800; margin: 12px 0; letter-spacing: -0.02em; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.plan ul li::before { content: "✓ "; color: var(--red); font-weight: 800; }
.plan-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.plan-note strong { color: var(--text); }

/* Privacy teaser */
.privacy { text-align: center; }
.privacy p { max-width: 680px; margin: 20px auto 28px; color: var(--muted); font-size: 1.08rem; }
.privacy strong { color: var(--text); }

/* Legal / doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.3rem; margin-top: 36px; }
.doc h2::before { content: ""; display: inline-block; width: 20px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); margin-right: 10px; vertical-align: middle; }
.doc p, .doc li { color: var(--muted); margin-top: 12px; }
.doc a { color: var(--red); font-weight: 600; }
.doc ul { margin-top: 12px; padding-left: 22px; }
.doc address { font-style: normal; color: var(--text); margin-top: 12px; line-height: 1.7; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 32px auto 0; }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 0.92rem; text-align: left; }
.form input, .form textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--ring); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn-primary { align-self: flex-start; }
.form-note { color: var(--muted); font-size: 0.88rem; text-align: center; margin-top: 4px; }

/* Footer */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 40px 24px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px;
}
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
