/* ---------- Tokens ---------- */
:root {
  --renly-accent: #0f7a5a;
  --renly-bg: #f7f5f0;
  --flight-accent: #4fb3ff;
  --flight-accent-strong: #1f7fd1; /* readable on light backgrounds */
  --flight-bg: #0a1630;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
}

/* Each scene = page background + text colors. JS sets body[data-scene] on scroll. */
body[data-scene="dark"]   { --bg: #000;            --fg: #f5f5f7; --muted: #86868b; }
body[data-scene="light"]  { --bg: #f5f5f7;         --fg: #1d1d1f; --muted: #6e6e73; }
body[data-scene="renly"]  { --bg: var(--renly-bg); --fg: #14201b; --muted: #5f6964; }
body[data-scene="flight"] { --bg: var(--flight-bg); --fg: #ffffff; --muted: #8ea3c7; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* No CSS scroll-behavior: smooth — it breaks ScrollTrigger measurements. Smooth anchors live in main.js. */
html { scroll-padding-top: 52px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .8s ease, color .8s ease;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--flight-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 48px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  transition: background-color .8s ease;
}
.nav-inner { height: 100%; width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: var(--w, 280px);
  aspect-ratio: 1 / 1.92; /* a bit wider than a real iPhone (1 / 2.08) so screens feel less tall */
  padding: 3%;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #3a3a3c, #121214 40%, #2c2c2e);
  box-shadow: 0 0 0 1.5px #4a4a4d inset, 0 40px 80px -20px rgba(0, 0, 0, .45);
}
.screen::after { /* Dynamic Island */
  content: ""; position: absolute; z-index: 2;
  top: 1.8%; left: 50%; translate: -50% 0;
  width: 31%; height: 3.6%; border-radius: 999px; background: #000;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: #000; }
.screen img, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.screen img.is-active, .screen video.is-active { opacity: 1; }

/* ---------- Intro heading ---------- */
.hero-title { font-size: clamp(56px, 11vw, 150px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.hero-title .amp { /* Renly green → Flight blue */
  background: linear-gradient(120deg, #2fbf8f, var(--flight-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 20px; font-size: clamp(19px, 2.4vw, 28px); font-weight: 500; color: var(--muted); }
/* ---------- Intro: 3D clay app icons ---------- */
.intro {
  position: relative; height: calc(100svh - 190px); min-height: 520px; overflow: hidden; /* 190px = nav + ribbon + chapter nav */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  text-align: center; padding: 0 16px;
}
.intro::before, .intro::after { /* colour glow behind the big icon, cross-fades per app */
  content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 1s ease;
}
.intro::before { background: radial-gradient(circle at 50% 40%, rgba(47, 191, 143, .22), transparent 38%); }
.intro::after  { background: radial-gradient(circle at 50% 40%, rgba(79, 179, 255, .22), transparent 38%); opacity: 0; }
.intro[data-icon="sky"]::before { opacity: 0; }
.intro[data-icon="sky"]::after { opacity: 1; }
.intro-grid {
  position: absolute; inset: -15%; display: grid; grid-template-columns: repeat(auto-fill, 150px);
  justify-content: center; align-content: center; gap: 44px;
  filter: blur(2.5px); opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 35%, transparent 100%);
}
.gicon, .intro-icon {
  aspect-ratio: 1; border-radius: 23%; display: grid; place-items: center;
  background: linear-gradient(150deg, #34343a, #1a1a1d 60%, #141416);
}
.gicon { box-shadow: inset 1px 1px 2px rgba(255,255,255,.1), inset -3px -5px 8px rgba(0,0,0,.45), 0 20px 40px rgba(0,0,0,.55); }
.gicon svg { width: 44%; height: 44%; fill: url(#g-tile); filter: drop-shadow(0 4px 5px rgba(0,0,0,.6)); }
.intro-icon-wrap { position: relative; z-index: 2; perspective: 900px; }
.intro-icon {
  position: relative; width: clamp(130px, 15vw, 190px);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s ease-out;
  box-shadow:
    inset 2px 2px 3px rgba(255,255,255,.16), inset -6px -10px 18px rgba(0,0,0,.55),
    0 50px 90px -20px rgba(0,0,0,.9), 0 20px 30px -10px rgba(0,0,0,.6);
}
.glyph {
  position: absolute; inset: 24%; width: 52%; height: 52%;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.55)) drop-shadow(0 -1px 0 rgba(255,255,255,.35));
  transition: opacity .6s ease, transform .8s cubic-bezier(.3, 1.4, .5, 1);
}
.glyph--sky { opacity: 0; transform: rotateY(90deg) scale(.7); }
.intro[data-icon="sky"] .glyph--renly { opacity: 0; transform: rotateY(-90deg) scale(.7); }
.intro[data-icon="sky"] .glyph--sky { opacity: 1; transform: none; }
.intro-text { position: relative; z-index: 2; margin-bottom: 24px; }
.intro .hero-title { font-size: clamp(48px, 8.5vw, 120px); }
.intro .hero-sub { margin-top: 14px; }
.intro-hint { position: absolute; bottom: 32px; font-size: 13px; color: var(--muted); }
.intro-hint::after { content: ""; display: block; width: 8px; height: 8px; margin: 10px auto 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { translate: 0 6px; } }

.phone--metal {
  padding: 2.2%;
  border-radius: 16% / 7.4%;
  background: var(--metal);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .45),
    inset 0 0 3px 2px rgba(0, 0, 0, .35),
    0 60px 90px -30px rgba(0, 0, 0, .9),
    0 30px 120px -20px var(--glow);
}
.phone--metal .screen { border: calc(var(--w) * .028) solid #050505; border-radius: 14.6% / 6.8%; }
.phone--metal .screen::before { /* glass glare */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 28%, transparent 42%);
}
.phone--metal::before, .phone--metal::after { /* side buttons */
  content: ""; position: absolute; width: 1.3%; background: var(--metal); border-radius: 2px;
}
.phone--metal::before { left: -1.1%; top: 22%; height: 6.5%; box-shadow: 0 calc(var(--w) * .2) 0 0 var(--metal-btn); }
.phone--metal::after  { right: -1.1%; top: 27%; height: 10%; }
.metal-renly {
  --metal: linear-gradient(140deg, #b6f0d6 0%, #3a9c78 16%, #0f4a37 42%, #1d6e52 62%, #8fe0bf 84%, #2a7c5e 100%);
  --metal-btn: #1f7357; --glow: rgba(47, 191, 143, .45);
}
.metal-graphite {
  --metal: linear-gradient(140deg, #9a9aa0 0%, #4a4a50 16%, #1c1c1f 42%, #333338 62%, #8a8a90 84%, #3a3a3f 100%);
  --metal-btn: #3a3a3f; --glow: rgba(160, 160, 170, .25);
}
.metal-silver {
  --metal: linear-gradient(140deg, #ffffff 0%, #c9c9ce 16%, #8e8e94 42%, #b5b5ba 62%, #f5f5f7 84%, #a5a5aa 100%);
  --metal-btn: #b0b0b5; --glow: rgba(230, 230, 240, .25);
}
.metal-flight {
  --metal: linear-gradient(140deg, #c9e8ff 0%, #4b9be0 16%, #123f70 42%, #24609c 62%, #a6d6ff 84%, #2f6fae 100%);
  --metal-btn: #2a6aa6; --glow: rgba(79, 179, 255, .45);
}
/* ---------- Film: card grows to full screen on scroll ---------- */
.film { position: relative; }
.film-pin {
  --cw: min(1000px, 80vw, (100vh - 260px) * 16 / 9);   /* card size before it expands */
  --ch: calc(var(--cw) * 9 / 16);
  position: relative; height: 100vh; overflow: hidden;
}
.film-title {
  position: absolute; left: calc(50% - var(--cw) / 2); top: calc(50% + 40px - var(--ch) / 2 - 72px); z-index: 2;
  font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.04em;
}
.film-frame {
  /* Fixed-size 16:9 card: the whole film is always visible, never cropped or zoomed. */
  position: absolute; left: 50%; top: calc(50% + 40px); translate: -50% -50%;
  width: var(--cw); aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000;
}
.film-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65, 0, .35, 1); touch-action: pan-y; }
.film-slide { position: relative; flex: 0 0 100%; height: 100%; }
.film-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), transparent 28%); transition: opacity .5s ease; }
.film-slide.is-playing .film-overlay { opacity: 0; pointer-events: none; }
.film-caption {
  position: absolute; top: clamp(16px, 2.4vw, 28px); left: clamp(16px, 2.6vw, 32px); right: 20px;
  font-size: clamp(17px, 2vw, 24px); font-weight: 600; color: #f5f5f7; text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.film-caption strong { font-weight: 800; }
.film-play {
  position: absolute; left: clamp(16px, 2.6vw, 32px); bottom: clamp(14px, 2.4vw, 28px);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; color: #1d1d1f; cursor: pointer;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s ease, background-color .25s;
}
.film-play:hover { transform: scale(1.04); background: #fff; }
.film-controls { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; margin: 0; z-index: 3; }

.reel-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.reel-btn, .reel-dots { background: rgba(28, 28, 30, .6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.reel-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #f5f5f7; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.reel-btn:hover { background: rgba(58, 58, 62, .75); }
.reel-btn:disabled { opacity: .35; cursor: default; }
.reel-btn .i-play { display: none; }
.reel-btn.is-paused .i-play { display: inline; }
.reel-btn.is-paused .i-pause { display: none; }
.reel-dots { display: flex; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; align-items: center; }
.reel-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .4s ease; }
.reel-dot.is-active { width: 48px; background: rgba(255, 255, 255, .25); }
.reel-dot span { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; border-radius: inherit; }

/* ---------- About ---------- */
.about { padding: 140px 16px 60px; width: min(1000px, 100%); margin-inline: auto; }
.statement { font-size: clamp(34px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin-bottom: .7em; }
.statement:last-child { margin-bottom: 0; }
.statement .word { display: inline-block; white-space: pre; }

/* ---------- Team ---------- */
.team { padding: 110px 0 70px; }
.section-title { font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-bottom: 64px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.member { background: #fff; border-radius: 28px; overflow: hidden; color: #1d1d1f; box-shadow: 0 2px 30px rgba(0,0,0,.05); }
.member img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.member-body { padding: 32px; }
.member-role { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.member h3 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.member p:not(.member-role) { color: #6e6e73; line-height: 1.5; font-size: 17px; }
.link { display: inline-block; margin-top: 20px; color: var(--accent); text-decoration: none; font-weight: 500; font-size: 17px; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }

/* ---------- App showcase ---------- */
.showcase { padding-bottom: 70px; }
.showcase-head { padding-top: 110px; }
.showcase [id] { scroll-margin-top: 110px; }
.showcase-head { text-align: center; }
.app-name { font-size: clamp(64px, 12vw, 160px); font-weight: 800; letter-spacing: -.055em; line-height: .95; }
.app-name span { color: var(--accent); }
.app-tagline { margin-top: 16px; font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em; color: var(--accent); }
.app-desc { margin: 24px auto 0; max-width: 620px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); }

.showcase-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.showcase--reverse .showcase-phone { order: 2; }
.showcase-phone { position: sticky; top: 100px; height: calc(100vh - 100px); align-self: start; display: flex; align-items: center; justify-content: center; }
.phone--tall { --w: min(38vh, 340px); }
.feature:first-child, .feature:last-child { min-height: 70vh; }
.feature { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .5s ease; }
.feature.is-active { opacity: 1; }
.feature-num { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin-bottom: 18px; }
.feature p:not(.feature-num) { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 440px; }
.feature-phone { display: none; }

/* ---------- Download buttons ---------- */
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 32px; }
.cta .link { margin-top: 0; }
.cta-meta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent, #fff);
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.1); transform: scale(1.03); }
.btn--sm { padding: 8px 16px; font-size: 15px; }
.member-actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.member-actions .link { margin-top: 0; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Stats ---------- */
.stats { padding: 80px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-num { font-size: clamp(56px, 8vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(120deg, #2fbf8f, var(--flight-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* ---------- Local nav (per app, sticky inside its section) ---------- */
.subnav {
  position: sticky; top: 48px; z-index: 40; height: 52px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
}
.subnav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.subnav-links { display: flex; align-items: center; gap: 24px; }
.subnav-links a:not(.btn) { font-size: 12px; text-decoration: none; opacity: .8; }
.subnav-links a:not(.btn):hover { opacity: 1; }
.btn--xs { padding: 4px 12px; font-size: 12px; font-weight: 500; }

/* ---------- Bento highlights ---------- */
.bento { padding-top: 60px; }
.bento-heading { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 32px; }
.bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile { grid-column: span 2; background: var(--tile); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--hero { grid-column: span 4; grid-row: span 2; justify-content: space-between; }
.tile-kicker { font-size: 15px; font-weight: 600; color: var(--muted); }
.tile-title { margin-top: 8px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.tile-big { font-size: clamp(44px, 6vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.tile-num { font-size: clamp(56px, 6vw, 88px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }

/* ---------- Compare ---------- */
.compare { padding: 110px 0 60px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 32px; background: #fff; border-radius: 28px; color: #1d1d1f; }
.compare-phone { width: 160px; height: auto; margin-bottom: 32px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .18)); }   /* rendered from the iPhone 17 Pro model */
.compare-col h3 { font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.compare-tag { margin: 6px 0 24px; color: var(--accent); font-weight: 600; }
.compare-col dl { margin: 40px 0 0; width: 100%; }
.compare-col dt { font-size: 13px; color: #6e6e73; padding-top: 20px; border-top: 1px solid #e5e5ea; }
.compare-col dt:first-child { border-top: 0; padding-top: 0; }
.compare-col dd { margin: 6px 0 20px; font-size: 17px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0 120px; }
.faq-inner { max-width: 820px; }
.faq details { border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); }
.faq details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3em; line-height: 1; transition: rotate .3s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 680px; }

/* ---------- Ribbon ---------- */
.ribbon { margin-top: 48px; padding: 14px 16px; text-align: center; font-size: 14px; background: #1d1d1f; color: #f5f5f7; }
.ribbon a { color: #2997ff; text-decoration: none; margin-left: 4px; }
.ribbon a::after { content: " ›"; }
.ribbon a:hover { text-decoration: underline; }

/* ---------- Tech specs ---------- */
.specs { padding-top: 100px; }
.spec-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); }
.spec-kicker { font-size: 17px; font-weight: 600; color: var(--muted); }
.spec-big { font-size: clamp(44px, 5.5vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; color: var(--accent); }
.spec-sub { margin-top: 6px; font-size: 17px; font-weight: 600; }
.spec-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 32px; }
.spec-list h4 { margin: 0 0 6px; font-size: 17px; }
.spec-list p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Footnotes ---------- */
sup.fn { font-size: .55em; line-height: 0; margin-left: 2px; }
sup.fn a { text-decoration: none; color: inherit; }
sup.fn a:hover { text-decoration: underline; }
.footnotes { margin: 56px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.6; color: #86868b; }
.footnotes li { margin-bottom: 6px; }
.footnotes li:target { color: #f5f5f7; }

/* ---------- Explore (feature explorer + finish picker) ---------- */
.explore { padding: 100px 0 70px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-bottom: 56px; }
.segmented button {
  border: 0; border-radius: 999px; padding: 10px 22px; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--muted); background: transparent; cursor: pointer; transition: background-color .3s, color .3s;
}
.segmented button[aria-selected="true"] { background: #f5f5f7; color: #1d1d1f; }
.explore-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.explore-group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.explore-group[hidden] { display: none; }
.explore-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 420px; text-align: left;
  border: 0; border-radius: 28px; padding: 14px 24px 14px 16px; font: inherit; color: inherit;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(20px); cursor: pointer;
  transition: background-color .3s, padding .3s;
}
.explore-item:hover { background: rgba(255, 255, 255, .16); }
.explore-icon { flex: none; transition: rotate .3s; }
.explore-name { font-size: 17px; font-weight: 600; }
.explore-desc { display: none; flex-basis: 100%; font-size: 17px; line-height: 1.5; color: var(--muted); }
.explore-item.is-open { padding: 24px 28px; cursor: default; }
.explore-item.is-open .explore-icon { display: none; }
.explore-item.is-open .explore-desc { display: block; }
.explore-item.is-open .explore-name { color: #f5f5f7; }
.explore-visual { --w: clamp(200px, 22vw, 290px); display: flex; flex-direction: column; align-items: center; }
.explore-visual .phone { transition: box-shadow .6s; }
#explore-img { transition: opacity .25s ease; }
.swatch-name { margin-top: 32px; font-size: 14px; font-weight: 600; }
.swatches { display: flex; gap: 12px; margin-top: 12px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 2px 3px rgba(255,255,255,.4);
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s;
}
.swatch[aria-pressed="true"] { outline-color: #f5f5f7; }

/* ---------- Footer ---------- */
.footer { padding: 100px 0 64px; background: #000; color: #f5f5f7; }
.footer-title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; }
.footer-meta { margin-top: 8px; color: #86868b; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #333; font-size: 15px; }
.footer-label { color: #86868b; font-size: 13px; margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Skip link (keyboard users) ---------- */
.skip-link {
  position: fixed; left: 16px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #1d1d1f; font-weight: 600; text-decoration: none; translate: 0 -150%; transition: translate .2s;
}
.skip-link:focus { translate: 0 0; }

/* ---------- Chapter nav (row of icons under the ribbon) ---------- */
.chapternav { border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.chapternav ul {
  display: flex; justify-content: center; gap: clamp(20px, 4vw, 52px);
  margin: 0 auto; padding: 16px 16px 12px; list-style: none; overflow-x: auto; scrollbar-width: none;
}
.chapternav ul::-webkit-scrollbar { display: none; }
.chapternav a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; opacity: .85; transition: opacity .2s; }
.chapternav a:hover { opacity: 1; }
.cn-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: #1c1c1e; color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.cn-icon svg { width: 22px; height: 22px; }
.cn-icon img { width: 26px; }
.cn-icon--renly { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.cn-icon--sky { background: #0a1630; }
.cn-label { font-size: 12px; white-space: nowrap; }

/* ---------- "Watch the film" link + full-screen player ---------- */
.watch-film {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 0; border: 0; background: none;
  font: inherit; font-size: clamp(17px, 1.8vw, 21px); color: #2997ff; cursor: pointer;
}
.watch-film:hover { text-decoration: underline; }
.film-dialog {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #f5f5f7; display: none; place-items: center;
}
.film-dialog[open] { display: grid; }
.film-dialog::backdrop { background: #000; }
.film-dialog-video { width: min(100vw, (100vh - 120px) * 16 / 9); aspect-ratio: 16 / 9; background: #000; }
.film-dialog-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: #f5f5f7; background: rgba(58, 58, 62, .7); cursor: pointer;
}
.film-dialog-close:hover { background: rgba(80, 80, 86, .9); }
.film-dialog-now { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 15px; color: #86868b; }

/* ---------- Privacy ---------- */
.privacy { padding: 80px 0 40px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy-card { padding: 32px; border-radius: 28px; background: #fff; color: #1d1d1f; }
.privacy-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: #f5f5f7; color: #1d1d1f; }
.privacy-icon svg { width: 24px; height: 24px; }
.privacy-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.privacy-card p { font-size: 17px; line-height: 1.5; color: #6e6e73; }

/* ---------- Ways to get it (QR install) ---------- */
.get { padding: 110px 0 60px; }
.get-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.get-card { display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: 28px; background: #fff; color: #1d1d1f; }
/* Fixed square: Safari otherwise grows the box to the SVG's intrinsic height */
.qr { flex: none; width: 148px; height: 148px; padding: 12px; display: grid; place-items: center; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e5e5ea; }
.qr svg { display: block; width: 124px; height: 124px; }
.get-app { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.get-logo { width: 34px; height: 34px; padding: 6px; border-radius: 9px; }
.get-logo--renly { background: #000; }
.get-logo--sky { background: #0a1630; }
.get-text { margin: 10px 0 16px; font-size: 15px; line-height: 1.5; color: #6e6e73; }
.get-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.get-actions .link { margin-top: 0; font-size: 15px; }
.get-note { margin-top: 24px; font-size: 14px; color: var(--muted); text-align: center; }
.get-note a { color: #0066cc; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-links { gap: 16px; }
  .nav-links a[href="#about"], .nav-links a[href="#compare"], .nav-links a[href="#explore"] { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .showcase-body { grid-template-columns: 1fr; margin-top: 0; }
  .showcase-phone { display: none; }
  .feature { min-height: 0; padding: 64px 0; opacity: 1; text-align: center; align-items: center; }
  .feature-phone { display: block; --w: min(64vw, 280px); margin-bottom: 40px; }
  .footer-cols { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .subnav-links a:not(.btn) { display: none; }
  .showcase-head { padding-top: 80px; }
  /* tighter section rhythm on small screens */
  .about { padding: 100px 16px 40px; }
  .stats { padding-top: 60px; }
  .team { padding: 80px 0 90px; }
  .explore { padding: 90px 0 70px; }
  .compare { padding: 80px 0 50px; }
  .faq { padding: 50px 0 130px; }
  .chapternav ul { justify-content: flex-start; }
  .privacy { padding: 80px 0 30px; }
  .privacy-grid, .get-grid { grid-template-columns: 1fr; }
  .get { padding: 80px 0 40px; }
  .get-card { flex-direction: column; align-items: flex-start; }
  .footer { padding-top: 80px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(160px, auto); }
  .tile { grid-column: span 1; padding: 24px; }
  .tile--hero, .tile:last-child { grid-column: span 2; }
  .tile--hero { grid-row: auto; gap: 32px; }
  .compare-grid { grid-template-columns: 1fr; }
  /* Mobile: no full-screen expand (landscape film would crop badly) - plain 16:9 card */
  .film-pin { --cw: calc(100vw - 32px); height: auto; padding: 100px 0 96px; overflow: visible; }
  .film-title { position: static; margin: 0 16px 24px; }
  .film-frame { position: relative; left: auto; top: auto; translate: none; margin: 0 16px; border-radius: 20px; }
  .film-overlay .film-caption { font-size: 15px; }
  .film-play { padding: 8px 16px; font-size: 14px; }
  .film-controls { bottom: 28px; }
  .spec-figures, .spec-list { grid-template-columns: 1fr; gap: 24px; }
  .explore-body { grid-template-columns: 1fr; }
  .explore-visual { order: -1; }
  .explore-item { max-width: none; width: 100%; }
}
@media (max-width: 420px) {
  .nav-links a[href="#team"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body, .nav, .feature, .screen img, .btn { transition: none; }
  .glyph, .intro-icon, .intro::before, .intro::after { transition: none; }
  .intro-hint::after { animation: none; }
}

/* Lenis smooth scroll (main.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
