/* Restora — root landing page. Brand-consistent with the app, emails, and the
   subscriptions page. Self-contained: no external fonts or CDNs (CSP-friendly). */

:root {
  --brand: #2B5CE6;
  --brand-dark: #1E45B8;
  --brand-soft: #EAF0FE;
  --page-bg: #F4F2EC;
  --card-bg: #FFFFFF;
  --text: #1A1814;
  --muted: #6B6760;
  --border: #E8E2D5;
  --ok: #1B8A5A;
  --shadow: 0 1px 2px rgba(26, 24, 20, .04), 0 18px 44px rgba(26, 24, 20, .09);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6E93F7;
    --brand-dark: #5A80EC;
    --brand-soft: #182135;
    --page-bg: #14130F;
    --card-bg: #1E1C17;
    --text: #F3F0E9;
    --muted: #A29C90;
    --border: #322E26;
    --ok: #4BD08A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--brand); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 20px; letter-spacing: .2px;
  color: var(--text); text-decoration: none;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; flex: none;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav .btn-sm {
  background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 9px;
}
.nav .btn-sm:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 620px) { .nav a.hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-size: 15px; font-weight: 700; border-radius: 11px;
  text-decoration: none; cursor: pointer; border: 0;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--card-bg); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 74px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -1px;
  font-weight: 850; margin: 0 0 18px;
}
.hero p.sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* App store badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--text); color: var(--page-bg);
  padding: 9px 15px; border-radius: 11px; text-decoration: none; min-width: 150px;
}
.badge small { display: block; font-size: 10px; opacity: .8; line-height: 1.1; }
.badge b { display: block; font-size: 15px; font-weight: 700; line-height: 1.15; }
.badge svg { flex: none; }
.badge[aria-disabled="true"] { opacity: .55; cursor: default; }

/* ── Hero art (SVG device) ──────────────────────────────── */
.hero-art { display: flex; justify-content: center; }
.device {
  width: 100%; max-width: 300px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 30px; box-shadow: var(--shadow);
  padding: 16px 14px; position: relative;
}
.device .notch {
  width: 42%; height: 6px; background: var(--border); border-radius: 999px;
  margin: 2px auto 14px;
}
.device .d-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.device .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); flex: none;
  display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 15px; }
.device .d-head .t1 { font-weight: 800; font-size: 14px; }
.device .d-head .t2 { font-size: 11px; color: var(--muted); }
.ring-card {
  background: var(--brand); color: #fff; border-radius: 14px; padding: 14px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.ring-card .txt b { font-size: 20px; display: block; }
.ring-card .txt span { font-size: 11px; opacity: .85; }
.row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-top: 1px solid var(--border);
}
.row .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft);
  display: grid; place-items: center; flex: none; }
.row .l1 { font-size: 13px; font-weight: 700; }
.row .l2 { font-size: 11px; color: var(--muted); }

/* ── Sections ───────────────────────────────────────────── */
section.block { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.5px; margin: 0 0 12px; font-weight: 820; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature .ic {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin: 0 0 6px; font-weight: 750; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* Two-up (clients) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  background: var(--brand-soft); border-radius: var(--radius); padding: 40px; }
.split h2 { font-size: 26px; letter-spacing: -.4px; margin: 0 0 12px; font-weight: 820; }
.split ul { margin: 16px 0 0; padding: 0; list-style: none; }
.split li { position: relative; padding: 7px 0 7px 28px; font-size: 15px; }
.split li::before { content: ""; position: absolute; left: 0; top: 12px; width: 13px; height: 8px;
  border-left: 2.4px solid var(--ok); border-bottom: 2.4px solid var(--ok); transform: rotate(-45deg); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 46px; text-align: center; }
.cta-band h2 { font-size: 28px; margin: 0 0 10px; font-weight: 820; letter-spacing: -.4px; }
.cta-band p { margin: 0 0 24px; opacity: .9; font-size: 16px; }
.cta-band .btn.primary { background: #fff; color: var(--brand); }
.cta-band .btn.primary:hover { background: #eef1f6; }
.cta-band .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 20px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero p.sub { max-width: none; }
  .hero-art { order: -1; }
  .features { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; padding: 30px; }
}
