/* Layout: one strict centred column (Things), wide infographic tiles (Fantastical).
   Light only, by choice. Tag groups are colour-coded by the four blades of the app icon:
   date = violet, location = blue, credits = green, camera = orange. */
:root {
  --bg: #fcfcfd;
  --bg-alt: #f3f3f6;
  --surface: #ffffff;
  --ink: #15161a;
  --muted: #5d5f69;
  --faint: #8b8d97;
  --line: #e3e3e9;

  --date: #5b3df2;
  --place: #2f7ff0;
  --credit: #4fa82a;
  --camera: #e57a1e;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  --radius: 18px;
  --shadow: 0 1px 2px rgb(20 20 30 / .06), 0 12px 40px -12px rgb(20 20 30 / .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--place); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap--mid { max-width: 820px; }
.wrap--narrow { max-width: 760px; }

.lead { font-size: var(--step-1); color: var(--muted); max-width: 30em; }

/* App Store badge (official artwork, never redrawn) */
.badge { display: inline-block; line-height: 0; border-radius: 9px; transition: opacity .15s ease; }
.badge:hover { opacity: .85; }
.badge--nav img { width: 108px; height: auto; }

/* Nav */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgb(252 252 253 / .82);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: .9375rem; }
.nav__links a { text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav__links { display: none; } .badge--nav { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) 0; }
.hero__grid {
  display: grid; gap: clamp(40px, 6vw, 72px); align-items: center;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.hero__copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 750; line-height: 1.02; letter-spacing: -.04em; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* iPhone screenshot with a drawn bezel */
.phone { border: 7px solid #1d1d21; border-radius: 46px; box-shadow: var(--shadow); background: #000; }

/* Hero visual: the app on iPhone with the inspector laid over it */
.hero__visual { position: relative; min-width: 0; min-height: 600px; }
.hero__phone { width: 280px; margin-left: auto; margin-right: 4%; }
.hero__visual .inspector { position: absolute; left: 0; bottom: 36px; width: min(440px, 78%); }
@media (max-width: 880px) {
  .hero__visual { min-height: 0; }
  .hero__phone { display: none; }
  .hero__visual .inspector { position: static; width: auto; }
}

/* Inspector: the hero infographic */
.inspector {
  margin: 0; min-width: 0; container-type: inline-size;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.inspector__bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: .8125rem;
}
.inspector__file { font-family: var(--mono); font-weight: 600; }
.inspector__count { margin-left: auto; color: var(--muted); }

.tags { list-style: none; margin: 0; padding: 6px 0; font-family: var(--mono); font-size: .8125rem; }
.tag {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 14px; align-items: baseline; padding: 9px 16px 9px 20px; position: relative;
}
.tag + .tag { border-top: 1px dashed var(--line); }
.tag::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--c);
}
.tag__name { font-weight: 600; display: flex; flex-direction: column; min-width: 0; }
.tag__name em { font-style: normal; font-weight: 400; color: var(--faint); font-size: .6875rem; }
.tag__old { color: var(--faint); position: relative; justify-self: start; }
.tag__old::after {
  content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: currentColor;
  transform-origin: left; animation: strike .5s ease-out both; animation-delay: calc(var(--i, 0) * 120ms + 300ms);
}
.tag__new {
  justify-self: start; padding: 1px 6px; margin-left: -6px; border-radius: 5px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.tag--same .tag__new { background: none; color: var(--muted); }
.tag:nth-child(2) { --i: 1; } .tag:nth-child(3) { --i: 2; } .tag:nth-child(4) { --i: 3; } .tag:nth-child(5) { --i: 4; }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@container (max-width: 520px) {
  .tag { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tag__name { grid-column: 1 / -1; flex-direction: row; gap: 8px; align-items: baseline; }
  .tag--same .tag__old { display: none; }
}

/* Formats strip */
.formats { margin-top: clamp(40px, 6vw, 72px); }
.formats ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.formats li {
  font-weight: 700; font-size: .875rem; letter-spacing: .02em; padding: 5px 12px; border-radius: 8px;
  color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent);
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: var(--step-3); font-weight: 750; line-height: 1.06; letter-spacing: -.035em;
  margin-bottom: clamp(32px, 5vw, 56px); max-width: 18em;
}

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .tiles--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; min-width: 0;
  --c: var(--ink);
}
.tile header { display: grid; gap: 10px; justify-items: start; }
.tile h3 { font-size: var(--step-2); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.tile__art { margin: 0; flex: 1; min-width: 0; }
.chip {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent);
  padding: 3px 9px; border-radius: 6px;
}
.chip--pro { color: var(--surface); background: var(--ink); }

/* Date parsing */
.parse { display: grid; justify-items: center; align-content: center; gap: 16px; text-align: center; }
.parse__menu { width: 100%; max-width: 360px; border-radius: 14px; }
.parse__file { font-family: var(--mono); font-size: clamp(.9375rem, .8rem + .8vw, 1.25rem); overflow-wrap: anywhere; }
.parse__file span { color: var(--faint); }
.parse__file b {
  font-weight: 600; color: var(--c); padding: 0 1px;
  border-bottom: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.parse__arrow { width: 22px; height: 22px; color: var(--faint); }
.parse__out { display: grid; gap: 4px; font-family: var(--mono); }
.parse__out em { font-style: normal; font-size: .75rem; color: var(--faint); }
.parse__out span {
  font-size: clamp(1.0625rem, .9rem + .8vw, 1.375rem); font-weight: 600; padding: 4px 10px; border-radius: 7px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
}

/* Location map */
.geo { position: relative; align-self: stretch; display: grid; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.geo svg { display: block; width: 100%; height: 100%; min-height: 220px; }
.map__coords {
  position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 10px 14px; border-radius: 12px;
  background: rgb(255 255 255 / .92); box-shadow: var(--shadow); font-family: var(--mono);
}
.map__coords div { display: grid; }
.map__coords dt { font-size: .6875rem; color: var(--faint); }
.map__coords dd { margin: 0; font-weight: 600; color: var(--c); }

/* Credits form */
.form { display: grid; gap: 12px; align-content: center; font-size: .9375rem; }
.form div { display: grid; gap: 4px; }
.form dt { font-family: var(--mono); font-size: .75rem; color: var(--faint); }
.form dd {
  margin: 0; padding: 9px 12px; border-radius: 9px; background: var(--bg-alt);
  border: 1px solid var(--line); overflow-wrap: anywhere;
}
.form div:first-child dd { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); background: var(--surface); }

/* Camera */
.exposure {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.exposure span { display: grid; gap: 4px; padding: 16px 6px; text-align: center; font-weight: 600; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); }
.exposure span + span { border-left: 1px solid var(--line); }
.exposure b { font-size: .625rem; font-weight: 600; color: var(--c); letter-spacing: .06em; text-transform: uppercase; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 18px 0 0; font-family: var(--mono); font-size: .8125rem; }
.spec div { display: grid; gap: 2px; min-width: 0; }
.spec dt { font-size: .6875rem; color: var(--faint); }
.spec dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Privacy diagram */
.local {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: stretch;
}
.local__device {
  position: relative; border: 2px solid var(--ink); border-radius: 22px; background: var(--surface);
  padding: 40px clamp(16px, 3vw, 36px) 32px;
}
.local__label {
  position: absolute; top: -12px; left: 24px; padding: 0 10px; background: var(--bg-alt);
  font-size: .8125rem; font-weight: 600;
}
.local__flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.local__node { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .875rem; font-weight: 600; }
.local__node--app { font-family: var(--font); padding: 8px 14px 8px 8px; border-radius: 12px; background: var(--bg-alt); }
.local__node--app img { border-radius: 7px; }
.thumb { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(160deg, #f6b26b, #c56b9a 55%, #3d4a8a); }
.thumb--done { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--credit); }
.local__arrow { width: 48px; height: 12px; color: var(--faint); flex: none; }
.local__cloud {
  display: grid; justify-items: center; align-content: center; gap: 10px; padding: 20px 28px;
  border: 2px dashed var(--line); border-radius: 22px; color: var(--faint); text-align: center;
  font-size: .875rem; font-weight: 600;
}
.local__cloud svg { width: 44px; height: 32px; }
@media (max-width: 760px) {
  .local { grid-template-columns: minmax(0, 1fr); }
  .local__flow { flex-direction: column; align-items: flex-start; }
  .local__arrow { transform: rotate(90deg); margin-left: 4px; }
}

/* Batch */
.batch { display: grid; align-content: center; gap: 12px; }
.batch__list { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .75rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.batch__list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; }
.batch__list li + li { border-top: 1px solid var(--line); }
.batch__list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.batch__list b { color: var(--date); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.batch__more { background: var(--bg-alt); }
.batch__more b { color: var(--ink); }
.batch__rule { justify-self: start; display: grid; font-family: var(--mono); font-size: .8125rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--date) 12%, transparent); }
.batch__rule em { font-style: normal; font-weight: 400; font-size: .6875rem; color: var(--faint); }

/* Strip toggles */
.strip { list-style: none; padding: 0; align-self: stretch; display: grid; align-content: center; gap: 0; }
.strip li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.strip li + li { border-top: 1px solid var(--line); }
.strip label { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.strip label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.strip li:has(input:not(:checked)) label { color: var(--faint); text-decoration: line-through; }
.strip input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 42px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s;
}
.strip input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s;
}
.strip input:checked { background: var(--credit); }
.strip input:checked::after { transform: translateX(16px); }

/* Save choice */
.save { display: grid; align-content: center; gap: 10px; }
.save__opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); font-weight: 600; color: var(--muted);
}
.save__opt.is-on { border-color: var(--place); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--place) 16%, transparent); }
.save__icon {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  background: var(--bg-alt); font-size: 1rem; color: var(--ink);
}

/* Devices diagram: three devices joined by a bracket to one purchase */
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; color: var(--ink); }
.device { margin: 0; display: grid; justify-items: center; gap: 14px; position: relative; padding-bottom: 28px; }
.device svg { height: clamp(84px, 14vw, 136px); width: auto; max-width: 100%; }
.device:nth-child(1) svg { height: clamp(76px, 12vw, 124px); }
.device figcaption { display: grid; justify-items: center; gap: 2px; text-align: center; }
.device b { font-family: var(--font-display); font-size: var(--step-1); }
.device span { font-size: .875rem; color: var(--muted); }
.device::after { content: ""; position: absolute; bottom: 0; left: 50%; height: 18px; border-left: 2px solid var(--ink); }
.bracket { height: 22px; margin-inline: calc(100% / 6); border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; position: relative; }
.bracket::after { content: ""; position: absolute; left: calc(50% - 1px); top: 100%; height: 20px; border-left: 2px solid var(--ink); }
.unlock { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; text-align: center; flex-wrap: wrap; }

/* Pricing */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; text-align: center; width: 18%; }
.compare thead th:first-child { width: auto; }
.compare thead .pro { color: var(--surface); background: var(--ink); border-radius: 10px 10px 0 0; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare td { text-align: center; font-size: 0; }
.compare td::before { font-size: 1.125rem; font-weight: 700; }
.compare td.yes::before { content: "✓"; color: var(--credit); }
.compare td.no::before { content: "–"; color: var(--faint); }
.compare td:last-child { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.prices p {
  display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--muted); font-size: .875rem; text-align: center;
}
.prices span { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 750; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prices__best { border-color: var(--ink) !important; }
@media (max-width: 420px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.fineprint { margin-top: 16px; font-size: .8125rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 38em; }

/* Closing + footer */
.closing { padding-block: clamp(72px, 10vw, 120px); }
.closing__inner { display: grid; justify-items: center; gap: 20px; text-align: center; }
.closing img { border-radius: 20px; }
.closing h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -.02em; }
.footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .875rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal h1 { font-size: var(--step-3); font-weight: 750; letter-spacing: -.035em; line-height: 1.06; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.legal h2 { font-size: var(--step-1); font-weight: 700; margin-top: 40px; }
.legal p, .legal ul { margin-top: 12px; color: #33343b; max-width: 42em; }
.legal ul { padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--place); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
