/* ---------- Tokens ---------- */
:root {
  --ink: #14122b;
  --ink-soft: #4b4967;
  --indigo: #3b3a8c;
  --indigo-deep: #24235e;
  --lilac: #e6e3f7;
  --mist: #f6f5fb;
  --white: #ffffff;
  --green: #12a37f;
  --green-text: #0b7a5c;
  --red-text: #a3363f;
  --amber: #f5a524;
  --amber-hover: #e0920f;
  --line: #dcd8ee;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(36, 35, 94, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.container.narrow { width: min(780px, 100% - 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  background: var(--indigo);
  color: var(--white);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--indigo-deep); transform: translateY(-1px); }

.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); }

.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--lilac); }

.btn-small { padding: 0.55em 1.1em; font-size: 0.95rem; }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--lilac); }

/* ---------- Top disclosure bar and header ---------- */
.disclosure-bar {
  background: var(--indigo-deep);
  color: #e8e6fb;
  font-size: 0.875rem;
  text-align: center;
  padding: 8px 20px;
}
.disclosure-bar p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 5px solid var(--green);
  border-right-color: var(--lilac);
}
.brand-light { color: var(--white); }
.brand-light .brand-mark { border-right-color: #6b6aa8; }

.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.menu a:not(.btn):hover { color: var(--indigo); }

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--indigo);
  background: transparent;
  border: 2px solid var(--indigo);
  border-radius: 999px;
  padding: 0.4em 1em;
  cursor: pointer;
}

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: 84px; }

.section { padding-block: clamp(56px, 8vw, 100px); }
.section-tint { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px);
  background:
    radial-gradient(55% 60% at 88% 8%, #ffe6d3 0%, rgba(255, 230, 211, 0) 70%),
    linear-gradient(180deg, #f6f5fb 0%, #ebe7fa 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero-copy h1 { max-width: 15em; }
.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 32em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 0.9rem; }
.hero-note { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 1.6rem; }

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.facts li {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4em 1em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-art svg { width: 100%; max-width: 480px; margin-inline: auto; height: auto; }

/* The ring fills once when the page loads */
.ring-value { animation: ring-fill 1.6s cubic-bezier(0.22, 0.7, 0.2, 1) 0.3s both; }
@keyframes ring-fill {
  from { stroke-dashoffset: 1068; }
  to { stroke-dashoffset: 192; }
}

/* ---------- Panels (yes / no lists) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.section-tint .panel { background: var(--mist); }
.panel-yes { border-top: 5px solid var(--green); }
.panel-no { border-top: 5px solid var(--red-text); }

.tick, .cross { list-style: none; padding: 0; margin: 0; }
.tick li, .cross li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.75em;
}
.tick li::before, .cross li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.tick li::before { content: "\2713"; color: var(--green-text); }
.cross li::before { content: "\2715"; color: var(--red-text); }

.method {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ---------- Day timeline ---------- */
.day {
  list-style: none;
  padding: 0;
  margin: 0 0 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.day::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 10px;
  height: 2px;
  background: var(--line);
}
.day li { position: relative; padding-top: 38px; }
.day li::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--green);
}
.day-when { display: block; font-size: 0.9rem; font-weight: 600; color: var(--green-text); margin-bottom: 4px; }
.day li p { color: var(--ink-soft); margin: 0; max-width: 24em; }

.also h3 { font-size: 1.05rem; margin-bottom: 0.8em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 0.4em 1em;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.98rem; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--indigo); color: var(--white); font-weight: 600; border-bottom: 0; }
tbody th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.row-top th, .row-top td { background: #eaf8f3; }

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0.15em 0.7em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green-text);
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan-featured {
  border: 2px solid var(--indigo);
  box-shadow: var(--shadow);
}
.plan-featured .badge { position: absolute; top: -13px; left: 24px; margin: 0; background: var(--indigo); }
.plan-device { font-weight: 600; color: var(--green-text); margin-bottom: 0.6em; }
.plan-for { margin: 1em 0 0; font-size: 0.95rem; color: var(--ink-soft); }

.callout {
  margin-top: 2rem;
  padding: 22px 26px;
  background: var(--lilac);
  border-radius: var(--radius);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--indigo);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.cta-band {
  padding-block: clamp(56px, 8vw, 96px);
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo));
  color: var(--white);
  text-align: center;
}
.cta-inner { max-width: 640px; }
.cta-band p { color: #dedbf7; }
.cta-band .btn-primary { margin-top: 0.6rem; }
.cta-disclosure { margin: 1.2rem 0 0; font-size: 0.875rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c6e2; padding-top: 52px; font-size: 0.95rem; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2c2a4d;
}
.footer-blurb { max-width: 28em; margin: 0.8rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-content: flex-start; }
.footer-links a { color: #c9c6e2; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.legal { padding-block: 24px 40px; font-size: 0.85rem; color: #9c99be; }
.legal p { margin-bottom: 0.7em; max-width: 60em; }
.legal strong { color: #c9c6e2; }
.copyright { margin-top: 1.2rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 245, 251, 0.96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta .btn { display: block; }
.sticky-cta.is-visible { transform: translateY(0); }

/* ---------- Guides and articles ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.guide-card {
  display: block;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { border-color: var(--indigo); box-shadow: var(--shadow); }
.guide-card h3 { margin-bottom: 0.4em; }
.guide-card p { color: var(--ink-soft); }
.guide-card .more { color: var(--indigo); font-weight: 600; margin: 0; }

.crumbs { padding-top: 22px; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

.article-hero { padding-block: 18px 0; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.byline { color: var(--ink-soft); font-size: 0.95rem; }

.answer-box {
  margin: 1.4rem 0;
  padding: 20px 24px;
  background: #eaf8f3;
  border-left: 5px solid var(--green);
  border-radius: var(--radius-sm);
}
.answer-box p { margin: 0; }

.toc {
  margin: 1.6rem 0 2.4rem;
  padding: 20px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc ol { margin: 0.5em 0 0; padding-left: 1.3em; }
.toc li { margin-bottom: 0.25em; }

.prose { padding-bottom: 56px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.5em; font-size: 1.2rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose .table-wrap { margin: 1.4rem 0 1rem; }
.table-wrap.compact table { min-width: 520px; }
.prose .note { font-size: 0.9rem; color: var(--ink-soft); }
.prose .method { margin-top: 2.4rem; }

.inline-cta {
  margin: 2.2rem 0;
  padding: 24px;
  text-align: center;
  background: var(--lilac);
  border-radius: var(--radius);
}
.inline-cta p { margin-bottom: 0.8em; }
.inline-cta p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 340px; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { margin-top: 10px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: var(--mist);
    border-bottom: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; }
  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 76px; }
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 26px; }
  .day::before { left: 10px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .day li { padding-top: 0; padding-left: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-value { animation: none; }
  .btn, .sticky-cta { transition: none; }
}
