/* Brinkbell marketing site — single stylesheet, no external assets. */

:root {
  --brand: #4F46E5;
  --brand-600: #4338CA;
  --brand-050: #EEF2FF;
  --ink: #0f1222;
  --body: #3a3f55;
  --muted: #6b7186;
  --bg: #ffffff;
  --surface: #f7f8fc;
  --surface-2: #ffffff;
  --border: #e6e8f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 18, 34, .04), 0 8px 24px rgba(16, 18, 34, .06);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8b87f5;
    --brand-600: #a5a1f8;
    --brand-050: #1b1e35;
    --ink: #f3f4fb;
    --body: #c3c7d6;
    --muted: #9aa0b6;
    --bg: #0c0e18;
    --surface: #12141f;
    --surface-2: #161927;
    --border: #262a3d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: .98rem; padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-050); color: var(--brand);
}
.brand-name { font-size: 1.12rem; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.nav-links a { color: var(--body); font-weight: 550; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { margin-left: auto; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.lede { font-size: 1.18rem; color: var(--body); max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 12px; }
.micro { color: var(--muted); font-size: .9rem; }

.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 9px 20px; border-radius: 14px; background: var(--ink); color: var(--bg);
  min-width: 168px; line-height: 1.25;
}
.store-badge:hover { text-decoration: none; opacity: .92; }
.store-badge-sub { font-size: .72rem; opacity: .8; }
.store-badge-name { font-size: 1.15rem; font-weight: 750; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
}

/* Phone mockup */
.hero-visual { display: grid; place-items: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 42px;
  background: linear-gradient(160deg, var(--brand), #7c74f0);
  padding: 12px; box-shadow: var(--shadow); max-width: 100%;
}
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: rgba(0,0,0,.55); border-radius: 999px; z-index: 2; }
.phone-screen {
  position: relative; height: 100%; border-radius: 32px; background: var(--surface-2);
  padding: 40px 16px 16px; overflow: hidden;
}
.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-title { font-weight: 800; color: var(--ink); }
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.app-day { font-weight: 700; color: var(--brand); font-size: .85rem; margin: 0 0 8px; }
.event {
  display: grid; grid-template-columns: auto 3px 1fr auto; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 12px; margin-bottom: 10px;
}
.event-time { font-weight: 800; color: var(--ink); font-size: .92rem; }
.event.on .event-time { color: var(--brand); }
.event-bar { width: 3px; height: 30px; border-radius: 3px; background: var(--brand); }
.event-bar.off { background: var(--border); }
.event-body b { display: block; color: var(--ink); font-size: .9rem; }
.event-body small { color: var(--muted); font-size: .74rem; }
.event-toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--border); position: relative; }
.event-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.event-toggle.on { background: var(--brand); }
.event-toggle.on::after { left: 16px; }
.ring-toast {
  position: absolute; left: 12px; right: 12px; bottom: 14px;
  background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 600;
  padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow);
}

/* Sources strip */
.sources { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.sources-label { text-align: center; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.sources-list { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.sources-list li { color: var(--ink); font-weight: 700; opacity: .8; }

/* Sections */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section.alt { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--body); margin: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-050);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--body); margin: 0; }

/* Pricing */
.pricing { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto; }
@media (max-width: 680px) { .pricing { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); position: relative; }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: .2em 0 .1em; }
.price-sub { color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--body); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 1.4rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--body); margin: 0 0 14px; }

/* CTA band */
.cta-band { padding: clamp(56px, 9vw, 96px) 0; text-align: center; background: linear-gradient(160deg, var(--brand), #7c74f0); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .9; margin-bottom: 22px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-600); }
.cta-band .btn-primary:hover { background: #f0f0ff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 28px; background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); margin-top: 10px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; }
.site-footer nav a { color: var(--body); }
.footer-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.footer-legal p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Legal pages */
.legal { padding: clamp(40px, 7vw, 72px) 0 60px; }
.legal h1 { margin-bottom: .2em; }
.legal .updated { color: var(--muted); margin-bottom: 2em; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--body); }
.legal ul { padding-left: 1.2em; }
