:root {
  color-scheme: light dark;
  --bg: #f7faf8;
  --ink: #182426;
  --muted: #536467;
  --surface: #ffffff;
  --surface-strong: #edf5f2;
  --line: #d6e1de;
  --primary: #006a6f;
  --primary-ink: #ffffff;
  --accent: #a87413;
  --good: #3b7d44;
  --shadow: 0 18px 60px rgba(15, 31, 34, 0.13);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101616;
    --ink: #e8f0ed;
    --muted: #a8b8b4;
    --surface: #17201f;
    --surface-strong: #1d2b2a;
    --line: #334542;
    --primary: #7fd6d1;
    --primary-ink: #082020;
    --accent: #e0ad48;
    --good: #9ad08e;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::selection {
  background: var(--primary);
  color: var(--primary-ink);
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(18px);
}

.nav,
.footer,
.section,
.hero-inner,
.article-shell {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 106, 111, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--ink);
}

.hero {
  min-height: min(74vh, 760px);
  display: flex;
  align-items: end;
  background-image:
    linear-gradient(90deg, rgba(9, 24, 25, 0.86), rgba(9, 24, 25, 0.58) 48%, rgba(9, 24, 25, 0.18)),
    url("/assets/app-home.png");
  background-size: cover;
  background-position: center right;
  color: #f8fffd;
}

.hero-inner {
  padding: 116px 0 58px;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d9eae7;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd37b;
}

.hero-actions,
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.trust-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 6px 10px;
  color: #e9f5f2;
  font-size: 0.9rem;
  font-weight: 750;
}

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

p {
  margin: 0 0 16px;
}

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

.feature-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid.inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 24px;
}

.feature-card,
.guide-card,
.note,
.article table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(15, 31, 34, 0.04);
}

.feature-card {
  padding: 20px;
}

.feature-card p,
.guide-card strong {
  color: var(--muted);
}

.guide-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 44%, var(--line));
  box-shadow: var(--shadow);
}

.guide-card span {
  color: var(--primary);
  font-weight: 850;
}

.guide-card strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.band {
  background: var(--surface-strong);
  border-block: 1px solid var(--line);
}

.split {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 36px;
  padding: 72px 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 20px 44px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 900;
}

.privacy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-strip div {
  max-width: 760px;
}

.faq {
  padding-top: 0;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.article-shell {
  padding: 62px 0 82px;
}

.article {
  max-width: 820px;
}

.article h1 {
  margin-bottom: 10px;
}

.article h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.article h3 {
  margin-top: 24px;
}

.article ul,
.article ol {
  padding-left: 24px;
}

.article li {
  margin-bottom: 8px;
}

.article table {
  width: 100%;
  margin: 18px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.article th,
.article td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article th {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article tr:last-child td {
  border-bottom: 0;
}

.note {
  margin: 22px 0;
  padding: 16px;
}

.note strong {
  display: block;
  margin-bottom: 6px;
}

.article-nav {
  margin-top: 36px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  color: var(--muted);
}

.footer div,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer a {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 860px) {
  .hero {
    min-height: 680px;
    background-position: 64% center;
  }

  .hero-inner {
    padding-top: 92px;
  }

  .feature-grid,
  .guide-grid,
  .guide-grid.inline,
  .split {
    grid-template-columns: 1fr;
  }

  .privacy-strip,
  .footer,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: center;
    padding: 12px 0;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 640px;
    background-position: 72% center;
  }

  .hero-actions .button {
    width: 100%;
  }

  .nav-links a {
    padding-inline: 8px;
  }

  .article th,
  .article td {
    display: block;
    width: 100%;
  }

  .article th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
}
