:root {
  color-scheme: light dark;
  --background: #f4f6f5;
  --surface: #ffffff;
  --text: #1e2522;
  --muted: #626c67;
  --line: #d9dfdc;
  --accent: #c64f3d;
  --accent-hover: #a83e2f;
  --soft: #f7e9e5;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img,
.app-icon { border-radius: 22%; }

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

nav a,
footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"],
footer a:hover,
.text-link:hover { color: var(--accent); }

nav .store-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 6px;
}

nav .store-link:hover { color: #ffffff; background: var(--accent-hover); }

.hero {
  min-height: 460px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.app-icon { box-shadow: 0 14px 34px rgba(42, 52, 47, 0.18); }

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 3.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

p, li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.lead {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: 1.15rem;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary { color: #ffffff; background: var(--accent); }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.link-grid article { padding: 38px 30px; background: var(--surface); }

.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }

.document { padding: 58px 0; }

.document-header { padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.document-header h1 { max-width: 780px; font-size: 3.25rem; }
.effective-date { margin-bottom: 0; font-size: 0.92rem; }

.document > section {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  column-gap: 52px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.document > section h2 { grid-column: 1; }
.document > section > :not(h2) { grid-column: 2; }
.document > section p:last-child,
.document > section ul:last-child { margin-bottom: 0; }

ul { padding-left: 20px; }

.faq-list { display: grid; gap: 24px; }
.faq-list article { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.faq-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.faq-list p { margin-bottom: 0; }

footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #131715;
    --surface: #1b211e;
    --text: #edf1ef;
    --muted: #adb7b2;
    --line: #333c38;
    --accent: #f07a66;
    --accent-hover: #ff927f;
    --soft: #392722;
  }
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 24px), var(--max-width)); }
  .site-header { align-items: flex-start; padding: 14px 0; }
  nav { gap: 10px 12px; }
  nav .store-link { min-height: 34px; padding-inline: 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .app-icon { width: 96px; height: 96px; }
  h1 { font-size: 2.8rem; }
  .document { padding-top: 42px; }
  .document-header h1 { font-size: 2.5rem; }
  .link-grid { grid-template-columns: 1fr; }
  .document > section { grid-template-columns: 1fr; row-gap: 4px; }
  .document > section h2,
  .document > section > :not(h2) { grid-column: 1; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (max-width: 480px) {
  .site-header { display: grid; grid-template-columns: 1fr; }
  nav { justify-content: flex-start; }
}
