/* Capit landing page (index.html). Legal pages use style.css. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #14214B;
  --text-2: #4A5578;
  --blue: #2F56C4;
  --surface: #F4F7FD;
  --pale: #EEF3FF;
  --border: #E3E8F2;
  --border-2: #D9E0EE;
  --bg: #FBFCFE;
  --white: #FFFFFF;
  --peach: #FFF4EC;
  --on-navy: #C9D3EE;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.landing {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
body.landing a { color: var(--blue); }
body.landing a:hover { color: var(--navy); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* Header and footer (legal pages mirror these in style.css) */
header.site, footer.site { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
header.site { padding: 24px; }
header.site .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
header.site nav a { color: var(--text-2); text-decoration: none; padding: 12px 0; }
header.site nav a:hover { color: var(--navy); }
footer.site { padding: 40px 24px 56px; font-size: 14px; color: var(--text-2); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
footer.site nav a { color: var(--text-2); padding: 12px 0; }

/* Layout helpers */
.inner { max-width: 1160px; margin: 0 auto; padding: 96px 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sub { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; border-radius: 14px; font-size: 16px; text-decoration: none; }
body.landing .btn-primary { padding: 0 28px; background: var(--navy); color: var(--white); font-weight: 700; }
body.landing .btn-primary:hover { background: var(--blue); color: var(--white); }
body.landing .btn-secondary { padding: 0 24px; background: var(--white); color: var(--navy); border: 1.5px solid var(--border-2); font-weight: 600; }
body.landing .btn-white { padding: 0 28px; background: var(--white); color: var(--navy); font-weight: 700; }
body.landing .btn-white:hover { background: var(--pale); }

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 48px 24px 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge { align-self: flex-start; padding: 8px 16px; background: var(--pale); color: var(--blue); border-radius: 999px; font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.lede { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-visual { flex: 1 1 360px; min-width: 0; position: relative; display: flex; justify-content: center; padding: 24px 0; }
.blobs { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; height: auto; opacity: 0.55; }
.phone-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 100%; }

/* Phone mockup */
.phone { width: 280px; height: 572px; max-width: 100%; background: var(--white); border: 10px solid var(--navy); border-radius: 48px; box-shadow: 0 30px 60px -20px rgba(20, 33, 75, 0.35); padding: 40px 20px 20px; overflow: hidden; text-align: left; }
.screen { display: flex; flex-direction: column; gap: 16px; }
.screen-ask, .screen-alerts { gap: 12px; }
.screen-recap { align-items: center; text-align: center; }
.s-title { font-size: 20px; font-weight: 800; }
.self-start { align-self: flex-start; }
.p-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; }
.p-tint { background: var(--surface); }
.p-outline { gap: 8px; background: var(--white); border: 1px solid var(--border); }
.p-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.p-label-light { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.p-big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.p-small { font-size: 12px; color: var(--text-2); }
.p-head { font-size: 13px; font-weight: 700; }
.days { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); }
.p-note { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--peach); border-radius: 16px; font-size: 12px; line-height: 1.4; }
.p-note svg { flex: none; }
.p-note-sm { padding: 12px 14px; }
.recap-big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ask-title { display: flex; align-items: center; gap: 8px; }
.bubble { padding: 10px 14px; font-size: 13px; line-height: 1.45; }
.bubble-user { align-self: flex-end; max-width: 80%; background: var(--navy); color: var(--white); border-radius: 16px 16px 4px 16px; }
.bubble-bot { align-self: flex-start; max-width: 88%; background: var(--surface); border-radius: 16px 16px 16px 4px; }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 8px; }
.chips span { padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 12px; font-weight: 600; }
.toggles { padding: 4px 14px; background: var(--surface); border-radius: 18px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: 0; }
.t-label { font-size: 13px; font-weight: 600; }
.t-sub { font-weight: 400; color: var(--text-2); }
.switch { flex: none; width: 36px; height: 22px; background: var(--blue); border-radius: 11px; position: relative; }
.switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; background: var(--white); border-radius: 9px; }
.for-one { font-size: 12px; font-weight: 700; color: var(--text-2); padding-top: 4px; }
.fine { font-size: 11px; color: var(--text-2); }

/* Screen switcher */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills button { min-height: 44px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; background: var(--white); color: var(--navy); border: 1.5px solid var(--border-2); }
.pills button:hover { border-color: var(--navy); }
.pills button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pills button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Features */
.band { background: var(--white); border-top: 1px solid #EEF1F7; border-bottom: 1px solid #EEF1F7; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.feature { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--bg); border-radius: 24px; }
.feature h3 { font-size: 22px; font-weight: 700; }
.feature p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags li { padding: 10px 18px; background: var(--surface); border-radius: 999px; font-size: 15px; font-weight: 600; }

/* Heads-ups */
.alerts { max-width: 1160px; margin: 0 auto; padding: 96px 24px 0; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.alerts-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; margin-top: 2px; }
.notifs { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--surface); border-radius: 28px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--white); border-radius: 18px; box-shadow: 0 8px 24px -12px rgba(20, 33, 75, 0.25); }
.notif svg { flex: none; }
.notif div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif strong { font-size: 15px; }
.notif span { font-size: 14px; color: var(--text-2); line-height: 1.45; }

/* Privacy */
.privacy { max-width: 1160px; margin: 0 auto; padding: 96px 24px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.privacy-head { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.facts { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.facts li { padding: 24px; border: 1px solid var(--border); border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.facts strong { font-size: 17px; }
.facts span { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* Pricing */
.pricing { background: var(--navy); color: var(--white); }
.pricing-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.pricing-head { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.pricing-head p { font-size: 18px; line-height: 1.6; color: var(--on-navy); max-width: 34rem; }
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
.plan { flex: 1 1 260px; max-width: 340px; padding: 32px; border-radius: 24px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.plan-dark { background: #1D2C5E; }
.plan-light { background: var(--white); color: var(--navy); }
.plan-name { font-size: 15px; font-weight: 600; color: var(--on-navy); }
.plan-light .plan-name { color: var(--text-2); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.per { font-size: 16px; font-weight: 500; color: var(--on-navy); letter-spacing: 0; }
.plan-light .per { color: var(--text-2); }
.save { padding: 4px 12px; background: var(--pale); color: var(--blue); border-radius: 999px; font-size: 13px; font-weight: 700; }
.about { font-size: 14px; color: var(--text-2); }

@media (max-width: 480px) {
  header.site { padding: 16px; }
  .hero { padding: 24px 16px 64px; gap: 40px; }
  .inner { padding: 64px 16px; }
  .alerts { padding: 64px 16px 0; }
  .privacy { padding: 64px 16px; }
  footer.site { padding: 24px 16px 40px; }
  .feature, .plan { padding: 24px; }
  .notifs { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
