:root {
  color-scheme: light;
  --ink: #102a43;
  --muted: #52677d;
  --paper: #ffffff;
  --sky: #eaf6ff;
  --blue: #12355b;
  --blue-soft: #d8edff;
  --coral: #b42335;
  --yellow: #ffd166;
  --line: #b8cede;
  --shadow: 0 18px 48px rgb(16 42 67 / 0.12);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgb(255 209 102 / 0.35), transparent 20rem),
    linear-gradient(180deg, var(--sky) 0, #f7fbff 30rem, #f7fbff 100%);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--blue); text-underline-offset: 0.2em; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  border: 2px solid var(--blue);
  border-radius: 0.65rem;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem 0.8rem 0.8rem 0.25rem;
  color: var(--blue);
  background: var(--yellow);
  box-shadow: 0.2rem 0.2rem 0 var(--coral);
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-nav a { font-weight: 750; text-decoration: none; }
.primary-nav a:hover { text-decoration: underline; }

.language-selector {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
}

.language-selector a {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.language-selector a:hover,
.language-selector a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
}

main,
footer {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.intro {
  padding: clamp(3rem, 8vw, 7rem) 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 { margin-top: 0; line-height: 1.12; }

h1 {
  margin-bottom: 1.25rem;
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  letter-spacing: -0.045em;
}

h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.03em; }
h3 { margin-bottom: 0.45rem; font-size: 1.25rem; }
p { margin-top: 0; }

.lede { max-width: 48rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }

.notice {
  padding: 1.3rem 1.4rem;
  display: grid;
  gap: 0.35rem;
  background: var(--blue);
  border-radius: 1.2rem 1.2rem 1.2rem 0.35rem;
  color: white;
  box-shadow: var(--shadow);
}

.notice strong { color: var(--yellow); font-size: 1.05rem; }

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 52rem; margin-bottom: 2rem; }

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

.steps li {
  min-height: 16rem;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  font-weight: 900;
}

.steps p,
.faq p { color: var(--muted); }

.premium-card {
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
}

.premium-card h3,
.premium-card p { margin-bottom: 0; }

.lock-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--yellow);
  background: var(--blue);
}

.faq { max-width: 56rem; }

details {
  margin-bottom: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
}

details p { padding: 0 1.2rem 1.2rem; margin: 0; }

.support-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.help-card,
.privacy-card {
  min-height: 13rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 1.25rem;
}

.help-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.help-card h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.help-card p { color: var(--muted); }

.privacy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  color: white;
  background: var(--blue);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.privacy-card span { color: var(--yellow); font-weight: 800; }
.privacy-card strong { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; }

.policy-main { max-width: 64rem; }

.policy-header {
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
  border-bottom: 1px solid var(--line);
}

.policy-header h1 { max-width: 16ch; }

.updated {
  width: fit-content;
  margin-top: 2rem;
  padding: 0.5rem 0.8rem;
  background: var(--blue-soft);
  border-radius: 0.7rem;
}

.policy-card {
  margin: 2rem 0 5rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.policy-section {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 2fr);
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child { border-bottom: 0; }
.policy-section h2 { margin: 0; font-size: 1.2rem; letter-spacing: -0.01em; }
.policy-section p { margin: 0; color: var(--muted); }

footer {
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 52rem) {
  .intro { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-section { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 38rem) {
  .site-header { padding-block: 1rem; grid-template-columns: 1fr; align-items: flex-start; }
  .primary-nav,
  .language-selector { justify-content: flex-start; }
  .language-selector { grid-column: 1; }
  .intro { padding-top: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  .step-number { margin-bottom: 1.5rem; }
  .support-more { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

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

/* The iPhone pages share the existing site system while keeping the demo central. */
.iphone-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 4rem; text-align: center; }
.iphone-hero h1, .iphone-hero .lede { margin-inline: auto; }
.iphone-hero h1 { max-width: 18ch; }
.demo { margin: clamp(2rem, 5vw, 3.5rem) auto 0; width: min(100%, 25rem); }
.demo video { display: block; width: 100%; height: auto; max-height: 70vh; aspect-ratio: 640 / 1136; background: #102a43; border-radius: 1.25rem; box-shadow: var(--shadow); }
.demo figcaption { margin-top: 0.85rem; font-weight: 800; }
.iphone-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iphone-steps li { min-height: 15rem; }
.use-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; max-width: 55rem; }
.use-list li { padding: 0.4rem 0; }
@media (max-width: 52rem) { .iphone-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .iphone-steps, .use-list { grid-template-columns: 1fr; } .iphone-steps li { min-height: auto; } }
