/* ==========================================================================
   BeatsCard - marketing + funnel design system
   White / Black / Beats Cracker Red. Premium, minimal, mobile-first.
   Shared by: landing, subscribe, checkout, onboarding, admin.
   ========================================================================== */

:root {
  /* Brand */
  --black: #0b0b0d;
  --ink: #14141a;
  --ink-2: #55555f;
  --ink-3: #8b8b95;
  --white: #ffffff;
  --paper: #f6f6f7;
  --paper-2: #efeff1;
  --line: rgba(11, 11, 13, 0.10);
  /* Sampled from the Beats Cracker logo mark */
  --red: #e5232a;
  --red-dark: #bb1a20;
  --red-soft: rgba(229, 35, 42, 0.08);
  --green: #128c4a;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-micro: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-base: 1rem;
  --t-lead: clamp(1.02rem, 0.96rem + 0.35vw, 1.2rem);
  --t-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --t-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --t-h1: clamp(2.5rem, 1.7rem + 3.9vw, 5.1rem);

  /* Layout */
  --wrap: 1120px;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
  --section: clamp(3.5rem, 9vw, 7rem);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(11,11,13,.04), 0 14px 40px -20px rgba(11,11,13,.26);
  --shadow-lg: 0 30px 80px -36px rgba(11,11,13,.45);
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding must clear the sticky header, which is sized by the logo */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1,h2,h3,h4,p,figure,ul,ol,dl,dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--dark { background: var(--black); color: #fff; }
.section--paper { background: var(--paper); }
.center { text-align: center; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }

/* ----------------------------------------------------------- Typography -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content:""; width:1.5rem; height:2px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.section--dark .eyebrow { color: var(--red); }

.h1, .h2, .h3 { font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); line-height: 1.05; }
.h3 { font-size: var(--t-h3); letter-spacing: -.025em; line-height: 1.25; font-weight: 700; }
.lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.section--dark .lead { color: rgba(255,255,255,.7); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.red { color: var(--red); }

/* The [hidden] attribute must win over component display rules below
   (.btn sets display:inline-flex, which would otherwise override it). */
[hidden] { display: none !important; }

/* -------------------------------------------------------------- Buttons -- */
.btn {
  --bg: var(--red); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: .9rem 1.9rem;
  border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-size: .975rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2;
  text-align: center;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { --bg: var(--red-dark); box-shadow: 0 12px 28px -14px rgba(229,35,42,.7); } }

.btn--dark { --bg: var(--black); --fg: #fff; }
@media (hover:hover) { .btn--dark:hover { --bg: #26262c; box-shadow: none; } }

.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
@media (hover:hover) { .btn--ghost:hover { --bg: var(--paper); --bd: var(--ink); box-shadow: none; } }

.btn--light { --bg: #fff; --fg: var(--black); }
@media (hover:hover) { .btn--light:hover { --bg: #ececef; box-shadow: none; } }

.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.35); }
@media (hover:hover) { .btn--outline-light:hover { --bg: #fff; --fg: var(--black); box-shadow: none; } }

.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .85rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 460px) { .btn-row > .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------- Site nav -- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem var(--gutter);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow .3s var(--ease);
}
.nav[data-scrolled="true"] { box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: flex; align-items: center; flex: none; }

/* Logo-only brand mark.
   Sized by HEIGHT so the artwork's aspect ratio is never distorted - the file
   is 350x295 and its visible mark fills the full height (only ~2% transparent
   padding vertically), so the rendered height is the visual height.
   ~17% of the file's WIDTH is transparent padding on the left/right, so a small
   negative left margin pulls the visible mark back onto the page gutter. */
.nav__logo {
  height: clamp(42px, 3.2vw + 30px, 60px);
  width: auto;                 /* preserves the 350:295 ratio */
  flex: none;                  /* a flex item would otherwise shrink and squash it */
  max-width: none;             /* overrides the global img { max-width: 100% } */
  margin-left: -0.4em;         /* compensates the artwork's own left padding */
  display: block;
}
.nav__mark {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; background: var(--black); color: #fff;
  font-size: .82rem; font-weight: 800; letter-spacing: 0;
}
.nav__sub { font-size: var(--t-micro); font-weight: 600; color: var(--ink-3); letter-spacing: 0; display: block; }
.nav__links { display: none; gap: 1.75rem; font-size: .875rem; font-weight: 500; }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links a:hover { color: var(--red); }

/* ---------------------------------------------------------------- Hero --- */
.hero { position: relative; padding-block: clamp(2.5rem,6vw,4.5rem) clamp(3rem,7vw,5rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2.5rem,6vw,4rem); align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

/* Sized independently of --t-h1 so the hero reads as a product headline
   rather than a poster. Scales smoothly from mobile to desktop. */
.hero__title {
  font-size: clamp(2.05rem, 1.35rem + 2.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__sub { margin-top: 1.25rem; max-width: 34ch; font-size: var(--t-lead); color: var(--ink-2); }

/* Founding-member price block */
.pricetag {
  display: inline-flex; flex-direction: column; gap: .15rem;
  margin-top: 1.75rem; padding: 1rem 1.35rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--white);
}
.pricetag__label { font-size: var(--t-micro); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.pricetag__amount { display: flex; align-items: baseline; gap: .5rem; font-size: clamp(2rem,1.6rem+1.6vw,2.6rem); font-weight: 800; letter-spacing: -.04em; }
.pricetag__amount s { font-size: .48em; font-weight: 600; color: var(--ink-3); letter-spacing: -.02em; }
.pricetag__per { font-size: .42em; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.pricetag__note { font-size: var(--t-sm); color: var(--ink-2); }

.urgency {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  padding: .5rem .9rem; border-radius: var(--r-pill);
  background: var(--red-soft); color: var(--red);
  font-size: var(--t-sm); font-weight: 700;
}
.urgency svg { width: 15px; height: 15px; flex: none; }

.hero .btn-row { margin-top: 1.75rem; max-width: 520px; }
.hero__trust { margin-top: 1.5rem; font-size: var(--t-sm); color: var(--ink-3); }

/* ------------------------------------------------------- Phone mockup ---- */
.phone {
  position: relative;
  width: min(370px, 78vw);
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a2a30, #0b0b0d 55%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.16);
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden; background: #fff;
}
.phone__screen iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Generic phone screenshot. The hero/demo previews override the height below
   so the existing scroll-tour animation still has something to translate. */
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.herodemo .phone__screen img,
.demoslide .phone__screen img { object-fit: cover; object-position: top center; }
.phone__notch {
  position: absolute; top: 20px; left: 50%; translate: -50% 0; z-index: 3;
  width: 92px; height: 26px; border-radius: var(--r-pill); background: #0b0b0d;
}
.phone--sm { width: 100%; padding: 8px; border-radius: 34px; }
.phone--sm .phone__screen { border-radius: 27px; }
.phone--sm .phone__notch { top: 14px; width: 62px; height: 18px; }

/* --------------------------------------------------------------- Demos --- */
.demos {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: .5rem var(--gutter) 1rem;
}
.demos::-webkit-scrollbar { display: none; }
.demos > * { scroll-snap-align: center; }
@media (min-width: 700px) { .demos { grid-auto-columns: 38%; } }
@media (min-width: 1040px) {
  .demos { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.demo { display: block; }
.demo__frame { transition: transform .35s var(--ease); }
@media (hover: hover) { .demo:hover .demo__frame { transform: translateY(-6px); } }
.demo__name { margin-top: 1rem; font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.demo__cat { margin-top: .1rem; font-size: var(--t-sm); color: var(--ink-3); }
.demo__go { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: var(--t-sm); font-weight: 700; color: var(--red); }
.section--dark .demo__name { color: #fff; }
.section--dark .demo__cat { color: rgba(255,255,255,.55); }

/* ==================================================== HERO LIVE DEMO ===== */
/* One phone, one iframe - the source changes, the frame never moves. */

.herodemo { position: relative; }
.herodemo .phone { position: relative; }

/* Content is clipped to the frame and its scrollbar hidden. */
.herodemo .phone__screen { overflow: hidden; }

.herodemo .phone__screen iframe,
.herodemo .phone__screen img {
  height: 1500px;              /* tall enough to render the whole card */
  transform: translateY(0);
  will-change: transform;
  pointer-events: none;        /* wheel/touch handled on the stage */
  transition: opacity .3s var(--ease);
  scrollbar-width: none;
}

/*
 * The static preview must scale by WIDTH, not be forced to 1500px: an iframe
 * reflowed to whatever width the phone frame had, an image cannot. Letting the
 * height follow the aspect ratio keeps the card edge-to-edge and uncropped, and
 * the scroll-tour still works because the JS measures offsetHeight.
 */
.herodemo .phone__screen img {
  height: auto;
  object-fit: fill;
}

.herodemo .phone__screen iframe::-webkit-scrollbar { display: none; }
.herodemo[data-swapping="true"] .phone__screen iframe,
.herodemo[data-swapping="true"] .phone__screen img { opacity: 0; }

.herodemo__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: rgba(11, 11, 13, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease), background-color .25s var(--ease);
}

.herodemo__nav svg { width: 17px; height: 17px; }
.herodemo__nav--prev { left: -14px; }
.herodemo__nav--next { right: -14px; }

.herodemo:hover .herodemo__nav,
.herodemo__nav:focus-visible { opacity: 1; }

@media (hover: none) { .herodemo__nav { opacity: 1; } }

.herodemo__dots {
  display: flex;
  justify-content: center;
  gap: .35rem;
  margin-top: 1rem;
}

.herodemo__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background-color .3s var(--ease), width .3s var(--ease);
}

.herodemo__dot[aria-selected="true"] { width: 20px; background: var(--red); }

.herodemo__caption { transition: opacity .25s var(--ease); }
.herodemo[data-swapping="true"] .herodemo__caption { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
  .herodemo .phone__screen iframe,
  .herodemo .phone__screen img,
  .herodemo__caption { transition: none !important; }
}

/* ================================================= DEMO SHOWCASE ========= */
/* Centre-focused carousel. Reuses the existing .phone mockup and demo data -
   only the presentation changed. */

.demoshow {
  position: relative;
  --slide-w: clamp(210px, 22vw, 268px);
  --gap: clamp(1rem, 2.4vw, 2.25rem);
}

/* Subtle depth behind the active phone - no heavy gradients. */
.demoshow__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  translate: -50% 0;
  width: min(760px, 82vw);
  height: min(520px, 46vw);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(229, 35, 42, .16) 0%, rgba(229, 35, 42, 0) 68%);
  filter: blur(6px);
}

.demoshow__viewport { overflow: hidden; padding-block: .5rem 0; }

/* Slides are re-ordered so the active one always sits in the middle slot.
   That keeps a card on BOTH sides at every position and makes the loop
   genuinely infinite without cloning (and without extra iframes). */
.demoshow__track {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  will-change: transform;
  transition: transform .55s var(--ease);
}

/* Directional nudge that reads as a horizontal slide during a change. */
.demoshow__track[data-shift="next"] { transform: translateX(-2.5%); }
.demoshow__track[data-shift="prev"] { transform: translateX(2.5%); }

.demoslide {
  position: relative;
  flex: 0 0 var(--slide-w);
  width: var(--slide-w);
  text-align: center;
  transition: opacity .45s var(--ease);
  opacity: .42;
}

.demoslide[data-active="true"] { opacity: 1; }

.demoslide__stage {
  transform: scale(.88);
  transform-origin: center bottom;
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: saturate(.75) brightness(.82);
}

.demoslide[data-active="true"] .demoslide__stage {
  transform: scale(1.1);
  filter: none;
}

.demoslide__phone {
  width: 100%;
  margin-inline: auto;
  transition: box-shadow .5s var(--ease);
}

.demoslide[data-active="true"] .demoslide__phone {
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .2);
}

/* The frame stays fixed; only the preview inside is translated (the card is on
   another origin, so its document cannot be scrolled directly). */
.demoslide .phone__screen { overflow: hidden; }

.demoslide .phone__screen iframe,
.demoslide .phone__screen img {
  height: 1500px;              /* tall enough to render the whole card */
  transform: translateY(0);
  will-change: transform;
  pointer-events: none;        /* wheel/touch is handled on the stage */
}

/* See the hero note above - scale by width so nothing is cropped. */
.demoslide .phone__screen img {
  height: auto;
  object-fit: fill;
}

/* --------------------------------------------------------------- meta --- */
.demoslide__meta {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  transition: opacity .45s var(--ease);
}

.demoslide__meta .demo__name {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .55);
  transition: color .45s var(--ease);
}

.demoslide__meta .demo__cat {
  margin-top: .15rem;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, .32);
  transition: color .45s var(--ease);
}

.demoslide[data-active="true"] .demo__name { color: #fff; }
.demoslide[data-active="true"] .demo__cat { color: rgba(255, 255, 255, .62); }

.demoslide__meta .demo__go {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}

.demoslide[data-active="true"] .demo__go { opacity: 1; pointer-events: auto; }
.demo__arrow { transition: transform .25s var(--ease); }

@media (hover: hover) {
  .demoslide__meta .demo__go:hover .demo__arrow { transform: translateX(4px); }
}

/* --------------------------------------------------------------- nav ---- */
.demoshow__nav {
  position: absolute;
  top: clamp(140px, 18vw, 230px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}

.demoshow__nav svg { width: 20px; height: 20px; }
.demoshow__nav--prev { left: clamp(.5rem, 3vw, 2.5rem); }
.demoshow__nav--next { right: clamp(.5rem, 3vw, 2.5rem); }
.demoshow__nav:active { transform: scale(.94); }

@media (hover: hover) {
  .demoshow__nav:hover { background: rgba(255, 255, 255, .2); }
}

/* --------------------------------------------------------------- foot --- */
.demoshow__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.demoshow__count {
  font-size: var(--t-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .4);
}

.demoshow__count b { color: #fff; }

.demoshow__dots { display: flex; gap: .4rem; }

.demoshow__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .25);
  transition: background-color .3s var(--ease), width .3s var(--ease);
}

.demoshow__dot[aria-selected="true"] { width: 22px; background: var(--red); }

.demoshow__hint { margin-top: 1rem; color: rgba(255, 255, 255, .38); }
.demoshow__hint--touch { display: none; }

@media (hover: none) {
  .demoshow__hint--desktop { display: none; }
  .demoshow__hint--touch { display: inline; }
}

/* ------------------------------------------------------- responsive ----- */
@media (max-width: 900px) {
  .demoshow { --slide-w: clamp(190px, 40vw, 240px); }
  .demoslide__stage { transform: scale(.9); }
  .demoslide[data-active="true"] .demoslide__stage { transform: scale(1.04); }
}

@media (max-width: 560px) {
  /* One main phone plus a sliver of the next */
  .demoshow { --slide-w: min(66vw, 260px); --gap: 1rem; }
  .demoslide__stage { transform: scale(.92); }
  .demoslide[data-active="true"] .demoslide__stage { transform: scale(1); }
  .demoshow__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .demoshow__track,
  .demoslide,
  .demoslide__stage,
  .demoslide .phone__screen iframe,
.demoslide .phone__screen img { transition: none !important; }
}

/* ------------------------------------------------------------ Features --- */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 940px) { .features { grid-template-columns: repeat(4,1fr); } }
.feature { background: var(--white); padding: 1.6rem 1.4rem; }
.feature__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 1rem; }
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: .98rem; font-weight: 700; letter-spacing: -.02em; }
.feature p { margin-top: .35rem; font-size: var(--t-sm); color: var(--ink-2); }

/* 17 cards do not fill the last row. This blank cell absorbs the remainder so
   the grid's 1px rule never shows as a grey strip, and no real card has to be
   stretched. Purely decorative - hidden in a single column, where every row is
   already full. */
.feature--filler { display: none; padding: 0; }
@media (min-width: 620px) { .feature--filler { display: block; grid-column: span 1; } }
@media (min-width: 940px) { .feature--filler { grid-column: span 3; } }

/* ------------------------------------------------------ Testimonials ----- */
/* Sliding-track carousel on a dark section. Reuses the existing tokens, pill
   dots and nav treatment from .demoshow so both carousels read as one system.
   Card count per view is driven purely by CSS; the JS reads it back, so there
   is one source of truth for the responsive behaviour. */
.tmshow { --tm-per: 1; --tm-gap: 1rem; position: relative; }

@media (min-width: 720px)  { .tmshow { --tm-per: 2; --tm-gap: 1.15rem; } }
@media (min-width: 1040px) { .tmshow { --tm-per: 3; --tm-gap: 1.35rem; } }

.tmshow__viewport { overflow: hidden; }

.tmshow__track {
  display: flex;
  gap: var(--tm-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .55s var(--ease);
  will-change: transform;
}

.tmcard {
  flex: 0 0 calc((100% - (var(--tm-per) - 1) * var(--tm-gap)) / var(--tm-per));
  display: flex;
}

.tmcard__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

@media (hover: hover) {
  .tmcard__inner:hover {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .18);
  }
}

/* Decorative closing quote, kept low-contrast so the words lead. */
.tmcard__mark {
  position: absolute;
  top: .35rem;
  right: 1.1rem;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--red);
  opacity: .16;
  pointer-events: none;
}

.tmcard__stars { display: flex; gap: .18rem; margin-bottom: .9rem; }
/* Fixed box so the SVGs cannot shift layout while fonts load. */
.tmcard__stars svg { width: 15px; height: 15px; flex: none; fill: var(--red); }

.tmcard__quote {
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
}

.tmcard__by {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}

/* --------------------------------------------------------------- foot --- */
.tmshow__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.1rem);
}

.tmshow__nav {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.tmshow__nav svg { width: 19px; height: 19px; }
.tmshow__nav:active { transform: scale(.94); }
.tmshow__nav[disabled] { opacity: .35; pointer-events: none; }

@media (hover: hover) {
  .tmshow__nav:hover { background: rgba(255, 255, 255, .2); }
}

.tmshow__dots { display: flex; gap: .4rem; }

.tmshow__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .26);
  transition: background-color .3s var(--ease), width .3s var(--ease);
}

.tmshow__dot[aria-selected="true"] { width: 22px; background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .tmshow__track { transition: none; }
}

/* ------------------------------------------------------------- Steps ----- */
.steps { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3,1fr); gap: 2rem; } }
.step { padding-top: 1.25rem; border-top: 2px solid var(--black); }
.section--dark .step { border-top-color: var(--red); }
.step__no { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--red); }
.step h3 { margin-top: .5rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.025em; }
.step p { margin-top: .4rem; font-size: .9rem; color: var(--ink-2); }
.section--dark .step p { color: rgba(255,255,255,.65); }

/* -------------------------------------------------------- Comparison ----- */
.compare { display: grid; gap: 1rem; }
@media (min-width: 780px) { .compare { grid-template-columns: repeat(2,1fr); gap: 1.25rem; } }
.compare__col { padding: 1.6rem 1.5rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.compare__col--hero { border-color: var(--black); background: var(--black); color: #fff; }
.compare__title { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.compare__col--hero .compare__title { color: var(--red); }
.compare__list { margin-top: 1.15rem; display: grid; gap: .6rem; }
.compare__list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; }
.compare__list svg { width: 17px; height: 17px; flex: none; margin-top: .17rem; color: var(--ink-3); }
.compare__col--hero .compare__list svg { color: var(--red); }

/* ------------------------------------------------------------- Checks ---- */
.checks { display: grid; gap: .75rem; }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2,1fr); gap: .8rem 2rem; } }
.checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; font-weight: 500; }
.checks svg { width: 19px; height: 19px; flex: none; margin-top: .18rem; color: var(--red); }

/* ------------------------------------------------------------ Pricing ---- */
.plan {
  max-width: 460px; margin-inline: auto; padding: clamp(1.6rem,4vw,2.4rem);
  border-radius: var(--r-lg); background: var(--white);
  border: 1.5px solid var(--line); box-shadow: var(--shadow); text-align: center;
}
.plan--dark { background: var(--black); color: #fff; border-color: rgba(255,255,255,.14); }
.plan__badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem;
  border-radius: var(--r-pill); background: var(--red); color: #fff;
  font-size: var(--t-micro); font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.plan__price { display: flex; align-items: baseline; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.plan__amount { font-size: clamp(3rem,2.2rem+3vw,4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan__per { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.plan--dark .plan__per { color: rgba(255,255,255,.6); }
.plan__was { margin-top: .5rem; font-size: .95rem; color: var(--ink-3); }
.plan__was s { color: var(--ink-3); }
.plan__lock {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.15rem;
  padding: .55rem 1rem; border-radius: var(--r-pill);
  background: var(--red-soft); color: var(--red); font-size: var(--t-sm); font-weight: 700;
}
.plan--dark .plan__lock { background: rgba(229,35,42,.16); }
.plan__lock svg { width: 15px; height: 15px; }
.plan__list { margin-top: 1.5rem; display: grid; gap: .5rem; text-align: left; }
.plan__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.plan__list svg { width: 17px; height: 17px; flex: none; margin-top: .18rem; color: var(--green); }
.plan--dark .plan__list svg { color: #46d17f; }
.plan .btn { margin-top: 1.6rem; }
.plan__fine { margin-top: .9rem; font-size: var(--t-micro); color: var(--ink-3); }

/* Offer-closed state */
.plan--closed .plan__badge { background: var(--ink-3); }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.countdown div {
  min-width: 60px; padding: .55rem .4rem; border-radius: var(--r-sm);
  background: var(--paper); text-align: center;
}
.plan--dark .countdown div { background: rgba(255,255,255,.08); }
.countdown b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.plan--dark .countdown span { color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------------- FAQ ---- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 650; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq p { padding-bottom: 1.2rem; font-size: .93rem; color: var(--ink-2); max-width: 68ch; }

/* --------------------------------------------------------- Final CTA ----- */
.final { text-align: center; }
.final .h2 { max-width: 18ch; margin-inline: auto; }

/* ------------------------------------------------------------- Footer ---- */
.foot { padding-block: 2.5rem 3rem; background: var(--black); color: rgba(255,255,255,.55); font-size: var(--t-sm); }
.foot__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot a:hover { color: #fff; }
.foot__legal { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--t-micro); color: rgba(255,255,255,.38); }

/* -------------------------------------------------------- Sticky CTA ----- */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem var(--gutter);
  padding-bottom: calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.stickycta[data-show="true"] { transform: none; }
.stickycta__text { flex: 1; min-width: 0; line-height: 1.2; }
.stickycta__price { font-size: 1rem; font-weight: 800; letter-spacing: -.03em; }
.stickycta__note { font-size: var(--t-micro); color: var(--ink-3); }
.stickycta .btn { flex: none; min-height: 46px; padding-inline: 1.2rem; font-size: .875rem; }
@media (min-width: 860px) { .stickycta { display: none; } }
body[data-sticky] .foot__legal { padding-bottom: 4rem; }
@media (min-width: 860px) { body[data-sticky] .foot__legal { padding-bottom: 1.5rem; } }

/* =========================================================== FORMS ======= */
.formpage { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.formcard {
  width: 100%; max-width: 560px; margin: clamp(1rem,4vw,3rem) auto;
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: clamp(1.35rem,4vw,2.25rem);
}
.formcard--wide { max-width: 720px; }

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; margin-bottom: .35rem; font-size: var(--t-sm); font-weight: 650; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font-size: 1rem;   /* 16px min - stops iOS zoom */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.field__hint { margin-top: .3rem; font-size: var(--t-micro); color: var(--ink-3); }
.field__err { margin-top: .3rem; font-size: var(--t-micro); font-weight: 650; color: var(--red); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .875rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; flex: none; margin-top: .12rem; accent-color: var(--red); }

.alert { padding: .85rem 1rem; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 600; margin-bottom: 1.25rem; }
.alert--err { background: var(--red-soft); color: var(--red-dark); }
.alert--ok { background: rgba(18,140,74,.09); color: var(--green); }

/* Order summary */
.summary { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 1.35rem; background: var(--paper); }
.summary__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.summary__amount { font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.summary__amount span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.summary__list { margin-top: 1.1rem; display: grid; gap: .45rem; }
.summary__list li { display: flex; gap: .55rem; font-size: .875rem; }
.summary__list svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: var(--green); }

/* Steps progress */
.progress { display: flex; gap: .35rem; margin-bottom: 1.5rem; }
.progress div { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--paper-2); overflow: hidden; }
.progress div[data-on="true"] { background: var(--red); }
.stepwrap > fieldset { border: 0; padding: 0; margin: 0; }
.stepwrap > fieldset[hidden] { display: none; }
.steplabel { font-size: var(--t-micro); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* Repeatable rows (services, gallery) */
.repeat { display: grid; gap: .6rem; }
.repeat__row { display: flex; gap: .5rem; align-items: center; }
.repeat__row input { flex: 1; min-width: 0; }
.repeat__del { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--paper); color: var(--ink-3); font-size: 1.2rem; line-height: 1; }
@media (hover:hover) { .repeat__del:hover { background: var(--red-soft); color: var(--red); } }

/* ============================================================ ADMIN ====== */
.admin { display: grid; min-height: 100vh; background: var(--paper); }

.admin__bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 3vw, 2rem);
  background: var(--black); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.admin__bar a {
  font-size: var(--t-sm); font-weight: 600;
  color: rgba(255,255,255,.62);
  padding: .35rem .7rem; border-radius: var(--r-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

@media (hover: hover) {
  .admin__bar a:hover { color: #fff; background: rgba(255,255,255,.1); }
}

.admin__main {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(1.5rem,3.5vw,2.75rem) clamp(1rem,3vw,2rem) 4rem;
}

.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); margin-bottom: 2rem; }
.stat { padding: 1.15rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat span { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: .85rem; white-space: nowrap; }
table.data th, table.data td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th {
  position: sticky; top: 0; z-index: 1;
  font-size: var(--t-micro); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); background: var(--paper);
}
table.data tbody tr { transition: background-color .15s var(--ease); }

@media (hover: hover) { table.data tbody tr:hover { background: var(--paper); } }
table.data tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------- dashboard layout --- */
.adminhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.adminhead__title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; }
.adminhead__sub { margin-top: .3rem; font-size: var(--t-sm); color: var(--ink-2); }

.quickactions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* KPI cards ------------------------------------------------------------- */
.kpis {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

@media (min-width: 720px)  { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .kpis { grid-template-columns: minmax(0, 1fr); } }

.kpi {
  display: block;
  position: relative;
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

@media (hover: hover) {
  .kpi:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
  .kpi:hover .kpi__go { opacity: 1; }
}

.kpi__label {
  display: block;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kpi__value {
  display: block;
  margin-top: .55rem;
  font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi__go {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  font-size: var(--t-micro);
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  transition: opacity .2s var(--ease);
}

/* A thin status stripe rather than a coloured card */
.kpi--ok   { box-shadow: inset 3px 0 0 var(--green); }
.kpi--warn { box-shadow: inset 3px 0 0 #d68c0a; }
.kpi--bad  { box-shadow: inset 3px 0 0 var(--red); }

/* Panels ---------------------------------------------------------------- */
.admingrid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1040px) {
  .admingrid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

.panel--flush { padding: 0; overflow: hidden; }

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.panel__title { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.panel__sub { margin-top: .2rem; font-size: var(--t-sm); color: var(--ink-2); }
.panel__link { font-size: var(--t-sm); font-weight: 700; color: var(--red); }
.panel__empty { padding: 2rem 0; text-align: center; color: var(--ink-3); font-size: var(--t-sm); }

/* Segmented control ----------------------------------------------------- */
.segmented {
  display: inline-flex;
  gap: .15rem;
  padding: .2rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  flex-wrap: wrap;
}

.segmented a {
  padding: .35rem .85rem;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 650;
  color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.segmented a[aria-current="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.08)); }

@media (hover: hover) { .segmented a:not([aria-current="true"]):hover { color: var(--ink); } }

/* Bar chart ------------------------------------------------------------- */
.chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 200px;
  padding-top: .5rem;
  /* four faint horizontal guides, drawn behind the bars */
  background-image: repeating-linear-gradient(
      to top, var(--line) 0 1px, transparent 1px 25%);
  background-size: 100% calc(100% - .5rem);
  background-position: bottom;
  background-repeat: no-repeat;
}

.chart__col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }

.chart__bar {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--red) 0%, #f2565c 100%);
  opacity: .9;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

@media (hover: hover) {
  .chart__col:hover .chart__bar { opacity: 1; transform: scaleY(1.02); transform-origin: bottom; }
}

@media (hover: hover) { .chart__col:hover .chart__bar { opacity: 1; } }

.chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: var(--t-micro);
  color: var(--ink-3);
}

/* Breakdown + facts ----------------------------------------------------- */
.breakdown { display: grid; gap: .5rem; }

.breakdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .65rem;
  border-radius: var(--r-sm);
  background: var(--paper);
}

.breakdown b { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.facts { display: grid; gap: .1rem; }

.facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--t-sm);
}

.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--ink-2); }
.facts b { font-weight: 700; }
.facts b.good { color: var(--green); }
.facts b.bad { color: var(--red); }

/* Activity feed --------------------------------------------------------- */
.activity { display: grid; gap: .1rem; }

.activity li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: baseline;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--t-sm);
}

.activity li:last-child { border-bottom: 0; }
.activity time { font-size: var(--t-micro); color: var(--ink-3); white-space: nowrap; }
.activity__text { min-width: 0; }

.activity__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.activity__dot--paid, .activity__dot--sub, .activity__dot--card { background: var(--green); }
.activity__dot--failed, .activity__dot--cancel { background: var(--red); }
.activity__dot--customer { background: #d68c0a; }

/* Filters --------------------------------------------------------------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }

.filters__search {
  flex: 1;
  min-width: 240px;
  padding: .6rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .9rem;
  background: var(--white);
}

.filters__search:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.filterbar {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}

.daterange { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }

.daterange input {
  padding: .38rem .6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .8rem;
  background: var(--white);
}

/* Table extras ---------------------------------------------------------- */
.tablewrap--flush { border: 0; border-radius: 0; }
table.data td .sub { display: block; font-size: var(--t-micro); color: var(--ink-3); }
table.data td .slug { display: block; font-size: var(--t-micro); color: var(--red); font-weight: 600; }
table.data td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
table.data td.empty { color: var(--ink-3); text-align: center; padding-block: 2rem; }

.pill { display: inline-block; padding: .2rem .6rem; border-radius: var(--r-pill); font-size: var(--t-micro); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill--ok { background: rgba(18,140,74,.12); color: var(--green); }
.pill--warn { background: rgba(214,140,10,.14); color: #96620a; }
.pill--bad { background: var(--red-soft); color: var(--red-dark); }
.pill--mute { background: var(--paper-2); color: var(--ink-2); }

/* ==================================================== CAMPAIGN LAYER ===== */
/* Festive launch campaign (currently Ganesh Chaturthi). Kept deliberately
   restrained: one thin accent rule as the only festive device, otherwise the
   normal black / white / BeatsCracker-red product language. */

.tricolour {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  margin-inline: auto;
  background: linear-gradient(90deg,
      #ff9933 0 33.33%, #ffffff 33.33% 66.66%, #138808 66.66% 100%);
}

.plan--dark .tricolour { margin-bottom: 1rem; }

/* ------------------------------------------------- creative showcase ----- */
/* Comparison-section artwork: the campaign poster shown as framed art beside
   supporting copy, rather than dumped in as a full-width banner. */
.showcase {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
}

.showcase__art { position: relative; min-width: 0; }

.showcase__figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.showcase__figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .3s var(--ease);
}

.showcase__figure[data-swapping="true"] img { opacity: .35; }

/* Language toggle - swaps the poster without adding a second image block */
.showcase__langs {
  display: inline-flex;
  gap: .25rem;
  margin-bottom: .85rem;
  padding: .25rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
}

.showcase__lang {
  padding: .4rem 1rem;
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 650;
  color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.showcase__lang[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

@media (hover: hover) {
  .showcase__lang:not([aria-pressed="true"]):hover { color: var(--ink); }
}

.showcase__body { min-width: 0; }

/* -------------------------------------------------- campaign banner ------ */
.campaign {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--black);
  color: #fff;
  overflow: hidden;
}

@media (min-width: 860px) {
  .campaign { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
}

.campaign__body { min-width: 0; }
.campaign__body > .tricolour { margin-inline: 0; margin-bottom: 1.1rem; }

.campaign__kicker {
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.campaign__title {
  margin-top: .6rem;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.campaign__text {
  margin-top: .9rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, .72);
  font-size: var(--t-lead);
}

.campaign__art {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  /* The poster is tall; show its top where the offer sits */
  max-height: 420px;
}

.campaign__art img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 859px) {
  .campaign__art { max-height: 300px; object-fit: cover; }
  .campaign__art img { object-fit: cover; object-position: top center; height: 300px; }
}

/* ------------------------------------------------------- offer popup ----- */
.offerpop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}

.offerpop[data-open="true"] { opacity: 1; visibility: visible; }
.offerpop[hidden] { display: none; }

.offerpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 13, .74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.offerpop__card {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 620px;                       /* sized around the 2:1 banner */
  max-height: calc(100dvh - 2rem);
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 20px;
  background: var(--white);
  /* overflow:hidden keeps the artwork's corners flush with the card's */
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(11, 11, 13, .6), 0 2px 6px rgba(11, 11, 13, .08);
  transform: translateY(12px) scale(.985);
  transition: transform .35s var(--ease);
}

.offerpop[data-open="true"] .offerpop__card { transform: none; }

/* ---- artwork: full-width banner across the top, never cropped ---------- */
.offerpop__art {
  display: block;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  /* matches the source file exactly (1774x887) so nothing is lost */
  aspect-ratio: 2 / 1;
  cursor: pointer;
}

.offerpop__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* show the whole banner, never crop it */
  transition: transform .35s var(--ease);
}

@media (hover: hover) {
  .offerpop__art:hover img { transform: scale(1.015); }
}

/* Make it read as clickable without adding chrome over the artwork. */
.offerpop__art::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 var(--red);
  transition: box-shadow .25s var(--ease);
  pointer-events: none;
}

@media (hover: hover) {
  .offerpop__art:hover::after { box-shadow: inset 0 0 0 3px var(--red); }
}

.offerpop__art:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* ---- content ---- */
.offerpop__body {
  padding: clamp(1.5rem, 3.5vw, 2rem);
  overflow-y: auto;                        /* scrolls before the card does */
}

.offerpop__body > .tricolour { margin-inline: 0; }

.offerpop__kicker {
  margin-top: .85rem;
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.offerpop__title {
  margin-top: .45rem;
  font-size: clamp(1.22rem, 1.05rem + .8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
  text-wrap: balance;
}

/* The price is the loudest thing in the dialog. */
.offerpop__price {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-top: 1.15rem;
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
}

.offerpop__price span { font-size: .3em; font-weight: 650; color: var(--ink-2); letter-spacing: -.01em; }
.offerpop__price s { font-size: .28em; font-weight: 650; color: var(--ink-3); }

.offerpop__note {
  margin-top: .7rem;
  margin-bottom: 1.35rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
}

.offerpop__body .btn {
  min-height: 52px;
  box-shadow: 0 10px 22px -12px rgba(229, 35, 42, .75);
}

@media (hover: hover) {
  .offerpop__body .btn:hover { transform: translateY(-1px); }
}

.offerpop__close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(11, 11, 13, .18);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

@media (hover: hover) {
  .offerpop__close:hover { background: #fff; transform: rotate(90deg); }
}

.offerpop__later {
  display: block;
  width: 100%;
  margin-top: .6rem;
  padding: .5rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-3);
  transition: color .2s var(--ease);
}

@media (hover: hover) { .offerpop__later:hover { color: var(--ink-2); } }

/* ---- mobile: stack, with the artwork as a short banner ---- */
@media (max-width: 699px) {
  .offerpop { padding: .85rem; }
  .offerpop__card { max-height: calc(100dvh - 1.7rem); }
  .offerpop__body { padding: 1.25rem 1.25rem 1.5rem; }
  .offerpop__note { margin-bottom: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .offerpop__card, .offerpop__close, .offerpop__body .btn { transition: none !important; }
}

/* ------------------------------------------------------------- Reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: var(--d,0s); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===================================== TEMPORARY TEST COUPON (removable) == */
.couponform { margin-top: 1.25rem; }
.couponform__label {
  display: block; margin-bottom: .35rem;
  font-size: var(--t-sm); font-weight: 650;
}
.couponform__row { display: flex; gap: .5rem; }
.couponform__row input {
  flex: 1; min-width: 0; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--white);
}
.couponform__row input:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.couponform__row input[readonly] { background: var(--paper); color: var(--ink-2); }
.couponform__row .btn { flex: none; }
.couponform__ok { margin-top: .35rem; font-size: var(--t-micro); font-weight: 650; color: var(--green); }

.couponline {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px dashed var(--line);
  font-size: var(--t-sm); color: var(--ink-2);
}
.couponline b { font-weight: 700; color: var(--green); }
.couponline--total { border-top: 0; padding-top: .2rem; margin-top: .35rem; color: var(--ink); }
.couponline--total b { font-size: 1.25rem; letter-spacing: -.03em; color: var(--ink); }
.couponline__note { margin-top: .3rem; font-size: var(--t-micro); color: var(--ink-3); }

/* ====================================================== LEGAL PAGES ====== */
/* Long-form policy text. Reuses the existing type scale and tokens - this only
   adds reading rhythm (measure, heading spacing, lists) for prose, which the
   marketing sections never needed. */

.legal__head { padding-block: 3.25rem 2rem; border-bottom: 1px solid var(--line); }
.legal__updated {
  margin-top: 1rem;
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.legal { padding-block: 2.5rem 4rem; }

.legal h2 {
  margin-top: 2.75rem;
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.legal h2:first-child { margin-top: 0; }

.legal h3 {
  margin-top: 1.75rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.legal p,
.legal li {
  margin-top: .85rem;
  color: var(--ink-2);
  line-height: 1.7;
  text-wrap: pretty;
}

.legal ul,
.legal ol { margin-top: .85rem; padding-left: 1.25rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-top: .5rem; }
.legal li::marker { color: var(--ink-3); }

.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Pulled-out statement for the points customers must not miss (no refunds). */
.legal__note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: var(--r-sm);
}
.legal__note p { margin-top: .5rem; }
.legal__note p:first-child { margin-top: 0; }

.legal__contact {
  margin-top: 3rem;
  padding: 1.35rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.legal__contact p { margin-top: .5rem; }
.legal__contact p:first-of-type { margin-top: 0; }

/* Footer legal row - sits above the copyright line. */
.foot__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.foot__legal-links a { font-size: var(--t-sm); }

@media (max-width: 560px) {
  .legal__head { padding-block: 2.25rem 1.5rem; }
  .legal { padding-block: 2rem 3rem; }
  .legal h2 { margin-top: 2.25rem; }
  .foot__legal-links { gap: .85rem 1.25rem; }
}

/* Header actions: customer login next to the primary CTA. Grouped so .nav keeps
   its brand | links | actions distribution. */
.nav__actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex: none;
}

.nav__login {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav__login:hover { color: var(--red); }

/* Narrow phones: the logo plus two actions is tight, so trim the gap and size
   rather than hiding the login - customers need to reach it from a phone. */
@media (max-width: 420px) {
  .nav__actions { gap: .6rem; }
  .nav__login { font-size: .8rem; }
}
