/* Layout: one narrow, centred column. Name, the app on iPhone, four features (a slice of real UI and one sentence each), then a small live "Can I afford it?". */
:root {
  /* SF Rounded comes from the visitor's Apple device (it can't be hosted); Inter stands in everywhere else. */
  --font: ui-rounded, "SF Pro Rounded", "Inter", system-ui, sans-serif;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --rule: #e3e3e8;
  --frame: #f5f5f7;
  --accent: #007aff;
  --warn: #ff9500;
  --bad: #ff3b30;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #000000; --ink: #f5f5f7; --muted: #98989d; --rule: #2c2c2e; --frame: #1c1c1e; --accent: #0a84ff; --warn: #ff9f0a; --bad: #ff453a; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 600px;
  margin: 0 auto;
  padding-block: 72px 56px;
  /* Equal plain gutters keep the column exactly centred. */
  padding-inline: 20px;
  display: grid;
  gap: 56px;
}
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.4rem; }
p { margin: 0; }

.intro { display: grid; gap: 14px; justify-items: center; text-align: center; }
.intro .mark { width: 96px; height: 96px; border-radius: 22.37%; box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.intro .line { font-size: 1.25rem; color: var(--muted); }
.intro .soon { font-size: 0.9rem; font-weight: 600; }

.hero { display: flex; justify-content: center; }
.hero img { width: min(320px, 100%); height: auto; display: block; border-radius: 40px; border: 1px solid var(--rule); }
.hero .dark { display: none; }

.features { display: grid; gap: 56px; }
/* Every section, the screenshot included, is the same full-width outlined card: one simple column. */
.hero, .feature, .afford { width: 100%; border: 1px solid var(--rule); border-radius: 22px; padding: 24px; }
.feature { display: grid; gap: 16px; text-align: center; }
/* Slices of the app sit straight on the page; the page background matches the app's, so there are no frames.
   Each slice has a light and a dark crop and shows the one matching the page. */
.vignette { display: flex; justify-content: center; }
.vignette img { display: block; width: 100%; height: auto; max-width: 100%; }
.vignette .dark { display: none; }
.vignette.narrow img { width: 55%; }
.vignette.fade img { -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.vignette.inset img { border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root .vignette .light { display: none; }
  :root .vignette .dark { display: block; }
}
@media (prefers-color-scheme: dark) {
  :root .hero .light { display: none; }
  :root .hero .dark { display: block; }
}
.feature p, .afford > p { color: var(--muted); }
.feature p strong { color: var(--ink); font-weight: 600; }

.afford { display: grid; gap: 14px; }
@media (max-width: 480px) { .hero, .feature, .afford { padding: 16px; border-radius: 18px; } }
.afford h2, .afford > p { text-align: center; }
.answer { text-align: center; }
.afford form { display: grid; gap: 14px; margin-top: 4px; }
.price { display: flex; align-items: center; gap: 6px; background: var(--frame); border: 1px solid var(--rule); border-radius: 14px; padding: 0 16px; }
.price span { color: var(--muted); font-size: 1.3rem; }
.price input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 1.6rem var(--font); font-variant-numeric: tabular-nums; padding: 12px 0; }
.price input:focus { outline: none; }
.price:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.answer { font-weight: 600; }
.answer.no { color: var(--bad); }
.answer small { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.chart { background: var(--frame); border: 1px solid var(--rule); border-radius: 18px; padding: 14px 12px 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { font: 500 11px var(--font); fill: var(--muted); }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .area { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .after { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .zero { stroke: var(--bad); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .buy { fill: var(--warn); stroke: var(--frame); stroke-width: 2; }
.note { font-size: 0.85rem; color: var(--muted); }

footer { color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Grid columns may shrink below their content's natural width, so nothing pushes past a phone screen. */
main, .features, .feature, .afford { grid-template-columns: minmax(0, 1fr); }
.afford form { grid-template-columns: minmax(0, 1fr); }
