/* Gallery: Hide Photos & Vault, landing page.

   Colours come from the app (lib/theme/): the logo's navy (#0B0F45, the
   splash colour) is the night ground; porcelain (lightBackground /
   lightSurface) carries the reading sections; Midnight's accent (#8F73FF,
   #5B3FE0 on light) is the one action colour. Each feature keeps its own
   hue (the app's shortcut hues) for its chip, its glow and its ticks.
   System fonts only: the page loads nothing from another host. */

:root {
  --navy: #0b0f45;
  --navy-deep: #070a30;
  --navy-ink: #04061f;
  --navy-raise: #141a5e;
  --on-navy: #eef0ff;
  --on-navy-2: #a9aedb;
  --on-navy-3: #7479ad;
  --navy-line: rgb(255 255 255 / 0.1);
  --glass: rgb(255 255 255 / 0.06);

  --accent: #8f73ff;
  --accent-ink: #5b3fe0;
  --pink: #ff7eb6;

  --paper: #fcfcff;
  --paper-2: #f3f3fa;
  --paper-card: #ffffff;
  --ink: #0e0e11;
  --ink-2: #57575f;
  --ink-3: #8a8a94;
  --line: #dfdfec;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --r-lg: 28px;
  --r-md: 18px;
  --spring: cubic-bezier(0.22, 1.25, 0.36, 1);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #06081f;
    --paper-2: #0b0e2c;
    --paper-card: #10143a;
    --ink: #eef0ff;
    --ink-2: #a9aedb;
    --ink-3: #7479ad;
    --line: rgb(255 255 255 / 0.1);
    --accent-ink: #b2a2ff;
    color-scheme: dark;
  }
}

/* Feature hues (lib/theme/shortcut_hues + palettes). */
.h-blue { --hue: #4ea8f5; }
.h-amber { --hue: #ffb547; }
.h-pink { --hue: #ff7eb6; }
.h-red { --hue: #ff5a64; }
.h-violet { --hue: #a48cff; }
.h-teal { --hue: #32d2c8; }
.h-night { --hue: #7b8cff; }
.h-green { --hue: #4cc38a; }
.h-accent { --hue: var(--accent); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 em,
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.on-night .eyebrow,
.hero .eyebrow,
.explore .eyebrow,
.promise-sec .eyebrow,
.premium .eyebrow {
  color: #b9abff;
}

.sec-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(36px, 5.2vw, 68px);
}

.sec-lede {
  max-width: 620px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--on-navy-2);
}

/* ── Header ─────────────────────────────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--on-navy);
  background: rgb(7 10 48 / 0.72);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--navy-line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.js .hdr.at-top {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  flex: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px -6px rgb(143 115 255 / 0.6);
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-weight: 500;
  color: var(--on-navy-2);
}

.nav {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--on-navy-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--on-navy);
  background: var(--glass);
}

.pill-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--on-navy);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
}

.pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgb(143 115 255 / 0.9);
}

@media (max-width: 980px) {
  .brand-sub {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .hdr-in {
    height: 64px;
  }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  margin-top: -72px;
  padding: 132px 0 72px;
  overflow: hidden;
  color: var(--on-navy);
  background:
    radial-gradient(1200px 700px at 78% 30%, rgb(91 63 224 / 0.38), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgb(78 168 245 / 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.o1 {
  width: 420px;
  height: 420px;
  right: 6%;
  top: 8%;
  background: radial-gradient(circle, #8f73ff, transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

.o2 {
  width: 360px;
  height: 360px;
  right: 30%;
  bottom: -10%;
  background: radial-gradient(circle, #ff7eb6, transparent 70%);
  opacity: 0.28;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}

@keyframes drift {
  to {
    transform: translate(-40px, 30px) scale(1.08);
  }
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--navy-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-navy-2);
}

.kdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cc38a;
  box-shadow: 0 0 0 4px rgb(76 195 138 / 0.18);
}

.hero h1 {
  font-size: clamp(46px, 7vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 em {
  background: linear-gradient(100deg, #c9bcff 0%, var(--accent) 40%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.hero-lede {
  max-width: 540px;
  font-size: clamp(17px, 1.45vw, 19.5px);
  color: var(--on-navy-2);
}

.hero-lede strong {
  color: var(--on-navy);
  font-weight: 600;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 18px;
  border-radius: 16px;
  background: var(--on-navy);
  color: var(--navy-ink);
  text-decoration: none;
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}

.store + .store {
  background: rgb(255 255 255 / 0.08);
  color: var(--on-navy);
  box-shadow: inset 0 0 0 1px var(--navy-line);
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgb(143 115 255 / 0.85);
}

.store + .store:hover {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25), 0 16px 30px -14px rgb(0 0 0 / 0.6);
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store span {
  display: grid;
  line-height: 1.1;
}

.store small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.75;
}

.store strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  line-height: 1.2;
}

.facts b {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.facts span {
  font-size: 13.5px;
  color: var(--on-navy-3);
}

.hero-stage {
  --px: 0;
  --py: 0;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 700px;
}

.hero-phone {
  position: relative;
  z-index: 2;
  transform: translate(calc(var(--px) * -6px), calc(var(--py) * -6px));
}

.print {
  position: absolute;
  z-index: 1;
  width: 190px;
  margin: 0;
  padding: 10px 10px 34px;
  border-radius: 6px;
  background: #fbfaf6;
  box-shadow: 0 30px 50px -20px rgb(0 0 0 / 0.6);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #2d2a3a;
}

.print img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.print figcaption {
  position: absolute;
  left: 12px;
  bottom: 8px;
}

.p1 {
  left: 0;
  top: 10%;
  rotate: -9deg;
  transform: translate(calc(var(--px) * 18px), calc(var(--py) * 14px));
}

.p2 {
  right: 0;
  bottom: 9%;
  rotate: 7deg;
  transform: translate(calc(var(--px) * 22px), calc(var(--py) * 18px));
}

.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgb(20 26 94 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.7);
  color: var(--on-navy);
  line-height: 1.25;
  animation: bob 6s ease-in-out infinite;
}

.float b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.float small {
  font-size: 12.5px;
  color: var(--on-navy-2);
}

.fi {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgb(143 115 255 / 0.25);
  color: #c9bcff;
}

.f1 {
  left: -2%;
  bottom: 20%;
  animation-delay: -1s;
}

.f2 {
  right: -4%;
  top: 14%;
  animation-delay: -3s;
}

.f2 .fi {
  background: rgb(78 168 245 / 0.25);
  color: #9fd0ff;
}

.f3 {
  right: -2%;
  bottom: 34%;
  animation-delay: -4.5s;
}

.f3 .fi {
  background: rgb(76 195 138 / 0.25);
  color: #8fe3b8;
}

@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}

.hero-tap {
  display: none;
}

.js .hero-tap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--on-navy-3);
}

@media (max-width: 1080px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-lede {
    margin: 0 auto;
  }

  .stores,
  .facts {
    justify-content: center;
  }

  .hero-stage {
    min-height: 0;
    padding: 24px 0;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 104px;
  }

  .print {
    width: 120px;
    padding: 6px 6px 24px;
    font-size: 12px;
  }

  .p1 {
    left: -6%;
  }

  .p2 {
    right: -6%;
  }

  .float {
    padding: 8px 12px 8px 8px;
    border-radius: 14px;
  }

  .float small {
    display: none;
  }

  .fi {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .f1 {
    left: -2%;
  }

  .f2 {
    right: -2%;
  }

  .f3 {
    display: none;
  }
}

/* ── Explore stage ──────────────────────────────────────── */

.explore {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  color: var(--on-navy);
  background:
    radial-gradient(900px 500px at 50% 0%, rgb(91 63 224 / 0.2), transparent 70%),
    var(--navy-deep);
}

.explore h2 em {
  color: #c9bcff;
}

.rail-wrap {
  position: sticky;
  top: 80px;
  z-index: 20;
  display: flex;
  justify-content: center;
  margin: 0 calc(-1 * var(--gutter)) clamp(32px, 4vw, 56px);
  padding: 0 var(--gutter);
}

.rail {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  border-radius: 999px;
  background: rgb(20 26 94 / 0.6);
  border: 1px solid var(--navy-line);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.rail::-webkit-scrollbar {
  display: none;
}

.fchip {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  scroll-snap-align: center;
  color: var(--on-navy-2);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s, background 0.35s var(--ease), box-shadow 0.35s;
}

.fchip:hover {
  color: var(--on-navy);
  background: var(--glass);
}

.cdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.3s, transform 0.4s var(--spring);
}

.fchip[aria-current="true"] {
  color: var(--navy-ink);
  background: var(--on-navy);
  box-shadow: 0 8px 20px -10px var(--hue), inset 0 1px 0 #ffffff;
}

.fchip[aria-current="true"] .cdot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hue) 28%, transparent);
}


/* The nine features, one after another. On a wide screen the text scrolls
   by on the left while one sticky phone on the right shows the feature
   whose text is in the middle of the screen. Without JavaScript (or on a
   narrow screen) each feature is its text and its own phone. */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 40px 0;
  scroll-margin-top: 150px;
}

@media (min-width: 1000px) {
  .js .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(48px, 7vw, 120px);
  }

  .js .demo {
    display: contents;
  }

  .js .demo-copy {
    grid-column: 1;
    align-content: center;
    min-height: 82vh;
    padding: 6vh 0;
    scroll-margin-top: 0;
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  }

  .js .demo:not(.is-on) .demo-copy {
    opacity: 0.22;
    transform: scale(0.98);
    transform-origin: left center;
  }

  .js .demo:nth-child(1) .demo-copy { grid-row: 1; }
  .js .demo:nth-child(2) .demo-copy { grid-row: 2; }
  .js .demo:nth-child(3) .demo-copy { grid-row: 3; }
  .js .demo:nth-child(4) .demo-copy { grid-row: 4; }
  .js .demo:nth-child(5) .demo-copy { grid-row: 5; }
  .js .demo:nth-child(6) .demo-copy { grid-row: 6; }
  .js .demo:nth-child(7) .demo-copy { grid-row: 7; }
  .js .demo:nth-child(8) .demo-copy { grid-row: 8; }
  .js .demo:nth-child(9) .demo-copy { grid-row: 9; }

  .js .demo-device {
    grid-column: 2;
    grid-row: 1 / span 9;
    align-self: start;
    position: sticky;
    top: 148px;
    transition: opacity 0.45s var(--ease), transform 0.7s var(--spring), visibility 0s;
  }

  .js .demo:not(.is-on) .demo-device {
    visibility: hidden;
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
  }
}

@media (min-width: 1000px) and (max-height: 920px) {
  .js .stage .phone {
    --z: 0.74;
  }

  .js .demo-device {
    top: 136px;
  }
}

@media (min-width: 1000px) and (max-height: 780px) {
  .js .stage .phone {
    --z: 0.62;
  }
}

/* Narrow screens: each phone rises in as it scrolls into view. */
@media (max-width: 999px) {
  .js .demo-device:not(.seen) {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  .js .demo-device {
    transition: opacity 0.6s var(--ease), transform 0.8s var(--spring);
  }
}

.demo-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: 520px;
}

.demo-copy .eyebrow {
  color: var(--hue);
}

.num {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--hue) 18%, transparent);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.demo h3 {
  font-size: clamp(32px, 3.8vw, 52px);
  letter-spacing: -0.04em;
}

.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  color: var(--on-navy-2);
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-navy-2);
  font-size: 16px;
}

.ticks li {
  position: relative;
  padding-left: 32px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) 20%, transparent);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid var(--hue);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

.ticks strong {
  color: var(--on-navy);
  font-weight: 600;
}

.demo-device {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.demo-device::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 56%;
  width: 520px;
  height: 520px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hue) 34%, transparent), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.demo-device > * {
  position: relative;
  z-index: 1;
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  min-height: 40px;
  text-align: center;
}

.hint {
  font-size: 14px;
  line-height: 1.4;
  color: var(--on-navy-2);
}

.hint b {
  color: var(--on-navy);
  font-weight: 600;
}

.replay {
  display: none;
}

.js .replay {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--navy-line);
  color: var(--on-navy);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--spring);
}

.js .replay::before {
  content: "↻";
  font-size: 15px;
  line-height: 1;
}

.js .replay:hover {
  background: rgb(255 255 255 / 0.12);
}

.js .replay:active {
  transform: scale(0.95);
}

.stage .phone {
  --z: 0.86;
}


@media (max-width: 999px) {
  .demo {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
    padding: 56px 0;
  }

  .demo + .demo {
    border-top: 1px solid var(--navy-line);
  }

  .demo-copy {
    justify-items: center;
    text-align: center;
  }

  .ticks {
    text-align: left;
  }

  .stage .phone {
    --z: 0.74;
  }

  .rail-wrap {
    top: 68px;
  }
}

@media (max-width: 480px) {
  .stage .phone {
    --z: 0.64;
  }

  .demo-device::before {
    width: 340px;
    height: 340px;
  }

  .fchip {
    height: 40px;
    padding: 0 14px 0 12px;
    font-size: 14px;
  }
}

/* ── More (bento) ───────────────────────────────────────── */

.more,
.faq-sec,
.premium {
  color: var(--ink);
  background: var(--paper);
}

.more {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 64px);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

.more h2 em,
.faq-sec h2 em {
  color: var(--accent-ink);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-card);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--spring), box-shadow 0.4s;
}

.b-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgb(11 15 69 / 0.35);
}

.b-card h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.b-card p {
  font-size: 15px;
  color: var(--ink-2);
}

.b-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hue) 16%, transparent);
  color: var(--hue);
}

.b-ic .i {
  font-size: 24px;
}

.b-wide {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: transparent;
  color: var(--on-navy);
}

.b-wide p {
  color: var(--on-navy-2);
}

.b-tall {
  grid-row: span 2;
}

.b-txt {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mini-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 64px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 10px;
}

.mini-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-keep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18%;
  right: 26%;
  border-radius: 8px;
  border: 3px solid #32d2c8;
  border-left-width: 14px;
  border-right-width: 14px;
  box-shadow: 0 0 0 999px rgb(4 6 31 / 0.55);
  animation: trim-breathe 5s var(--ease) infinite alternate;
}

@keyframes trim-breathe {
  to {
    left: 30%;
    right: 12%;
  }
}

.mini-collage {
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
  padding: 6px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 40px -24px rgb(11 15 69 / 0.4);
  rotate: -3deg;
  transition: rotate 0.5s var(--spring);
}

.b-collage:hover .mini-collage {
  rotate: 0deg;
}

.mini-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.mini-collage img:first-child {
  grid-row: span 2;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b-tall {
    grid-row: span 1;
  }

  .mini-collage {
    max-width: 220px;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .b-wide {
    grid-column: span 1;
  }
}

/* ── Premium ────────────────────────────────────────────── */

.premium {
  padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 110px);
}

.prem-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  border-radius: 36px;
  color: var(--on-navy);
  background:
    radial-gradient(600px 400px at 100% 0%, rgb(143 115 255 / 0.45), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgb(255 126 182 / 0.18), transparent 70%),
    var(--navy);
  box-shadow: 0 50px 80px -50px rgb(11 15 69 / 0.8);
}

.prem-copy {
  display: grid;
  gap: 18px;
}

.prem-copy h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}

.prem-copy h2 em {
  color: #c9bcff;
}

.prem-copy p {
  color: var(--on-navy-2);
}

.prem-fine {
  font-size: 14.5px;
  color: var(--on-navy-3);
}

.prem-card .prem-fine {
  color: var(--on-navy-3);
}

.prem-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prem-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--navy-line);
}

.prem-list .b-ic {
  flex: none;
  margin: 0;
}

.prem-list b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.prem-list li > span:last-child {
  font-size: 14.5px;
  color: var(--on-navy-2);
}

@media (max-width: 860px) {
  .prem-card {
    grid-template-columns: 1fr;
  }
}

/* ── FAQ (full width) ───────────────────────────────────── */

.faq-sec {
  padding: clamp(64px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
  background: var(--paper-2);
}

.faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.faq-head > div {
  display: grid;
  gap: 14px;
}

.faq-head h2 {
  font-size: clamp(34px, 4.8vw, 62px);
}

.faq-head > p {
  max-width: 380px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.faq-head a,
.faq a {
  color: var(--accent-ink);
  font-weight: 550;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.faq details {
  border-radius: 22px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 40px -30px rgb(91 63 224 / 0.45);
}

.faq summary {
  position: relative;
  display: block;
  padding: 22px 64px 22px 24px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--accent-ink);
  transition: rotate 0.35s var(--spring);
}

.faq summary::after {
  rotate: 90deg;
}

.faq details[open] summary::after {
  rotate: 0deg;
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 16px;
}

@media (max-width: 820px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ── Promise (last section) ─────────────────────────────── */

.promise-sec {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
  color: var(--on-navy);
  background:
    radial-gradient(800px 500px at 50% 110%, rgb(91 63 224 / 0.35), transparent 70%),
    var(--navy);
}

.promise-sec h2 em {
  color: #ff9ac8;
}

.promise {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02));
  border: 1px solid var(--navy-line);
}

.p-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgb(255 126 182 / 0.14);
  color: #ff9ac8;
  box-shadow: 0 0 30px -6px rgb(255 126 182 / 0.45);
}

.p-num {
  position: absolute;
  right: 24px;
  top: 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--on-navy-3);
}

.promise strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.promise li > span:last-child {
  font-size: 15px;
  color: var(--on-navy-2);
}

.promise a {
  color: #c9bcff;
}

@media (max-width: 1000px) {
  .promise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .promise {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ─────────────────────────────────────────────── */

.ft {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 0;
  color: var(--on-navy-2);
  background: var(--navy-ink);
  font-size: 15px;
}

.ft-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(500px 260px at 0% 50%, rgb(143 115 255 / 0.35), transparent 70%),
    linear-gradient(120deg, var(--navy-raise), var(--navy));
  border: 1px solid var(--navy-line);
}

.ft-logo {
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 20px 50px -10px rgb(143 115 255 / 0.7);
}

.ft-cta-txt {
  display: grid;
  gap: 6px;
}

.ft-cta h2 {
  color: var(--on-navy);
  font-size: clamp(24px, 2.8vw, 36px);
}

.ft-cta p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  color: #c9bcff;
}

.ft-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: clamp(44px, 6vw, 72px) 0 40px;
}

.ft-about {
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 380px;
}

.ft-made strong {
  color: var(--on-navy);
}

.ft address {
  font-style: normal;
  color: var(--on-navy-3);
  font-size: 14px;
}

.ft h3 {
  margin-bottom: 14px;
  color: var(--on-navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ft ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-col a,
.ft-base a {
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.ft-col a:hover,
.ft-base a:hover {
  color: var(--on-navy);
}

.ft-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--navy-line);
  font-size: 13.5px;
  color: var(--on-navy-3);
}

.ft-base a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-base .ft-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  text-decoration: none;
}

.ft-word {
  margin: -0.12em 0 -0.24em;
  font-size: clamp(110px, 24vw, 360px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgb(143 115 255 / 0.28), rgb(143 115 255 / 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

@media (max-width: 900px) {
  .ft-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ft-cta .stores {
    grid-column: 1 / -1;
  }

  .ft-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ft-about {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .ft-cta {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ft-cta .stores {
    justify-content: center;
  }

  .ft-cols {
    grid-template-columns: 1fr 1fr;
  }

  .ft-base .ft-top {
    margin-left: 0;
  }
}

/* ── Scroll entrances (JavaScript only) ─────────────────── */

.js [data-reveal] {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(22px);
}

/* ── Motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal]:not(.in) {
    opacity: 1;
    transform: none;
  }
}
