:root {
  --ink: #142033;
  --muted: #3e4c5e;
  --paper: #f6f4ef;
  --white: #fffdf9;
  --line: #d9d3c7;
  --rule: #8c7344;
  --hero-muted: #ddd6c8;
  --focus: #8c7344;
  --header: 7.5rem;
  --wrap: 1120px;
  --serif: "EB Garamond", "Noto Sans SC", Georgia, serif;
  --sans: Lato, "Noto Sans SC", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

:lang(zh-Hans) body {
  font-family: "Noto Sans SC", Lato, sans-serif;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-140%);
}

.skip:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  margin-right: auto;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}

.brand-product {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
}

.lang button {
  min-width: 52px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 48px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--hero-muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 14px;
  background: var(--rule);
}

h1,
h2,
.service-card h3,
.split h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) .service-card h3,
:lang(zh-Hans) .split h3 {
  font-family: "Noto Sans SC", var(--serif);
  font-weight: 500;
}

h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.lede,
.section-lead {
  max-width: 62ch;
}

.lede {
  margin: 24px 0 0;
  color: var(--hero-muted);
  font-size: 1.125rem;
}

.trust {
  margin: 22px 0 0;
  font-size: 0.95rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid var(--paper);
  color: var(--paper);
  text-decoration: none;
}

.store:hover {
  background: rgba(255, 253, 249, 0.08);
}

.store-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-name {
  font-size: 1.05rem;
  line-height: 1.2;
}

.store-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.store-dark:hover {
  background: #24344a;
}

.hero-panel {
  border-top: 2px solid var(--rule);
  padding-top: 18px;
}

.hero-panel p {
  margin: 0 0 10px;
  color: var(--hero-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  border-bottom: 1px solid rgba(221, 214, 200, 0.35);
}

.hero-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

.hero-panel a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--rule);
  font-family: var(--serif);
  font-size: 1.1rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.section-lead {
  margin: 16px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.service-card {
  margin: 0;
  padding: 22px 22px 26px;
  background: var(--white);
  border-top: 2px solid var(--ink);
}

.section-alt .service-card {
  background: var(--paper);
}

.service-no {
  margin: 0 0 18px;
  color: var(--rule);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.service-card h3,
.split h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.15;
}

.service-card p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.steps li {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.step-no {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
}

.steps p {
  margin: 0;
}

.callout {
  max-width: 68ch;
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 36px;
  margin-top: 32px;
}

.price-list,
.split ul,
.download-points,
.policy-links,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li,
.split li,
.download-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
}

.split h3 {
  font-size: 1.45rem;
}

.split li {
  border-bottom-color: rgba(221, 214, 200, 0.35);
  color: var(--hero-muted);
}

.policy-lead {
  margin: 28px 0 8px;
}

.policy-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.policy-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.download-points {
  max-width: 640px;
  margin-top: 8px;
}

.store-row-light {
  margin-top: 22px;
}

.store-note {
  max-width: 68ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.shot {
  margin: 0;
}

.device {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.section-alt .device {
  background: #efece4;
}

.device img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device.has-img .device-empty {
  display: none;
}

.device-empty {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 16px;
}

.device-kicker {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.device-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 28px 48px;
}

.letterhead {
  margin: 0;
  padding: 8px 0 8px 22px;
  border-left: 2px solid var(--ink);
}

.letterhead > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.letterhead dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.letterhead dd {
  margin: 0;
}

.letterhead a {
  overflow-wrap: anywhere;
}

.pending {
  color: var(--muted);
}

.address-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 0 36px;
}

.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.disclaimer {
  max-width: 78ch;
  margin: 14px 0 8px;
  color: var(--hero-muted);
}

.footer-links a {
  color: var(--paper);
}

.copy {
  margin: 18px 0 0;
  color: var(--hero-muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .service-grid,
  .steps,
  .price-layout,
  .shots,
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .price-layout,
  .support-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 18ch;
  }
}

@media (max-width: 720px) {
  .wrap,
  .legal-bar,
  .header-inner {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .header-inner {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .legal-bar {
    flex-direction: column;
    gap: 2px;
  }

  .service-grid,
  .steps,
  .shots {
    grid-template-columns: 1fr;
  }

  .shots .device {
    max-width: 280px;
  }

  .store {
    width: 100%;
  }

  .letterhead > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section {
    padding: 56px 0;
  }

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

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

@media print {
  .site-header,
  .skip,
  .store-row {
    display: none;
  }

  .hero,
  .site-footer,
  .split {
    background: #fff;
    color: #000;
  }

  .lede,
  .trust,
  .disclaimer,
  .split li {
    color: #000;
  }

  a[href^="/"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
