:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #101218;
  --muted: rgba(60, 60, 67, 0.72);
  --tertiary: rgba(60, 60, 67, 0.48);
  --line: rgba(60, 60, 67, 0.14);
  --accent: #007aff;
  --accent-fill: rgba(0, 122, 255, 0.10);
  --primary-action: rgba(16, 18, 24, 0.88);
  --primary-action-border: rgba(255, 255, 255, 0.10);
  --control-fill: rgba(118, 118, 128, 0.12);
  --control-fill-hover: rgba(118, 118, 128, 0.18);
  --selection-fill: rgba(28, 28, 30, 0.88);
  --selection-stroke: rgba(28, 28, 30, 0.34);
  --bar-bg: rgba(242, 242, 247, 0.88);
  --calculator-orange: #ff9400;
  --icon-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --preview-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --device-edge: rgba(16, 18, 24, 0.14);
  /* The icon ships light and dark variants, so it has to follow the theme the
     same way the colors do — including the manual switcher, which a
     `<picture media>` query cannot see. */
  --app-icon: url("assets/app-icon-light-96.png?v=site-2");
  /* Approximations of the app's SwiftUI curves, so the mock moves like the app:
     `.smooth(duration:)` settles without overshoot, `extraBounce: 0.2` overshoots
     slightly on key presses. */
  --ease-smooth: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: rgba(235, 235, 245, 0.68);
    --tertiary: rgba(235, 235, 245, 0.42);
    --line: rgba(84, 84, 88, 0.30);
    --accent: #0a84ff;
    --accent-fill: rgba(10, 132, 255, 0.16);
    --primary-action: rgba(142, 142, 147, 0.72);
    --primary-action-border: rgba(255, 255, 255, 0.10);
    --control-fill: rgba(118, 118, 128, 0.24);
    --control-fill-hover: rgba(118, 118, 128, 0.32);
    --selection-fill: rgba(72, 72, 74, 0.92);
    --selection-stroke: rgba(174, 174, 178, 0.50);
    --bar-bg: rgba(0, 0, 0, 0.78);
    --icon-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    --preview-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    --device-edge: rgba(255, 255, 255, 0.22);
    --app-icon: url("assets/app-icon-dark-96.png?v=site-2");
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #101218;
  --muted: rgba(60, 60, 67, 0.72);
  --tertiary: rgba(60, 60, 67, 0.48);
  --line: rgba(60, 60, 67, 0.14);
  --accent: #007aff;
  --accent-fill: rgba(0, 122, 255, 0.10);
  --primary-action: rgba(16, 18, 24, 0.88);
  --primary-action-border: rgba(255, 255, 255, 0.10);
  --control-fill: rgba(118, 118, 128, 0.12);
  --control-fill-hover: rgba(118, 118, 128, 0.18);
  --selection-fill: rgba(28, 28, 30, 0.88);
  --selection-stroke: rgba(28, 28, 30, 0.34);
  --bar-bg: rgba(242, 242, 247, 0.88);
  --icon-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --preview-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --device-edge: rgba(16, 18, 24, 0.14);
  --app-icon: url("assets/app-icon-light-96.png?v=site-2");
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --card: #1c1c1e;
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.68);
  --tertiary: rgba(235, 235, 245, 0.42);
  --line: rgba(84, 84, 88, 0.30);
  --accent: #0a84ff;
  --accent-fill: rgba(10, 132, 255, 0.16);
  --primary-action: rgba(142, 142, 147, 0.72);
  --primary-action-border: rgba(255, 255, 255, 0.10);
  --control-fill: rgba(118, 118, 128, 0.24);
  --control-fill-hover: rgba(118, 118, 128, 0.32);
  --selection-fill: rgba(72, 72, 74, 0.92);
  --selection-stroke: rgba(174, 174, 178, 0.50);
  --bar-bg: rgba(0, 0, 0, 0.78);
  --icon-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  --preview-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  --device-edge: rgba(255, 255, 255, 0.22);
  --app-icon: url("assets/app-icon-dark-96.png?v=site-2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1040px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.app-icon {
  display: block;
  flex: none;
  border-radius: 22%;
  background-image: var(--app-icon);
  background-size: cover;
  box-shadow: var(--icon-shadow);
}

.brand-icon {
  width: 34px;
  height: 34px;
}

.download-icon {
  width: 88px;
  height: 88px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A two-position switch, sized like a UISwitch. It reports the theme currently
   in effect, so under the default "follow the system" state it still shows
   whichever side the OS resolved to. */
.theme-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  flex: none;
  width: 56px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--selection-fill);
}

.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(26px);
}

.theme-icon {
  position: relative;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* Whichever icon the thumb is sitting under reads on the accent fill. */
.theme-toggle[aria-checked="false"] .theme-icon-sun,
.theme-toggle[aria-checked="true"] .theme-icon-moon {
  color: #fff;
}

.hero-section,
.content-section,
.download-section {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: center;
  padding: 64px 0 88px;
}

.hero-copy {
  min-width: 0;
  max-width: 560px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.08;
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-text,
.section-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  padding: 0 20px;
  transition: transform 0.16s var(--ease-smooth), opacity 0.16s ease, background-color 0.16s ease;
}

.primary-action {
  border: 1px solid var(--primary-action-border);
  background: var(--primary-action);
  color: #fff;
}

.primary-action.is-disabled,
.primary-action:disabled {
  cursor: not-allowed;
  border-color: transparent;
  background: var(--control-fill);
  color: var(--muted);
}

.secondary-action {
  border: 1px solid transparent;
  background: var(--control-fill);
  color: var(--text);
}

.primary-action:hover {
  opacity: 0.90;
}

.primary-action.is-disabled:hover,
.primary-action:disabled:hover {
  opacity: 1;
}

.secondary-action:hover {
  background: var(--control-fill-hover);
}

.primary-action:active,
.secondary-action:active {
  transform: scale(0.985);
}

.primary-action.is-disabled:active,
.primary-action:disabled:active {
  transform: none;
}

.coming-soon-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.download-section .coming-soon-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.device-preview {
  display: flex;
  justify-content: center;
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.device-frame {
  position: relative;
  width: 340px;
  height: 660px;
  /* The bezel is nearly the same value as the dark page background, so it needs
     its own edge to stay readable as a device in both themes. */
  border: 1px solid var(--device-edge);
  border-radius: 46px;
  background: #050607;
  box-shadow: var(--preview-shadow), inset 0 0 0 9px #050607;
  padding: 28px 18px 18px;
  overflow: hidden;
}

.device-speaker {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 78px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 9px;
  background: #111318;
}

.screen-layer {
  position: absolute;
  inset: 44px 16px 16px;
  border-radius: 34px;
  overflow: hidden;
}

.calculator-layer {
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 20px 2px 4px;
  background: #050607;
  color: #f5f5f7;
}

/* Mirrors the app's calculatorDisplay: the running value on top, the smaller
   expression underneath, both trailing-aligned. */
.calculator-display {
  display: grid;
  gap: 8px;
  padding: 0 16px 8px;
  text-align: right;
}

.calculator-display .calculator-expression {
  min-height: 20px;
  color: rgba(235, 235, 245, 0.52);
  font-size: 17px;
}

.calculator-display .calculator-value {
  font-size: 74px;
  font-weight: 300;
  line-height: 1;
}

/* Stands in for `.contentTransition(.numericText())` on the display. */
.calculator-display .calculator-value.is-rolling {
  animation: numericRoll 0.18s var(--ease-smooth);
}

@keyframes numericRoll {
  from {
    opacity: 0;
    transform: translateY(0.12em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.calculator-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #333438;
  color: #f5f5f7;
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.18s var(--ease-bounce), opacity 0.18s var(--ease-bounce);
}

/* The app's `mySaverPressable(scale: 0.92, opacity: 0.9)` on calculator keys. */
.calculator-grid span.is-pressed {
  transform: scale(0.92);
  opacity: 0.9;
}

.calculator-grid span:nth-child(-n + 3) {
  background: #a7a7ad;
  color: #06070a;
}

.calculator-grid .operator {
  background: var(--calculator-orange);
  color: #fff;
}

.calculator-grid .wide {
  grid-column: span 2;
  aspect-ratio: auto;
  border-radius: 28px;
  justify-content: start;
  padding-left: 28px;
}

/* Mirrors LoginView's unlock state: a 0.08 black scrim over the calculator with
   the progress card scaling in from 0.96. */
.unlock-layer {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-smooth);
}

.unlock-layer.is-open {
  opacity: 1;
}

.unlock-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  border-radius: 20px;
  background: rgba(44, 44, 48, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  padding: 20px 18px;
  transform: scale(0.96);
  transition: transform 0.22s var(--ease-smooth);
}

.unlock-layer.is-open .unlock-card {
  transform: none;
}

.unlock-card strong {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
}

.unlock-card span {
  color: rgba(235, 235, 245, 0.64);
  font-size: 12px;
}

.unlock-progress {
  width: 100%;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(235, 235, 245, 0.16);
  overflow: hidden;
}

.unlock-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--text);
}

.vault-layer {
  display: grid;
  align-content: start;
  gap: 10px;
  background: #121212;
  color: #f5f5f7;
  padding: 20px 12px 70px;
  /* The app presents the vault with `.scale(scale: 0.96).combined(with: .opacity)`
     at `.smooth(duration: 0.22)`. */
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.22s var(--ease-smooth), transform 0.22s var(--ease-smooth);
}

.vault-layer.is-open {
  opacity: 1;
  transform: none;
}

.vault-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.vault-header strong,
.vault-header span {
  display: block;
}

.vault-header strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.vault-header span {
  margin-top: 5px;
  color: rgba(235, 235, 245, 0.64);
  font-size: 11px;
  font-weight: 600;
}

.mock-action {
  position: relative;
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(84, 84, 88, 0.42);
  border-radius: 18px;
  background: rgba(28, 28, 30, 0.82);
}

.mock-action::before,
.mock-action::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 17px;
  height: 2px;
  border-radius: 2px;
  background: #f5f5f7;
}

.mock-action::after {
  transform: rotate(90deg);
}

.status-row {
  display: flex;
  gap: 5px;
}

.status-row span {
  border: 1px solid rgba(84, 84, 88, 0.42);
  border-radius: 12px;
  background: rgba(35, 35, 38, 0.94);
  color: rgba(235, 235, 245, 0.64);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 7px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric-row div,
.vault-banner,
.folder-row {
  border: 1px solid rgba(84, 84, 88, 0.42);
  border-radius: 17px;
  background: rgba(28, 28, 30, 0.82);
}

.metric-row div {
  padding: 10px 11px;
}

.metric-row span,
.metric-row strong {
  display: block;
}

.metric-row span {
  color: rgba(235, 235, 245, 0.64);
  font-size: 10px;
  font-weight: 600;
}

.metric-row strong {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.vault-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
}

.vault-banner > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(27, 85, 166, 0.28);
  color: #f5f5f7;
  font-size: 11px;
  font-weight: 700;
}

.vault-banner strong,
.vault-banner small {
  display: block;
}

.vault-banner strong {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.vault-banner small {
  margin-top: 3px;
  color: rgba(235, 235, 245, 0.64);
  font-size: 9px;
  line-height: 1.25;
}

.vault-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 0;
}

.vault-section-title strong {
  font-size: 18px;
  font-weight: 600;
}

.folder-list {
  display: grid;
  gap: 8px;
}

.folder-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 70px;
  padding: 10px 10px 10px 9px;
}

.folder-row i {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.18);
}

.folder-row i::before {
  content: "";
  position: absolute;
  width: 23px;
  height: 16px;
  left: 10px;
  top: 15px;
  border-radius: 4px 4px 5px 5px;
  background: rgba(235, 235, 245, 0.64);
}

.folder-row i::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 6px;
  left: 10px;
  top: 11px;
  border-radius: 4px 4px 0 0;
  background: rgba(235, 235, 245, 0.48);
}

.folder-row strong,
.folder-row span {
  display: block;
}

.folder-row strong {
  font-size: 14px;
  font-weight: 600;
}

.folder-row span,
.folder-row small {
  color: rgba(235, 235, 245, 0.64);
  font-size: 10px;
  font-weight: 600;
}

.vault-tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  border: 1px solid rgba(84, 84, 88, 0.42);
  border-radius: 25px;
  background: rgba(28, 28, 30, 0.92);
  padding: 7px;
}

.vault-tabbar span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 18px;
  color: rgba(235, 235, 245, 0.64);
  font-size: 9px;
  font-weight: 600;
}

.vault-tabbar span:first-child {
  background: rgba(235, 235, 245, 0.12);
  color: #f5f5f7;
}

.content-section {
  padding: 88px 0;
}

.surface-band {
  width: 100%;
  max-width: none;
  background: var(--surface);
}

.surface-band > .section-copy,
.surface-band > .feature-grid,
.surface-band > .plans-grid {
  width: min(1040px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.section-copy {
  max-width: 720px;
}

.section-copy.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.feature-grid,
.plans-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.two-column {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid article,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.feature-grid article {
  padding: 22px;
}

.feature-grid p,
.plan-card li {
  color: var(--muted);
  line-height: 1.55;
}

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

.plan-card {
  position: relative;
  padding: 28px;
}

.featured-plan {
  border-color: var(--selection-stroke);
}

.plan-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 12px;
  background: var(--control-fill);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 0 9px;
  margin-bottom: 18px;
}

.plan-head {
  margin-bottom: 20px;
}

.plan-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.plan-head strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.plan-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 24px;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tertiary);
}

.download-section {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 88px 0 112px;
}


.download-section h2 {
  max-width: 680px;
}

.download-section p {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.preferred-source {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 18px;
}

.preferred-source [google-add-preferred-source-btn] {
  width: 260px !important;
  min-height: 60px !important;
  overflow: hidden;
  border-radius: 30px;
}

.preferred-source [google-add-preferred-source-btn]:empty {
  display: none;
}

.preferred-source [google-add-preferred-source-btn][data-initialized="true"] + .preferred-source-fallback {
  display: none;
}

.preferred-source-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 0 18px;
  box-shadow: var(--shadow);
}

.google-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.preferred-source-fallback:hover {
  border-color: var(--selection-stroke);
  background: var(--control-fill-hover);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .theme-toggle-thumb {
    transition: transform 0.22s var(--ease-smooth);
  }

  .theme-icon {
    transition: color 0.22s var(--ease-smooth);
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  }
}


@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
  }

  .device-preview {
    justify-content: flex-start;
  }

  .feature-grid,
  .feature-grid.two-column,
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .hero-section,
  .content-section,
  .download-section,
  .surface-band > .section-copy,
  .surface-band > .feature-grid,
  .surface-band > .plans-grid {
    width: min(1040px, calc(100% - 32px));
  }

  /* Brand and theme share the top row; nav keeps its own row so section links
     stay reachable on phones instead of being hidden. */
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 10px 0;
  }

  .brand {
    grid-area: 1 / 1;
  }

  .theme-toggle {
    grid-area: 1 / 2;
    justify-self: end;
  }

  .nav-links {
    grid-area: 2 / 1 / auto / -1;
    justify-content: flex-start;
    margin-left: -10px;
  }

  .hero-section {
    padding: 40px 0 64px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .hero-actions {
    display: grid;
  }

  .device-frame {
    width: min(340px, 100%);
    height: 640px;
  }

  .content-section {
    padding: 64px 0;
  }

  .download-section {
    grid-template-columns: 1fr;
    padding: 72px 0 96px;
  }
}

/* Professional site refresh */

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  padding: 10px 14px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-copy,
.device-preview,
.feature-grid > *,
.plans-grid > *,
.privacy-grid > *,
.screen-gallery > *,
.ipad-showcase > * {
  min-width: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero-text,
.section-copy p,
.download-section p {
  text-wrap: pretty;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding-left: 17px;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tertiary);
}

.release-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.release-note > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-fill);
}

.surface-band > .screen-gallery,
.surface-band > .ipad-showcase,
.surface-band > .privacy-grid,
.surface-band > .faq-list,
.surface-band > .section-link {
  width: min(1040px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.screen-card {
  margin: 0;
}

.screen-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--preview-shadow);
}

.screen-frame img {
  width: 100%;
}

.screen-card figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 4px 0;
}

.screen-card figcaption strong {
  font-size: 17px;
}

.screen-card figcaption span,
.ipad-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ipad-showcase {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 58px;
  margin-top: 84px;
}

.ipad-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 38px);
}

.ipad-frame {
  overflow: hidden;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--preview-shadow);
}

.ipad-frame img {
  width: 100%;
}

.feature-grid.four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-number {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.privacy-grid article {
  background: var(--card);
  padding: 28px;
}

.privacy-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-link {
  margin-top: 24px;
  text-align: center;
}

.section-link a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.section-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  max-width: 780px;
  margin-top: 38px;
}

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

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

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  padding: 22px 42px 22px 0;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 680px;
  margin: -5px 42px 22px 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Shared legal and support pages */

.subpage-main {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 104px;
}

.subpage-hero {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.subpage-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 7vw, 56px);
}

.subpage-hero p,
.prose p,
.prose li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.last-updated {
  margin-top: 20px;
  font-size: 13px !important;
}

.prose {
  padding-top: 20px;
}

.prose section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.prose h3 {
  margin-top: 24px;
  font-size: 18px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px 20px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.not-found .section-label {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .screen-gallery,
  .feature-grid.four-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipad-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ipad-frame {
    max-height: 680px;
  }
}

@media (max-width: 620px) {
  .surface-band > .screen-gallery,
  .surface-band > .ipad-showcase,
  .surface-band > .privacy-grid,
  .surface-band > .faq-list,
  .surface-band > .section-link,
  .subpage-main {
    width: min(1040px, calc(100% - 32px));
  }

  .nav-links {
    width: calc(100vw - 32px);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: none;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(36px, 11vw, 44px);
    overflow-wrap: anywhere;
  }

  .hero-proof {
    display: grid;
  }

  .screen-gallery,
  .feature-grid.four-column,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .screen-gallery {
    gap: 42px;
  }

  .screen-frame {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .screen-card figcaption {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .ipad-showcase {
    margin-top: 64px;
  }

  .ipad-frame {
    border-radius: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    gap: 14px 20px;
  }

  .footer-copyright {
    grid-column: auto;
  }

  .subpage-main {
    padding: 48px 0 80px;
  }
}
