/*
 * SubSavy website — brand « Clarté × Nocturne » (docs/charte-graphique.md).
 * Dark only. Citron (--accent) is for actions (buttons, links, focus) and the urgency word « avant »
 * — never decoration. Glows use the brand's lavender / sky / citron at low opacity.
 * No external resource: Manrope is self-hosted (SIL OFL 1.1, see fonts/OFL.txt).
 */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-500.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-700.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-deep: #08090c;
  --surface: #15171d;
  --surface-raised: #1e2129;
  --border: #252833;
  --divider: #20232b;
  --track: #2e3240;
  --text: #f2f3f5;
  --text-muted: #9aa1ae;
  --accent: #c8f560;
  --on-accent: #0b0c10;
  --accent-soft: rgba(200, 245, 96, 0.12);
  --accent-border: rgba(200, 245, 96, 0.28);
  --accent-glow: rgba(200, 245, 96, 0.22);
  --lavender: #9b8cff;
  --sky: #5cc8ff;
  --ring: rgba(255, 255, 255, 0.08);
  --shadow-float:
    0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px -12px rgba(0, 0, 0, 0.7), 0 12px 24px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1180px;
  --gutter: 20px;
  --section: clamp(80px, 11vw, 150px);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.center {
  text-align: center;
}
.muted {
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  z-index: 100;
  font-weight: 700;
}

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
}
.h2-sm {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h2 em,
h3 em {
  font-style: normal;
  color: var(--accent);
}
p {
  margin: 0 0 1em;
}
.body-lg {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kicker-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--ring);
  color: var(--text);
}
.kicker-icon .i {
  width: 18px;
  height: 18px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 28px -8px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 10px 34px -6px rgba(200, 245, 96, 0.4);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost .muted {
  font-weight: 600;
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}
.btn-block {
  width: 100%;
}

.play-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.2s var(--ease);
}
.play-badge:hover {
  transform: translateY(-1px);
}
.play-badge img {
  height: 52px;
  width: auto;
}
.play-badge-sm img {
  height: 40px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--divider);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 10px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--ring);
}
.logo-word {
  height: 21px;
  width: auto;
}
.header-nav {
  margin-left: auto;
  display: none;
}
.header-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.header-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-nav + .header-actions {
  margin-left: 0;
}
.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
}
.lang-switch a,
.lang-switch span {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 34px;
  border-radius: 999px;
  text-decoration: none;
}
.lang-switch a {
  color: var(--text-muted);
}
.lang-switch a:hover {
  color: var(--text);
}
.lang-switch span[aria-current] {
  color: var(--text);
  background: var(--surface-raised);
}
@media (max-width: 400px) {
  .site-header .btn-sm {
    display: none;
  }
}
@media (min-width: 900px) {
  .header-nav {
    display: block;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -68px 0 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 10% 0%, rgba(155, 140, 255, 0.22), transparent 70%),
    radial-gradient(45% 45% at 95% 10%, rgba(92, 200, 255, 0.12), transparent 70%),
    radial-gradient(50% 50% at 80% 95%, rgba(200, 245, 96, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-bg::after {
  /* Fine dotted grid, fading out: depth without decoration. */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-copy {
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.pill img {
  height: 15px;
  width: auto;
}
.hero h1 span {
  display: block;
  color: var(--text-muted);
}
.lead {
  margin: 24px auto 32px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-note {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  line-height: 1.5;
  margin: 28px 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.hero-note .i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--text);
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
  .hero-copy {
    text-align: left;
  }
  .lead {
    margin-left: 0;
  }
  .cta-row,
  .hero-note {
    justify-content: flex-start;
  }
}

/* ── Stages: phones and floating cut-outs, sized in % of the stage ──────── */
.stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  container-type: inline-size;
}
.glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.glow-a {
  background:
    radial-gradient(closest-side, rgba(155, 140, 255, 0.45), rgba(155, 140, 255, 0) 100%),
    radial-gradient(40% 40% at 70% 85%, rgba(200, 245, 96, 0.22), transparent);
}
.glow-b {
  background: radial-gradient(closest-side, rgba(92, 200, 255, 0.3), rgba(92, 200, 255, 0));
}
.glow-c {
  background: radial-gradient(closest-side, rgba(200, 245, 96, 0.16), rgba(200, 245, 96, 0));
}
.glow-d {
  background: radial-gradient(closest-side, rgba(155, 140, 255, 0.34), rgba(155, 140, 255, 0));
}

.phone {
  position: relative;
  z-index: 1;
  padding: 2.6%;
  border-radius: 14% / 6.6%;
  background: linear-gradient(145deg, #2a2e39 0%, #14161c 40%, #0a0b0e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    0 0 0 1px #05060a,
    0 50px 100px -20px rgba(0, 0, 0, 0.75),
    0 20px 40px rgba(0, 0, 0, 0.4);
}
.screen {
  position: relative;
  overflow: hidden;
  border-radius: 11.5% / 5.2%;
  background: var(--bg);
  container-type: inline-size;
}
.screen img {
  width: 100%;
  height: auto;
}
.float {
  position: absolute;
  z-index: 3;
  height: auto;
  border-radius: 2.6cqw;
  box-shadow: var(--shadow-float);
}
.chip {
  position: absolute;
  z-index: 2;
  width: 11%;
  height: auto;
  border-radius: 24%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Hero: tilted home screen, notification above, next-payment card below. */
.stage-hero {
  aspect-ratio: 1 / 1.12;
  max-width: 560px;
}
.phone-hero {
  position: absolute;
  width: 54%;
  left: 30%;
  top: 4%;
  transform: perspective(1600px) rotateY(-16deg) rotateX(5deg) rotate(3deg);
}
.f-hero-notif {
  width: 70%;
  left: 0;
  top: 22%;
  rotate: -3deg;
  border-radius: 3.6cqw;
}
.f-hero-next {
  width: 64%;
  left: 6%;
  top: 70%;
  rotate: 2deg;
}
.chip-1 {
  left: 88%;
  top: 14%;
  rotate: 8deg;
}
.chip-2 {
  left: 4%;
  top: 6%;
  rotate: -10deg;
  width: 9%;
}
.chip-3 {
  left: 86%;
  top: 74%;
  rotate: -6deg;
  width: 10%;
}

/* Reminders: lock screen, the real notifications spilling out of it. */
.stage-reminders {
  aspect-ratio: 1 / 1.24;
}
.phone-lock {
  position: absolute;
  width: 52%;
  left: 24%;
  top: 0;
}
.lock {
  aspect-ratio: 1080 / 2400;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15%;
  background:
    radial-gradient(120% 70% at 85% 105%, rgba(200, 245, 96, 0.3), rgba(200, 245, 96, 0) 60%),
    radial-gradient(90% 60% at 0% 40%, rgba(155, 140, 255, 0.45), rgba(155, 140, 255, 0) 70%),
    radial-gradient(80% 50% at 100% 0%, rgba(92, 200, 255, 0.28), rgba(92, 200, 255, 0) 70%),
    linear-gradient(180deg, #161929, #0b0c10);
}
.lock-date {
  font-size: 5.4cqw;
  font-weight: 600;
  color: rgba(242, 243, 245, 0.85);
}
.lock-time {
  font-size: 30cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.f-rem-pay {
  width: 80%;
  left: 0;
  top: 25%;
  rotate: -2deg;
  border-radius: 3.6cqw;
}
.f-rem-trial {
  width: 76%;
  left: 22%;
  top: 58%;
  rotate: 1.5deg;
  border-radius: 3.6cqw;
}

/* Calendar: the selected day's payment magnified in place. */
.stage-calendar {
  aspect-ratio: 1 / 1.12;
}
.phone-calendar {
  position: absolute;
  width: 54%;
  left: 23%;
  top: 0;
}
.f-cal-day {
  width: 76%;
  left: 12%;
  top: 70%;
  rotate: -2deg;
}

/* Stats: the evolution chart floating out. */
.stage-stats {
  aspect-ratio: 1 / 1.12;
}
.phone-stats {
  position: absolute;
  width: 54%;
  left: 36%;
  top: 0;
}
.f-stats-chart {
  width: 66%;
  left: 0;
  top: 46%;
  rotate: -2.5deg;
}

/* Gentle float (disabled with reduced motion). `translate` composes with `rotate`. */
@keyframes bob {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -10px;
  }
}
.bob {
  animation: bob 4.5s ease-in-out infinite alternate;
}
.bob-late {
  animation-duration: 5.5s;
  animation-delay: -2s;
}

/* ── Logo marquee ───────────────────────────────────────────────────────── */
.logos {
  padding: clamp(24px, 4vw, 48px) 0 var(--section);
}
.logos .container {
  margin-bottom: 40px;
}
.logos h2 {
  margin-bottom: 16px;
}
.marquees {
  display: grid;
  gap: 16px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 80s;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}
.marquee-list img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--ring);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (min-width: 768px) {
  .marquee-list {
    gap: 20px;
    padding: 0 10px;
  }
  .marquee-list img {
    width: 76px;
    height: 76px;
    border-radius: 19px;
  }
}

/* ── Feature rows ───────────────────────────────────────────────────────── */
.feature {
  padding: calc(var(--section) * 0.5) 0;
}
.features {
  padding-bottom: calc(var(--section) * 0.5);
}
.feature-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.feature-copy {
  max-width: 540px;
}
.feature-copy h2 {
  margin-bottom: 22px;
}
.feature-copy .body-lg {
  color: var(--text-muted);
}
.points {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.points .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text);
  stroke-width: 3;
}
@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(48px, 7vw, 110px);
  }
  .feature-reverse .feature-copy {
    order: 2;
  }
}

/* ── Video ──────────────────────────────────────────────────────────────── */
.video-section {
  padding: calc(var(--section) * 0.6) 0 var(--section);
}
.video-section h2 {
  margin-bottom: 16px;
}
.video-frame {
  position: relative;
  margin: 40px auto 0;
  max-width: 1040px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--ring),
    0 60px 120px -40px rgba(155, 140, 255, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  box-shadow:
    0 0 0 10px rgba(200, 245, 96, 0.16),
    0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease);
}
.video-play:hover {
  transform: scale(1.06);
}
.video-play .i {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}
.video-play[hidden] {
  display: none;
}

/* ── Bento ──────────────────────────────────────────────────────────────── */
.more {
  padding: 0 0 calc(var(--section) * 0.7);
}
.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  max-width: 16em;
}
.section-head.center h2 {
  margin-left: auto;
  margin-right: auto;
}
.section-head .body-lg {
  margin-top: 20px;
}
.bento {
  display: grid;
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #171920, var(--surface));
  box-shadow: inset 0 0 0 1px var(--border);
  container-type: inline-size;
}
.tile-copy {
  position: relative;
  z-index: 2;
  padding: 28px 28px 0;
}
.tile-copy h3 {
  margin: 18px 0 10px;
  max-width: 20em;
}
.tile-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 34em;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.tile-icon .i {
  width: 22px;
  height: 22px;
}
.tag-pro {
  display: inline-block;
  vertical-align: 0.2em;
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-border);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.tile-visual {
  position: relative;
  flex: 1;
  min-height: 260px;
  margin-top: 28px;
}
.tile-visual .float {
  border-radius: 3.4cqw;
}
.tile-visual-trial {
  min-height: 0;
  aspect-ratio: 16 / 11;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: radial-gradient(60% 70% at 50% 100%, rgba(155, 140, 255, 0.22), transparent 70%);
}
.f-trial-card {
  width: 58%;
  left: 5%;
  top: 2%;
  rotate: -3deg;
}
.f-trial-notif {
  width: 64%;
  right: 3%;
  top: 52%;
  rotate: 2deg;
}
.tile-visual-payment {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 40px;
  background: radial-gradient(60% 70% at 50% 100%, rgba(92, 200, 255, 0.18), transparent 70%);
}
.f-expiry {
  position: relative;
  width: 84%;
  max-width: 440px;
  rotate: -2deg;
}
.tile-visual-widgets {
  min-height: 0;
  width: calc(100% - 40px);
  max-width: 500px;
  align-self: center;
  margin: 28px 20px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 85% 105%, rgba(200, 245, 96, 0.25), rgba(200, 245, 96, 0) 60%),
    radial-gradient(90% 60% at 0% 40%, rgba(155, 140, 255, 0.4), rgba(155, 140, 255, 0) 70%),
    radial-gradient(80% 50% at 100% 0%, rgba(92, 200, 255, 0.25), rgba(92, 200, 255, 0) 70%),
    linear-gradient(180deg, #161929, #0b0c10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 'list list' 'next month';
  gap: 12px;
  padding: 18px;
  align-content: center;
}
.tile-visual-widgets img {
  width: 100%;
  height: auto;
  border-radius: 6cqw;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.w-list {
  grid-area: list;
  border-radius: 4cqw !important;
}
.w-next {
  grid-area: next;
}
.w-month {
  grid-area: month;
}
.tile-privacy {
  background:
    radial-gradient(70% 50% at 100% 100%, rgba(92, 200, 255, 0.1), transparent 70%),
    linear-gradient(180deg, #171920, var(--surface));
}
.tile-privacy .tile-copy {
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.privacy-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}
.privacy-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 600;
  line-height: 1.4;
}
.privacy-list .i {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .i {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}
.text-link:hover .i {
  transform: translateX(3px);
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .tile-trial {
    grid-column: span 6;
  }
  .tile-payment {
    grid-column: span 6;
  }
  .tile-widgets {
    grid-column: span 6;
  }
  .tile-privacy {
    grid-column: span 6;
  }
}
@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
  .tile-trial {
    grid-column: span 7;
  }
  .tile-payment {
    grid-column: span 5;
  }
  .tile-widgets {
    grid-column: span 7;
  }
  .tile-privacy {
    grid-column: span 5;
  }
  .tile-copy {
    padding: 36px 36px 0;
  }
  .tile-privacy .tile-copy {
    padding-bottom: 36px;
  }
  .tile-visual-widgets {
    margin: 32px auto 32px;
  }
}

/* ── Pro ────────────────────────────────────────────────────────────────── */
.pro {
  position: relative;
  padding: var(--section) 0;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(200, 245, 96, 0.06), transparent 70%),
    linear-gradient(180deg, transparent, rgba(21, 23, 29, 0.6) 40%, transparent);
  border-top: 1px solid var(--divider);
}
.muted-2 {
  color: var(--text-muted);
}
.plans {
  display: grid;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
  align-items: start;
}
.plan {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.plan h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 14px 0 24px;
}
.amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.per {
  color: var(--text-muted);
  font-weight: 600;
}
.plan-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.plan-list .i {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--text-muted);
  stroke-width: 2.5;
}
.plan-list strong {
  font-weight: 700;
}
.plan-list .hint {
  display: block;
  font-size: 0.9375rem;
}
.plan-note {
  margin: 24px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.plan-pro {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(200, 245, 96, 0.1), transparent 70%),
    linear-gradient(180deg, #1a1d16, var(--surface) 55%);
  box-shadow:
    inset 0 0 0 1px var(--accent-border),
    0 40px 80px -40px rgba(200, 245, 96, 0.25);
}
.plan-pro .plan-list .i {
  color: var(--accent);
}
.plan-pro .btn {
  margin-top: 28px;
}
.plan-intro {
  margin: 0 0 14px;
  font-weight: 700;
}
.plan-infinity {
  position: absolute;
  top: 26px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-border);
  color: var(--accent);
}
.plan-infinity .i {
  width: 28px;
  height: 28px;
}
@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
  }
  .plan {
    padding: 40px 36px;
  }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  padding: var(--section) 0;
}
.faq-grid {
  display: grid;
  gap: 32px;
}
.faq-head h2 {
  margin-bottom: 16px;
}
.faq-list {
  border-top: 1px solid var(--divider);
}
.faq details {
  border-bottom: 1px solid var(--divider);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .i {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary .i {
  transform: rotate(45deg);
}
.faq summary:hover .i {
  color: var(--text);
}
.faq details p {
  margin: -6px 0 0;
  padding: 0 44px 24px 4px;
  color: var(--text-muted);
}
@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 0.8fr 1.4fr;
    gap: 80px;
  }
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta {
  position: relative;
  padding: var(--section) 0;
  overflow: hidden;
  isolation: isolate;
}
.final-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(155, 140, 255, 0.22), transparent),
    radial-gradient(30% 30% at 50% 30%, rgba(200, 245, 96, 0.12), transparent);
}
.cta-icon {
  margin: 0 auto 32px;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px var(--ring),
    0 20px 60px rgba(200, 245, 96, 0.18);
}
.final-cta h2 {
  max-width: 14em;
  margin: 0 auto 18px;
}
.final-cta .body-lg {
  margin-bottom: 32px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 56px 0 40px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 1fr;
}
.footer-brand {
  grid-column: 1 / -1;
}
.footer-brand p {
  margin: 16px 0 20px;
  max-width: 22em;
}
.footer-col h2 {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 819px) {
  .footer-info {
    grid-column: 1 / -1;
    order: 3;
  }
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-col a[aria-current] {
  color: var(--accent);
}
.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 0.8125rem;
}
.footer-legal p {
  margin: 0 0 6px;
}
@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.2fr 0.8fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* ── Long-form documents (privacy policy, legal notice) ─────────────────── */
/* Hero, then a sticky table of contents beside numbered sections. Bullets « Label : text » become
   rows (label beside its text on wide screens), « En bref » becomes a grid of cards. */
.doc {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 var(--section);
  isolation: isolate;
}
.doc::before {
  content: '';
  position: absolute;
  inset: -68px 0 auto;
  height: 560px;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 12% 0%, rgba(155, 140, 255, 0.18), transparent 70%),
    radial-gradient(35% 45% at 90% 10%, rgba(92, 200, 255, 0.1), transparent 70%);
  pointer-events: none;
}
.doc-hero {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.doc-eyebrow {
  margin: 0 0 14px;
  color: var(--lavender);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.doc h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}
.doc-lead {
  margin: 20px 0 0;
  color: #d6dae1;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
}
.doc .updated {
  display: inline-block;
  margin: 22px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.doc-layout {
  display: grid;
  gap: 24px;
}
.doc-body {
  min-width: 0;
  display: grid;
  gap: 16px;
}

/* Table of contents */
.toc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 8px;
}
.toc-box summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.9375rem;
}
.toc-box summary::-webkit-details-marker {
  display: none;
}
.toc-box summary::after {
  content: '';
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.toc-box[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 9px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.toc a:hover,
.toc a:focus-visible {
  background: var(--surface-raised);
  color: var(--text);
}
.doc-num {
  flex: none;
  color: var(--lavender);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Sections */
.doc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 6px;
  scroll-margin-top: 88px;
}
.doc-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.doc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(155, 140, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(155, 140, 255, 0.24);
  color: var(--lavender);
}
.doc-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.doc-section h2 .doc-num {
  font-size: 0.8em;
}
.doc-section p {
  color: #c9ced6;
  line-height: 1.65;
}
.doc a {
  overflow-wrap: anywhere;
}

/* Rows: « Label : text » bullets */
.rows {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  border-top: 1px solid var(--divider);
}
.row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.row-label {
  color: var(--text);
  font-weight: 700;
}
.row-text {
  color: #c9ced6;
  line-height: 1.6;
}
.row-plain .row-text {
  position: relative;
  padding-left: 18px;
}
.row-plain .row-text::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* « En bref »: cards */
.promises {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.promise {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.promise-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(92, 200, 255, 0.14);
  color: var(--sky);
}
.promise-check .i {
  width: 15px;
  height: 15px;
}
.promise strong {
  display: block;
  margin-bottom: 2px;
}
.promise span:not(.promise-check) {
  color: #c9ced6;
  line-height: 1.55;
}

/* Contact card and back to top */
.doc-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(155, 140, 255, 0.14), rgba(92, 200, 255, 0.08));
  border: 1px solid rgba(155, 140, 255, 0.28);
}
.doc-contact p {
  flex: 1 1 220px;
  margin: 0;
}
.doc-contact strong {
  display: block;
  font-size: 1.0625rem;
}
.doc-contact span {
  color: #c9ced6;
}
.doc-top {
  margin: 8px 0 0;
  text-align: right;
}
.doc-top a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.doc-top a:hover {
  color: var(--text);
}

@media (min-width: 640px) {
  .promises {
    grid-template-columns: 1fr 1fr;
  }
  .doc-section {
    padding: 28px 30px 10px;
  }
  .row {
    grid-template-columns: minmax(130px, 200px) 1fr;
    gap: 20px;
  }
  .row-plain {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
  .toc-box summary {
    pointer-events: none;
  }
  .toc-box summary::after {
    display: none;
  }
  .doc-body {
    max-width: 860px;
  }
}

/* Placeholders still to fill in (see site/README.md) */
mark.todo {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  padding: 0 4px;
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.nf {
  display: grid;
  place-items: center;
}
.not-found {
  padding: var(--section) 0;
}
.nf-code {
  margin: 0 0 8px;
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--text), rgba(242, 243, 245, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin-bottom: 16px;
}
.center-row {
  justify-content: center;
  margin-top: 32px;
}

main {
  flex: 1;
}

/* ── Scroll reveal (only with JS, never with reduced motion) ────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js .reveal-late {
  transition-delay: 0.12s;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bob,
  .marquee-track {
    animation: none;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    width: auto;
  }
  .marquee-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
  }
  .marquee-list[aria-hidden='true'] {
    display: none;
  }
  .btn,
  .play-badge,
  .text-link .i {
    transition: none;
  }
}
