/* safeBubble — safebubbleapp.com
   Design tokens + components. Follows the system color scheme only (no manual toggle).
   Brand accent is tweakable: change --accent-base and the whole site re-themes. */

:root {
  color-scheme: light dark;

  --accent-base: #3676cd;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #eaeff6;
  --text: #22303f;
  --muted: #5b6b7d;
  --border: #dce4ee;
  --accent: var(--accent-base);
  --accent-ink: #ffffff;
  --band: #1e3a5f;
  --band-text: #e8eef6;
  --band-muted: #a8bcd4;
  --band-accent: #7fb0e8;
  --shadow: 0 8px 30px rgba(30, 58, 95, 0.10);
  --card-shadow: 0 2px 12px rgba(30, 58, 95, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d131d;
    --surface: #151d2a;
    --surface2: #1b2534;
    --text: #e6ecf4;
    --muted: #93a3b5;
    --border: #26313f;
    --accent: color-mix(in oklab, var(--accent-base) 72%, #dbe8fa);
    --accent-ink: #0d131d;
    --band: #16273d;
    --band-text: #dce6f2;
    --band-muted: #8ba1bc;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.30);
  }
}

/* ============ BASE ============ */

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding clears the ~67px sticky nav when jumping to an anchor */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: color-mix(in oklab, var(--accent) 80%, var(--text)); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ============ BRAND MARK ============ */

.mark-accent { fill: var(--accent); }
.mark-navy { fill: #1e3a5f; opacity: 0.9; }

.wordmark {
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.wordmark b { color: var(--accent); font-weight: inherit; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn-outline { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--muted); color: var(--text); }

.btn-pill {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 600;
}
.btn-pill:hover { filter: brightness(1.08); color: var(--accent-ink); }

/* ============ NAV ============ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ============ HERO ============ */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }

.overline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.overline::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  flex: none;
}
.overline-both::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  flex: none;
}

.hero h1 {
  font-family: Sora, sans-serif;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0;
  text-wrap: balance;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hero-fineprint {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}
.hero-fineprint .sep { opacity: 0.4; }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 320px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone-screen {
  position: relative;
  border-radius: 35px;
  overflow: hidden;
  height: 600px;
  background: var(--surface2);
}
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ TRUST STRIP ============ */

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 600;
}
.trust-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--accent);
  flex: none;
}

/* ============ SECTION HEADS ============ */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.section-features { padding: 90px 24px 40px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 60ch;
}
.section-head h2 {
  font-family: Sora, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
  text-wrap: balance;
}
.section-head p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============ FEATURES ============ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
}
.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 14%, var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card h3 {
  font-family: Sora, sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ============ PRIVACY BAND ============ */

.band-section { max-width: 1120px; margin: 64px auto; padding: 0 24px; }
.band {
  background: var(--band);
  color: var(--band-text);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  box-shadow: var(--shadow);
}
.band-copy { display: flex; flex-direction: column; gap: 18px; }
.band .overline { color: var(--band-accent); }
.band .overline::before { background: var(--band-accent); }
.band h2 {
  font-family: Sora, sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
  text-wrap: balance;
}
.band p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--band-muted);
  margin: 0;
  text-wrap: pretty;
}
.band-checks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.band-check { display: flex; gap: 14px; align-items: flex-start; }
.band-check::before {
  content: "✓";
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 99px;
  background: rgba(127, 176, 232, 0.18);
  color: var(--band-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.band-check span { font-size: 16px; line-height: 1.55; }

/* ============ HOW IT WORKS ============ */

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.step-num {
  font-family: Sora, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.step h3 {
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ============ PRICING ============ */

.section-pricing { gap: 40px; }
.pricing-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.pricing-head h2 {
  font-family: Sora, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
}
.pricing-head p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

.billing-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
  margin-top: 6px;
}
.billing-toggle button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
}
.billing-toggle button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}
.billing-toggle .save { opacity: 0.75; font-weight: 500; }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--card-shadow);
}
.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-head h3 {
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount {
  font-family: Sora, sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}
.plan-price .period { color: var(--muted); font-size: 15px; }
.plan-head p { font-size: 14.5px; color: var(--muted); margin: 0; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
}
.plan-features div { display: flex; gap: 10px; }
.plan-features div::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.plan .btn-plan {
  margin-top: auto;
  text-align: center;
  display: block;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
}
.plan .btn-plan.btn-outline { border: 1px solid var(--border); background: none; color: var(--text); }
.plan .btn-plan.btn-outline:hover { border-color: var(--muted); color: var(--text); }

.pricing-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ============ FAQ ============ */

.section-faq {
  max-width: 820px;
  padding: 56px 24px 80px;
  gap: 32px;
}
.section-faq h2 {
  font-family: Sora, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
  text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 24px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: Sora, sans-serif;
  font-size: 17px;
  font-weight: 600;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  flex: none;
}
.faq-list p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  padding: 0 0 22px;
}

/* ============ ABOUT ============ */

.section-about {
  max-width: 820px;
  padding: 16px 24px 80px;
  gap: 16px;
  text-align: center;
  align-items: center;
}
.section-about h2 {
  font-family: Sora, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0;
  text-wrap: balance;
}
.section-about p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* ============ FOOTER CTA ============ */

.footer-cta {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-cta h2 {
  font-family: Sora, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
  text-wrap: balance;
}
.footer-cta .btn { padding: 14px 26px; }

/* ============ FOOTER ============ */

.site-footer { border-top: 1px solid var(--border); }
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .lockup { display: flex; align-items: center; gap: 9px; }
.footer-brand .wordmark { font-size: 17px; letter-spacing: normal; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-col-title {
  font-family: Sora, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom .entity { margin-left: auto; }

/* ============ LEGAL PAGES ============ */

.legal-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.legal-header nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-header .wordmark { font-size: 18px; letter-spacing: normal; }
.legal-back {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.legal-back:hover { color: var(--text); }

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.legal-main a:hover { text-decoration: underline; }
/* links sit inside muted prose — underline them at rest so colour isn't the only cue */
.legal-section p a,
.legal-card a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.legal-title { display: flex; flex-direction: column; gap: 10px; }
.legal-title h1 {
  font-family: Sora, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
}
.legal-meta { color: var(--muted); font-size: 14.5px; margin: 0; }

.legal-summary {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.6;
}

.legal-section { display: flex; flex-direction: column; gap: 10px; }
.legal-section h2 {
  font-family: Sora, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.legal-section p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-field { display: flex; flex-direction: column; gap: 4px; }
.legal-field-label {
  font-family: Sora, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-field .subtle { color: var(--muted); }

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 56px 24px;
  }
  .hero h1 { font-size: clamp(34px, 7vw, 54px); letter-spacing: -1px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .section-features { padding: 64px 24px 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; gap: 32px; padding: 44px 32px; }
  .band h2 { font-size: 30px; }
  .section-head h2,
  .pricing-head h2,
  .section-faq h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-cta h2 { font-size: 28px; }
  .section-about h2 { font-size: 27px; }
}

@media (max-width: 620px) {
  /* keep all four anchors: the bar wraps to a second row rather than dropping the nav */
  .site-nav nav { flex-wrap: wrap; gap: 10px 16px; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }
  .btn-pill { margin-left: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .band { padding: 36px 24px; }
  .plan { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .entity { margin-left: 0; }
  .legal-title h1 { font-size: 30px; }
}
