/* ─────────────────────────────────────────────────────────────
   Notipication — site stylesheet

   This replaces the Tailwind play CDN. That script was ~100KB of
   JavaScript that had to download, parse and generate the whole
   stylesheet before a single styled pixel appeared, from a third-party
   host, on every page load. It is also explicitly not meant for
   production. The visual design is unchanged; only how the CSS arrives
   is different.

   One file, linked by all four pages, so there is a single source of
   truth and no chance of the home page and the legal pages drifting
   apart.
   ───────────────────────────────────────────────────────────── */

/* ─── font ───
   Self-hosted rather than pulled from fonts.googleapis.com: two fewer
   third-party connections on the critical path, nothing about the
   visitor sent to another domain, and the file is cached under this
   site's own rules. font-display: swap so text is readable in the
   fallback face while the web font loads, instead of invisible. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}

/* ─── palette ───
   Light, and indigo rather than green.

   The values are not picked afresh here - they are the APP's own tokens.
   The site, the web app and the Android app are one product, and a
   visitor who taps "Open the app" should not feel the colour change
   under them. --accent is the app's --primary, --accent-soft is its
   --primary-light, --text and --line are its --text and --border.

   Everything below goes through these. The stylesheet used to carry
   about forty hardcoded dark values (#fff headings, #111827 buttons,
   rgba(16,185,129,…) chips, white hairlines) alongside the tokens, and
   that is exactly why the theme could not simply be switched - half the
   page ignored the variables. Now nothing does. */
:root {
  --bg: #ffffff;
  /* The alternating section band. Barely-there indigo-grey rather than a
     neutral: on a page whose only colour is indigo, a plain grey band
     reads as dirty white. */
  --bg-alt: #f7f8fc;
  --card: #ffffff;
  --card-soft: #f9fafb;
  --surface: #f3f4f6;
  --line: #e5e7eb;
  --line-soft: #eef0f4;
  --text: #1a1a2e;
  --text-dim: #4b5563;
  --text-faint: #6b7280;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  /* What is written ON the accent, not the accent itself. */
  --accent-ink: #ffffff;
  --accent-soft: #eef2ff;
  --accent-line: #c7d2fe;
  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; height: auto; display: block; }

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

/* Keyboard users must be able to see where they are. The CDN build
   shipped a focus ring for free; hand-written CSS has to say so. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
/* The real logo, not a letter in a tinted box.
   The mark carries its own blue ground, so it needs no chip behind it -
   only the same corner radius the app gives it. */
.brand-mark {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  display: block;
  object-fit: cover;
}
.site-nav { display: none; gap: 30px; font-size: 14px; font-weight: 500; color: var(--text-dim); }
/* Vertical padding, not for looks: a bare inline link is about 22px tall,
   and both Lighthouse and anyone using this on a touchscreen want a
   target of at least 40px. */
.site-nav a { display: inline-flex; align-items: center; padding: 9px 0; }
.site-nav a:hover { color: var(--accent); }

/* ─── buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-sm { font-size: 14px; padding: 10px 20px; border-radius: 11px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent-line); }

/* ─── hero ─── */
.hero {
  position: relative;
  /* A wash rather than a flat sheet. The page is light, but the hero is
     the one place that carries the brand colour at full page width. */
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding: 90px 0 80px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
/* The faint grid. Decorative only, so it is a background on a
   pseudo-element and never reaches the accessibility tree. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(79, 70, 229, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, .07) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero .shell { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 26px;
}
h1 {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 20ch;
  margin-inline: auto;
}
.hero-sub {
  margin: 0 auto 34px;
  max-width: 62ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-dim);
}
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-actions .btn { width: 100%; max-width: 320px; }
.hero-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-faint);
}

/* ─── generic section ─── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
}
.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.22;
}
.section-head p { margin: 14px 0 0; color: var(--text-dim); font-size: 16px; }

/* ─── highlight banner ─── */
.banner {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.banner h2 { margin: 6px 0 8px; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.banner p { margin: 0; color: var(--text-dim); font-size: 15px; }
.banner-icon {
  width: 58px; height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}

/* ─── feature grid ─── */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--accent-line); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ─── steps ─── */
.step {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.step-num {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; color: var(--text); }
.step p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

/* ─── FAQ ─── */
/* <details> rather than JavaScript: the answers are in the HTML whether
   or not the panel is open, so search engines read all of them, and the
   page needs no script at all. */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-soft);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ─── closing CTA ─── */
.cta {
  background: linear-gradient(140deg, var(--accent-soft) 0%, #f6f7ff 55%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 60px 32px;
  text-align: center;
}
.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.cta p { margin: 0 auto 30px; max-width: 46ch; color: var(--text-dim); }

/* ─── footer ─── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 46px 0;
  color: var(--text-faint);
  font-size: 13px;
}
.site-footer .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.footer-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
/* Same reason as the header nav: three 21px-tall links side by side is a
   miss-prone target on a phone. */
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--accent); }

/* ─── long-form legal pages ─── */
.legal { padding: 64px 0 90px; }
.legal h1 { text-align: left; max-width: none; margin-inline: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.legal h3 { margin: 26px 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .updated { color: var(--text-faint); font-size: 14px; }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn { width: auto; }
  .banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 38px; }
  .banner-text { max-width: 620px; }
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .site-footer .shell { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Respect the visitor's own setting. Everything here is decoration. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
