:root {
  color-scheme: light;
  --ink: #14202e;
  --muted: #5b6878;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #d9e0e6;
  --blue: #174a7c;
  --blue-2: #0f6b8f;
  --green: #1f7a5c;
  --gold: #c4842f;
  --red: #ad3f42;
  --shadow: 0 22px 70px rgba(20, 32, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--blue-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(247, 244, 238, 0.9);
  border-bottom: 1px solid rgba(217, 224, 230, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 32, 46, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav a:hover,
.mobile-nav a:hover {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  background: #fff;
  color: var(--blue);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 6vw;
  min-height: calc(100vh - 72px);
  padding: 6vh 5vw 8vh;
  background:
    linear-gradient(115deg, rgba(23, 74, 124, 0.1), rgba(31, 122, 92, 0.12) 42%, transparent 42%),
    var(--paper);
}

.hero-media {
  position: relative;
}

.device-panel {
  width: min(480px, 100%);
  margin-inline: auto;
  padding: 24px;
  border: 1px solid rgba(217, 224, 230, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.device-head img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-grid div {
  min-height: 104px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(217, 224, 230, 0.75);
  background: #fff;
}

.metric-grid small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.bars {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 130px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #16202d;
}

.bars span {
  flex: 1;
  min-width: 24px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #65c7a2, #2d83a5);
}

.hero-content {
  max-width: 680px;
}

.subpage {
  min-height: 70vh;
}

.page-hero {
  width: min(980px, 90vw);
  margin-inline: auto;
  padding: 82px 0 32px;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.page-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-content > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 74, 124, 0.25);
}

.button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 0;
}

.hero-facts div {
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.78);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.hero-facts.compact {
  margin-top: 28px;
}

.notice,
.quick-links,
.section,
.footer {
  width: min(1160px, 90vw);
  margin-inline: auto;
}

.notice {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 22px;
  margin-top: -36px;
  border-radius: 8px;
  background: #173854;
  color: #fff;
  box-shadow: var(--shadow);
}

.notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 38px 0 8px;
}

.quick-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.content-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: 18px 0 8px;
}

.content-nav a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.policy-section {
  display: grid;
  gap: 18px;
}

.policy-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 32, 46, 0.06);
}

.policy-block h2,
.terms-grid h2,
.store-card h2,
.retention-grid h2,
.support-panel h2 {
  font-size: 1.35rem;
  line-height: 1.22;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-card {
  display: grid;
  min-height: 240px;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(20, 32, 46, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.page-card:hover {
  border-color: var(--blue-2);
  box-shadow: 0 18px 44px rgba(20, 32, 46, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.page-card.featured {
  grid-column: span 2;
  background: #173854;
  color: #fff;
}

.page-card span {
  color: var(--gold);
  font-weight: 900;
}

.page-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.policy-block p:last-child,
.terms-grid p:last-child,
.store-card ul:last-child,
.request-panel p:last-child,
.retention-grid p:last-child {
  margin-bottom: 0;
}

.data-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table [role="row"] {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr;
  min-height: 56px;
}

.data-table [role="row"] > * {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.data-table [role="row"]:first-child {
  background: #e9f1f4;
}

.data-table [role="row"]:last-child > * {
  border-bottom: 0;
}

.data-table [role="row"] > *:last-child {
  border-right: 0;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.check-list li::after {
  position: absolute;
  left: 5px;
  top: 0.46em;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  content: "";
}

.partner-grid,
.terms-grid,
.store-grid,
.retention-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.partner-grid div,
.terms-grid article,
.store-card,
.retention-grid div,
.support-link {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.partner-grid div {
  padding: 0 0 0 16px;
  border: 0;
  border-left: 3px solid var(--green);
  border-radius: 0;
  background: transparent;
}

.partner-grid p,
.terms-grid p,
.retention-grid p,
.store-card li {
  color: var(--muted);
}

.split {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.request-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 10px;
  padding-left: 24px;
  margin: 0;
}

.email-card {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 20px;
  border-radius: 8px;
  background: #eef5f2;
}

.email-card span,
.support-link span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.retention-grid {
  margin-top: 16px;
}

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

.support-link {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.support-panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.support-link:hover {
  border-color: var(--blue-2);
  text-decoration: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    inset: 72px 0 auto;
    z-index: 9;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 5vw 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
  }

  .hero-media {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .notice,
  .request-panel {
    grid-template-columns: 1fr;
  }

  .partner-grid,
  .terms-grid,
  .retention-grid,
  .support-grid,
  .page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-card.featured {
    grid-column: span 2;
  }

  .data-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .data-table [role="row"] > * {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 66px;
  }

  .mobile-nav {
    inset: 66px 0 auto;
  }

  .hero {
    padding-inline: 20px;
  }

  .hero-actions,
  .hero-facts,
  .store-grid,
  .partner-grid,
  .terms-grid,
  .retention-grid,
  .support-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .page-card.featured {
    grid-column: span 1;
  }

  .hero-facts,
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .notice,
  .quick-links,
  .content-nav,
  .page-hero,
  .section,
  .footer {
    width: min(100% - 40px, 1160px);
  }

  .policy-block,
  .request-panel {
    padding: 20px;
  }

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

@media print {
  .topbar,
  .mobile-nav,
  .hero-media,
  .quick-links,
  .hero-actions,
  .footer .button,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 24px 0;
    background: #fff;
  }

  .notice,
  .policy-block,
  .request-panel,
  .store-card,
  .terms-grid article {
    box-shadow: none;
  }
}
