:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #18201b;
  --muted: #5d695f;
  --line: #dbe3dc;
  --accent: #2d6f4e;
  --accent-dark: #20553a;
  --accent-soft: #dff0e5;
  --shadow: 0 24px 60px rgba(31, 57, 42, 0.13);
  --radius-lg: 30px;
  --radius-md: 20px;
  --shell: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(138, 191, 157, 0.22), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 36px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 30;
  padding: 18px 0;
}

.header-inner,
.footer-inner,
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: white;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(45, 111, 78, 0.22);
}

.language-menu { position: relative; }

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 750;
  list-style: none;
}

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

.language-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 4px;
  width: min(340px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.language-popover a {
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.language-popover a:hover,
.language-popover a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero { padding: 56px 0 86px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
}

.hero-with-shot .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.hero-copy { max-width: 880px; }

.eyebrow,
.section-label {
  margin: 0 0 13px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.9vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lede {
  max-width: 780px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 850;
}

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(45, 111, 78, 0.22);
}

.button-primary:hover { background: var(--accent-dark); }

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.section { padding: 84px 0; }

.section-accent {
  background: var(--ink);
  color: white;
}

.section-accent .section-label { color: #9bd8b4; }
.section-soft { background: var(--surface-soft); }

.mode-grid,
.steps,
.benefits {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mode-card,
.step,
.benefits article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.section-accent .mode-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.mode-card p,
.step p,
.benefits p,
.section-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.section-accent .mode-card p { color: #d7ded9; }

.mode-kicker {
  margin-bottom: 26px !important;
  color: #9bd8b4 !important;
  font-size: 1.35rem;
  font-weight: 900;
}

.example-line {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 800;
}

.contrast-line {
  max-width: 800px;
  margin: 28px 0 0;
  color: #bfe8cf;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 850;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  border-radius: 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.section-copy {
  max-width: 720px;
  font-size: 1.08rem;
}

.product-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(26, 64, 42, 0.12);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.product-shot img,
.product-shot svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero .product-shot-home {
  width: min(100%, 560px);
  justify-self: end;
}

.product-shot-shopping { width: 100%; }

.section-media,
.step-media { margin-top: 30px; }

.media-wide {
  width: min(100%, 720px);
  margin-inline: auto;
}

.media-narrow {
  width: min(100%, 520px);
  margin-inline: auto;
}

.step-media .product-shot { margin-top: 0; }

.step .product-shot {
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(31, 57, 42, 0.11);
}

.controls-media { margin-top: 36px; }

.final-cta {
  padding-top: 70px;
  padding-bottom: 70px;
  border-top: 1px solid var(--line);
}

.final-inner { align-items: flex-end; }
.final-inner h2 { margin-bottom: 10px; }

.final-inner p:not(.section-label) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }
.site-footer a { font-weight: 750; text-underline-offset: 4px; }

.button:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible,
.language-menu summary:focus-visible,
.language-popover a:focus-visible {
  outline: 3px solid #8bc9a5;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero { padding-top: 28px; }

  .hero-with-shot .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero .product-shot-home { justify-self: center; }
  .steps { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { padding: 14px 0; }

  .language-menu summary span:last-child { display: none; }
  .language-menu summary { width: 42px; justify-content: center; padding: 8px; }
  .language-popover {
    grid-template-columns: 1fr 1fr;
    right: 0;
  }

  .hero { padding: 18px 0 52px; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.8rem); }

  .lede {
    margin-bottom: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button { width: 100%; min-height: 54px; }
  .microcopy { text-align: center; }

  .section { padding: 60px 0; }
  .mode-grid { grid-template-columns: 1fr; }

  .product-shot { border-radius: 22px; }
  .step { padding: 20px; }

  .final-inner,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Four-lifecycle positioning */
.mode-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mode-grid-four .mode-card { display: flex; flex-direction: column; }
.mode-grid-four .example-line { margin-top: auto; padding-top: 18px; }
.anonymous-section { background: #f4efe7; }
.privacy-line { max-width: 720px; margin: 22px 0 0; font-weight: 850; color: var(--ink); }
.privacy-demo { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.privacy-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 17px; border-radius: 15px; background: var(--surface-soft); }
.privacy-row strong { color: var(--muted); text-align: right; }
.privacy-row.privacy-own { background: var(--accent-soft); }
.privacy-row.privacy-own strong { color: var(--accent-dark); }
@media (max-width: 1000px) { .mode-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mode-grid-four { grid-template-columns: 1fr; } .privacy-row { align-items: flex-start; flex-direction: column; } .privacy-row strong { text-align: left; } }
