:root {
  --bg: #f0f4f8;
  --ink: #1c1c1e;
  --muted: #636366;
  --card: #ffffff;
  --line: rgba(28, 28, 30, 0.12);
  --accent: #1769aa;
  --header: rgba(240, 244, 248, 0.9);
  --shadow: 0 24px 60px rgba(23, 40, 64, 0.12);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
  --theme: #f0f4f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --ink: #f2f2f7;
    --muted: #aeaeb2;
    --card: #242426;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #64b5f6;
    --header: rgba(22, 22, 24, 0.9);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
    --theme: #161618;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  background: var(--bg);
  color: var(--ink);
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 40;
}

.skip:focus { top: 12px; }

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

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
}

.primary {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  margin-left: auto;
}

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

.nav-desktop a,
.nav-panel a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
}

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

.nav-mobile { display: none; position: relative; }

.nav-mobile summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}

.nav-mobile summary::-webkit-details-marker { display: none; }

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.lang {
  display: inline-flex;
  align-items: center;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  min-height: 44px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
}

.lang a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

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

.store {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.store img { display: block; height: 40px; width: auto; }

.store-lg img { height: 54px; }

@media (prefers-color-scheme: dark) {
  .store {
    background: #fff;
    padding: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  .logo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45); }
}

.hero {
  padding: 84px 0 20px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 auto 18px;
  max-width: 12em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 28px;
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.device {
  width: min(320px, 78vw);
  margin: 56px auto 8px;
  border-radius: 36px;
  overflow: hidden;
  background: #f0f4f8;
  box-shadow: var(--shadow);
  line-height: 0;
}

.device img { display: block; width: 100%; height: auto; }

.section { padding: 96px 0; }

.section h2,
.faq > h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  margin: 0 auto 36px;
  text-wrap: balance;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tile {
  background: var(--card);
  border-radius: 28px;
  padding: 36px 32px 40px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(23, 40, 64, 0.05);
  min-height: 240px;
}

.tile h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.tile p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.pro-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: var(--card);
  border-radius: 32px;
  padding: 56px 52px;
  box-shadow: var(--shadow);
}

.pro-card h2 {
  text-align: left;
  margin: 0 0 16px;
  font-size: clamp(40px, 4vw, 60px);
}

.pro-card .pro-copy { margin: 0; color: var(--muted); font-size: 18px; max-width: 36ch; }

.price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(64px, 8vw, 104px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 0 0 8px;
}

.price-line {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.4;
}

.once {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}

.checks {
  list-style: none;
  padding: 8px 0 0;
  margin: 0 0 22px;
}

.checks li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 17px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 3px;
}

.faq { padding-bottom: 40px; }

.faq-list { width: min(760px, 100%); margin: 0 auto; }

.faq-list details { border-top: 1px solid var(--line); }

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq-list details p {
  margin: 0;
  padding: 0 36px 20px 4px;
  color: var(--muted);
  max-width: 65ch;
}

footer {
  padding: 64px 0 36px;
  color: var(--muted);
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.foot-brand p { margin: 14px 0 0; max-width: 28ch; line-height: 1.5; }

.foot-grid h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  text-align: left;
}

.foot-grid a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 5px 0;
}

.foot-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 14px;
}

.foot-bar nav { display: flex; gap: 16px; }

.foot-bar a { color: var(--muted); text-decoration: none; }

.foot-bar a:hover { color: var(--ink); }

.fine {
  margin: 14px 0 0;
  font-size: 13px;
  max-width: 70ch;
  line-height: 1.5;
}

.prose {
  width: min(65ch, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-align: center;
  margin: 12px 0 12px;
  text-wrap: balance;
}

.updated {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 28px;
}

.prose .lead { font-size: 19px; line-height: 1.55; }

.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
  margin: 2.4rem 0 0.6rem;
}

.prose p,
.prose li { font-size: 17px; line-height: 1.7; }

.prose a { text-underline-offset: 3px; }

.index {
  margin: 8px 0 12px;
  padding: 0;
}

.index p {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.index ol { margin: 0; padding-left: 1.2rem; }

.index li { margin: 4px 0; }

.doc-head { text-align: center; margin-bottom: 12px; }

.doc-head p { color: var(--muted); }

.prose .faq-list { width: 100%; }

@media (max-width: 800px) {
  .tiles,
  .pro-card,
  .foot-grid { grid-template-columns: 1fr; }

  .pro-card { padding: 32px 24px; gap: 28px; }

  .pro-card h2 { font-size: 40px; }

  .section { padding: 72px 0; }

  .hero { padding: 48px 0 8px; }

  .tile { min-height: 0; padding: 28px 24px 32px; }
}

@media (max-width: 960px) {
  .primary { flex-wrap: wrap; justify-content: flex-end; }
  .lang { order: 5; flex-basis: 100%; justify-content: flex-end; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .bar { gap: 10px; }
  .primary { gap: 8px; }
  .wrap { width: min(1080px, calc(100% - 32px)); }
  .device { border-radius: 28px; margin-top: 40px; }
}
