/* ==========================================================
   Control — Homepage styles
   Built on design tokens from tokens.css. Stays within the
   Control visual system: dark-first, modular cards, one purple,
   marketing-only pastel accents, Outfit only.
   ========================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ctrl-neutral-900);
  color: var(--ctrl-fg);
  font-family: var(--ctrl-font-ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

::selection {
  background: var(--ctrl-primary-500);
  color: var(--ctrl-white);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 32px;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
}

.eyebrow {
  font-family: var(--ctrl-font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ctrl-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ctrl-neutral-300);
  display: inline-block;
}

.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--ctrl-font-display);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.022em;
  line-height: 0.96;
  margin: 0;
  color: var(--ctrl-white);
  text-wrap: balance;
  font-feature-settings: "ss01", "kern";
}

/* Editorial: sentence-case headlines, smaller premium scale, tight optical tracking.
   Period gets the lavender accent for a deliberate "stop". */
.display.size-xxl { font-size: clamp(56px, 8.2vw, 128px); letter-spacing: -0.028em; line-height: 0.94; }
.display.size-xl  { font-size: clamp(48px, 6.6vw, 104px); letter-spacing: -0.026em; line-height: 0.96; }
.display.size-lg  { font-size: clamp(40px, 5.4vw, 88px);  letter-spacing: -0.024em; line-height: 0.98; }

/* Narrow-mobile (Galaxy S-series, iPhone SE-15) — display headings
   sized for the actual viewport. Bigger than they were before so the
   hero still feels confident on phone, while staying within bounds. */
@media (max-width: 480px) {
  .display.size-xxl { font-size: clamp(52px, 14vw, 64px); line-height: 0.96; letter-spacing: -0.03em; }
  .display.size-xl  { font-size: clamp(40px, 11.5vw, 52px); line-height: 1.0; }
  .display.size-lg  { font-size: clamp(36px, 10vw, 46px);  line-height: 1.02; }
}
.display.size-md  { font-size: clamp(30px, 3.8vw, 60px);  letter-spacing: -0.02em;  line-height: 1.02; }
.display.size-sm  { font-size: clamp(22px, 2.6vw, 36px);  letter-spacing: -0.018em; line-height: 1.05; }

/* Editorial supporting text — small, muted, breathing room, narrow. */
.lede {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ctrl-neutral-200);
  max-width: 28ch;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.012em;
}

.muted { color: var(--ctrl-fg-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--ctrl-radius-md);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
              color 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn .keycap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
  margin-left: 4px;
}

.btn-primary {
  background: var(--ctrl-primary-700);
  color: var(--ctrl-white);
}
.btn-primary:hover { background: var(--ctrl-primary-600); }

.btn-light {
  background: var(--ctrl-white);
  color: var(--ctrl-black);
}
.btn-light:hover { background: var(--ctrl-neutral-100); }

.btn-ghost {
  background: transparent;
  color: var(--ctrl-fg);
  border: 1px solid var(--ctrl-neutral-300);
}
.btn-ghost:hover {
  border-color: var(--ctrl-fg);
  color: var(--ctrl-white);
}

.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }

/* ---------- Pill chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ctrl-neutral-300);
  color: var(--ctrl-fg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  background: transparent;
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ctrl-accent-cyan);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 19, 19, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__stack {
  position: relative;
  display: inline-block;
  /* Reserve the wider wordmark's footprint so nothing jumps when we swap. */
  height: 20px;
  width: calc(20px * 679 / 191);
}
.brand__logo {
  display: block;
  height: 100%;
  width: auto;
}
.brand__stack .brand__logo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
.brand__stack .brand__logo--glyph {
  height: 22px;
  width: auto;
  top: 50%;
  transform: translateY(-50%) scale(0.94);
  opacity: 0;
}
/* Scrolled state: wordmark gently fades out, glyph eases in. */
.site-header.is-scrolled .brand__logo--type {
  opacity: 0;
  transform: scale(0.98);
}
.site-header.is-scrolled .brand__logo--glyph {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.brand--footer .brand__logo {
  height: 40px;
  width: auto;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-weight: 500;
  font-size: 14px;
  color: var(--ctrl-neutral-100);
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 160ms, background 160ms;
}
.nav a:hover { color: var(--ctrl-white); background: rgba(255,255,255,0.04); }

/* ============================================================
   MOBILE MENU — off-canvas panel
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(19, 19, 19, 0.97);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  flex-direction: column;
  padding: 20px clamp(20px, 5vw, 32px) clamp(24px, 5vw, 40px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 320ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s;
}
.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  margin-bottom: clamp(32px, 8vw, 64px);
}
.mobile-menu__header .brand img { height: 36px; width: auto; display: block; }
.mobile-menu__close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ctrl-white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.mobile-menu__close:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.mobile-menu__nav a {
  font-family: var(--ctrl-font-display);
  font-weight: 500;
  font-size: clamp(30px, 7vw, 44px);
  color: var(--ctrl-white);
  letter-spacing: -0.025em;
  line-height: 1.1;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 200ms ease, transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  text-decoration: none;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: var(--ctrl-primary-500);
  transform: translateX(6px);
  outline: none;
}
.mobile-menu__footer {
  padding-top: 28px;
}
.mobile-menu__cta {
  width: 100%;
  justify-content: center;
  height: 52px;
  font-size: 15px;
}
/* Subtle staggered entry for nav links when panel opens */
.mobile-menu__nav a {
  opacity: 0;
  transform: translateY(8px);
}
.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    color 200ms ease;
}
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 140ms; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 260ms; }
.mobile-menu.is-open .mobile-menu__footer {
  animation: mm-rise 420ms cubic-bezier(0.22, 0.61, 0.36, 1) 280ms backwards;
}
@keyframes mm-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu.is-open .mobile-menu__nav a,
  .mobile-menu.is-open .mobile-menu__footer {
    transition: opacity 120ms linear !important;
    animation: none !important;
    transform: none !important;
  }
}

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__actions .btn { height: 40px; }

.hamburger { display: none; width: 40px; height: 40px; border-radius: 6px; }
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger svg { stroke: var(--ctrl-white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 112px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  column-gap: 72px;
  row-gap: 0;
  align-items: start;
}
.hero__copy {
  z-index: 2;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}
.hero__title {
  margin-top: 56px;
}
.hero__title .period {
  color: var(--ctrl-primary-500);
}
/* ---- Hero title: controlled line breaks at specific widths.
   Default: all <br> hidden so the title wraps naturally. */
.hero__title br { display: none; }
/* 780-1080px: 2-line treatment - break between "control." and "Less" */
@media (max-width: 1080px) and (min-width: 780px) {
  .hero__title br.br-md { display: inline; }
}
/* <=520px: 4-line stack - break between every word */
@media (max-width: 520px) {
  .hero__title br.br-xs { display: inline; }
}
/* Editorial off-axis placement: supporting copy sits in the top-right,
   well away from the headline. Akis-style. */
.hero__sub {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  margin-top: 8px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ctrl-neutral-200);
  font-weight: 400;
  letter-spacing: 0.012em;
}
.hero__visual {
  grid-column: 2;
  grid-row: 2;
}
.hero__ctas {
  margin-top: 64px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__stats {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 540px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__stat .num {
  font-family: var(--ctrl-font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--ctrl-white);
  line-height: 1;
  display: block;
}
.hero__stat .lbl {
  margin-top: 8px;
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ctrl-fg-muted);
}

/* Hero visual composition */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  min-height: 520px;
}
.hero__orb {
  position: absolute;
  inset: -8% -12% 12% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, #7A4ED9 0%, rgba(122, 78, 217, 0.55) 22%, rgba(122, 78, 217, 0) 65%);
  filter: blur(20px);
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

/* ============================================================
   HERO VISUAL — SVG composition
   hero_main.svg anchors the stage; logo + two timer widgets
   overlap with intentional breathing room. Hover triggers a
   subtle parallax: timers drift up, logo drifts opposite,
   main scales ~1%. All within 4–8px of motion.
   ============================================================ */
.hero__visual--svg .hv-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* the SVG asset has aspect 548:576 ≈ 0.951; pin a working box
     so absolute children can position by % off a known frame */
  display: block;
}
.hv-stage img {
  position: absolute;
  display: block;
  /* premium easing — calm, no bounce */
  transition:
    transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter   600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

/* main visual: anchored bottom-right of stage; defines the frame */
.hv-main {
  right: 0;
  top: 8%;
  width: 82%;
  height: auto;
  z-index: 1;
  border-radius: 12px;
  /* premium drop + violet rim lift */
  filter:
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 40px rgba(122, 78, 217, 0.18));
}

/* floating brand/logo card — top-right, hanging above the main */
.hv-logo {
  top: -4%;
  right: calc(-4% - 30px);
  width: 27.2%;
  height: auto;
  z-index: 3;
  border-radius: 14px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}

/* tall timer card widget — left side, overlapping main's left edge */
.hv-timer-2 {
  top: 22%;
  left: 0;
  width: 26%;
  height: auto;
  z-index: 3;
  border-radius: 10px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

/* small dark timer pill — bottom-right, breaking out of bottom edge */
.hv-timer-1 {
  bottom: calc(4% - 10px);
  right: calc(-2% - 20px);
  width: 32%;
  height: auto;
  z-index: 4;
  border-radius: 6px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}

/* ---- hover parallax: gentle per-element float, max ~8px ----
   Each floating SVG responds to its OWN hover, not the whole stage,
   so movement feels intentional and layered rather than synchronized.
   Specificity is bumped with [data-rev] so these win over the reveal
   animation's settled state. */
@media (hover: hover) {
  /* Re-enable pointer events on the otherwise aria-hidden stage */
  .hero__visual--svg, .hv-stage, .hv-stage img { pointer-events: auto; }

  /* Logo card — drifts inward (toward center) */
  .hv-logo:hover,
  .hv-logo[data-rev].is-in:hover {
    transform: translate(-5px, -5px);
  }
  /* Tall timer — drifts outward, up-left */
  .hv-timer-2:hover,
  .hv-timer-2[data-rev].is-in:hover {
    transform: translate(-6px, -4px);
  }
  /* Small timer pill — drifts outward, down-right */
  .hv-timer-1:hover,
  .hv-timer-1[data-rev].is-in:hover {
    transform: translate(6px, 5px);
  }
  /* Main visual — very subtle scale when hovered directly */
  .hv-main:hover,
  .hv-main[data-rev].is-in:hover {
    transform: scale(1.012);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-stage img { transition: none; }
  .hero__visual--svg:hover .hv-main,
  .hero__visual--svg:hover .hv-timer-1,
  .hero__visual--svg:hover .hv-timer-2,
  .hero__visual--svg:hover .hv-logo {
    transform: none;
  }
}
/* Legacy float / product / glyph rules removed — replaced by the
   .hv-* composition above. */

/* ============================================================
   TRUST STRIP — logos / shortcut row
   ============================================================ */
.trust {
  padding-block: 36px;
  border-block: 1px solid rgba(255,255,255,0.06);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust__lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ctrl-fg-muted);
}
.trust__items {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  color: var(--ctrl-fg-muted);
}
.trust__items .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ctrl-neutral-100);
}

/* ============================================================
   PROBLEM + SETUP — combined section
   Centered editorial header → CTAs → 3-column step grid
   ============================================================ */
.problem {
  background: var(--ctrl-neutral-900);
  padding-block: clamp(96px, 11vw, 160px);
  position: relative;
}
.problem::before,
.problem::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 64px));
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.problem::before { top: 0; }
.problem::after  { bottom: 0; }

.problem__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 112px;
}
.problem__head .eyebrow { justify-content: center; }
.problem__head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ctrl-neutral-300);
  display: inline-block;
}
.problem__title {
  margin: 40px auto 0;
  color: var(--ctrl-white);
}
.problem__title .period { color: var(--ctrl-primary-500); }
.problem__lede {
  margin: 48px auto 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ctrl-neutral-200);
  font-weight: 400;
  letter-spacing: 0.012em;
  text-wrap: pretty;
}
.problem__cta {
  margin-top: 48px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 3-column step grid */
.problem__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.problem__steps::before,
.problem__steps > .problem-step + .problem-step::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255,255,255,0.07);
}
.problem-step {
  position: relative;
  padding: 8px clamp(20px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.problem-step + .problem-step::before {
  left: 0;
}
.problem-step__ic {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ctrl-neutral-100);
  opacity: 0.95;
}
.problem-step__ic svg,
.problem-step__ic img {
  width: 26px;
  height: 26px;
}
.problem-step__title {
  margin: 0;
  font-family: var(--ctrl-font-ui);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ctrl-white);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.problem-step__title .kbd {
  display: inline-flex; align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--ctrl-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.problem-step__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ctrl-neutral-200);
  font-weight: 400;
  letter-spacing: 0.008em;
  max-width: 32ch;
}

/* ============================================================
   WIDGETS GRID
   ============================================================ */
.widgets {
  background: var(--ctrl-neutral-900);
}
.widgets__head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 96px;
  margin-bottom: 96px;
}
.widgets__head p {
  margin: 0;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ctrl-neutral-200);
  font-weight: 400;
  line-height: 1.85;
  max-width: 28ch;
  letter-spacing: 0.012em;
}

/* ============================================================
   WIDGET GRID — Reference-style structured masonry.
   12-col grid with explicit row/col placements. Each card sits
   in a track that matches its SVG's natural aspect, so widgets
   never stretch and the wall feels intentional, not collaged.

   Layout (desktop):
   ┌──────────┬─────────────────────┬─────────┐
   │ Hardware │       To do         │  Clock  │
   │  (tall)  │      (wide)         ├─────────┤
   │          │                     │  Media  │
   ├──────────┴──────────┬──────────┴─────────┤
   │      Notes          │   Volume mixer     │
   │     (square)        ├─────────┬──────────┤
   │                     │  Timer  │  Games   │
   ├──────────┬──────────┼─────────┼──────────┤
   │   Flip   │   Roll   │ Random  │ Playback │
   ├──────────┼──────────┴─────────┴──────────┤
   │   Calc   │   Unit  │      + More         │
   └──────────┴─────────┴─────────────────────┘
   ============================================================ */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  /* rows auto-size to content; row-spans + aspect-ratios pull
     everything into alignment naturally */
}

.ws {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* lift cards off the dark section bg */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 28px -14px rgba(0, 0, 0, 0.55);
  transition:
    transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Subtle hover lift — premium, no bounce */
.ws:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 40px -18px rgba(0, 0, 0, 0.65);
}
/* Slight directional variance for depth — odd cards drift up-left, even up-right */
.widget-grid .ws:nth-child(odd):hover  { transform: translate(-2px, -5px); }
.widget-grid .ws:nth-child(even):hover { transform: translate( 2px, -5px); }
@media (prefers-reduced-motion: reduce) {
  .ws, .ws:hover { transition: none; transform: none; }
}
/* Each card's aspect-ratio is pinned so cells in a row share the
   same height exactly. The SVG fills the card via object-fit:cover;
   any millimetric mismatch with the SVG's natural ratio (the
   widgets have built-in margin) is invisibly absorbed. */
.ws img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ----- Band 1 (rows 1–2): hardware | todo | clock + media stack ----- */
.ws--ha { grid-column: 1 / span 3;  grid-row: 1 / span 2; aspect-ratio: 100 / 223; }
.ws--td { grid-column: 4 / span 6;  grid-row: 1 / span 2; aspect-ratio: 200 / 213; }
.ws--ck { grid-column: 10 / span 3; grid-row: 1;          aspect-ratio: 100 / 107; }
.ws--mc { grid-column: 10 / span 3; grid-row: 2;          aspect-ratio: 100 / 107; }

/* ----- Band 2 (rows 3–4): notes | volume mixer + timer + games ----- */
.ws--nt { grid-column: 1 / span 6;  grid-row: 3 / span 2; aspect-ratio: 200 / 213; }
.ws--vm { grid-column: 7 / span 6;  grid-row: 3;          aspect-ratio: 100 / 51;  }
.ws--tm { grid-column: 7 / span 3;  grid-row: 4;          aspect-ratio: 100 / 107; }
.ws--gm { grid-column: 10 / span 3; grid-row: 4;          aspect-ratio: 100 / 107; }

/* ----- Band 3 (row 5): four utility widgets in a row ----- */
.ws--fl { grid-column: 1 / span 3;  grid-row: 5; aspect-ratio: 100 / 107; }
.ws--rl { grid-column: 4 / span 3;  grid-row: 5; aspect-ratio: 100 / 107; }
.ws--rn { grid-column: 7 / span 3;  grid-row: 5; aspect-ratio: 100 / 107; }
.ws--pb { grid-column: 10 / span 3; grid-row: 5; aspect-ratio: 100 / 107; }

/* ----- Band 4 (row 6): more-widgets CTA spans full width ----- */
.ws--cta { grid-column: 1 / span 12; grid-row: 6; aspect-ratio: 16 / 5; }

/* ============================================================
   Library closing note — a quiet single line under the grid.
   ============================================================ */
.widgets__more {
  margin: clamp(48px, 5vw, 72px) 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.widgets__more-lead {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--ctrl-neutral-100, rgba(255,255,255,0.92));
  letter-spacing: 0.005em;
}
.widgets__more-sub {
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.005em;
  max-width: 56ch;
  line-height: 1.55;
}
.ws--cta {
  background: var(--ctrl-neutral-900);
  /* explicitly not interactive — kill the .ws hover lift */
  pointer-events: none;
}
.ws-cta {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(40px, 4.2vw, 64px) clamp(40px, 4.2vw, 64px) clamp(28px, 3vw, 40px);
  box-sizing: border-box;
}
.ws-cta__title {
  margin: 0;
  font-family: var(--ctrl-font-display);
  font-weight: 500;
  font-size: clamp(64px, 7.4vw, 116px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--ctrl-fg);
  /* allow spans to stack */
  display: block;
}
.ws-cta__num,
.ws-cta__word {
  display: block;
}
.ws-cta__word { letter-spacing: -0.04em; }
/* Quiet inline row of widget names, separated by middots, anchored to bottom */
.ws-cta__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: auto 0 0; /* push to bottom of card */
  padding: 0;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.005em;
}
.ws-cta__list li {
  display: inline-flex;
  align-items: center;
}
.ws-cta__list li::after {
  content: "·";
  margin: 0 0.7em;
  color: rgba(255, 255, 255, 0.3);
}
.ws-cta__list li:last-child::after { content: none; }

/* ----- Responsive: collapse to 6-col, then to 1-col ----- */
@media (max-width: 980px) {
  .widget-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  /* Band 1: Hardware tall left, Todo single-row top, Clock/Media single rows.
     Todo can't row-span 2 here because its 0.95 aspect at 3-col width
     becomes much shorter than Hardware's 0.46 aspect — would leave a gap. */
  .ws--ha { grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .ws--td { grid-column: 4 / span 3; grid-row: 1; }
  .ws--ck { grid-column: 4 / span 3; grid-row: 2; }
  .ws--mc { grid-column: 1 / span 3; grid-row: 3; }
  /* Band 2 */
  .ws--nt { grid-column: 4 / span 3; grid-row: 3; }
  .ws--vm { grid-column: 1 / span 6; grid-row: 4; }
  .ws--tm { grid-column: 1 / span 3; grid-row: 5; }
  .ws--gm { grid-column: 4 / span 3; grid-row: 5; }
  /* Band 3 */
  .ws--fl { grid-column: 1 / span 3; grid-row: 6; }
  .ws--rl { grid-column: 4 / span 3; grid-row: 6; }
  .ws--rn { grid-column: 1 / span 3; grid-row: 7; }
  .ws--pb { grid-column: 4 / span 3; grid-row: 7; }
  /* Band 4 */
  .ws--cta { grid-column: 1 / span 6; grid-row: 8; aspect-ratio: 6 / 2.4; }
}

.w {
  position: relative;
  border-radius: var(--ctrl-radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ctrl-neutral-700);
  color: var(--ctrl-fg);
}
.w__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.w__hd .name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: inherit;
}
.w__hd .ic { width: 16px; height: 16px; color: inherit; opacity: 0.7; }

/* widget palette variants — marketing accents only */
.w--white   { background: var(--ctrl-white);          color: var(--ctrl-black); }
.w--violet  { background: var(--ctrl-accent-violet);  color: var(--ctrl-black); }
.w--cyan    { background: var(--ctrl-accent-cyan);    color: var(--ctrl-black); }
.w--yellow  { background: var(--ctrl-accent-yellow);  color: var(--ctrl-black); }
.w--coral   { background: var(--ctrl-accent-coral);   color: var(--ctrl-black); }
.w--pink    { background: var(--ctrl-accent-pink);    color: var(--ctrl-black); }
.w--lavender{ background: var(--ctrl-primary-100);    color: var(--ctrl-black); }
.w--dark    { background: var(--ctrl-neutral-700);    color: var(--ctrl-fg); }

/* span helpers */
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.row-2 { grid-row: span 2; }
.row-3 { grid-row: span 3; }

/* widget bodies */
.w-fps { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.w-fps .val {
  font-family: var(--ctrl-font-display);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: 0.005em;
  line-height: 0.95;
}
.w-fps .val .u { font-size: 0.32em; font-weight: 500; margin-left: 4px; opacity: 0.55; }
.w-fps .meta { display: flex; gap: 18px; }
.w-fps .meta .it { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.w-fps .meta .it strong { display: block; font-family: var(--ctrl-font-display); font-size: 22px; font-weight: 500; letter-spacing: 0.005em; margin-top: 4px; color: inherit; text-transform: none; opacity: 1; }

.w-clock { justify-content: space-between; height: 100%; }
.w-clock .day { font-size: 11px; opacity: 0.6; font-weight: 500; }
.w-clock .t {
  font-family: var(--ctrl-font-display);
  font-weight: 500;
  font-size: clamp(46px, 6vw, 80px);
  letter-spacing: 0.005em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.w-clock .t .ap { font-size: 0.3em; opacity: 0.5; }
.w-clock .lab { font-size: 11px; font-weight: 700; opacity: 0.55; letter-spacing: 0.05em; }

.w-mixer .rows { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; flex: 1; }
.w-mixer .r { display: flex; align-items: center; gap: 10px; }
.w-mixer .r .nm { font-size: 12px; font-weight: 500; flex: 1; }
.w-mixer .r .bar { width: 100%; max-width: 200px; height: 4px; background: rgba(0,0,0,0.18); border-radius: 999px; position: relative; flex: 1.4; }
.w-mixer .r .bar::after { content:""; position:absolute; left:0; top:0; bottom:0; width: var(--v, 60%); background: var(--ctrl-black); border-radius: 999px; }

.w-timer .t {
  font-family: var(--ctrl-font-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 104px);
  letter-spacing: 0.005em;
  line-height: 0.95;
  margin: auto 0;
}
.w-timer .ctl { display: flex; gap: 10px; margin-top: 10px; }
.w-timer .ctl span { width: 28px; height: 28px; border-radius: 999px; background: rgba(0,0,0,0.1); display: grid; place-items: center; }
.w-timer .ctl svg { width: 14px; height: 14px; }

.w-media .play {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--ctrl-black);
  color: var(--ctrl-white);
  display: grid; place-items: center;
  margin: auto;
}
.w-media .play svg { width: 22px; height: 22px; }
.w-media .seek {
  height: 3px; border-radius: 999px; background: rgba(0,0,0,0.18); width: 100%;
  margin-top: 16px; position: relative;
}
.w-media .seek::after { content:""; position:absolute; left:0; top:0; bottom:0; width: 38%; background: var(--ctrl-black); border-radius: 999px; }
.w-media .row {
  display:flex; justify-content: space-between; font-size: 10px; font-weight: 700; opacity: 0.7;
  margin-top: 8px;
}

.w-notes .toolbar { display:flex; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.12); margin-bottom: 12px; }
.w-notes .toolbar .ic { width: 22px; height: 22px; border-radius: 4px; background: rgba(0,0,0,0.08); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.w-notes .lines { display:flex; flex-direction: column; gap: 6px; }
.w-notes .ln { height: 6px; background: rgba(0,0,0,0.1); border-radius: 999px; }
.w-notes .ln.short { width: 70%; }
.w-notes .ln.medium { width: 88%; }

.w-calc .screen {
  background: rgba(0,0,0,0.06); border-radius: 6px; padding: 8px 12px;
  font-family: var(--ctrl-font-display); font-size: 22px; text-align: right;
  margin-bottom: 12px; font-weight: 500; letter-spacing: 0.01em;
}
.w-calc .pad { display:grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.w-calc .pad span { background: rgba(0,0,0,0.08); border-radius: 4px; display:grid; place-items: center; font-size: 12px; font-weight: 700; }
.w-calc .pad span.op { background: rgba(0,0,0,0.16); }

.w-games .row { display:flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.w-games .row:last-child { border-bottom: 0; }
.w-games .row .ic { width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,0.08); display: grid; place-items: center; }
.w-games .row .ic svg { width: 14px; height: 14px; }
.w-games .row .nm { font-size: 13px; font-weight: 700; }

.w-search {
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.w-search svg { width: 14px; height: 14px; color: rgba(0,0,0,0.4); }
.w-search .pl { font-size: 12px; font-weight: 500; color: rgba(0,0,0,0.5); }
.w-browser .url-row {
  background: rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  margin-bottom: 12px;
}
.w-browser .preview {
  background: rgba(0,0,0,0.08);
  border-radius: 8px;
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}

.w-screenshot .frame {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b1f5a, #6b3fbf 60%, #d97bff);
  position: relative;
  overflow: hidden;
}
.w-screenshot .frame::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 6px;
}
.w-screenshot .frame::after {
  content: "snip";
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* "more widgets" tile  */
.w-more {
  display: grid;
  place-items: center;
  text-align: center;
}
.w-more .num {
  font-family: var(--ctrl-font-display);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
}
.w-more .txt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.75;
}

/* ============================================================
   POWER TOOLS — Tabbed showcase (Akis/Claude reference)
   Centered headline → tab pills → big lavender stage → 2-col footer
   ============================================================ */
.power {
  background: var(--ctrl-neutral-800);
}
.power__head {
  text-align: center;
  margin-bottom: 56px;
}
.power__head .eyebrow { justify-content: center; }
.power__head .eyebrow::before,
.power__head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ctrl-neutral-300);
  display: inline-block;
}
.power__head .eyebrow::after { margin-left: 0; }
.power__title {
  margin: 40px auto 0;
  text-align: center;
}

/* Tab pills */
.power-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 56px;
  padding: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  width: fit-content;
  flex-wrap: wrap;
}
.power-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--ctrl-font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--ctrl-neutral-200);
  letter-spacing: 0.005em;
  transition: background 180ms cubic-bezier(0.2,0.8,0.2,1), color 180ms;
  white-space: nowrap;
}
.power-tab svg,
.power-tab img { width: 16px; height: 16px; opacity: 0.7; }
.power-tab:hover { color: var(--ctrl-white); }
.power-tab.is-active {
  background: var(--ctrl-neutral-700);
  color: var(--ctrl-white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.power-tab.is-active svg,
.power-tab.is-active img { opacity: 1; }

/* Power panel — wraps stage + footer */
.power-panel {
  display: grid;
  gap: 56px;
}
.power-panel[hidden] { display: none; }

/* The big lavender stage */
.power-stage {
  background: var(--ctrl-primary-100);
  border-radius: var(--ctrl-radius-2xl);
  padding: clamp(40px, 6vw, 88px);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: grid;
  place-items: center;
}
/* Subtle background contour lines for texture (Akis reference cue) */
.power-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(122,78,217,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(122,78,217,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.power-stage__art {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  border-radius: var(--ctrl-radius-lg);
  overflow: hidden;
  background: var(--ctrl-neutral-900);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 30px 60px -20px rgba(43, 27, 91, 0.25);
}
.power-stage__art img { width: 100%; display: block; }

/* Full-bleed image variant — image fills the entire stage, no lavender padding */
.power-stage--bleed {
  padding: 0;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.power-stage--bleed::before { display: none; }
.power-stage--bleed .power-stage__art {
  width: 100%;
  border-radius: 16px;
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}
.power-stage--bleed .power-stage__art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}

/* HUD variant */
.power-stage__art--hud {
  background: var(--ctrl-neutral-900);
  padding: 28px;
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  width: min(100%, 720px);
}
.hud-tile {
  background: var(--ctrl-neutral-700);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ctrl-white);
}
.hud-tile--wide { grid-column: span 2; }
.hud-tile--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.hud-tile--cyan { background: var(--ctrl-accent-cyan); color: var(--ctrl-black); }
.hud-tile--yellow { background: var(--ctrl-accent-yellow); color: var(--ctrl-black); }

/* ---------- Second Monitor variant ---------- */
.power-stage__art--monitors {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  aspect-ratio: 16 / 9;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 0;
}
.mon { display: flex; flex-direction: column; align-items: center; }
.mon--main { width: 62%; }
.mon--side { width: 32%; }
.mon__screen {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--ctrl-neutral-900);
  box-shadow: 0 30px 60px -20px rgba(43, 27, 91, 0.3);
  overflow: hidden;
  position: relative;
}
.mon--main .mon__screen {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(122,78,217,0.35), transparent 55%),
    radial-gradient(100% 70% at 80% 90%, rgba(0,0,0,0.6), transparent 60%),
    linear-gradient(160deg, #2a1e4a 0%, #0e0b1a 100%);
  display: grid;
  place-items: center;
}
.mon__label {
  font-family: var(--ctrl-font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
}
.mon--side .mon__screen--hud {
  aspect-ratio: 4 / 3;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
  background: var(--ctrl-neutral-900);
}
.mon-tile {
  background: var(--ctrl-neutral-700);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ctrl-white);
  min-width: 0;
}
.mon-tile--wide { grid-column: span 3; flex-direction: row; align-items: center; justify-content: space-between; }
.mon-tile--cyan { background: var(--ctrl-accent-cyan); color: var(--ctrl-black); }
.mon-tile--yellow { background: var(--ctrl-accent-yellow); color: var(--ctrl-black); }
.mon-l {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}
.mon-v {
  font-family: var(--ctrl-font-display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
.mon-name { font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-live {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ctrl-accent-red, #e84a4a);
  color: var(--ctrl-white);
  padding: 3px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.mon__stand {
  width: 26%;
  height: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(6px, 0.8vw, 10px);
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 100%);
  border-radius: 0 0 8px 8px;
}
.mon--side .mon__stand { width: 38%; }
.hud-l {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hud-v {
  font-family: var(--ctrl-font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hud-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ctrl-white);
}
.hud-live {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ctrl-accent-cyan);
}

/* Presets variant */
.power-stage__art--presets {
  background: transparent;
  border: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: min(100%, 720px);
}
.preset-card {
  background: var(--ctrl-white);
  border-radius: var(--ctrl-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ctrl-black);
  border: 1px solid rgba(0,0,0,0.04);
}
.preset-card--active {
  background: var(--ctrl-neutral-900);
  color: var(--ctrl-white);
  border-color: var(--ctrl-primary-700);
  box-shadow: 0 12px 30px -10px rgba(122,78,217,0.4);
}
.preset-card__lbl {
  font-family: var(--ctrl-font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
}
.preset-card__dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.preset-card__dots span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0,0,0,0.1);
}
.preset-card--active .preset-card__dots span { background: rgba(255,255,255,0.12); }
.preset-card--active .preset-card__dots span:nth-child(1) { background: var(--ctrl-accent-cyan); }
.preset-card--active .preset-card__dots span:nth-child(2) { background: var(--ctrl-accent-yellow); }
.preset-card--active .preset-card__dots span:nth-child(3) { background: var(--ctrl-accent-coral); }
.preset-card__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ctrl-fg-muted);
}
.preset-card--active .preset-card__meta { color: rgba(255,255,255,0.6); }

/* Footer: copy block, left aligned */
.power-footer {
  display: block;
  padding: 0 clamp(8px, 4vw, 48px);
}
.power-footer__copy {
  text-align: left;
  max-width: 60ch;
}
.power-footer__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ctrl-neutral-200);
  font-weight: 400;
  letter-spacing: 0.012em;
  max-width: 60ch;
  text-align: left;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--ctrl-neutral-900); }
.faq__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 96px; align-items: start; }
.faq__title p { margin: 88px 0 0; margin-left: clamp(0px, 4vw, 56px); color: var(--ctrl-neutral-200); font-size: 13px; font-weight: 400; line-height: 1.85; max-width: 26ch; letter-spacing: 0.012em; }
.faq__list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--ctrl-white);
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.faq-item summary .plus::before { inset: 8px 0; height: 2px; }
.faq-item summary .plus::after  { inset: 0 8px; width: 2px; transition: transform 200ms; }
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-item__body {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ctrl-neutral-100);
  font-weight: 400;
  max-width: 70ch;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  background: var(--ctrl-neutral-900);
}
.final__card {
  position: relative;
  background: var(--ctrl-primary-700);
  color: var(--ctrl-white);
  border-radius: var(--ctrl-radius-2xl);
  padding: clamp(48px, 6vw, 88px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.final__card::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.final__title { color: var(--ctrl-white); margin-top: 56px; }
.final__sub { margin-top: 88px; margin-left: clamp(0px, 4vw, 56px); max-width: 26ch; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 400; line-height: 1.85; letter-spacing: 0.012em; }
.final__cta { margin-top: 56px; margin-left: clamp(0px, 4vw, 56px); display: flex; gap: 12px; flex-wrap: wrap; }
.final__cta .btn-light { color: var(--ctrl-black); }
.final__specs {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}
.final__specs .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
}
.final__specs .row:last-child { border-bottom: 1px solid rgba(255,255,255,0.2); }
.final__specs .row .k { font-weight: 700; opacity: 0.8; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.final__specs .row .v { font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ctrl-neutral-900);
  padding: 80px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 36ch;
}
.footer__brand .brand--footer .brand__logo {
  height: 44px;
}
.footer__brand p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ctrl-fg-muted);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Product links: inline column, right-aligned, generous rhythm */
.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-top: 6px;
}
.footer__nav a {
  font-family: var(--ctrl-font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ctrl-neutral-100);
  position: relative;
  padding-bottom: 2px;
  transition: color 180ms ease;
}
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 280ms ease;
}
.footer__nav a:hover { color: var(--ctrl-white); }
.footer__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--ctrl-fg-muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom .social {
  display: flex; gap: 10px;
}
.footer__bottom .social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--ctrl-neutral-100);
  transition: background 160ms, color 160ms;
}
.footer__bottom .social a:hover { background: rgba(255,255,255,0.08); color: var(--ctrl-white); }
.footer__bottom .social svg { width: 16px; height: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 48px; }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__sub { grid-column: 1; grid-row: 2; justify-self: start; max-width: 32ch; }
  .hero__visual { grid-column: 1; grid-row: 3; min-height: 480px; max-width: 640px; margin-inline: auto; width: 100%; }
  /* Stacked-hero composition: keep main centered, drop the big CTRL
     floating plate (was overflowing chaotically), reanchor the two
     timer cards so they sit inside the visual's bounds. */
  .hv-main { width: 84%; left: 8%; right: auto; top: 5%; }
  .hv-logo { display: none; }
  .hv-timer-2 { width: 26%; left: 0; top: 32%; }
  .hv-timer-1 { width: 32%; right: 3%; bottom: 4%; left: auto; }
  .problem { padding-block: 80px; }
  .problem__head { margin-bottom: 56px; }
  .problem__steps {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 760px;
    margin-inline: auto;
  }
  .problem-step + .problem-step::before {
    left: clamp(20px, 3vw, 48px); right: clamp(20px, 3vw, 48px); top: 0; bottom: auto; width: auto; height: 1px;
  }
  /* Restack as icon-left / content-right so the row uses its full width */
  .problem-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 8px;
    padding: 28px clamp(20px, 3vw, 48px);
    align-items: start;
  }
  .problem-step__ic { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
  .problem-step__title { grid-column: 2; grid-row: 1; }
  .problem-step__body { grid-column: 2; grid-row: 2; max-width: 56ch; }
  .widgets__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    margin-bottom: 40px;
  }
  .widgets__head p {
    max-width: 64ch;
    margin-bottom: 0;
  }
  .power-footer { gap: 32px; }
  .faq__inner { grid-template-columns: 1fr; gap: 32px; }
  .final__card { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__nav { align-items: flex-start; }
}

/* Swap desktop nav for hamburger before in-between widths start wrapping links */
@media (max-width: 960px) {
  .nav, .site-header__actions .btn { display: none; }
  .site-header__actions .btn-primary { display: inline-flex; }
  .hamburger { display: grid; place-items: center; }
}

/* Trust strip — center the whole strip starting just above mobile breakpoint */
@media (max-width: 742px) {
  .trust__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .trust__items {
    justify-content: center;
    gap: 18px;
  }
}

/* Power Tools tabs — break out of shared pill into separated chips */
@media (max-width: 626px) {
  .power-tabs {
    background: transparent;
    border: none;
    padding: 0;
    gap: 8px;
    border-radius: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 480px;
  }
  .power-tab {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    justify-content: center;
    height: 44px;
  }
  .power-tab.is-active {
    background: var(--ctrl-neutral-700);
    border-color: rgba(255,255,255,0.10);
  }
}

@media (max-width: 720px) {
  .container { padding-inline: 24px; }
  .hero { padding-top: 24px; padding-bottom: 72px; }

  /* Nav simplification: no CTA button on phone — only logo + hamburger */
  .site-header__actions .btn-primary { display: none !important; }

  /* Drop the decorative line before the hero eyebrow on phone */
  .hero__copy .eyebrow::before { display: none; }

  /* Bigger hero title — feels more confident on phone */
  .display.size-xxl { font-size: clamp(60px, 10vw, 80px); line-height: 0.95; }

  /* Hero flow: flatten hero__copy so eyebrow/title/ctas/stats/visual
     all become direct flex items of hero__inner; reorder via `order`.
     Mobile order: eyebrow -> title -> CTAs -> stats -> hero visual. */
  .hero__inner {
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }
  .hero__copy { display: contents !important; }
  .hero__copy > .eyebrow { order: 1; }
  .hero__title { order: 2; margin-top: 28px; }
  .hero__ctas { order: 3; margin-top: 36px; }
  .hero__stats { order: 4; margin-top: 44px; }
  .hero__visual { order: 5; margin-top: 44px; }

  /* Hero CTAs — both buttons take equal full width, stacked */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero__ctas .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    height: 52px;
    padding: 0 20px;
  }
  /* Hero stats — three columns, contained within the padded container */
  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 24px;
  }
  .hero__stat .num { font-size: clamp(22px, 6.5vw, 28px); }
  .hero__stat .lbl { font-size: 10px; letter-spacing: 0.08em; }
  /* ----- Hero visual — intentional mobile composition -----
     aspect-ratio matches hv-main's natural aspect (548:652) so the
     box is always the right shape and no children overflow past it.
     max-width 460 keeps it from dominating on 600-720px phones. */
  .hero__visual {
    width: 100%;
    max-width: 460px;
    margin-inline: auto !important;
    aspect-ratio: 548 / 652;
    min-height: 0 !important;
    position: relative;
    overflow: hidden;
  }
  .hero__visual--svg .hv-stage {
    position: absolute;
    inset: 0;
  }
  .hv-main {
    width: 92%;
    left: 4%;
    right: auto;
    top: 4%;
    bottom: auto;
    height: auto;
    border-radius: 14px;
  }
  /* The big CTRL plate stays hidden — it's the heaviest float and
     dominates on phone. Keep the two small timer cards as designed
     accents, positioned safely within the hero__visual bounds. */
  .hv-logo { display: none !important; }
  .hv-timer-2 {
    display: block !important;
    width: 26%;
    left: 0;
    right: auto;
    top: 34%;
    bottom: auto;
    border-radius: 10px;
  }
  .hv-timer-1 {
    display: block !important;
    width: 30%;
    right: 2%;
    left: auto;
    bottom: 6%;
    top: auto;
    border-radius: 6px;
  }

  /* Orb: smaller, softer, no full-frame purple wash on phone */
  .hero__orb {
    inset: auto;
    top: 12%;
    left: 12%;
    width: 76%;
    height: 60%;
    background:
      radial-gradient(circle at 50% 50%,
        rgba(122, 78, 217, 0.45) 0%,
        rgba(122, 78, 217, 0.2) 30%,
        rgba(122, 78, 217, 0) 70%);
    filter: blur(30px);
    opacity: 0.5;
    border-radius: 50%;
  }
  /* Widget grid — only show 4 representative widgets on mobile */
  .widget-grid > .ws--td,
  .widget-grid > .ws--ck,
  .widget-grid > .ws--mc,
  .widget-grid > .ws--tm,
  .widget-grid > .ws--fl,
  .widget-grid > .ws--rl,
  .widget-grid > .ws--rn,
  .widget-grid > .ws--pb { display: none; }
  .widget-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }
  .widget-grid > .ws {
    grid-column: 1 !important;
    grid-row: auto !important;
    aspect-ratio: auto !important;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
  .widget-grid .ws img {
    height: auto;
    object-fit: contain;
  }
  .widgets__head { margin-bottom: 32px; }
  .span-3, .span-4, .span-5 { grid-column: span 3; }
  .span-6, .span-7, .span-8 { grid-column: span 6; }
  .footer__top { grid-template-columns: 1fr; }
}

/* =========================================================
   In-between tablet/large-phone (521–720px)
   Side-by-side buttons feel more polished than full-width
   stacked rectangles in this width range.
   ========================================================= */
@media (min-width: 521px) and (max-width: 720px) {
  .hero__ctas {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }
  .hero__ctas .btn {
    width: auto !important;
    max-width: none !important;
    flex: 0 1 auto;
    height: 48px !important;
    padding: 0 22px !important;
  }
}

/* =========================================================
   Dedicated narrow-mobile hero (<=520px)
   Fixes the real causes of the overflow / clipping on phone:
   - explicit positive offsets only (no calc(-x - y))
   - buttons clamped to 100% of the padded container
   - bigger headline so it feels intentional on phone
   - hero visual capped to 100% with overflow:hidden as a safety net
   ========================================================= */
@media (max-width: 520px) {
  .container {
    padding-inline: 20px;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Hero copy column owns its grid cell completely — no surprises */
  .hero__copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Headline — meaningfully bigger and contained */
  .hero__title.display.size-xxl {
    font-size: clamp(56px, 14vw, 72px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.03em !important;
    margin-top: 28px;
    /* let long words break before they overflow */
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* Button group: equal left/right via container, no negative tricks */
  .hero__ctas {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 36px 0 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box;
  }
  .hero__ctas .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 52px !important;
    padding: 0 18px !important;
    justify-content: center !important;
    white-space: nowrap;
  }

  /* Stats: 3 equal columns inside the same content container */
  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    padding-top: 24px;
    margin-top: 48px;
  }

  /* Hero visual: hard-contained, no negative offsets, hv-logo gone */
  .hero__visual {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    overflow: hidden;
    min-height: 440px;
    box-sizing: border-box;
  }
  .hero__visual--svg .hv-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hv-main {
    position: absolute !important;
    width: 92% !important;
    left: 4% !important;
    right: auto !important;
    top: 4% !important;
    bottom: auto !important;
    height: auto !important;
    max-width: 92% !important;
  }
  .hv-logo { display: none !important; }
  .hv-timer-2 {
    position: absolute !important;
    width: 30% !important;
    left: 0 !important;
    right: auto !important;
    top: 38% !important;
    bottom: auto !important;
  }
  .hv-timer-1 {
    position: absolute !important;
    width: 34% !important;
    right: 2% !important;
    left: auto !important;
    bottom: 4% !important;
    top: auto !important;
  }

  /* Tone down the purple orb on phone — it was washing the whole
     composition. Smaller bloom, lower opacity, sits subtly behind
     the product visual rather than tinting the entire frame. */
  .hero__orb {
    inset: auto !important;
    top: 18% !important;
    left: 15% !important;
    width: 70% !important;
    height: 55% !important;
    background:
      radial-gradient(circle at 50% 50%,
        rgba(122, 78, 217, 0.55) 0%,
        rgba(122, 78, 217, 0.25) 30%,
        rgba(122, 78, 217, 0) 70%) !important;
    filter: blur(28px) !important;
    opacity: 0.45 !important;
    border-radius: 50% !important;
  }

  /* Tighten the empty space above the product on phone */
  .hero__inner { gap: 28px !important; }
  .hero__visual { margin-top: 0 !important; min-height: 360px !important; }
  .hv-main { top: 0 !important; }
}

/* Hide the orb entirely at very narrow widths — too messy below 390px */
@media (max-width: 390px) {
  .hero__orb { display: none !important; }
}

/* =========================================================
   Reveal animations — subtle fade + slight rise on enter
   ========================================================= */
[data-rev] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--rev-i, 0) * 70ms + var(--rev-base, 0ms));
  will-change: opacity, transform;
}
[data-rev="soft"] {
  transform: translate3d(0, 12px, 0);
  transition-duration: 600ms, 700ms;
}
[data-rev].is-in {
  opacity: 1;
  transform: none;
  /* Drop entry-stagger delay so subsequent transitions (e.g. hover) feel instant */
  transition-delay: 0s;
}
/* Don't fight existing transforms on hero floating layers */
.hv-logo[data-rev],
.hv-timer-1[data-rev],
.hv-timer-2[data-rev] {
  transform: translate3d(0, 10px, 0);
}
.hv-logo[data-rev].is-in,
.hv-timer-1[data-rev].is-in,
.hv-timer-2[data-rev].is-in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-rev] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
