/* Lumi marketing site.
 *
 * Grew out of the Claude Design canvas ("Lumi Homepage.dc.html"), then went further.
 * The canvas is a flat stack of cards, and a flat stack reads as a template. What makes
 * a page feel considered is depth (device frames, layered shadows, a moving ground),
 * rhythm (alternating sides, staggered entrances) and evidence — the actual product
 * rather than a stock photo standing in for it.
 *
 * Every motion here is opt-out: `prefers-reduced-motion` collapses the reveal system to
 * plain visibility, and nothing depends on an animation having run.
 */

:root {
  --bg: #f5f3fb;
  --ink: #17141f;
  --ink-2: #3a3648;
  --muted: #6b6878;
  --soft: #9a97a8;
  --violet: #7e70e8;
  --violet-2: #9c8cff;
  --violet-deep: #5f4fd6;
  --lilac: #ece9fb;
  --peach: #ffb38a;
  --green: #3fa578;
  --card: #ffffff;
  --line: rgba(120, 115, 140, 0.14);

  --shadow-sm: 0 1px 2px rgba(20, 18, 35, 0.04), 0 4px 12px rgba(20, 18, 35, 0.05);
  --shadow: 0 1px 2px rgba(20, 18, 35, 0.04), 0 12px 32px rgba(20, 18, 35, 0.07);
  --shadow-lg: 0 2px 4px rgba(20, 18, 35, 0.04), 0 30px 70px rgba(20, 18, 35, 0.12);
  --shadow-violet: 0 18px 44px rgba(126, 112, 232, 0.24);

  --radius: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* The ground the whole page sits on: three slow colour fields. Fixed, so it drifts
 * under the content instead of scrolling with it — the cheapest way to make a long
 * page feel like one space rather than a stack of screens. */
.aurora {
  position: fixed;
  inset: -20vh -10vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 32rem at 78% 6%, rgba(156, 140, 255, 0.28), transparent 70%),
    radial-gradient(30rem 26rem at 8% 14%, rgba(255, 179, 138, 0.22), transparent 70%),
    radial-gradient(34rem 30rem at 50% 96%, rgba(111, 168, 255, 0.18), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

a { color: var(--violet); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 96px; position: relative; }
section[id] { scroll-margin-top: 92px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(126, 112, 232, 0.16);
}
.h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 2.85rem); line-height: 1.08; margin-top: 16px; }
.lede { color: var(--muted); font-size: 1.06rem; margin-top: 16px; max-width: 46ch; }
.grad {
  background: linear-gradient(105deg, var(--violet) 8%, var(--violet-2) 46%, #f0a06f 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .device-float { animation: none; }
}

/* ----------------------------------------------------------------- header */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet), var(--peach));
  z-index: 40;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(245, 243, 251, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(245, 243, 251, 0.9); }
.site-header .wrap {
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(126, 112, 232, 0.2);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { position: relative; padding: 9px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 0.94rem; }
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.language-links {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}
.site-nav .language-links a { padding: 6px 8px; border-radius: 8px; font-size: 0.76rem; }
.site-nav .language-links a::after { display: none; }
.site-nav .language-links a[aria-current="page"] { background: var(--card); color: var(--violet-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 15px;
  font-weight: 650;
  font-size: 0.94rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: var(--shadow-violet); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 50px rgba(126, 112, 232, 0.32); }
.btn-soft { background: rgba(255, 255, 255, 0.7); color: var(--violet); border: 1px solid rgba(126, 112, 232, 0.22); }
.btn-soft:hover { color: var(--violet-deep); transform: translateY(-2px); background: #fff; }

/* ------------------------------------------------------------------- hero */

.hero { padding-block: 84px 32px; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 5vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: 18px; }
.hero .lede { font-size: 1.16rem; max-width: 37ch; margin-top: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 24px;
  border-radius: 17px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 16px 34px rgba(23, 20, 31, 0.26);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-store:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 44px rgba(23, 20, 31, 0.3); }
.btn-store .icon { width: 21px; height: 21px; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store small { font-size: 0.7rem; font-weight: 600; opacity: 0.72; }
.btn-store strong { font-size: 1.05rem; font-weight: 700; }

.hero-trust { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--violet); }

.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 620px; }
.hero-stage::before {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 112, 232, 0.28), transparent 62%);
  filter: blur(30px);
}
.hero-stage .device { width: 288px; z-index: 2; }
.hero-stage .behind { position: absolute; width: 226px; z-index: 1; opacity: 0.5; }
.hero-stage .behind.left { transform: translate(-140px, 44px) rotate(-9deg); }
.hero-stage .behind.right { transform: translate(144px, 26px) rotate(9deg); }

.device-float { animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-9px); } to { transform: translateY(9px); } }

/* ----------------------------------------------------------- device frame */

.device {
  /* A <span> inside the .shot buttons, so this is not optional: an inline box paints
   * the bezel around the line box rather than around the picture, which shows up as a
   * dark stub above and below every phone. */
  display: block;
  position: relative;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(150deg, #4a4560, #191622 55%, #35304a);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}
.device img { border-radius: 36px; width: 100%; }
.device--pad { border-radius: 26px; padding: 10px; }
.device--pad img { border-radius: 17px; }

.shot { cursor: zoom-in; border: 0; padding: 0; background: none; display: block; width: 100%; transition: transform 0.4s var(--ease); }
.shot:hover { transform: translateY(-6px); }

/* ------------------------------------------------------------------- rail */

.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 206px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 40px 24px 44px;
  margin-inline: -24px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > figure { margin: 0; scroll-snap-align: center; }
.rail .device { border-radius: 34px; padding: 7px; }
.rail .device img { border-radius: 28px; }
/* Every other card sits lower, so the row reads as a hand of cards rather than a
 * filmstrip. */
.rail > figure:nth-child(even) { transform: translateY(26px); }
.rail figcaption { text-align: center; margin-top: 14px; font-size: 0.87rem; font-weight: 600; color: var(--muted); }
.rail-nav { display: flex; align-items: center; gap: 10px; }
.rail-hint { color: var(--soft); font-size: 0.87rem; display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; }
.rail-hint .icon { width: 15px; height: 15px; }
.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--violet);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(126, 112, 232, 0.22);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.rail-btn:hover:not(:disabled) { transform: translateY(-2px); background: #fff; }
.rail-btn:disabled { opacity: 0.32; cursor: default; box-shadow: none; }
.rail-btn .icon { width: 18px; height: 18px; }
/* Snapping fights a pointer drag: it keeps pulling scrollLeft back to the nearest card
 * while the finger is still moving. Off for the duration of the drag. */
.rail { cursor: grab; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }

/* ---------------------------------------------------------------- stories */

.stories { display: flex; flex-direction: column; gap: 26px; margin-top: 52px; }
.story {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.story:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.story--flip .story-problem { order: 2; }

/* The friction: a photograph with the sentence set over it. Text on the image rather
 * than beside it — the problem should feel like a place, not a bullet point. */
.story-problem { position: relative; min-height: 390px; display: flex; align-items: flex-end; padding: 32px; }
.story-problem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-problem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(15, 13, 22, 0.12) 0%, rgba(15, 13, 22, 0.6) 52%, rgba(15, 13, 22, 0.88) 100%);
}
.story-problem > div { position: relative; z-index: 1; }
.pill-friction {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.story-problem p { color: #fff; font-size: 1.22rem; line-height: 1.36; font-weight: 600; margin-top: 16px; text-wrap: balance; }

/* The answer: the screen that solves it, at real proportions. */
.story-answer { padding: 36px; display: grid; grid-template-columns: 1fr 194px; gap: 30px; align-items: center; }
.story-head { display: flex; align-items: center; gap: 13px; }
.badge {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  border: 1px solid rgba(126, 112, 232, 0.16);
  flex: 0 0 auto;
}
.badge .icon { width: 21px; height: 21px; }
.story-module { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--violet); }
.story-answer h3 { font-size: 1.22rem; margin-top: 3px; line-height: 1.25; }
.story-body { color: var(--muted); margin-top: 16px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--lilac);
  color: var(--violet);
  border: 1px solid rgba(126, 112, 232, 0.1);
}
.story-shot .device { border-radius: 30px; padding: 6px; }
.story-shot .device img { border-radius: 25px; }

.extras { margin-top: 40px; padding: 30px 34px; }
.extras h3 { font-size: 1.05rem; }
.extras p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.chip:hover { transform: translateY(-2px); background: #fff; }
.chip .icon { width: 16px; height: 16px; color: var(--violet); }

/* --------------------------------------------------------------- home hub */

.hub-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 254, 0.9));
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 52px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hub-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.hub-points div { display: flex; align-items: center; gap: 13px; }
.pip {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lilac);
  color: var(--violet);
  flex: 0 0 auto;
}
.pip .icon { width: 17px; height: 17px; }
.hub-shot { position: relative; }
.hub-shot::before {
  content: "";
  position: absolute;
  inset: 4% 2%;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(111, 168, 255, 0.28), rgba(126, 112, 232, 0.24));
  filter: blur(40px);
}
.hub-shot .device { position: relative; }

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

.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 18px; margin-top: 44px; }
.theme {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.theme:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.swatches { display: flex; gap: 8px; }
.swatches span { width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07); }
.theme h3 { font-size: 1.02rem; margin: 18px 0 5px; }
.theme p { font-size: 0.88rem; opacity: 0.75; }

/* ------------------------------------------------------------------- chat */

.chat-card {
  background: linear-gradient(155deg, #1b1826, #2e2748 60%, #241f3a);
  border-radius: 38px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  color: #f3f1fb;
  box-shadow: 0 34px 80px rgba(20, 18, 35, 0.34);
  position: relative;
  overflow: hidden;
}
.chat-card::before {
  content: "";
  position: absolute;
  width: 26rem;
  height: 26rem;
  right: -6rem;
  top: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 157, 245, 0.34), transparent 65%);
}
.chat-card > * { position: relative; }
.chat-card h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.4rem); line-height: 1.08; margin-top: 18px; }
.chat-card p { color: #b7b2ce; margin-top: 18px; }
.pill-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(169, 157, 245, 0.2);
  color: #d3ccff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.chat-note {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(169, 157, 245, 0.13);
  border: 1px solid rgba(169, 157, 245, 0.26);
}
.chat-note > div { display: flex; align-items: center; gap: 11px; }
.chat-note .pip { background: #a99df5; color: #191530; }
.chat-note p { font-size: 0.94rem; margin-top: 12px; }
.chat-card .chat-fineprint { color: #8f8aa8; font-size: 0.88rem; margin-top: 20px; }
.bubbles { display: flex; flex-direction: column; gap: 13px; }
.chat-card .bubble-user {
  align-self: flex-end;
  max-width: 78%;
  background: linear-gradient(135deg, #b3a7ff, #9a8bf3);
  color: #191530;
  padding: 15px 19px;
  border-radius: 22px 22px 7px 22px;
  font-size: 0.97rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}
.chat-card .bubble-lumi {
  align-self: flex-start;
  max-width: 86%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 17px 19px;
  border-radius: 22px 22px 22px 7px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #efedf9;
}
.doc-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9px;
  background: rgba(169, 157, 245, 0.22);
  color: #d3ccff;
  font-weight: 600;
  font-size: 0.87rem;
}
.doc-ref .icon { width: 13px; height: 13px; }

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

.trial-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(126, 112, 232, 0.22);
  margin-top: 28px;
}
.trial-note .pip { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 22px; align-items: stretch; margin-top: 40px; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured {
  background: linear-gradient(165deg, #ffffff, #f7f5ff);
  border-color: rgba(126, 112, 232, 0.34);
  box-shadow: var(--shadow-violet);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 1.14rem; }
.plan-tag { padding: 5px 11px; border-radius: 11px; font-size: 0.72rem; font-weight: 700; background: var(--lilac); color: var(--violet); }
.plan-tag--featured { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; }
.plan-tag--ai { background: var(--ink); color: #fff; }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.plan-price strong { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-size: 0.92rem; }
.plan-blurb { color: var(--muted); font-size: 0.94rem; margin-top: 14px; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.94rem; }
.plan li .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--green); }
.plan--featured li .icon { color: var(--violet); }
.plan .btn { margin-top: auto; padding: 13px 20px; }

.compare { margin-top: 48px; overflow: hidden; }
.compare-head { padding: 28px 28px 10px; }
.compare-head h3 { font-size: 1.14rem; }
.compare-head p { color: var(--muted); font-size: 0.9rem; margin-top: 7px; }
.compare-scroll { overflow-x: auto; padding: 0 10px 10px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 620px; }
.compare th { padding: 15px 17px; font-weight: 700; }
.compare thead th:first-child { text-align: left; color: var(--soft); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.compare thead th:not(:first-child) { text-align: center; }
.compare th.col-plus { color: var(--violet); }
.compare td { padding: 15px 17px; text-align: center; color: var(--muted); }
.compare td:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody tr:hover { background: rgba(126, 112, 232, 0.03); }
.compare td.col-plus { background: rgba(236, 233, 251, 0.5); }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--soft); }

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

.privacy { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.trust { border-radius: 24px; padding: 24px; transition: transform 0.3s var(--ease); }
.trust:hover { transform: translateY(-4px); }
.trust .pip { width: 40px; height: 40px; border-radius: 14px; }
.trust .pip .icon { width: 18px; height: 18px; }
.trust h3 { font-size: 1rem; margin: 16px 0 7px; }
.trust p { color: var(--muted); font-size: 0.9rem; }

/* -------------------------------------------------------------- final CTA */

.final { padding-block: 20px 104px; }
.final-card {
  background: linear-gradient(135deg, #7e70e8, #9c8cff 55%, #b49bf5);
  border-radius: 38px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  box-shadow: 0 34px 80px rgba(126, 112, 232, 0.36);
  position: relative;
  overflow: hidden;
}
.final-card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 24rem;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3), transparent 62%);
}
.final-card > * { position: relative; }
.final-card h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.7rem); line-height: 1.08; }
.final-card p { margin: 18px auto 0; max-width: 38ch; color: rgba(255, 255, 255, 0.9); }
.final-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.final-actions a { padding: 15px 26px; border-radius: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.25s var(--ease); }
.final-actions a:hover { transform: translateY(-2px); color: #fff; }
.final-actions .dark { background: var(--ink); color: #fff; box-shadow: 0 16px 34px rgba(23, 20, 31, 0.28); }
.final-actions .ghost { background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.36); color: #fff; }

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

.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-block: 52px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); }
.footer-grid p { color: var(--muted); font-size: 0.9rem; margin-top: 16px; max-width: 24rem; }
.footer-col h4 { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); }
.footer-col div { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: 0.93rem; }
.footer-legal {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 44px;
  color: var(--soft);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- lightbox */

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; overflow: hidden; }
.lightbox::backdrop { background: rgba(14, 12, 22, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lightbox-inner { height: 100%; display: grid; place-items: center; align-content: center; gap: 20px; padding: 6vh 84px 5vh; }
.lightbox .device { width: min(320px, 68vw); animation: pop 0.4s var(--ease); }
.lightbox .device--pad { width: min(880px, 88vw); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(14px); } to { opacity: 1; transform: none; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 18px; max-height: 100%; }
.lightbox figcaption { color: #efedf9; font-size: 1rem; font-weight: 600; text-align: center; }
.lightbox figcaption small { display: block; color: #a49fba; font-weight: 500; margin-top: 5px; }
.lb-btn {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.06); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: calc(50% - 23px); }
.lb-next { right: 22px; top: calc(50% - 23px); }
.lb-btn .icon { width: 20px; height: 20px; }
.lb-next .icon { transform: rotate(180deg); }

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-block: 56px 24px; }
  .hero .lede { max-width: none; }
  .hero-stage { min-height: 540px; }
  .hub-card, .chat-card, .privacy { grid-template-columns: 1fr; gap: 34px; }
  .hub-card, .chat-card { padding: 36px; }
  .story { grid-template-columns: 1fr; }
  .story--flip .story-problem { order: 0; }
  .story-problem { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 8px 11px; font-size: 0.88rem; }
  .section { padding-block: 64px; }
  .hero-stage { min-height: 470px; }
  .hero-stage .device { width: min(256px, 66vw); }
  .hero-stage .behind { display: none; }
  .story-answer { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .story-shot { max-width: 196px; margin-inline: auto; }
  .story-problem { padding: 24px; }
  .final-card { padding: 44px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox-inner { padding: 5vh 20px 12vh; }
  .lb-prev { left: 24px; top: auto; bottom: 24px; }
  .lb-next { right: 24px; top: auto; bottom: 24px; }
}

@media print {
  .site-header, .final, .hero-actions, .rail, .progress, .aurora { display: none; }
  body { background: #fff; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- legal documents */
/* Generated by web/build-legal.py from docs/Legal/*.md. Long prose, so this trades the
 * marketing page's width for a comfortable measure and a sticky table of contents. */

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 56px 96px; }
.doc-language-notice {
  grid-column: 1 / -1;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(126, 112, 232, 0.08);
  border: 1px solid rgba(126, 112, 232, 0.22);
  color: var(--ink-2);
  font-size: 0.94rem;
}
.doc-language-notice strong { color: var(--violet-deep); }

.doc-toc { position: sticky; top: 108px; font-size: 0.9rem; max-height: calc(100vh - 140px); overflow-y: auto; }
.doc-toc h2 { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.doc-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-toc a { display: block; padding: 5px 10px; border-radius: 9px; color: var(--muted); }
.doc-toc a:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.doc-toc .lvl-3 { padding-left: 12px; font-size: 0.86rem; }

.doc-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
  max-width: 74ch;
}
.doc-body h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); line-height: 1.1; }
.doc-body h2 { font-size: 1.32rem; line-height: 1.25; margin-top: 44px; scroll-margin-top: 108px; }
.doc-body h3 { font-size: 1.05rem; margin-top: 30px; scroll-margin-top: 108px; }
.doc-body h1 + p { color: var(--muted); }
.doc-body p, .doc-body ul, .doc-body ol { margin-top: 14px; color: var(--ink-2); }
.doc-body ul, .doc-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.doc-body li { padding-left: 4px; }
.doc-body strong { color: var(--ink); }
.doc-body code { background: rgba(126, 112, 232, 0.09); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc-body blockquote { margin: 20px 0; padding-left: 18px; border-left: 3px solid var(--lilac); color: var(--muted); }
.doc-body .callout {
  display: block;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(126, 112, 232, 0.08);
  border: 1px solid rgba(126, 112, 232, 0.22);
}
.doc-body .callout strong { display: block; color: var(--violet-deep); }
.doc-body .callout p { margin-top: 8px; font-size: 0.94rem; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .doc-toc { position: static; max-height: none; }
  .doc-body { padding: 30px 24px; }
}
