:root {
  color-scheme: light;
  --ink: #112431;
  --muted: #536872;
  --paper: #f7f6f0;
  --surface: #ffffff;
  --navy: #0b3348;
  --teal: #0b7075;
  --teal-dark: #07575b;
  --aqua: #d7efed;
  --orange: #d46b35;
  --line: #cfddd9;
  --warning: #fff2d8;
  --shadow: 0 18px 48px rgba(17, 36, 49, 0.11);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--navy);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  min-height: 72px;
  padding: 0.75rem max(1rem, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(207, 221, 217, 0.9);
  background: rgba(247, 246, 240, 0.96);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(17, 36, 49, 0.15);
}

.app-switcher {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  min-width: 0;
  overflow-x: auto;
  padding-block: 0.1rem;
}

.app-switcher .brand {
  flex: 0 0 auto;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--aqua);
}

main {
  min-height: 70vh;
}

.hero,
.page-intro,
.features,
.screenshots,
.language-panel,
.support-grid,
.about-card,
.policy,
.help-layout {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  min-height: 560px;
  padding-block: clamp(4rem, 10vw, 8rem);
}

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

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  letter-spacing: -0.055em;
}

.page-intro h1,
.policy h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
}

h2 {
  margin-top: 2.1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-top: 1.8rem;
  font-size: 1.2rem;
}

.lede {
  max-width: 780px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.hero-icon {
  width: min(100%, 260px);
  margin-inline: auto;
  border-radius: 25%;
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--teal-dark);
  border-radius: 12px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--teal-dark);
}

.button.primary:hover {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.button.secondary {
  color: var(--teal-dark);
  background: transparent;
}

.button.secondary:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: white;
}

.platforms {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 620;
}

.platforms a {
  color: inherit;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

.platforms a:hover {
  color: var(--teal-dark);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 5rem;
}

.feature-card,
.support-card,
.about-card,
.language-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(17, 36, 49, 0.06);
}

.feature-card,
.support-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-card h2,
.support-card h2,
.about-card h2 {
  margin-top: 0;
}

.feature-card p,
.support-card p,
.about-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.screenshots {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem 6rem;
}

.screenshots figure {
  margin: 0;
}

.screenshots img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone-shot {
  max-width: 310px;
  justify-self: center;
}

.language-panel {
  margin-bottom: 5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.language-panel h2 {
  margin-top: 0;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.language-links a {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 640;
  text-decoration: none;
}

.language-links a:hover,
.language-links a[aria-current="page"] {
  border-color: var(--teal);
  background: var(--aqua);
}

.page-intro {
  padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem;
}

.page-intro.narrow,
.policy {
  max-width: 820px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-weight: 760;
}

.warning,
.authority-note {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--orange);
  background: var(--warning);
}

.about-card {
  max-width: 820px;
  margin-top: 1rem;
  margin-bottom: 6rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.policy {
  padding-bottom: 6rem;
}

.policy > section {
  padding-block: 0.6rem 1.2rem;
  border-top: 1px solid var(--line);
}

.effective-date {
  color: var(--muted);
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 760px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: 6rem;
}

.toc {
  position: sticky;
  top: 95px;
  max-height: calc(100vh - 120px);
  padding: 1.25rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.toc h2 {
  margin-top: 0;
  font-size: 1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.3rem;
}

.toc li {
  margin-block: 0.35rem;
}

.toc-level-3 {
  margin-left: 0.7rem;
  font-size: 0.92rem;
}

.help-content {
  min-width: 0;
}

.help-content h2,
.help-content h3 {
  scroll-margin-top: 100px;
}

.help-content h2:first-child {
  margin-top: 0;
}

.help-content p,
.help-content li,
.policy p {
  max-width: 72ch;
}

.help-content code {
  padding: 0.12em 0.35em;
  border-radius: 5px;
  color: #15323e;
  background: #e8eeec;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.help-content li + li {
  margin-top: 0.32rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1rem, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #eef1ed;
}

.site-footer p {
  margin: 0;
}

.language-menu {
  max-width: 620px;
}

.language-menu summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 730;
}

.language-menu .language-links {
  margin-top: 0.75rem;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .primary-nav {
    width: 100%;
    padding-bottom: 0.2rem;
    overflow-x: auto;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 4rem;
  }

  .hero-icon {
    width: 180px;
    grid-row: 1;
    margin-left: 0;
  }

  .features,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .screenshots {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .screenshots figure:last-child {
    grid-column: 1 / -1;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    max-height: none;
  }

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

@media (max-width: 520px) {
  body {
    font-size: 0.98rem;
  }

  .hero,
  .page-intro,
  .features,
  .screenshots,
  .language-panel,
  .support-grid,
  .about-card,
  .policy,
  .help-layout {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .screenshots {
    grid-template-columns: 1fr;
  }

  .screenshots figure:last-child {
    grid-column: auto;
  }

  .phone-shot {
    max-width: 230px;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #eaf2f2;
    --muted: #b9c9ca;
    --paper: #0d2029;
    --surface: #142d36;
    --navy: #ecf8f6;
    --teal: #73d1ce;
    --teal-dark: #8ee0dc;
    --aqua: #193f45;
    --orange: #ff9b67;
    --line: #35515a;
    --warning: #44331d;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  }

  .site-header {
    background: rgba(13, 32, 41, 0.96);
  }

  .site-footer {
    background: #102832;
  }

  .help-content code {
    color: #eaf2f2;
    background: #233e47;
  }

  .button.primary {
    color: #07252a;
    background: var(--teal-dark);
  }
}
