:root {
  --navy: #232d37;
  --black: #222222;
  --white: #ffffff;
  --red: #d83230;
  --ink: #222222;
  --ink-soft: #5b636c;
  --line: #e2e5e8;
  --tint: #f4f5f6;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 40px rgba(34, 34, 34, 0.1);
  --maxw: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }

img { max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip-link:focus { left: 0; }

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

/* Header ------------------------------------------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(35, 45, 55, 0.96);
  backdrop-filter: blur(10px);
  color: var(--white);
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
}

header.site .brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

header.site nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  font-size: 15px;
}

header.site nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 6px 2px;
}

header.site nav a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  position: relative;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.08);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M1.2 1.2 6 6l4.8-4.8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 9px 30px 9px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch select option {
  color: var(--navy);
  background: var(--white);
}

.header-actions .btn-header {
  background: var(--white);
  color: var(--navy);
  padding: 11px 20px;
}

.header-actions .btn-header:hover { background: rgba(255, 255, 255, 0.88); }

@media (max-width: 880px) {
  header.site { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .btn-header { padding: 10px 16px; font-size: 15px; }

  header.site nav#site-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 6px;
  }

  header.site nav#site-nav[hidden] { display: none; }
  header.site nav#site-nav a { padding: 10px 2px; width: 100%; }
}

@media (max-width: 400px) {
  header.site .brand { font-size: 18px; }
  header.site .brand img { width: 32px; height: 32px; }
}

/* Layout ------------------------------------------------------------- */

main { display: block; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 48px);
}

section { padding: clamp(48px, 7vw, 84px) 0; }

[id] { scroll-margin-top: 88px; }

.sec-navy { background: var(--navy); color: var(--white); }
.sec-black { background: var(--black); color: var(--white); }
.sec-light { background: var(--white); color: var(--ink); }
.sec-light + .sec-light { border-top: 1px solid var(--line); }

h1, h2, h3 { letter-spacing: -0.015em; }

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 12px;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}

p.sub {
  margin: 0 0 28px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.note { font-size: 14px; color: var(--ink-soft); }

.sec-navy p.sub,
.sec-black p.sub,
.sec-navy .note,
.sec-black .note { color: rgba(255, 255, 255, 0.74); }

.sec-navy a,
.sec-black a { color: var(--white); }

/* Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--black); }

.btn-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.sec-navy .btn-primary,
.sec-black .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.sec-navy .btn-primary:hover,
.sec-black .btn-primary:hover { background: rgba(255, 255, 255, 0.86); }

.sec-navy .btn-ghost,
.sec-black .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  line-height: 1.15;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.badge:hover { transform: translateY(-1px); background: var(--navy); }
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.badge .badge-small { display: block; font-size: 11px; opacity: 0.82; }
.badge .badge-large { display: block; font-size: 16px; font-weight: 600; }

.sec-navy .badge,
.sec-black .badge {
  background: var(--white);
  color: var(--black);
}

.sec-navy .badge:hover,
.sec-black .badge:hover { background: rgba(255, 255, 255, 0.86); }

/* Hero --------------------------------------------------------------- */

.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 80px); }

.hero-grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  max-width: 52ch;
}

.figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.figure img { display: block; width: 100%; height: auto; }

.figure figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.sec-navy .figure,
.sec-black .figure {
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
}

.trust-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 46ch;
}

.trust-line svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--red);
  margin-top: 2px;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .figure { order: -1; }
}

/* Split sections ----------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.split-reverse .split-media { order: -1; }

@media (max-width: 880px) {
  .split-media { order: -1; }
}

/* SOS visual --------------------------------------------------------- */

.moment-visual {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}

.moment-visual p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 32ch;
}

.sos-mark {
  display: inline-grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #e2504e, var(--red));
  color: var(--white);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 2px;
  box-shadow: 0 0 0 12px rgba(216, 50, 48, 0.1);
  animation: sos-pulse 3.2s ease-in-out infinite;
}

@keyframes sos-pulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(216, 50, 48, 0.1); }
  50% { box-shadow: 0 0 0 22px rgba(216, 50, 48, 0.04); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sos-mark { animation: none; }
  .btn:hover, .badge:hover { transform: none; }
}

/* Steps -------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Cards -------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  margin-bottom: 14px;
}

.card-icon svg { width: 22px; height: 22px; }
.card-icon.is-sos { color: var(--red); }

.roles {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.role {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--tint);
}

.role h3 { margin: 0 0 6px; font-size: 17px; }
.role p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  margin-bottom: 10px;
}

.tag.is-red { background: var(--red); }

/* Dark section variants ---------------------------------------------- */

.sec-navy .card,
.sec-navy .steps li,
.sec-navy .role,
.sec-navy .plan,
.sec-black .card,
.sec-black .steps li,
.sec-black .role,
.sec-black .plan {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.sec-navy .card p,
.sec-navy .steps p,
.sec-navy .role p,
.sec-black .card p,
.sec-black .steps p,
.sec-black .role p { color: rgba(255, 255, 255, 0.74); }

.sec-navy .steps li::before,
.sec-black .steps li::before {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.sec-navy .card-icon,
.sec-black .card-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.sec-navy .card-icon.is-sos,
.sec-black .card-icon.is-sos { color: #ff7a78; }

.sec-navy .tag,
.sec-black .tag { background: var(--white); color: var(--navy); }
.sec-navy .tag.is-red,
.sec-black .tag.is-red { background: var(--red); color: var(--white); }

.sec-navy .check-list li,
.sec-black .check-list li { color: rgba(255, 255, 255, 0.78); }

.sec-navy .plan.is-featured,
.sec-black .plan.is-featured {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.sec-navy .price small,
.sec-black .price small,
.sec-navy .plan .plan-role,
.sec-black .plan .plan-role { color: rgba(255, 255, 255, 0.74); }

.sec-navy .figure figcaption,
.sec-black .figure figcaption {
  color: rgba(255, 255, 255, 0.74);
  border-top-color: rgba(255, 255, 255, 0.16);
  background: transparent;
}

/* Lists -------------------------------------------------------------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--red);
  margin-top: 3px;
}

/* Pricing ------------------------------------------------------------ */

.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.plan {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.plan.is-featured { border-color: var(--navy); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .plan-role { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }

.price { font-size: 38px; font-weight: 700; margin: 0; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-soft); }

/* Crisis band -------------------------------------------------------- */

.crisis .wrap {
  border-left: 4px solid var(--red);
  padding-left: clamp(18px, 4vw, 36px);
}

.crisis h2 { margin-bottom: 10px; }
.crisis p { color: rgba(255, 255, 255, 0.78); max-width: 68ch; margin: 0 0 10px; }

/* FAQ ---------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* Final CTA ---------------------------------------------------------- */

.final-cta { text-align: center; }
.final-cta .store-badges { justify-content: center; }
.final-cta p.sub { margin-inline: auto; }

/* Footer ------------------------------------------------------------- */

footer.site {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
  padding: 32px clamp(18px, 5vw, 48px) 48px;
  font-size: 15px;
  display: grid;
  gap: 12px;
}

footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: rgba(255, 255, 255, 0.86); }
footer.site a:hover { color: var(--white); }

/* Legal pages -------------------------------------------------------- */

article.legal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  max-width: min(78ch, calc(100% - 2 * clamp(18px, 5vw, 48px)));
  margin: 32px auto;
}

article.legal h1 { margin-top: 0; }
article.legal h2 { font-size: 20px; margin-top: 32px; }
article.legal ul { padding-left: 22px; }
article.legal .updated { font-size: 14px; color: var(--ink-soft); }

.callout {
  border-left: 4px solid var(--red);
  background: var(--tint);
  padding: 16px 18px;
  border-radius: 12px;
}

.notice {
  border-left: 4px solid var(--navy);
  background: var(--tint);
  padding: 16px 18px;
  border-radius: 12px;
  margin: 24px clamp(18px, 5vw, 48px) 0;
}

form.card input,
input[type="password"],
input[type="text"] {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}
