:root {
  color-scheme: light;
  --paper: #f4f5f3;
  --surface: #ffffff;
  --ink: #202522;
  --muted: #626a65;
  --line: #dfe3df;
  --accent: #2f6650;
  --accent-soft: #e7efe9;
  --warm: #aa7a31;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner,
.document,
.footer-inner {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

.document {
  padding: 64px 0 80px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.32; }
h1 { margin: 0 0 12px; font-size: 34px; }
h2 { margin: 48px 0 12px; padding-top: 4px; font-size: 22px; }
h3 { margin: 28px 0 8px; font-size: 18px; }
p { margin: 0 0 16px; }
ul { margin: 8px 0 18px; padding-left: 22px; }
li + li { margin-top: 6px; }

.lede { max-width: 650px; color: var(--muted); font-size: 18px; }
.meta { margin: 18px 0 34px; color: var(--muted); font-size: 14px; }

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--warm);
  background: var(--surface);
}

.action-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--accent-soft); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { padding: 26px 0 36px; font-size: 13px; }

/* Versioned legal documents */
.legal-document {
  width: min(100% - 40px, 800px);
}

.legal-document h1 {
  max-width: 700px;
  overflow-wrap: anywhere;
}

.legal-section {
  padding-top: 4px;
}

.legal-section p,
.legal-section li {
  overflow-wrap: anywhere;
}

.legal-contact {
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-contact dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-contact dl div {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.legal-contact dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-contact dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-footer {
  width: min(100% - 40px, 800px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}

/* Public product overview */
.home-page {
  background: #f1f3f1;
}

.home-header,
.product-shell,
.product-hero-inner,
.product-footer {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.home-header {
  min-height: 68px;
}

.product-hero {
  min-height: min(780px, calc(100dvh - 68px));
  overflow: hidden;
  color: #f7faf7;
  background: #173e30;
}

.product-hero-inner {
  position: relative;
  min-height: min(780px, calc(100dvh - 68px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 80px;
  align-items: center;
}

.product-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 590px;
  padding: 40px 0;
}

.product-kicker,
.band-label {
  margin: 0 0 14px;
  color: #b9d4c6;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.product-hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
}

.product-hero-lede {
  max-width: 540px;
  margin: 26px 0 0;
  color: #dce9e2;
  font-size: 19px;
  line-height: 1.65;
}

.product-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-primary,
.product-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 730;
  text-decoration: none;
}

.product-primary {
  color: #173e30;
  background: #f7faf7;
}

.product-secondary {
  color: #f7faf7;
  border-color: rgba(247, 250, 247, 0.52);
  background: transparent;
}

.product-primary:active,
.product-secondary:active {
  transform: translateY(1px);
}

.product-hero-screen {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(4, 24, 16, 0.34);
}

.product-summary,
.product-features,
.safety-section,
.release-section {
  border-top: 1px solid var(--line);
}

.product-summary {
  padding: 84px 0;
  background: #ffffff;
}

.summary-grid,
.safety-layout,
.release-layout,
.counsel-layout {
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 72px;
  align-items: start;
}

.product-summary h2,
.product-features h2,
.counsel-band h2,
.safety-section h2,
.release-section h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
}

.product-summary p,
.section-heading p,
.release-section p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
}

.service-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.service-facts div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.service-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-facts dd {
  margin: 0;
  font-weight: 650;
}

.product-features {
  padding: 104px 0 44px;
}

.section-heading {
  max-width: 720px;
}

.feature-row {
  min-height: 680px;
  margin-top: 72px;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 104px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .phone-shot {
  order: 1;
}

.feature-number {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
}

.feature-copy > p {
  max-width: 570px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 680;
}

.phone-shot {
  width: min(100%, 390px);
  margin: 0 auto;
}

.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d6dcd8;
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(23, 62, 48, 0.14);
}

.phone-shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.counsel-band {
  padding: 94px 0;
  color: #edf1f5;
  background: #202b39;
}

.counsel-band .band-label {
  color: #e1bc74;
}

.counsel-band p {
  margin: 0;
  color: #cbd3db;
}

.counsel-band .counsel-note {
  margin-top: 18px;
  color: #ffffff;
  font-weight: 720;
}

.safety-section {
  padding: 94px 0;
  background: #ffffff;
}

.safety-list {
  border-top: 1px solid var(--line);
}

.safety-list div {
  padding: 17px 0;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.safety-list span {
  color: var(--muted);
  font-size: 14px;
}

.release-section {
  padding: 72px 0;
  background: #e6ece8;
}

.release-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.release-link {
  color: var(--accent);
  border-color: var(--accent);
  white-space: nowrap;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-footer nav {
  display: flex;
  gap: 18px;
}

.product-footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 600px) {
  .header-inner { min-height: 58px; align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 8px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .document { padding: 42px 0 64px; }
  h1 { font-size: 29px; }
  h2 { margin-top: 40px; font-size: 20px; }
}

@media (max-width: 960px) {
  .home-header {
    width: 100%;
    max-width: none;
    padding: 0 18px;
  }

  .product-shell {
    width: 100%;
    max-width: none;
    padding-right: 18px;
    padding-left: 18px;
  }

  .product-footer {
    width: 100%;
    max-width: none;
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-header {
    min-height: 62px;
    flex-direction: row;
    align-items: center;
  }

  .home-header .site-nav {
    width: auto;
    max-width: 66%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .home-header .site-nav a:nth-child(2),
  .home-header .site-nav a:nth-child(3) {
    display: none;
  }

  .product-hero,
  .product-hero-inner {
    min-height: 0;
  }

  .product-hero-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 58px 18px 64px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: start;
  }

  .product-hero-copy {
    width: 100%;
    max-width: 520px;
    padding: 0;
  }

  .product-hero h1 {
    max-width: 340px;
    font-size: 48px;
  }

  .product-hero-lede {
    max-width: 390px;
    font-size: 16px;
  }

  .product-hero-screen {
    align-self: center;
    width: min(100%, 280px);
    max-width: 280px;
    margin: 0 auto;
    border-radius: 26px;
  }

  .summary-grid,
  .safety-layout,
  .release-layout,
  .counsel-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .product-summary,
  .safety-section,
  .counsel-band {
    padding: 68px 0;
  }

  .product-features {
    padding-top: 76px;
  }

  .feature-row {
    min-height: 0;
    margin-top: 56px;
    padding: 54px 0;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .phone-shot {
    order: initial;
  }

  .phone-shot {
    width: min(86%, 360px);
  }

  .product-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-footer nav {
    flex-wrap: wrap;
  }
}

/* Multilingual support */
.support-page {
  min-height: 100dvh;
  background: #f2f4f2;
}

.support-header .header-inner {
  width: min(100% - 40px, 920px);
}

.language-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-control label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.language-control select {
  min-height: 40px;
  max-width: 190px;
  padding: 0 34px 0 12px;
  border: 1px solid #c9d0cb;
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}

.language-control select:focus-visible {
  outline: 3px solid rgba(47, 102, 80, 0.2);
  outline-offset: 2px;
  border-color: var(--accent);
}

.support-document {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.support-intro {
  max-width: 690px;
  padding-bottom: 58px;
}

.support-intro h1 {
  max-width: 680px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.12;
}

.support-intro .lede {
  margin-top: 18px;
  font-size: 18px;
}

.support-section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.support-section-heading {
  max-width: 620px;
  margin-bottom: 30px;
}

.support-section h2,
.support-urgent h2 {
  margin: 0;
  padding: 0;
  font-size: 22px;
}

.support-section-heading p,
.support-email > p,
.support-urgent p {
  margin-top: 10px;
  color: var(--muted);
}

.support-rows {
  border-top: 1px solid var(--line);
}

.support-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.support-index {
  padding-top: 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
}

.support-row h3 {
  margin: 0;
  font-size: 17px;
}

.support-row p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.support-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 72px;
}

.support-checklist {
  margin-top: 22px;
  padding-left: 20px;
  color: var(--muted);
}

.support-warning {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--warm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.support-email {
  align-self: start;
  padding: 26px;
  border: 1px solid #d7ddd8;
  border-radius: 6px;
  background: var(--surface);
}

.support-email .action-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.support-address {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.support-urgent {
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}

.support-urgent p {
  max-width: 720px;
}

.support-footer {
  width: min(100% - 40px, 920px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.support-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.support-footer a {
  color: var(--muted);
  text-decoration: none;
}

.support-gateway {
  display: grid;
  min-height: 100dvh;
  place-items: center;
}

.language-gateway {
  width: min(100% - 40px, 620px);
  padding: 56px 0;
}

.language-gateway .eyebrow {
  margin-top: 54px;
}

.language-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.language-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 680;
  text-decoration: none;
}

.language-list a:hover,
.language-list a:focus-visible {
  color: var(--accent);
}

@media (max-width: 700px) {
  .legal-header .header-inner {
    min-height: 62px;
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .legal-header .brand {
    flex: 1;
  }

  .legal-document {
    padding-top: 48px;
  }

  .legal-document h1 {
    font-size: 30px;
  }

  .legal-section h2 {
    margin-top: 40px;
    font-size: 20px;
  }

  .legal-contact dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .legal-footer {
    flex-direction: column;
  }

  .support-header .header-inner {
    min-height: 62px;
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .support-header .brand {
    flex: 1;
  }

  .language-control label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .language-control select {
    max-width: 148px;
  }

  .support-document {
    padding-top: 48px;
  }

  .support-intro {
    padding-bottom: 42px;
  }

  .support-intro h1 {
    font-size: 34px;
  }

  .support-section {
    padding: 42px 0;
  }

  .support-contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .support-email {
    padding: 22px 20px;
  }

  .support-footer {
    flex-direction: column;
  }
}
