/* Plus One website, 2026 redesign. Cream page (the app's light background, Palette.swift `background`),
   so the app's dark screens stand out. Yellow is the accent, used sparingly. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --border: #e6e4de;
  --border-strong: #d6d3cb;
  --ink: #0a0a0a;
  --text: #0a0a0a;
  --text-2: #5e5e5e;
  --text-3: #8a8a8a;
  --accent: #ffd400;
  --accent-ink: #7a6000;
  --accent-soft: #fff7cc;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --max: 1200px;
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header: 64px;
}
@media (min-width: 720px) { :root { --gutter: 32px; --header: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s ease, box-shadow .2s ease;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }

.store-badge { display: inline-flex; border-radius: 10px; transition: transform .2s var(--ease); }
.store-badge img { height: 50px; width: auto; }
.store-badge:hover { transform: translateY(-1px); }

.line { white-space: nowrap; }
.mark {
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 90%, transparent 90%);
  padding: 0 .06em; margin: 0 -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(244, 243, 239, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand__icon { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand__icon svg { width: 20px; height: 20px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
.nav-link[aria-current="page"] { color: var(--ink); }
.site-nav .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .nav-link { display: none; }
  .site-nav .nav-link:first-child { display: inline-flex; padding: 8px 8px; font-size: 14px; }
  .site-nav .btn { margin-left: 2px; }
}
@media (max-width: 380px) {
  .brand { font-size: 0; gap: 0; }
}

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px; color: var(--text-2); font-weight: 700; font-size: 13px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: rgba(0, 0, 0, .05); }
.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12); display: grid;
}
.lang-menu__list a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--text-2); }
.lang-menu__list a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu__list a[aria-current] { color: var(--ink); font-weight: 700; }

.lang-hint {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--ink); color: #fff; border-radius: 999px; font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  max-width: calc(100vw - 32px);
}
.lang-hint a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang-hint button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }

/* ---------- Home: the scroll story ---------- */

.story { position: relative; }
.story__canvas { display: none; }
.story__hint { display: none; }

/* 3D mode (boot.js found WebGL and no reduced motion). */
.js:not(.story-static) .story { height: calc(var(--beats) * 100vh); }
.js:not(.story-static) .story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js:not(.story-static) .story__canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
}
.js:not(.story-static) .story__shot { display: none; }
.js:not(.story-static) .story__cap {
  position: absolute; top: 0; bottom: 0;
  left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: min(580px, 44vw);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  pointer-events: none; will-change: opacity, transform;
}
.js:not(.story-static) .story__cap:not(.story__cap--hero) { opacity: 0; visibility: hidden; }
.js:not(.story-static) .story__cap.is-on, .js:not(.story-static) .story__cap--hero { pointer-events: auto; }
.js:not(.story-static) .story__hint {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.story__hint span { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--text-3) 50%, transparent 50%); background-size: 2px 68px; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { from { background-position: 0 -34px; } to { background-position: 0 34px; } }

.story__cap h1 { font-size: clamp(46px, 5.8vw, 88px); letter-spacing: -0.045em; line-height: .94; }
.story__cap h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.04em; line-height: .98; }
.story__cap p:not(.eyebrow) { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); max-width: 30ch; }
.story__lede { margin-top: 4px; }
.story__cap .store-badge { margin-top: 10px; align-self: flex-start; }

/* Phones and narrow windows: copy on top, devices below. */
@media (max-aspect-ratio: 9/10) {
  .js:not(.story-static) .story__cap {
    left: var(--gutter); right: var(--gutter); width: auto;
    top: calc(var(--header) + 12px); bottom: auto;
    align-items: center; text-align: center; gap: 12px;
  }
  .js:not(.story-static) .story__cap p:not(.eyebrow) { margin: 0 auto; }
  .js:not(.story-static) .story__cap .store-badge { align-self: center; margin-top: 4px; }
  .story__cap h1 { font-size: clamp(34px, 10.4vw, 64px); }
  .story__cap h2 { font-size: clamp(30px, 8.6vw, 48px); }
  .story__cap p:not(.eyebrow) { font-size: 16px; }
  .js:not(.story-static) .story__hint { bottom: 16px; }
}

/* Static mode: no WebGL, reduced motion, or no JavaScript. A plain list of screens and lines. */
html:not(.js) .story__stage, .story-static .story__stage {
  display: grid; gap: 72px; padding: calc(var(--header) + 48px) var(--gutter) 96px;
  max-width: var(--max); margin: 0 auto;
}
html:not(.js) .story__cap, .story-static .story__cap {
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; justify-items: start;
}
html:not(.js) .story__shot, .story-static .story__shot {
  width: min(300px, 70vw); height: auto; border-radius: 40px; border: 8px solid #111;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .18); justify-self: center; margin-top: 12px;
}
@media (min-width: 820px) {
  html:not(.js) .story__cap, .story-static .story__cap { grid-template-columns: 1fr 320px; column-gap: 64px; }
  html:not(.js) .story__cap > :not(.story__shot), .story-static .story__cap > :not(.story__shot) { grid-column: 1; }
  html:not(.js) .story__shot, .story-static .story__shot { grid-column: 2; grid-row: 1 / span 5; margin: 0; }
}
.story-static .story__cap--end, html:not(.js) .story__cap--end { justify-items: center; text-align: center; }

/* ---------- Home: after the story ---------- */

.more { padding: 120px 0 140px; text-align: center; }
.more__inner { display: grid; justify-items: center; gap: 18px; }
.more h2 { font-size: clamp(30px, 4vw, 48px); max-width: 18ch; }
.more p { color: var(--text-2); max-width: 46ch; font-size: 18px; }
.more .btn { margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 40px; font-size: 15px; }
.site-footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer__brand { display: grid; gap: 14px; justify-items: start; }
.site-footer__brand p { color: var(--text-2); max-width: 34ch; }
.site-footer__brand .store-badge img { height: 40px; }
.site-footer__col { display: grid; gap: 10px; align-content: start; }
.site-footer__col h3 { font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.site-footer__col a { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.site-footer__col a:hover { color: var(--ink); }
.lang-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); }
.lang-list svg { width: 16px; height: 16px; }
.lang-list a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.lang-list a:hover { color: var(--ink); }
.lang-list a[aria-current] { color: var(--ink); font-weight: 700; }
.site-footer__legal { display: grid; gap: 6px; margin-top: 20px; color: var(--text-3); font-size: 12.5px; }

/* ---------- Features page ---------- */

.page-hero { padding: calc(var(--header) + 72px) 0 40px; text-align: center; }
.page-hero .wrap { display: grid; justify-items: center; gap: 18px; }
.page-hero h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -0.045em; line-height: .95; }
.page-hero p:not(.eyebrow) { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; }

section h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.04em; line-height: 1; }

.how { padding: 72px 0 40px; }
.how .wrap { display: grid; gap: 16px; }
.how__lede { color: var(--text-2); font-size: 18px; max-width: 56ch; }
.how__steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .how__steps { grid-template-columns: repeat(3, 1fr); } }
.how__steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.how__n { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font: 700 20px/1 var(--font-display); }
.how__steps h3 { font-size: 22px; letter-spacing: -0.02em; margin-top: 6px; }
.how__steps p { color: var(--text-2); }

.feat { padding: 56px 0; }
.feat__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) {
  .feat__inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feat--flip .feat__media { order: 2; }
}
.feat__media {
  margin: 0; border-radius: 36px; padding: clamp(28px, 4vw, 44px) 0;
  background: radial-gradient(60% 50% at 50% 55%, rgba(255, 212, 0, .22), transparent 70%), var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.feat__media img { width: min(240px, 56%); height: auto; filter: drop-shadow(0 30px 40px rgba(60, 50, 0, .22)); }
.feat__copy { display: grid; gap: 16px; justify-items: start; }
.feat__copy > p:not(.eyebrow) { color: var(--text-2); font-size: 18px; max-width: 42ch; }
.points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.points li { position: relative; padding-left: 30px; color: var(--text-2); }
.points li::before {
  content: "+1"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent); color: #000; font: 800 10px/22px var(--font-body); text-align: center;
}
.points strong { color: var(--ink); }

.tiles { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.tile h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.2; }
.tile p { color: var(--text-2); font-size: 15px; }

.watchsec { padding: 96px 0; margin-top: 40px; background: var(--surface); border-block: 1px solid var(--border); }
.watchsec .wrap { display: grid; gap: 16px; justify-items: center; text-align: center; }
.watchsec__lede { color: var(--text-2); font-size: 18px; max-width: 52ch; }
.watchsec__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; margin-top: 36px; width: 100%; }
@media (min-width: 900px) { .watchsec__row { grid-template-columns: repeat(4, 1fr); } }
.watchsec figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.watchsec figure img { width: min(200px, 100%); height: auto; filter: drop-shadow(0 24px 30px rgba(60, 50, 0, .22)); }
.watchsec figcaption { color: var(--text-2); font-size: 14px; max-width: 24ch; }
.watchsec figcaption b { color: var(--ink); display: block; font-size: 16px; }
.watchsec .tiles { width: 100%; text-align: left; }
@media (min-width: 980px) { .watchsec .tiles { grid-template-columns: repeat(3, 1fr); } }
.watchsec .tile { background: var(--bg); }

.ears { padding: 96px 0 40px; }
.ears .wrap { display: grid; gap: 16px; }
.ears__lede { color: var(--text-2); font-size: 18px; max-width: 56ch; }
.hear {
  margin-top: 14px; display: grid; gap: 20px; align-items: center;
  background: var(--accent); border-radius: var(--radius); padding: 28px;
}
@media (min-width: 820px) { .hear { grid-template-columns: 1fr auto; } }
.hear h3 { font-size: 24px; }
.hear p { color: #3d3500; }
.hear__sets { display: grid; gap: 10px; }
.hear__set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hear__name { font-weight: 800; width: 60px; }
.hear__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px;
  border: 0; background: #000; color: #fff; font: 700 14px/1 var(--font-body); cursor: pointer;
}
.hear__play { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; }
.hear__play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #000; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hear__btn.is-playing .hear__play { animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.18); } }
.ears__note { color: var(--text-3); font-size: 13px; max-width: 80ch; margin-top: 6px; }

.log, .privacy-band { padding: 72px 0; }
.privacy-band__lede { color: var(--text-2); font-size: 18px; margin-top: 14px; }

.cta { padding: 80px 0 120px; text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 16px; }
.cta p { color: var(--text-2); }
