/* onemorewall.com. Colours are the app's Palette.swift; type is SF Rounded where the system has it
   (ui-rounded, every Apple device) and Nunito, self-hosted, everywhere else. The page is the shaft: it
   darkens to slate at the top and warms toward plum and the skylight as you scroll down, the way a run does. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: optional;
}

:root {
  color-scheme: dark;
  --ink: #0F1115;
  --sky-top: #10131A;
  --sky-bottom: #1E2430;
  --sky25: #202A3F;
  --sky50: #2F273F;
  --sky75: #3E2A43;
  --sky100: #4B2F43;
  --skylight: #FFCC9E;
  --paper: #EDE4D3;
  --paper-lit: #FFFAF0;
  --paper-face: #E4DAC8;
  --paper-shade: #CDBFA6;
  --paper-seam: #BEB29C;
  --paper-dim: rgba(237, 228, 211, 0.74);
  --paper-faint: rgba(237, 228, 211, 0.14);
  --verm: #FF4B2B;
  --verm-lit: #FF8566;
  --verm-deep: #C72E17;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 6px;
  --gutter: 20px;
  --max: 1160px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--sky-top);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, #151a24 14%, var(--sky25) 45%, var(--sky50) 72%, var(--sky75) 90%, var(--sky100) 100%);
  overflow-x: hidden;
}

/* The shaft's walls: paper rails down both edges of the window, with the wall's ticks. */
body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 50;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0 35px, var(--paper-seam) 35px 36.5px),
    var(--paper-face);
}
body::before { left: 0; box-shadow: 6px 0 14px rgba(15, 17, 21, 0.35); }
body::after { right: 0; box-shadow: -6px 0 14px rgba(15, 17, 21, 0.35); }

a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 900; line-height: 1.04; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 800; }

.wrap { width: min(var(--max), 100% - 2 * (var(--gutter) + var(--rail))); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 800;
}
.skip:focus { top: 12px; }

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

/* Caps with tracking, the app's label voice. */
.caps {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: baseline; gap: 0.12em;
  font-size: 22px; font-weight: 900; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap;
}
.dot {
  display: inline-block; width: 0.3em; height: 0.3em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--verm-lit), var(--verm) 55%, var(--verm-deep));
  box-shadow: 0 0 0.35em rgba(255, 75, 43, 0.75);
  margin-left: 0.08em;
}
.site-nav { display: flex; gap: 4px; white-space: nowrap; }
.site-nav a {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--paper-dim); padding: 12px 10px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }
.site-nav .nav-home { display: none; }
@media (max-width: 560px) { .site-nav .nav-how { display: none; } .site-nav a { padding: 12px 8px; letter-spacing: 0.1em; } }

/* ---------- Buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 28px 0 22px; border-radius: 999px;
  background: var(--verm); color: var(--ink); text-decoration: none;
  font-weight: 900; font-size: 17px; letter-spacing: 0.02em;
  box-shadow: 0 6px 28px rgba(255, 75, 43, 0.45);
  transition: transform 0.18s cubic-bezier(.3, 1.4, .5, 1);
}
.store:hover { transform: translateY(-1px); }
.store:active { transform: scale(0.96); }
.store small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; line-height: 1.1; }
.store span { line-height: 1.15; }
.store svg { width: 22px; height: 22px; flex: none; }
/* Before launch: not a link, a clear state. The ball pulses where the Apple logo will go. */
.store.is-soon {
  background: transparent; color: var(--paper); cursor: default;
  box-shadow: inset 0 0 0 2px rgba(237, 228, 211, 0.55);
}
.store.is-soon:hover, .store.is-soon:active { transform: none; }
.store.is-soon .pulse {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--verm-lit), var(--verm) 55%, var(--verm-deep));
  box-shadow: 0 0 12px rgba(255, 75, 43, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(0.72); box-shadow: 0 0 4px rgba(255, 75, 43, 0.5); } }
@media (prefers-reduced-motion: reduce) { .store.is-soon .pulse { animation: none; } }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--paper);
  border-bottom: 2px solid rgba(255, 75, 43, 0.8);
}
.text-link:hover { color: var(--verm-lit); }

/* ---------- Hero ---------- */
.hero { padding: 4px 0 72px; }
.hero .wrap { display: grid; gap: 26px; grid-template-areas: "title" "shaft" "copy"; }
.hero-title { grid-area: title; }
.hero-shaft { grid-area: shaft; }
.hero-copy { grid-area: copy; max-width: 620px; }
.hero .lead { margin-top: 0; }
.eyebrow { margin-bottom: 14px; }
@media (max-width: 480px) { .eyebrow { letter-spacing: 0.12em; font-size: 12px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-mark { display: grid; gap: 10px; }
.mark-word {
  display: block; font-size: clamp(46px, 13vw, 104px); font-weight: 900;
  letter-spacing: 0.04em; line-height: 0.95; white-space: nowrap;
}
.mark-word .dot {
  display: inline-block; vertical-align: baseline; width: 0.26em; height: 0.26em; margin-left: 0.06em;
  box-shadow: 0 0 0.3em rgba(255, 75, 43, 0.8);
}
.tagline { font-size: clamp(28px, 7.4vw, 46px); font-weight: 900; letter-spacing: -0.005em; color: var(--paper); }
.hook { font-size: clamp(21px, 5.4vw, 28px); font-weight: 800; line-height: 1.2; margin: 18px 0 0; color: var(--paper-dim); }
.hook .accent { color: var(--verm); }
.lead { font-size: clamp(18px, 4.6vw, 21px); color: var(--paper-dim); margin-top: 20px; max-width: 34em; }
.daily-line {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 30px; padding: 0; list-style: none;
}
.daily-line li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.daily-line li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--paper);
}
.daily-line li:last-child::before { background: var(--verm); box-shadow: 0 0 8px rgba(255, 75, 43, 0.8); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* The live shaft. Its box is fixed by aspect-ratio, so nothing moves when the canvas starts. */
.shaft {
  width: 100%;
  overflow: hidden;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  /* Without JavaScript the frame still shows the shaft: slate air between two paper walls. */
  background:
    linear-gradient(90deg, var(--paper-face) 0 6.15%, var(--paper-shade) 6.15% 6.9%, transparent 6.9% 93.1%, var(--paper-shade) 93.1% 93.85%, var(--paper-face) 93.85%),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
.shaft:focus-visible { outline-offset: 4px; border-radius: 26px; }
.shaft-status {
  margin: 14px auto 0; max-width: 330px; text-align: center; min-height: 3.2em;
  font-size: 13px; font-weight: 700; color: var(--paper-dim);
}

@media (min-width: 960px) {
  .hero { padding: 36px 0 110px; }
  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: 56px; row-gap: 22px;
    grid-template-areas: "title shaft" "copy shaft"; grid-template-rows: auto 1fr;
  }
  .hero-title { align-self: end; }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 8.4vw, 60px); margin-top: 14px; }
.section-head p { color: var(--paper-dim); font-size: 19px; margin-top: 18px; }
.alt-mark { color: var(--verm); }

/* How it plays: three beats. */
.beats { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: beat; }
.beat {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(237, 228, 211, 0.06), rgba(237, 228, 211, 0.025));
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.08);
}
.beat svg { width: 96px; height: 128px; border-radius: 14px; }
.beat h3 { font-size: 26px; }
.beat h3 .n { color: var(--verm); margin-right: 6px; }
.beat p { margin: 8px 0 0; color: var(--paper-dim); font-size: 16px; }
@media (min-width: 860px) {
  .beats { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .beat { grid-template-columns: 1fr; padding: 26px; align-items: start; }
  .beat svg { width: 100%; height: auto; aspect-ratio: 120 / 150; max-height: 250px; }
}

/* The Daily. */
.daily-panel {
  display: grid; gap: 34px; align-items: center;
  padding: 30px 22px; border-radius: 30px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 75, 43, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(16, 19, 26, 0.85), rgba(32, 42, 63, 0.7));
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.1), 0 30px 80px rgba(0, 0, 0, 0.3);
}
.daily-card { text-align: center; }
.daily-card .big { font-size: clamp(72px, 22vw, 132px); font-weight: 900; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.daily-card .big .hash { color: var(--paper-dim); font-size: 0.5em; vertical-align: 0.6em; margin-right: 0.04em; }
.marks { display: flex; justify-content: center; gap: 28px; margin: 22px 0 10px; }
.mark { display: grid; justify-items: center; gap: 6px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--paper-dim); }
.mark i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--paper-dim); }
.mark.best { color: var(--verm); }
.mark.best i { box-shadow: 0 0 10px rgba(255, 75, 43, 0.8); background: var(--verm); }
.daily-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.daily-facts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 17px; }
.daily-facts li::before {
  content: ""; width: 12px; height: 12px; margin: 7px 0 0 6px; border-radius: 50%; background: var(--paper);
}
.daily-facts strong { display: block; font-size: 19px; }
.daily-facts span { color: var(--paper-dim); }
.countdown { font-variant-numeric: tabular-nums; }
@media (min-width: 860px) {
  .daily-panel { grid-template-columns: 0.9fr 1.1fr; padding: 54px; gap: 54px; }
}

/* Endless and the climb. */
.split { display: grid; gap: 22px; }
.tile {
  padding: 28px 24px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(237, 228, 211, 0.06), rgba(237, 228, 211, 0.02));
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.09);
}
.tile h3 { font-size: 30px; margin: 12px 0 12px; }
.tile p { color: var(--paper-dim); }
.tile p:last-child { margin-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 22px; border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(237, 228, 211, 0.7); font-weight: 900; letter-spacing: 0.2em; font-size: 14px;
}
.altitude { margin: 22px 0 8px; }
.altitude-bar {
  height: 18px; border-radius: 999px;
  background: linear-gradient(90deg, #1E2430 0%, #202A3F 25%, #2F273F 50%, #3E2A43 75%, #4B2F43 92%, #8a5d57 100%);
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.14);
}
.altitude-scale { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 900; font-size: 13px; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .tile { padding: 40px; } }

/* The real screens. */
.screens {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px;
  margin: 0; list-style: none; scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens li { flex: 0 0 auto; scroll-snap-align: center; }
.screens figcaption { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 800; color: var(--paper-dim); }
@media (min-width: 860px) { .screens { justify-content: center; gap: 44px; overflow: visible; } }

/* The share card. */
.share { display: grid; gap: 40px; align-items: center; }
.share-card {
  width: min(100%, 400px); margin-inline: auto; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(237, 228, 211, 0.1);
  transform: rotate(-2.5deg);
}
.share-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.bubble {
  max-width: 460px; padding: 18px 20px; border-radius: 22px 22px 22px 6px;
  background: rgba(237, 228, 211, 0.1); box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.12);
  font-size: 17px; margin: 22px 0;
}
@media (min-width: 860px) { .share { grid-template-columns: 1fr 1fr; gap: 70px; } }

/* Made to feel right. */
.feel { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.feel li {
  padding: 22px 22px 20px; border-radius: 22px; background: rgba(15, 17, 21, 0.28);
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.08);
}
.feel strong { display: block; font-size: 20px; margin-bottom: 6px; }
.feel span { color: var(--paper-dim); font-size: 16px; }
@media (min-width: 700px) { .feel { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feel { grid-template-columns: repeat(4, 1fr); } }

/* Closing: the top of the shaft, where the light comes in. */
.closing { position: relative; padding: 0 0 40px; }
.closing-inner {
  position: relative; overflow: hidden; border-radius: 34px; text-align: center;
  padding: 120px 22px 90px; min-height: 520px;
  display: grid; place-items: center; align-content: center; gap: 20px;
  background: var(--sky75) url("/assets/skylight-800.webp") center top / cover no-repeat;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
@media (min-width: 800px) { .closing-inner { background-image: url("/assets/skylight-1600.webp"); min-height: 600px; } }
.closing-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0) 30%, rgba(15, 17, 21, 0.55) 100%);
}
.closing-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(60% 45% at 50% 55%, rgba(15, 17, 21, 0.62), rgba(15, 17, 21, 0) 100%);
}
.closing-inner > * { position: relative; z-index: 2; }
.closing h2 { font-size: clamp(48px, 14vw, 112px); text-shadow: 0 4px 30px rgba(15, 17, 21, 0.6); }
.closing p { font-size: 19px; color: var(--paper); text-shadow: 0 2px 14px rgba(15, 17, 21, 0.8); max-width: 26em; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 56px; color: var(--paper-dim); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 14px; }
.site-footer nav a { text-decoration: none; font-weight: 800; padding: 10px 0; display: inline-block; }
.site-footer nav a:hover { color: var(--paper); }
.site-footer p { margin: 0; }

/* ---------- Text pages (privacy, support) ---------- */
.doc { padding: 20px 0 60px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 10vw, 64px); margin: 16px 0 20px; }
.doc h2 { font-size: 26px; margin: 44px 0 14px; }
.doc p, .doc li { color: rgba(237, 228, 211, 0.86); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--verm-lit); text-underline-offset: 3px; }
.doc .updated { color: var(--paper-dim); font-size: 14px; }
.doc .note {
  padding: 16px 18px; border-radius: 16px; background: rgba(237, 228, 211, 0.07);
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.1); color: var(--paper);
}
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(237, 228, 211, 0.12); vertical-align: top; }
.doc th { color: var(--paper); font-weight: 900; }
.doc td { color: rgba(237, 228, 211, 0.86); }
.faq details {
  border-radius: 18px; margin-bottom: 12px; background: rgba(237, 228, 211, 0.05);
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.09);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 900; font-size: 18px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--paper-dim);
}
.faq details[open] summary::after { background: var(--verm); box-shadow: 0 0 10px rgba(255, 75, 43, 0.8); }
.faq details > div { padding: 0 20px 6px; }
.contact-box { margin-top: 40px; padding: 26px; border-radius: 24px; background: rgba(15, 17, 21, 0.3); box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.1); }
.contact-box h2 { margin-top: 0; }

/* ---------- Daily landing (/d/N) ---------- */
.d-hero { padding: 8px 0 30px; }
.d-hero .wrap { display: grid; gap: 34px; }
.d-hero h1 { font-size: clamp(38px, 10vw, 72px); }
.d-hero h1 .score { color: var(--verm); }
.d-hero .lead { margin-bottom: 26px; }
.stats {
  margin-top: 8px; padding: 24px 20px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(16, 19, 26, 0.85), rgba(32, 42, 63, 0.6));
  box-shadow: inset 0 0 0 1px rgba(237, 228, 211, 0.1);
}
.stats[hidden] { display: none; }
.stats h2 { font-size: 24px; margin: 8px 0 18px; }
.beats-line { font-size: 20px; font-weight: 900; margin: 0 0 18px; }
.beats-line .pct { color: var(--verm); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 22px; }
.stat-grid div { padding: 14px 16px; border-radius: 16px; background: rgba(237, 228, 211, 0.06); }
.stat-grid dt { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); }
.stat-grid dd { margin: 4px 0 0; font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.chart { width: 100%; height: auto; }
.chart .bar { fill: rgba(237, 228, 211, 0.78); }
.chart .bar.mine { fill: var(--verm); }
.chart .axis { fill: var(--paper-dim); font-family: var(--font); font-size: 11px; font-weight: 800; }
.stats-note { font-size: 13px; color: var(--paper-dim); margin: 12px 0 0; }
@media (min-width: 960px) {
  .d-hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; gap: 56px; }
}

/* 404 */
.lost { text-align: center; padding: 60px 0 100px; }
.lost h1 { font-size: clamp(48px, 13vw, 96px); margin-bottom: 16px; }
.lost p { color: var(--paper-dim); font-size: 19px; }

@media (min-width: 700px) {
  :root { --rail: 10px; --gutter: 32px; }
}

.share h2 { font-size: clamp(34px, 8.4vw, 56px); margin: 14px 0 18px; }
@media (max-width: 859px) { .screens { padding-left: 4px; } }

/* ---------- iPhone 17 Pro frame, drawn in CSS ----------
   Proportions from the published size (71.9 x 150.0 mm) and the 6.3" 1206 x 2622 display: a thin aluminium band
   (Deep Blue), a black glass border, a screen with ~13.7% corner radius and the Dynamic Island. The buttons:
   Action button and volume on the left; side button and Camera Control on the right. No Apple artwork is used. */
.iphone {
  --metal-a: #1a2130; --metal-b: #43536d; --metal-c: #28344a;
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  aspect-ratio: 71.9 / 150;
  padding: 1.3%;
  border-radius: 17% / 8.15%;
  background: linear-gradient(90deg, var(--metal-a), var(--metal-b) 3%, var(--metal-c) 12%, var(--metal-c) 88%, var(--metal-b) 97%, var(--metal-a));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(255, 75, 43, 0.07);
}
.iphone-glass {
  position: relative;
  height: 100%;
  padding: 3.3% 3.4%;
  border-radius: 16% / 7.7%;
  background: #050608;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.iphone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 13.7% / 6.3%;
  background: var(--sky-top);
  isolation: isolate;
}
.iphone-screen > img, .iphone-screen > canvas { display: block; width: 100%; height: 100%; }
.iphone-screen > img { object-fit: cover; }
.island {
  position: absolute; z-index: 2; top: 1.45%; left: 50%; transform: translateX(-50%);
  width: 31.4%; height: 4.25%; border-radius: 999px; background: #000;
  pointer-events: none;
}
.iphone .btn { position: absolute; width: 1.1%; border-radius: 2px; background: linear-gradient(90deg, var(--metal-b), var(--metal-a)); }
.iphone .btn.l { left: -0.9%; border-radius: 2px 0 0 2px; }
.iphone .btn.r { right: -0.9%; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, var(--metal-a), var(--metal-b)); }
.iphone .btn.action { top: 17.5%; height: 4.4%; }
.iphone .btn.vol-up { top: 25%; height: 7%; }
.iphone .btn.vol-down { top: 33.5%; height: 7%; }
.iphone .btn.side { top: 26%; height: 10.5%; }
.iphone .btn.camera { top: 55%; height: 6%; width: 0.7%; right: -0.6%; background: #11151d; }

.hero .iphone { width: min(100%, 272px); }
.iphone .shaft { aspect-ratio: auto; border-radius: 0; }
.shaft:focus-visible { outline-offset: -4px; }
@media (min-width: 960px) { .hero .iphone { width: min(100%, 340px); margin-right: 8px; } }
.screens .iphone { width: 200px; }
@media (min-width: 860px) { .screens .iphone { width: 240px; } }
.inline-link { color: var(--verm-lit); text-underline-offset: 3px; font-weight: 800; }
.doc .lead { color: var(--paper); font-size: 20px; }
.doc .store { margin-top: 10px; }

/* ---------- Phones (640px and under): a tighter page ----------
   Everything below applies only at phone widths; wider layouts are untouched. .m-only / .d-only swap the few
   places where the phone gets a shorter version of the same facts (the Daily summary, the "Made to feel right" lines). */
.m-only { display: none; }
@media (max-width: 640px) {
  .d-only { display: none; }
  .m-only { display: revert; }

  /* Rhythm: sections 76 -> 40, headings and paragraphs in proportion. */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 32px; margin-top: 8px; }
  .section-head p { font-size: 17px; margin-top: 10px; margin-bottom: 0; }
  .caps { font-size: 12px; }

  /* Hero */
  .hero { padding: 4px 0 24px; }
  .hero .wrap { gap: 18px; }
  .hero .iphone { width: min(100%, 248px); }
  .eyebrow { margin-bottom: 10px; }
  .hero-mark { gap: 6px; }
  .hook { margin-top: 12px; }
  .shaft-status { margin-top: 10px; }
  .daily-line { margin: 16px 0 20px; gap: 6px 16px; }

  /* How it plays */
  .beats { gap: 10px; }
  .beat { grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 14px; }
  .beat svg { width: 76px; height: 101px; border-radius: 12px; }
  .beat h3 { font-size: 22px; }
  .beat p { font-size: 15px; margin-top: 4px; line-height: 1.45; }

  /* The Daily: a compact card and three one-line points. */
  .daily-panel { gap: 18px; padding: 20px 18px 22px; border-radius: 24px; }
  .daily-card .big { font-size: 68px; }
  .daily-card .caps { margin-bottom: 8px; }
  .daily-card .big { margin-bottom: 8px; }
  .marks { gap: 22px; margin: 10px 0 6px; }
  .mark { gap: 4px; font-size: 15px; }
  .mark i { width: 13px; height: 13px; }
  .daily-card .stats-note { margin-top: 10px; }
  .daily-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .daily-points li { position: relative; padding-left: 22px; font-size: 16px; color: var(--paper-dim); line-height: 1.35; }
  .daily-points li::before {
    content: ""; position: absolute; left: 2px; top: 0.4em; width: 10px; height: 10px; border-radius: 50%; background: var(--paper);
  }
  .daily-points li:first-child::before { background: var(--verm); box-shadow: 0 0 8px rgba(255, 75, 43, 0.8); }
  .daily-points strong { color: var(--paper); }
  .daily-more { margin: 14px 0 0; font-size: 14px; color: var(--paper-dim); }
  .daily-more a { color: var(--verm-lit); font-weight: 800; text-underline-offset: 3px; }

  /* Endless and the climb */
  .split { gap: 12px; }
  .tile { padding: 20px 18px; border-radius: 22px; }
  .tile h3 { font-size: 24px; margin: 10px 0 8px; }
  .tile p { font-size: 16px; line-height: 1.45; }
  .pill { min-height: 32px; padding: 0 16px; font-size: 12px; }
  .altitude { margin: 14px 0 4px; }
  .altitude-bar { height: 14px; }

  /* The real screens: a swipeable row, one phone about 70% wide with the next peeking in. */
  .screens { gap: 14px; padding: 4px 0 20px; overscroll-behavior-x: contain; }
  .screens li { flex: 0 0 70%; scroll-snap-align: start; }
  .screens li:last-child { scroll-snap-align: end; }
  .screens figure { margin: 0; }
  .screens .iphone {
    width: 100%;
    /* A shorter shadow: the row scrolls, so it clips anything that reaches past its padding. */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.6);
  }
  .screens figcaption { margin-top: 10px; font-size: 13px; }
  .screens:focus-visible { outline-offset: 2px; border-radius: 12px; }

  /* The share card, smaller, beside nothing: stacked above its copy. */
  .share { gap: 22px; }
  .share-card { width: min(62%, 240px); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(237, 228, 211, 0.1); }
  .share h2 { font-size: 32px; margin: 8px 0 10px; }
  .share .lead { font-size: 17px; margin-bottom: 14px; }
  .bubble { margin: 10px 0 0; padding: 14px 16px; font-size: 15px; }

  /* Made to feel right: 2 x 2. */
  .feel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feel li { padding: 14px 14px 13px; border-radius: 18px; }
  .feel strong { font-size: 16px; line-height: 1.2; margin-bottom: 5px; }
  .feel span { font-size: 14px; line-height: 1.4; display: block; }
  .feel .d-only { display: none; }

  /* Closing and footer */
  .closing { padding-bottom: 24px; }
  .closing-inner { padding: 64px 20px 52px; min-height: 360px; gap: 16px; border-radius: 28px; }
  .closing p { font-size: 17px; }
  .site-footer { padding: 24px 0 36px; }
  .site-footer nav { margin-bottom: 8px; }

  /* Text pages and guides: same rule, less air between blocks. */
  .doc { padding: 12px 0 40px; }
  .doc h1 { margin: 10px 0 14px; }
  .doc h2 { margin: 32px 0 10px; }
}
