:root {
  --ink: #22262f;
  --muted: #676b75;
  --background: #f4f4f6;
  --soft: #f7f7f9;
  --line: #e5e5e9;
  --paper: #ffffff;
  --red: #ec0016;
  --red-deep: #c50013;
  --red-wash: #fff1f2;
  --header: rgb(255 255 255 / 88%);
  --shadow: 0 8px 30px rgb(34 38 47 / 4%);
  --max: 1120px;
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 8% 0%, rgb(236 0 22 / 3.5%), transparent 42rem), var(--background);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main, section, article, nav, .hero-inner > *, .privacy-list li > *, .actions > * { min-width: 0; }
h1, h2, h3, p, li, a { overflow-wrap: anywhere; }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
svg { display: block; flex-shrink: 0; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 16px;
  padding: 12px 18px; border-radius: 14px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

/* One navigation surface, like the app's floating toolbar. */
.site-header {
  position: sticky; top: 12px; z-index: 20;
  width: min(calc(100% - 48px), var(--max)); margin: 16px auto 0; padding: 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--header);
  box-shadow: 0 4px 18px rgb(34 38 47 / 3%);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); font-size: 1.25rem; font-weight: 750; letter-spacing: -.65px; text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.header-links { display: flex; flex-wrap: wrap; margin-left: auto; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; }
.header-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 12px; border-radius: 12px; text-decoration: none;
  color: var(--muted); transition: background 160ms ease, color 160ms ease;
}
.header-links a:hover { background: var(--soft); color: var(--ink); }
.header-links .language-switch { min-width: 44px; padding: 8px 12px; background: var(--soft); color: var(--ink); }

.hero { position: relative; }
.hero-inner {
  position: relative; width: min(calc(100% - 64px), var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center; gap: clamp(36px, 6vw, 80px); padding: 52px 0 64px;
}
h1 {
  max-width: 680px; margin-bottom: 22px; font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700; letter-spacing: -.055em; line-height: 1.06;
}
.hero-copy { max-width: 520px; margin-bottom: 28px; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.availability-note { margin: 14px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.hero-text { animation: reveal 380ms ease-out both; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 14px;
  padding: 13px 20px; border: 1px solid transparent; border-radius: 14px;
  background: #ec0016; color: #ffffff; font-size: 0.875rem; font-weight: 650; text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.button:hover { background: #c50013; }
.button:active { transform: scale(.98); }
.button svg, .quiet-link svg { width: 1em; height: 1em; }
.quiet-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.quiet-link:hover { background: var(--paper); color: var(--ink); }
.phone-stage {
  position: relative; width: min(100%, 280px); justify-self: center; padding: 7px;
  border: 1px solid #393b42; border-radius: 44px; background: #0a0b0e;
  box-shadow: 0 24px 55px rgb(22 23 27 / 16%), 0 3px 10px rgb(22 23 27 / 8%);
  animation: reveal 500ms 70ms ease-out both;
}
.phone-stage img { width: 100%; height: auto; border-radius: 37px; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Features and privacy use the same rounded content surfaces as journey cards. */
.feature-section { padding: 0 0 12px; }
.feature-grid {
  width: min(calc(100% - 48px), var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.feature {
  padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow);
}
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  border-radius: 14px; background: var(--red-wash); color: var(--red-deep);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h2 { margin-bottom: 12px; font-size: 1.4375rem; font-weight: 650; letter-spacing: -.7px; line-height: 1.22; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.privacy-promise {
  width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 88px 0;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.privacy-promise h2 { max-width: 470px; margin-bottom: 16px; font-size: clamp(1.875rem, 3.5vw, 2.625rem); font-weight: 650; letter-spacing: -1.5px; line-height: 1.13; }
.page-intro { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.privacy-list { margin: 0; padding: 0 24px; list-style: none; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.privacy-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
.privacy-list li + li { border-top: 1px solid var(--line); }
.privacy-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 0.9375rem; font-weight: 650; }
.privacy-list li > span:last-child { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }
.check { display: grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; border-radius: 11px; background: var(--red-wash); color: var(--red-deep); }
.check svg { width: 16px; height: 16px; }
.closing { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 36px; }
.closing h2 { max-width: 640px; margin: 0; font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 650; letter-spacing: -1px; line-height: 1.2; }
.site-footer { width: min(calc(100% - 64px), var(--max)); margin: 32px auto 0; padding: 24px 0 30px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; line-height: 1.7; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 16px; }
.footer-links a, .analytics-settings { display: inline-flex; align-items: center; min-height: 40px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .analytics-settings:hover { color: var(--ink); text-decoration: underline; }

/* Long-form pages keep a comfortable reading width and clear section boundaries. */
.page-shell { padding-top: 0; }
.page-hero, .document { width: min(calc(100% - 48px), 800px); margin: 0 auto; }
.page-hero { padding: 64px 8px 32px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.page-hero h1 { margin-bottom: 16px; font-size: clamp(2.25rem, 6vw, 3.25rem); letter-spacing: -.045em; line-height: 1.12; }
.document { padding-bottom: 32px; }
.document > section { padding: 28px; margin: 16px 0; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.document h2 { margin-bottom: 14px; font-size: 1.375rem; font-weight: 650; letter-spacing: -.55px; line-height: 1.3; }
.document h3 { margin: 24px 0 8px; font-size: 1.0625rem; font-weight: 650; }
.document p, .document li { color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.document p:last-child { margin-bottom: 0; }
.document a { color: var(--red-deep); }
.document ul, .document ol { padding-left: 22px; }
.document li + li { margin-top: 10px; }
.support-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 28px; }
.support-card { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.support-card h2 { margin-bottom: 10px; font-size: 1.125rem; letter-spacing: -.4px; }
.support-card p { margin-bottom: 0; font-size: 0.875rem; line-height: 1.75; }

/* The existing analytics choice uses a compact, accessible system-sheet treatment. */
.analytics-settings { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.analytics-panel {
  position: fixed; z-index: 50; inset: auto 20px 20px auto;
  width: min(440px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 24px; border: 0; border-radius: 24px; background: var(--paper);
  box-shadow: none;
}
.analytics-panel[hidden] { display: none; }
.analytics-panel h2 { margin: 0 0 10px; font-size: 1.1875rem; font-weight: 650; letter-spacing: -.4px; line-height: 1.35; }
.analytics-panel p { margin: 0 0 16px; color: var(--muted); font-size: 0.875rem; line-height: 1.65; }
.analytics-panel [data-analytics-status]:empty { display: none; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-actions button {
  flex: 1 1 150px; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--soft); color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.analytics-actions button:hover { background: var(--paper); border-color: var(--muted); }
.analytics-actions button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f3f6; --muted: #acb0bc; --background: #14161a; --soft: #292c33;
    --paper: #202228; --line: #363941; --red: #ff5267; --red-deep: #ff7585; --red-wash: #42222a;
    --header: rgb(32 34 40 / 90%); --shadow: 0 8px 30px rgb(0 0 0 / 6%);
  }
  .phone-stage { box-shadow: 0 24px 55px rgb(0 0 0 / 32%); }
}
@media (max-width: 820px) {
  .header-links .desktop-link { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 38px; padding-top: 44px; text-align: center; }
  .hero-text { max-width: 580px; margin: 0 auto; }
  h1, .hero-copy { margin-left: auto; margin-right: auto; }
  h1 { max-width: 540px; font-size: clamp(2.375rem, 7.8vw, 3.625rem); }
  .hero-copy { font-size: 1.0625rem; }
  .actions { justify-content: center; }
  .phone-stage { width: min(70vw, 270px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 26px; }
  .feature-icon { margin-bottom: 18px; }
  .feature h2 { font-size: 1.4375rem; }
  .privacy-promise { grid-template-columns: 1fr; gap: 28px; padding: 60px 0; }
  .privacy-promise h2 { max-width: 600px; }
  .closing-inner { align-items: flex-start; flex-direction: column; padding: 28px; gap: 24px; }
  .closing h2 { max-width: 600px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-header { top: 10px; width: calc(100% - 32px); margin-top: 12px; padding: 7px 10px; border-radius: 19px; }
  .brand { gap: 8px; font-size: 1.125rem; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .header-links { gap: 2px; font-size: 0.75rem; }
  .header-links a { padding: 8px; }
  .hero-inner, .privacy-promise, .site-footer { width: calc(100% - 40px); }
  .feature-grid, .closing, .page-hero, .document { width: calc(100% - 32px); }
  .hero-inner { padding-top: 40px; padding-bottom: 44px; gap: 34px; }
  h1 { font-size: clamp(2.1875rem, 9.8vw, 3rem); letter-spacing: -.05em; }
  .hero-copy { font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }
  .actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .button, .quiet-link { width: 100%; text-align: center; }
  .button { min-height: 50px; }
  .quiet-link { min-height: 44px; }
  .feature { padding: 24px; }
  .privacy-promise { padding: 52px 0; }
  .privacy-promise h2 { font-size: 1.9375rem; letter-spacing: -1px; }
  .page-intro { font-size: 1rem; }
  .privacy-list { padding: 0 20px; }
  .privacy-list li { gap: 12px; padding: 20px 0; }
  .closing-inner { padding: 24px; gap: 20px; }
  .closing h2 { font-size: 1.75rem; }
  .page-hero { padding: 42px 8px 24px; }
  .page-hero h1 { font-size: 2.375rem; }
  .document > section { padding: 22px; margin: 14px 0; }
  .document h2 { font-size: 1.3125rem; }
  .support-cards { grid-template-columns: 1fr; gap: 14px; }
  .support-card { padding: 22px; }
  /* Keep clear of Safari's viewport-edge color sampling behind the floating toolbar. */
  .analytics-panel { inset: auto 16px 6px; width: auto; max-height: calc(100dvh - 22px); padding: 22px; }
}
@media (max-width: 360px) {
  .site-header { gap: 4px; padding: 7px 8px; }
  .brand { font-size: 1.0625rem; gap: 7px; }
  .brand img { width: 32px; height: 32px; }
  .header-links a { padding: 8px 6px; }
  .header-links .language-switch { min-width: 40px; }
  .privacy-list { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3e4046; --line: #a4a7af; }
  .site-header { background: var(--paper); }
  .button, .feature, .privacy-list, .closing, .document > section { box-shadow: none; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --muted: #d8dbe4; --line: #7a7f8b; }
}
