/* Shared by every page on the site: plain paper, Geist for all type, a quiet footer. Dark when the visitor's system is. */
@font-face { font-family: "Geist"; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #fcfcfc; --text: #1c1c1c; --muted: #5d5d5d; --faint: rgba(28,28,28,.66); --line: rgba(28,28,28,.14);
  --btn: #000; --btn-text: #fff; --ember: #d08a3c; --violet: #8b6cff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b12; --text: #f2f1ee; --muted: rgba(255,255,255,.62); --faint: rgba(255,255,255,.55); --line: rgba(255,255,255,.16); --btn: #edebe6; --btn-text: #0b0b12; }
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 420 15px/1.5 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(208,138,60,.35); }
.mark { display: block; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), var(--violet)); }

.page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 0 6vw; }
header { padding-top: 36px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; padding: 24px 0 28px; font-size: 14px; color: var(--faint); }
footer nav { display: flex; gap: 8px; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

/* Home: words on the left, three iPhones on the right */
.home { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 700px); justify-content: space-between; align-items: center; gap: 6vw; padding: 24px 0; }
.copy h1 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; }   /* one line per sentence at every width */
.copy h1 span { display: block; color: var(--muted); }
.lede { max-width: 30em; margin-top: 28px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; background: var(--btn); color: var(--btn-text); transition: opacity .15s; }
.btn:hover { opacity: .82; }
.btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.frame { container-type: inline-size; display: flex; justify-content: center; align-items: center; aspect-ratio: 1.15; border-radius: 8px; overflow: hidden;
  background: radial-gradient(70% 34% at 18% 74%, rgba(208,138,60,.55), transparent 70%), radial-gradient(55% 45% at 82% 22%, rgba(139,108,255,.45), transparent 70%), #07070b; }
@media (prefers-color-scheme: dark) { .frame { box-shadow: inset 0 0 0 1px var(--line); } }

/* An iPhone 15 Pro drawn to scale from its width: titanium band, black bezel, screen, side buttons */
.iphone { --w: 29cqw; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * .039); border-radius: calc(var(--w) * .168);
  background: linear-gradient(150deg, #a3a3a9, #44444a 12%, #26262a 50%, #44444a 88%, #93939a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 calc(var(--w) * .1) calc(var(--w) * .28) rgba(0,0,0,.65); filter: brightness(.82); }
.iphone.mid { --w: 35cqw; z-index: 1; margin: 0 -3.5cqw; filter: none; }
.iphone > * { display: block; width: 100%; aspect-ratio: 506 / 1100; object-fit: cover; border-radius: calc(var(--w) * .129); box-shadow: 0 0 0 calc(var(--w) * .026) #000; }
.iphone::before, .iphone::after { content: ""; position: absolute; width: calc(var(--w) * .014); background: #4a4a50; }
.iphone::before { right: 100%; top: 17%; height: 26%; border-radius: 2px 0 0 2px;   /* action button, volume up, volume down */
  background: linear-gradient(#4a4a50 0 16%, transparent 16% 30%, #4a4a50 30% 60%, transparent 60% 70%, #4a4a50 70%); }
.iphone::after { left: 100%; top: 28%; height: 14%; border-radius: 0 2px 2px 0; }   /* side button */
.iphone.mid::before, .iphone.mid::after { content: none; }   /* they would land on the neighbours' screens */
.cap { margin-top: 18px; color: var(--muted); }
.cap b { display: block; font-weight: 420; color: var(--text); }

.home > * { animation: in .9s ease-out both; } .home > :last-child { animation-delay: .15s; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .home > * { animation: none; } }

@media (max-width: 860px) {
  .page { padding: 0 16px; }
  .home { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 40px; }
  .copy h1 { font-size: 7.8vw; }
  .lede { font-size: 17px; }
  .btn { padding: 0 18px; }
}
