/* Plume v5 — a product page in the Apple manner: black stages, big type,
   scroll-scrubbed 3D, light sections for the details. */

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f4c53a;
  --gold-deep: #d9a514;
  --light-bg: #f5f5f7;
  --light-fg: #1d1d1f;
  --light-muted: #6e6e73;
  --tile: #fff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --wrap: 980px;
  --gutter: 22px;
  color-scheme: dark;
}

/* Background: near-black, lit from the top by a soft glow whose colour follows
   the section on screen (set by main.js). Registered so the colours can fade. */
@property --glow-a { syntax: "<color>"; inherits: true; initial-value: rgba(244, 197, 58, 0.13); }
@property --glow-b { syntax: "<color>"; inherits: true; initial-value: rgba(120, 90, 255, 0.05); }
:root { transition: --glow-a 1.6s ease, --glow-b 1.6s ease; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #050506;
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
sup { font-size: 0.45em; vertical-align: super; line-height: 0; margin-left: 0.1em; font-weight: 500; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.center { text-align: center; }

/* ----------------------------------------------------------------- type */

.eyebrow { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: 0.004em; margin-bottom: 10px; color: var(--fg); }
.eyebrow.gold { color: var(--gold); }
.display {
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.display-sm { font-size: clamp(40px, 6vw, 80px); }
.headline {
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.0625;
  font-weight: 600;
  letter-spacing: -0.009em;
}
.headline-sm { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; }
.muted { color: var(--muted); }
.section-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; }
.section-sub { margin-top: 18px; max-width: 680px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; color: var(--light-muted); font-weight: 500; }
.caption-body { margin-top: 16px; max-width: 560px; margin-inline: auto; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; color: var(--muted); font-weight: 500; }
.fine { font-size: 12px; color: var(--muted); letter-spacing: 0; }

.iridescent {
  background: linear-gradient(90deg, #f9c846 0%, #ff7a59 28%, #ec4f9d 52%, #8b6cf6 76%, #5aa2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }

/* -------------------------------------------------------------- buttons */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 980px;
  background: var(--gold);
  color: #1a1400;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pill:hover { background: #ffd555; }
.pill:active { transform: scale(0.97); }
.pill-sm { min-height: 28px; padding: 4px 12px; font-size: 12px; font-weight: 500; }
/* the small nav pill keeps a finger-sized hit area */
.pill-sm { position: relative; }
.pill-sm::after { content: ""; position: absolute; inset: -8px -4px; }
.link-more {
  color: var(--gold);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.link-more::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.link-more:hover { text-decoration: underline; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(210, 210, 215, 0.14); color: var(--fg);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: background 0.2s ease;
}
.round:hover { background: rgba(210, 210, 215, 0.24); }
.round svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ local nav */

.localnav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  height: 52px;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.localnav.is-open {
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
}
.localnav-inner { width: min(var(--wrap), 100% - var(--gutter) * 2); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.localnav-title { font-family: var(--serif); font-size: 22px; font-weight: 600; text-decoration: none; letter-spacing: 0; margin-right: auto; display: inline-flex; align-items: center; gap: 10px; }
.localnav-title img { width: 28px; height: 28px; border-radius: 7px; }
.localnav-links { display: flex; gap: 22px; }
.localnav-links a { font-size: 12px; color: rgba(245, 245, 247, 0.8); text-decoration: none; letter-spacing: -0.01em; }
.localnav-links a:hover { color: var(--fg); }
.localnav-menu { display: none; background: none; border: 0; color: var(--fg); width: 44px; height: 44px; margin-right: -12px; cursor: pointer; }
.localnav-menu svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.localnav-menu[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 834px) {
  .localnav-menu { display: inline-grid; place-items: center; order: 3; }
  .localnav-inner { gap: 10px; }
  .localnav-links {
    position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(22, 22, 23, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .localnav.is-open .localnav-links { display: flex; }
  .localnav-links a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .localnav-links a:last-child { border-bottom: 0; }
}

/* ------------------------------------------------- pinned 3D sections */

.track { position: relative; }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.hero { height: 440vh; }
.devices { height: 320vh; }
.year { height: 640vh; }
.privacy { height: 340vh; }
.introspection { height: 460vh; }
.export { height: 420vh; }
/* Phones: the same choreography over less thumb travel */
@media (max-width: 734px) {
  .hero { height: 300vh; }
  .devices { height: 240vh; }
  .year { height: 420vh; }
  .introspection { height: 320vh; }
  .privacy { height: 180vh; }
  .export { height: 300vh; }
}

.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.stage { position: absolute; inset: 0; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.stage.is-live .stage-canvas { opacity: 1; }
.js:not(.no-webgl) .stage:not(.is-failed) .stage-fallback { display: none; }
.stage-fallback {
  position: absolute; left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  width: min(78vw, 900px);
  border-radius: 14px;
  box-shadow: 0 40px 120px -40px rgba(244, 197, 58, 0.25), 0 0 0 1px var(--line);
}
.stage-fallback-icon { width: 160px; border-radius: 36px; }

.caption, .hero-copy, .year-stats, .scroll-hint {
  position: absolute;
  left: 50%;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-left: calc(min(var(--wrap), 100% - var(--gutter) * 2) / -2);
  text-align: center;
  z-index: 2;
  will-change: opacity, transform;
}
/* captions that start later in a pinned section wait for the script to show them */
.js [data-range]:not([data-range^="0 "]) { opacity: 0; }
.caption-top { top: 11vh; }
.caption-bottom { bottom: 9vh; }
.caption-bottom::before {
  /* a soft floor so copy stays legible over a bright screen */
  content: ""; position: absolute; inset: -40% -30% -60%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.hero-copy { top: calc(52px + 7vh); }
.hero-copy .eyebrow { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); color: var(--gold); letter-spacing: 0; }
.hero-title { font-size: clamp(40px, 6.4vw, 84px); }
.gold-text { color: var(--gold); }
/* the H1's plain-language line: what Plume is, for people and for search */
.h1-sub { display: block; margin-top: 18px; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; color: var(--muted); }
.faq-item p a { color: #8a6200; }
.hero-cta { margin-top: 26px; display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 10px; font-size: 14px; color: var(--muted); letter-spacing: -0.01em; }
.scroll-hint { bottom: 28px; display: grid; place-items: center; }
.scroll-hint span { width: 22px; height: 36px; border-radius: 11px; border: 1.5px solid rgba(245, 245, 247, 0.4); position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.device-note h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.005em; }
.device-note p { margin: 8px auto 0; max-width: 440px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.38; }

.year-stats {
  bottom: 7vh;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 56px;
}
.year-stats::before {
  content: ""; position: absolute; inset: -30% -10% -40%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.78), transparent);
  pointer-events: none;
}
.year-stats div { display: flex; flex-direction: column; align-items: center; }
.year-stats b { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; }
.year-stats span { font-size: 14px; color: var(--muted); font-weight: 500; }
.year-stats .fine { flex-basis: 100%; }

/* ------------------------------------------------------------ reveal */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .facts .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: 0.08s; }
.bento .reveal:nth-child(3), .facts .reveal:nth-child(3) { transition-delay: 0.16s; }
.bento .reveal:nth-child(5) { transition-delay: 0.08s; }
.bento .reveal:nth-child(6) { transition-delay: 0.16s; }
.bento .reveal:nth-child(7) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .iridescent, .wave i, .scroll-hint span::after { animation: none; }
}

/* ------------------------------------------------------------- intro */

.intro { padding: 160px 0 120px; }
.lede { font-size: clamp(21px, 2.6vw, 32px); line-height: 1.25; font-weight: 600; color: var(--muted); letter-spacing: 0.004em; max-width: 860px; }
.lede strong { color: var(--fg); font-weight: 600; }
.stat-row { margin-top: 90px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-row li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 22px; }
.stat-row b { font-size: clamp(48px, 6vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff 30%, #9b9ba1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-row span { font-size: 14px; line-height: 1.43; color: var(--muted); font-weight: 500; }
@media (max-width: 734px) {
  .intro { padding: 110px 0 80px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; margin-top: 60px; }
}

/* ------------------------------------------------ take a closer look */

.highlights { height: 520vh; }
.tour {
  height: 100%;
  width: min(1180px, 100% - var(--gutter) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  align-items: center;
  gap: 24px;
}
.tour-copy { position: relative; z-index: 2; }
.tour-copy .section-title { margin-bottom: 34px; }
.tour-stage { position: relative; inset: auto; height: min(78vh, 720px); }
.tour-list { display: flex; flex-direction: column; }
.tour-item { position: relative; padding: 14px 0 16px 22px; }
.tour-item button {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left;
  font: 600 clamp(21px, 2vw, 26px) / 1.2 var(--font); letter-spacing: -0.01em; color: var(--muted);
  transition: color 0.3s ease; min-height: 32px;
}
.tour-item button:hover { color: var(--fg); }
.tour-item.is-active button { color: var(--fg); }
.tour-desc {
  max-height: 0; opacity: 0; overflow: hidden;
  font-size: 17px; line-height: 1.45; color: var(--muted); font-weight: 500; max-width: 340px;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
}
.tour-item.is-active .tour-desc { max-height: 120px; opacity: 1; margin-top: 8px; }
/* progress rail on the left of each item, filled by scroll */
.tour-bar { position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 1px; background: rgba(245, 245, 247, 0.14); overflow: hidden; }
.tour-bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.tour-fallback { width: 100% !important; top: 50% !important; }

@media (max-width: 834px) {
  .highlights { height: 440vh; }
  .tour { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 7vh; gap: 0; }
  .tour-copy { order: 2; }
  .tour-copy .eyebrow, .tour-copy .section-title { display: none; }
  .tour-stage { order: 1; height: 44vh; }
  /* one feature at a time on phones: the active one, full width */
  .tour-list { position: relative; min-height: 150px; }
  .tour-item { position: absolute; inset: 0 0 auto; padding: 4px 0 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; text-align: center; }
  .tour-item.is-active { opacity: 1; pointer-events: auto; }
  .tour-item button { font-size: 26px; }
  .tour-desc { max-width: 520px; margin-inline: auto; }
  .tour-bar { display: none; }
}

/* ---------------------------------------------------- privacy facts */

.privacy-facts { padding: 40px 0 160px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-bottom: 50px; }
.facts svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 18px; }
.facts h3 { font-size: 24px; font-weight: 600; letter-spacing: 0.005em; margin-bottom: 8px; }
.facts p { color: var(--muted); font-size: 17px; font-weight: 500; }
@media (max-width: 734px) { .facts { grid-template-columns: 1fr; gap: 40px; } }

/* ------------------------------------------------------ intelligence */

.intel { position: relative; min-height: 130vh; padding-bottom: 140px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.intel .stage { inset: 0 0 auto; height: 85vh; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.intel-copy { position: relative; z-index: 2; text-align: center; width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 0 auto; }
.chips { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.chips li { padding: 22px 24px; border-radius: 22px; background: rgba(28, 28, 30, 0.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); }
.chips b { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.chips span { color: var(--muted); font-size: 15px; font-weight: 500; }
@media (max-width: 734px) { .chips { grid-template-columns: 1fr; } .intel .stage { height: 70vh; } }

/* ------------------------------------------------------ light sections */

.light { background: var(--light-bg); color: var(--light-fg); color-scheme: light; }
.light .eyebrow { color: var(--light-muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.light .link-more, .light .pill:focus-visible { color: #8a6200; }

.more { padding: 150px 0 60px; }
.more .section-title { margin-bottom: 60px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--tile);
  border-radius: 28px;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 380px;
}
.tile h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: 0.002em; }
.tile p:not(.eyebrow):not(.mantra) { margin-top: 12px; color: var(--light-muted); font-size: 17px; font-weight: 500; line-height: 1.41; }
.tile-wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 40px; padding: 0 0 0 48px; min-height: 440px; background: #111; color: var(--fg); }
.tile-wide .eyebrow { color: var(--gold); }
.tile-wide p:not(.eyebrow) { color: var(--muted) !important; }
.tile-wide img { width: 100%; height: 100%; object-fit: cover; object-position: left center; border-radius: 16px 0 0 16px; box-shadow: -30px 0 80px -30px rgba(244, 197, 58, 0.25); }
.tile-wide .tile-copy { padding: 48px 0; }

.todo-mock { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.todo-mock span { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; padding: 12px 16px; border-radius: 14px; background: var(--light-bg); }
.todo-mock span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c7c7cc; flex: none; }
.todo-mock .done { color: var(--light-muted); text-decoration: line-through; }
.todo-mock .done::before { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231a1400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--gold); }
.mantra { margin-top: auto; padding-top: 30px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--gold-deep); }
.swatches { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatches i { aspect-ratio: 1; border-radius: 14px; background: var(--c); position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.swatches i::after { content: ""; position: absolute; left: 22%; right: 22%; top: 44%; height: 12%; border-radius: 4px; background: var(--a); }
.wave { margin-top: auto; padding-top: 30px; display: flex; align-items: center; gap: 6px; height: 110px; }
.wave i { flex: 1; border-radius: 4px; background: linear-gradient(var(--gold), var(--gold-deep)); height: 20%; animation: wave 1.2s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -0.3s; }
.wave i:nth-child(3n + 1) { animation-delay: -0.7s; }
.wave i:nth-child(4n) { animation-duration: 0.9s; }
.wave i:nth-child(5n) { animation-duration: 1.5s; }
@keyframes wave { to { height: 90%; } }
.mini-heat { margin-top: auto; padding-top: 26px; display: grid; grid-template-columns: repeat(20, 1fr); grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; }
.mini-heat i { aspect-ratio: 1; border-radius: 3px; background: #e8e8ed; }
.mini-heat i[data-l="1"] { background: #f3e2a6; }
.mini-heat i[data-l="2"] { background: #eecb62; }
.mini-heat i[data-l="3"] { background: #e2ad24; }
.mini-heat i[data-l="4"] { background: #b98700; }

.search-mock { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px; background: var(--light-bg);
  font-size: 15px; font-weight: 500;
}
.search-field::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%236e6e73' stroke-width='1.8'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.search-field::after { content: ""; width: 1.5px; height: 17px; margin-left: -8px; background: var(--gold-deep); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.search-hit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px 16px; border-radius: 12px; border: 1px solid #e8e8ed; font-size: 14px; font-weight: 500; color: var(--light-muted); }
.search-hit i { font-style: normal; font-weight: 600; color: var(--light-fg); margin-right: 8px; }
.search-hit mark { background: rgba(244, 197, 58, 0.45); color: var(--light-fg); border-radius: 3px; padding: 0 2px; }
@media (prefers-reduced-motion: reduce) { .search-field::after { animation: none; } }

@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 734px) {
  .more { padding: 100px 0 40px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; grid-template-columns: 1fr; padding: 0; gap: 0; }
  .tile-wide .tile-copy { padding: 34px 30px 26px; }
  .tile-wide img { border-radius: 0; box-shadow: none; }
  .tile { min-height: 0; padding: 32px 30px; }
}

/* ----------------------------------------------------------- pricing */

.pricing { padding: 110px 0 150px; text-align: center; }
.pricing .section-sub { margin-inline: auto; }
.plans { margin: 70px auto 0; max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { position: relative; background: var(--tile); border-radius: 28px; padding: 50px 34px 40px; display: flex; flex-direction: column; align-items: center; }
.plan h3 { font-size: 28px; font-weight: 600; }
.price { margin-top: 12px; font-size: 17px; color: var(--light-muted); font-weight: 500; }
.price b { font-size: 48px; color: var(--light-fg); font-weight: 600; letter-spacing: -0.02em; }
.plan-sub { margin: 12px 0 28px; color: var(--light-muted); font-size: 17px; max-width: 280px; }
.plan .pill { margin-top: auto; }
.plan-featured { box-shadow: 0 0 0 2px var(--gold); }
.badge { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: #8a6200; letter-spacing: 0.02em; text-transform: uppercase; }
.included-title { margin-top: 90px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 600; }
.included-title span { color: var(--light-muted); }
.included { margin: 44px auto 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; text-align: left; }
.included li { display: flex; gap: 16px; align-items: flex-start; }
.included svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(244, 197, 58, 0.18); color: #a87a00; }
.included p { font-size: 17px; line-height: 1.45; color: var(--light-muted); font-weight: 500; padding-top: 6px; }
.included b { color: var(--light-fg); font-weight: 600; }
@media (max-width: 734px) {
  .plans { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; gap: 22px; }
}

/* ------------------------------------------------------------ finale */

.finale { position: relative; min-height: 110vh; display: flex; align-items: center; overflow: hidden; }
.finale .stage { left: 42%; }
.finale .stage-fallback-icon { top: 50%; }
.finale-copy { position: relative; z-index: 2; width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 0 auto; }
.finale-copy .caption-body { margin-inline: 0; }
.finale-copy .hero-cta { justify-content: flex-start; }
@media (max-width: 834px) {
  .finale { flex-direction: column; justify-content: flex-end; padding-bottom: 100px; min-height: 120vh; }
  .finale .stage { left: 0; bottom: 38%; }
  .finale-copy { text-align: center; }
  .finale-copy .caption-body { margin-inline: auto; }
  .finale-copy .hero-cta { justify-content: center; }
}

/* ------------------------------------------------------------ footer */

.footer { background: #161617; color: var(--muted); font-size: 12px; line-height: 1.34; letter-spacing: -0.01em; padding: 36px 0 24px; }
.footnotes { list-style: decimal; padding-left: 16px; display: grid; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.footer-links h3 { color: var(--fg); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.footer-links a { display: block; text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }
.copyright { padding-top: 18px; }
@media (max-width: 734px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links a { padding: 10px 0; }
}

/* ---------------------------------------------------- introspection */

.period-pill {
  display: inline-flex; gap: 10px; align-items: center;
  margin-bottom: 18px; padding: 8px 16px; border-radius: 980px;
  background: rgba(244, 197, 58, 0.14); color: var(--gold);
  font-size: 14px; font-weight: 600;
}
.period-pill b { color: var(--fg); font-weight: 600; }
.period-pill span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; transform: translateY(1px); border-radius: 3px; border: 1.5px solid currentColor; }
.lenses { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
.lens {
  padding: 16px 18px; border-radius: 18px;
  background: rgba(28, 28, 30, 0.78);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}
.lens b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.lens span { display: block; font-size: 13px; line-height: 1.38; color: var(--muted); font-weight: 500; }
.lens.is-active { border-color: var(--gold); background: rgba(58, 48, 18, 0.82); transform: translateY(-4px); }
.lens.is-active b { color: var(--gold); }
.caption-side { top: 50%; bottom: auto; translate: 0 -50%; text-align: left; }
.caption-side > * { max-width: min(520px, 46%); }
.caption-side .caption-body { margin-inline: 0; }
.caption-side .fine { margin-top: 14px; }
.stage-fallback-phone { width: auto; height: 70%; border-radius: 28px; }
@media (max-width: 834px) {
  .lenses { grid-template-columns: 1fr 1fr; }
  .lens span { display: none; }
  .lens { padding: 12px 14px; border-radius: 14px; }
  .lens b { font-size: 15px; margin: 0; }
  .caption-side { top: auto; bottom: 5vh; translate: none; text-align: center; }
  .caption-side > * { max-width: none; }
  .caption-side .caption-body { margin-inline: auto; font-size: 15px; }
  .caption-side .headline-sm { font-size: 26px; }
}

/* ----------------------------------------------------------- export */

.step {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-size: 16px; font-weight: 600;
}
.chip-row { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-row li {
  padding: 8px 16px; border-radius: 980px;
  background: rgba(44, 44, 46, 0.8); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: rgba(245, 245, 247, 0.8);
}
.chip-row li.on { background: var(--gold); border-color: var(--gold); color: #1a1400; font-weight: 600; }
.chip-row.kinds li { background: var(--k); border-color: var(--k); color: #111; font-weight: 600; }
.export-stats { margin-top: 18px; display: flex; justify-content: center; gap: 44px; }
.export-stats li { display: flex; flex-direction: column; align-items: center; }
.export-stats b { font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; }
.export-stats span { font-size: 14px; color: var(--muted); font-weight: 500; }
.inline-link { color: var(--gold); text-decoration: none; white-space: nowrap; }
.inline-link::after { content: " ›"; }
.inline-link:hover { text-decoration: underline; }
@media (max-width: 734px) { .export-stats { gap: 24px; } }

/* ------------------------------------------------------ App Store badge */

.store-badge { display: inline-flex; min-height: 44px; align-items: center; border-radius: 10px; transition: transform 0.2s ease, opacity 0.2s ease; }
.store-badge img { height: 50px; width: auto; display: block; }
.store-badge:hover { opacity: 0.85; }
.store-badge:active { transform: scale(0.97); }

/* ----------------------------------------------------------------- FAQ */

.faq { padding: 20px 0 140px; }
.faq .section-title { margin-bottom: 36px; }
.faq-list { max-width: 820px; border-top: 1px solid #d2d2d7; }
.faq-item { border-bottom: 1px solid #d2d2d7; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; min-height: 44px;
  font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: 0.004em; color: var(--light-fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center/14px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 14px no-repeat;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 40px 26px 0; color: var(--light-muted); font-size: 17px; line-height: 1.5; font-weight: 500; max-width: 720px; }
.faq-more { margin-top: 30px; color: var(--light-muted); font-size: 17px; font-weight: 500; }
.faq-more a { color: #8a6200; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }

/* ---------------------------------------------------- sticky get bar */

.getbar {
  position: fixed; z-index: 60; left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 20px;
  background: rgba(28, 28, 30, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(0); opacity: 1;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.getbar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.getbar img { width: 40px; height: 40px; border-radius: 10px; }
.getbar p { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.getbar b { font-size: 16px; font-weight: 600; }
.getbar span { font-size: 13px; color: var(--muted); font-weight: 500; }
.getbar .pill { min-height: 40px; padding: 8px 22px; font-size: 16px; }
@media (min-width: 735px) { .getbar { display: none !important; } }
/* while the bar is up, bottom captions in pinned scenes sit above it */
@media (max-width: 734px) {
  .has-getbar .caption-bottom, .has-getbar .caption-side, .has-getbar .year-stats { bottom: calc(9vh + 58px); }
  .has-getbar .scroll-hint { opacity: 0 !important; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .getbar { transition: none; } }

/* --------------------------------------------------------- life themes */

.theme-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; max-width: 760px; margin: 0 auto; }
.theme-legend li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: rgba(245, 245, 247, 0.82); }
.theme-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
@media (max-width: 734px) { .theme-legend { gap: 6px 12px; } .theme-legend li { font-size: 12px; } }

/* ----------------------------------------------------- page background */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--glow-a), transparent 65%),
    radial-gradient(90% 60% at 100% 110%, var(--glow-b), transparent 60%),
    linear-gradient(180deg, #0b0b0e 0%, #050506 45%, #08080b 100%);
}
@media (prefers-reduced-motion: reduce) { :root { transition: none; } }

/* ------------------------------------------------------- pricing deal */

.muted-light { color: var(--light-muted); }
.trial { margin: 56px auto 0; max-width: 420px; }
.trial-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.trial-cal li { aspect-ratio: 1; border-radius: 10px; }
.trial-cal .off { box-shadow: inset 0 0 0 1.5px #d2d2d7; }
.trial-cal .on {
  background: #e8e8ed; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: transparent;
  transition: background 0.4s ease, color 0.4s ease;
  transition-delay: calc(var(--i) * 45ms + 200ms);
}
.trial.is-in .trial-cal .on { background: var(--gold); color: #1a1400; }
.trial figcaption { margin-top: 18px; font-size: 17px; color: var(--light-muted); font-weight: 500; }
.trial figcaption b { color: var(--light-fg); font-weight: 600; }
.after-trial { margin: 22px auto 0; max-width: 540px; font-size: 15px; color: var(--light-muted); font-weight: 500; }

.price-note { margin-top: 4px; font-size: 14px; color: var(--light-muted); font-weight: 500; max-width: 260px; }
.plan-featured .price-note { color: #8a6200; }

.assurances { margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--light-fg); }
.assurances li::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3L13 4.5' fill='none' stroke='%23b98700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }


@media (max-width: 734px) {
  .plan-featured { order: -1; }
  .trial-cal { gap: 6px; }
  .trial-cal li { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .trial-cal .on { transition: none; }
}

/* ---------------------------------------------- still images (no GPU) */

/* sized to sit between the top and bottom captions of a pinned scene */
.no-webgl .track .stage-fallback { top: 52%; width: min(78vw, 900px, 70vh); }
.no-webgl .track .stage-fallback-phone { width: auto; height: 44vh; }
/* the hero's screenshot waits until the headline has scrolled away */
.no-webgl .hero .stage-fallback { opacity: calc((var(--p, 0) - 0.1) * 12); transition: none; }
.stage-fallback-lock { display: none; }
.no-webgl .track .stage-fallback-lock { display: block; width: 150px; height: auto; top: 50%; box-shadow: none; border-radius: 0; filter: drop-shadow(0 30px 50px rgba(244, 197, 58, 0.25)); }
.no-webgl .intel .stage::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(60vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; filter: blur(40px); opacity: 0.8;
  background: conic-gradient(from 20deg, #f9c846, #ff7a59, #ec4f9d, #8b6cf6, #5aa2ff, #f9c846);
}

/* devices included, inside each plan */
.plan-devices { margin-top: 22px; display: flex; justify-content: center; gap: 22px; }
.plan-devices li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--light-fg); }
.plan-devices svg { width: 34px; height: 26px; color: #6e6e73; }
.plan-featured .plan-devices svg { color: #a87a00; }
.plan-devices-note { margin-top: 8px; font-size: 13px; color: var(--light-muted); font-weight: 500; }
