:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #2563eb;
  --shadow: 0 28px 80px rgba(29, 29, 31, 0.16);
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(900px 480px at 92% 8%, rgba(29, 29, 31, 0.06), transparent 50%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
}

a { color: #2563eb; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus { left: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  background: rgba(245, 245, 247, 0.62);
  border-bottom: 1px solid rgba(210, 210, 215, 0.45);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.btn):hover { opacity: 0.62; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 980px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 29, 31, 0.18);
}

.btn-dark:hover { background: #000; }

.btn-accent {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 29, 31, 0.2);
}

.btn-accent:hover { background: #000; }

.btn-gold {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-gold:hover { filter: brightness(1.04); }

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0 40px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.hero-kicker {
  margin: 0 0 18px;
  max-width: 16em;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 620;
}

.tagline {
  margin: 0 0 28px;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: center;
}

.store-meta {
  color: var(--muted);
  font-size: 13px;
}

.apple-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.doc-preview {
  margin: 0;
  justify-self: end;
  width: min(100%, 340px);
}

.doc-sheet {
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 34px 60px rgba(29, 29, 31, 0.16),
    inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.doc-kind {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-sheet h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.doc-lines {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.doc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececee;
  color: var(--muted);
  font-size: 13px;
}

.doc-lines strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-total {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.doc-caption {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

section.block { padding: 20px 0 56px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px 20px 22px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f2f2f7;
  color: var(--ink);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.pro-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 32px;
  color: #f5f5f7;
  background:
    radial-gradient(480px 220px at 88% 18%, rgba(219, 234, 254, 0.28), transparent 58%),
    linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: var(--shadow);
}

.pro-kicker {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pro-banner h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.pro-banner p {
  margin: 0 0 22px;
  max-width: 46ch;
  color: rgba(245, 245, 247, 0.74);
  font-size: 16px;
  line-height: 1.55;
}

.pro-note {
  display: block;
  margin-top: 12px;
  color: rgba(245, 245, 247, 0.48);
  font-size: 12px;
}

.pro-list {
  margin: 0;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  list-style: none;
}

.pro-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.86);
  font-size: 15px;
}

.pro-list li:last-child { border-bottom: 0; }

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  margin: 0 0 28px;
}

details {
  background: var(--bg);
  border-radius: 18px;
  padding: 4px 20px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

details[open] summary::after { content: "–"; }

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

footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.legal-links {
  display: flex;
  gap: 18px;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 18px;
    gap: 32px;
  }

  .doc-preview {
    justify-self: center;
    width: min(100%, 340px);
  }

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

  .pro-banner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }

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

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

  .hero-actions .btn,
  .pro-banner .btn { width: 100%; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --surface: #1c1c1e;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  body {
    background:
      radial-gradient(1000px 480px at 10% -12%, rgba(59, 130, 246, 0.22), transparent 55%),
      #000;
  }

  header.nav { background: rgba(0, 0, 0, 0.55); }

  .btn-dark, .btn-accent { background: #f5f5f7; color: #000; }

  .doc-sheet { background: #f5f5f7; color: #1d1d1f; }

  .doc-lines strong,
  .doc-total { color: #1d1d1f; }

  .feature-icon { background: #2c2c2e; }
}

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