:root {
  color-scheme: light;
  --ink: #151515;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --emerald: #0d665b;
  --emerald-deep: #073b35;
  --gold: #b88a1d;
  --burgundy: #8a2432;
  --muted: #6f6a60;
  --line: #ded4c1;
  --soft: #efe8d8;
  --shadow: 0 18px 50px rgba(10, 20, 18, 0.16);
}

* {
  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.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 212, 193, 0.78);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--emerald);
  color: #fff;
  font-weight: 850;
}

.button.secondary {
  background: transparent;
  color: var(--emerald);
  border-color: var(--line);
}

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

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  background:
    url("assets/app_logo.png") right 9vw center / min(43vw, 560px)
      no-repeat,
    #111817;
  color: #fff;
}

.hero-inner,
.section-inner,
.footer-inner,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 72px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(184, 138, 29, 0.45);
  border-radius: 8px;
  color: #f0d38a;
  background: rgba(184, 138, 29, 0.12);
  font-size: 13px;
  font-weight: 850;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-top: 22px;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 950;
}

h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 920;
}

h3 {
  font-size: 20px;
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: #ece4d3;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.hero-meta div {
  min-height: 96px;
  padding: 18px;
  background: rgba(15, 20, 19, 0.52);
}

.metric {
  display: block;
  color: #f4d686;
  font-size: 24px;
  font-weight: 930;
}

.metric-label {
  color: #ddd4c3;
  font-size: 13px;
  font-weight: 740;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: #fffaf1;
}

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

.section-head p,
.page-lead {
  color: var(--muted);
  font-size: 18px;
}

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

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

.card,
.doc-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.card {
  box-shadow: 0 4px 0 rgba(184, 138, 29, 0.08);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f2ef;
  color: var(--emerald);
  font-weight: 950;
}

.card p,
.doc-card p,
.doc-card li {
  color: var(--muted);
}

.product-band {
  background: var(--emerald-deep);
  color: #fff;
}

.product-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.phone {
  max-width: 360px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  background: #101514;
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  min-height: 620px;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.phone-top img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

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

.phone-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.chip {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f2efe6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.price {
  color: #f4d686;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 950;
  line-height: 1;
}

.fine {
  color: #d7cfbf;
  font-size: 14px;
}

.doc-hero {
  padding: 70px 0 34px;
  background: #111817;
  color: #fff;
}

.doc-hero p {
  max-width: 760px;
  color: #ddd4c3;
}

.page-shell {
  padding: 32px 0 70px;
}

.doc-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.toc a:hover {
  background: var(--soft);
  color: var(--ink);
}

.doc-stack {
  display: grid;
  gap: 14px;
}

.doc-card h2 {
  font-size: 28px;
}

.doc-card ul {
  padding-left: 20px;
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff8e8;
}

.support-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.support-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fffaf1;
}

.footer-inner {
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    background:
      url("assets/app_logo.png") center 28px / 230px no-repeat,
      #111817;
  }

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

  .hero-meta,
  .grid,
  .grid.two,
  .product-layout,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 540px) {
  .nav-links a {
    padding: 8px 9px;
  }

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

  .section {
    padding: 56px 0;
  }

  .phone-screen {
    min-height: 560px;
  }
}
