:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --yellow: #ffcc00;
  --pink: #ff2d55;
  --cyan: #5ac8fa;
  --blue: #0a84ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08), 0 32px 64px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

/* Even line lengths: no single word left on its own line. */
h1, h2, h3, .lead, .section-head p, .closing p { text-wrap: balance; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.18em; font-size: 14px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: auto; }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 72px 0 56px; }
.hero-logo { width: 96px; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12)); }
h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 28px 0 16px;
}
h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
h3 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 6px; }
.lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.gradient {
  background: linear-gradient(90deg, var(--yellow), var(--pink) 50%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 36px; padding: 12px 22px;
  border-radius: 14px; background: var(--text); color: var(--bg);
  box-shadow: var(--shadow-soft);
  font-size: 15px; line-height: 1.2; text-align: left;
}
.store-badge:hover { text-decoration: none; }
.store-badge small { display: block; font-size: 11px; opacity: 0.7; }
.store-badge strong { font-size: 18px; }
.store-badge .squares { display: grid; grid-template-columns: 10px 10px; gap: 2px; }
.store-badge .squares i { width: 10px; height: 10px; background: currentColor; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #1d1d1f; }
.step:nth-child(1) .step-num { background: var(--yellow); }
.step:nth-child(2) .step-num { background: var(--pink); color: #fff; }
.step:nth-child(3) .step-num { background: var(--cyan); }
.step h3 { margin-top: 18px; }
.step p { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.visual { margin-top: auto; height: 220px; border-radius: 18px; background: var(--bg); display: grid; place-items: center; overflow: hidden; position: relative; }

/* Step 1: iOS Trust alert */
/* Step 1: the iPhone's access prompt, as it appears on the phone. Allow is ringed in yellow, like in the app. */
.ios-alert { width: 236px; border-radius: 26px; padding: 18px 16px 16px; background: linear-gradient(160deg, #3a2f52, #2a2638); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.ios-alert strong { display: block; font-size: 15px; line-height: 1.3; }
.ios-alert p { margin: 6px 0 14px; font-size: 12px; line-height: 1.35; color: rgba(235, 235, 245, 0.6); }
.ios-alert .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ios-alert .buttons span { padding: 9px 0; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 500; }
.ios-alert .allow { background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 2px var(--yellow), 0 0 14px rgba(255, 204, 0, 0.45); }
.ios-alert .deny { background: #4aa3ff; }

/* Steps 2 and 3: app cards */
.mini-app { width: 230px; background: #1c1c1e; color: #f5f5f7; border-radius: 14px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); font-size: 13px; }
.mini-app .label { font-size: 10px; letter-spacing: 0.14em; color: #a1a1a6; font-weight: 600; }
.mini-app .big { font-size: 15px; font-weight: 600; margin: 6px 0 2px; }
.mini-app .small { color: #a1a1a6; font-size: 12px; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); margin: 12px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan)); }
.scan .bar i { width: 30%; animation: scan 2.4s ease-in-out infinite; }
.offload .bar i { width: 64%; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .scan .bar i { animation: none; } }
.cuppa { position: absolute; right: 18px; bottom: 14px; font-size: 34px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15)); }
.mini-button { margin-top: 12px; text-align: center; padding: 8px; border-radius: 8px; background: var(--yellow); color: #1d1d1f; font-weight: 700; letter-spacing: 0.2em; font-size: 12px; }

/* Folder example */
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.folders .copy p { color: var(--muted); font-size: 19px; }
.folders ul.points { list-style: none; padding: 0; margin: 24px 0 0; }
.folders ul.points li { padding: 8px 0 8px 30px; position: relative; }
.folders ul.points li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.window { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.window-bar .path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree { list-style: none; margin: 0; padding: 12px 8px 16px; }
.tree li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.tree li.open { background: rgba(10, 132, 255, 0.08); }
.tree .d1 { padding-left: 34px; }
.tree .d2 { padding-left: 58px; }
.tree .d3 { padding-left: 82px; }
.tree .meta { margin-left: auto; color: var(--muted); font-size: 12px; }
.folder-icon { width: 20px; height: 15px; border-radius: 3px; background: linear-gradient(#ffd75e, #f5b800); position: relative; flex: none; }
.folder-icon::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: #f5b800; }
.file-icon { width: 15px; height: 18px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.file-icon.photo { background: linear-gradient(135deg, var(--cyan), var(--pink)); }
.file-icon.video { background: linear-gradient(135deg, var(--yellow), var(--pink)); }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-soft); padding: 24px; }
.promise .dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 14px; }
.promise h3 { font-size: 18px; }
.promise p { color: var(--muted); font-size: 15px; margin: 0; }

/* App replica: the transfer screen, dark like the app itself in either site theme */
.app-window { max-width: 540px; margin: 0 auto; background: #161618; color: #f5f5f7; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.18), 0 60px 120px rgba(0, 0, 0, 0.16); overflow: hidden; font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, system-ui, sans-serif; font-size: 14px; }
.app-titlebar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; }
.app-titlebar img { width: 22px; }
.app-titlebar .controls { margin-left: auto; font-style: normal; letter-spacing: 0; font-weight: 400; color: #a1a1a6; }
.app-body { padding: 8px 24px 28px; text-align: center; }
.app-card { background: #202023; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 24px; text-align: left; display: grid; gap: 12px; }
.app-caption { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: #a1a1a6; }
.app-count { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-subtle { color: #a1a1a6; }
.app-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.app-bar i { display: block; height: 100%; border-radius: 4px; background: var(--cyan); transition: width 0.4s linear; }
.app-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.app-row strong { font-weight: 600; }
.app-dest { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.app-dest > div { min-width: 0; }
.app-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-button { display: inline-block; flex: none; padding: 6px 14px; border-radius: 6px; background: #2d2d30; border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.app-note { color: #a1a1a6; font-size: 13px; margin: 16px auto 14px; max-width: 420px; text-wrap: balance; }
.app-stop { min-width: 140px; }

/* Closing */
.closing { text-align: center; padding: 96px 0; }
.closing h2 { font-size: clamp(36px, 6vw, 64px); }
.closing p { color: var(--muted); font-size: 21px; margin: 0; }

/* Text pages */
.page { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); margin-top: 0; }
.page h2 { font-size: 24px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--text); }
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-soft); padding: 24px 28px; margin: 16px 0; }
.card h2 { margin-top: 0; }
details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 18px 22px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--text); list-style-position: inside; }
details p { margin: 12px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .folders { grid-template-columns: 1fr; gap: 32px; }
  .promises { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .nav-links .optional { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 48px 0; }
  .promises { grid-template-columns: 1fr; }
  .tree .d3 { padding-left: 58px; }
  .tree .meta { display: none; }
  .app-body { padding: 4px 12px 20px; }
  .app-card { padding: 18px; }
  .app-count { font-size: 19px; }
  .app-window { font-size: 13px; }
}
