/* =========================================================================
   SuperMoo — Site chrome + reusable section components
   (depends on tokens.css)
   ========================================================================= */

/* ---- Announcement bar --------------------------------------------------- */
.announce {
  background: var(--ink); color: var(--on-ink);
  font-size: var(--t-small); text-align: center;
}
.announce a { display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px var(--gutter); flex-wrap: wrap; }
.announce .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: var(--pink); padding: 3px 8px; border-radius: var(--r-pill); font-weight: 700;
}
.announce .arr { color: var(--pink); transition: transform .2s var(--ease); }
.announce a:hover .arr { transform: translateX(3px); }

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-stuck { border-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.nav__inner { display: flex; align-items: center; gap: var(--s-6);
  height: 76px; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.nav .logo img { height: 42px; transform: translateY(-3px); }
.nav__links { display: flex; align-items: center; gap: var(--s-5); margin-left: var(--s-4); }
.nav__links a { font-size: var(--t-small); font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  transition: color .15s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }
.nav__login { font-size: var(--t-small); font-weight: 700; color: var(--ink); }
.nav__login:hover { color: var(--pink-ink); }
.nav__burger { display: none; }

/* ---- Features mega-menu ---- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: var(--t-small); font-weight: 600; color: var(--ink-soft); transition: color .15s var(--ease); }
.nav__trigger svg { width: 11px; height: 11px; transition: transform .2s var(--ease); }
.nav__item--mega:hover .nav__trigger,
.nav__item--mega:focus-within .nav__trigger { color: var(--ink); }
.nav__item--mega:hover .nav__trigger svg,
.nav__item--mega:focus-within .nav__trigger svg { transform: rotate(180deg); }

.nav__item--mega::after { content: ""; position: absolute; top: 100%; left: 0; width: 220px; height: 16px; }

.mega { position: absolute; top: 100%; left: 0; margin-top: 12px; overflow: hidden;
  width: min(480px, 92vw); background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 60; }
.nav__item--mega:hover .mega,
.nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-sm);
  min-width: 0; transition: background .15s var(--ease); }
.mega__item:hover { background: var(--paper-3); }
.mega__icon { flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--pink-wash); color: var(--pink-deep); display: grid; place-items: center; }
.mega__icon svg { width: 19px; height: 19px; }
.mega__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega__txt b { font-family: var(--font-display); font-weight: 400; font-size: 16px; text-transform: uppercase; letter-spacing: 0.015em; color: var(--ink); line-height: 1.05; }
.mega__txt i { font-size: 12px; font-style: normal; color: var(--ink-mute); line-height: 1.4; }
.mega__item--all .mega__icon { background: var(--ink); color: var(--on-ink); }

/* "Why SuperMoo?" dropdown — two columns, items flow down then across (Features-style) */
.mega--why { width: min(540px, 92vw); }
.mega--why .mega__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; }

/* ---- Mobile menu (burger) ---------------------------------------------- */
.nav__burger {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-pill);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink);
}
.nav__burger span { width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed; inset: 0; z-index: 40; background: var(--paper);
  padding: 92px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.nav__mobile.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nav__mobile > a {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .015em;
  font-size: clamp(22px, 6vw, 30px); color: var(--ink); padding: 13px 2px; border-bottom: 1px solid var(--line);
}
.nav__mobile > a:active { color: var(--pink-ink); }
.nav__mobile-group {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 22px; padding: 0 2px 6px;
}
.nav__mobile-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.nav__mobile-actions .btn { width: 100%; justify-content: center; }
@media (min-width: 881px) { .nav__mobile { display: none; } }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__login { display: none; }
  .nav__right > .btn--pink { display: none; }   /* CTA lives in the mobile menu */
  .nav__burger { display: inline-flex; }
}

/* ---- Section header pattern -------------------------------------------- */
.sec-head { max-width: 720px; }
.sec-head .eyebrow { display: inline-block; margin-bottom: var(--s-4); }
.sec-head .lead { margin-top: var(--s-4); }
.sec-head--center { margin-inline: auto; text-align: center; }

/* ---- Feature grid ------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.feat {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-6); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.feat__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pink-wash); color: var(--pink-ink); margin-bottom: var(--s-4);
}
.feat__icon svg { width: 22px; height: 22px; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--ink-mute); font-size: var(--t-small); line-height: 1.5; }
@media (max-width: 880px) { .feat-grid { grid-template-columns: 1fr; } }
@media (min-width: 881px) and (max-width: 1040px) { .feat-grid { grid-template-columns: repeat(2,1fr); } }

/* ---- Glyph (simple geometric icon marks; circle/square/diamond only) ---- */
.glyph { width: 22px; height: 22px; }

/* ---- Logo cloud --------------------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 56px); margin-top: var(--s-6); }
.logos__logo { display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink-faint); opacity: .82;
  transition: color .2s var(--ease), opacity .2s var(--ease); }
.logos__logo:hover { color: var(--ink-soft); opacity: 1; }
.logos__logo--col { flex-direction: column; gap: 3px; }
.logos__row { display: inline-flex; align-items: center; gap: 9px; }
.logos__ic { height: 27px; width: 27px; flex: none; display: block; }
.logos__wm { font-family: var(--font-body); font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.logos__wm--auto    { font-weight: 600; letter-spacing: .07em; font-size: 18px; }
.logos__wm--climate { font-weight: 400; letter-spacing: -0.01em; font-size: 18px; }
.logos__wm--sembley { font-weight: 700; }
.logos__wm--remfrey { font-weight: 600; letter-spacing: -0.01em; }
.logos__wm--webodew { font-weight: 800; letter-spacing: .03em; font-size: 17px; }
.logos__wm--paddle  { display: inline-flex; flex-direction: column; line-height: 1.05; }
.logos__wm--paddle b { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.logos__wm--paddle i { font-weight: 700; font-size: 12px; font-style: normal; letter-spacing: .01em; }
.logos__swoosh { width: 88px; height: 13px; display: block; opacity: .8; }

/* ---- Player mock (custom-branded player demo) -------------------------- */
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink);
  box-shadow: var(--sh-lg);
}
.player__poster {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px);
}
.player__center {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.player__play {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent, var(--pink));
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.player__play:hover { transform: scale(1.06); }
.player__play svg { width: 28px; height: 28px; margin-left: 4px; fill: #fff; }
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  display: flex; align-items: center; gap: 12px;
}
.player__track { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.25); position: relative; }
.player__track::before { content:""; position:absolute; inset:0; width: 38%; border-radius: 999px; background: var(--accent, var(--pink)); }
.player__track::after { content:""; position:absolute; left: 38%; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transform: translate(-50%,-50%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--pink)) 45%, transparent); }
.player__time { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.85); }
.player__icon { width: 18px; height: 18px; fill: rgba(255,255,255,0.85); }
.player__chip {
  position: absolute; font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em;
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: var(--r-pill); box-shadow: var(--sh-md);
}

/* ---- Stats row ---------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.stat {
  flex: 1; min-width: 150px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5) var(--s-5);
  box-shadow: var(--sh-sm);
}
.stat__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 46px);
  letter-spacing: 0; line-height: 1; text-transform: uppercase; }
.stat__num .u { color: var(--pink); }
.stat__label { margin-top: 6px; color: var(--ink-mute); font-size: var(--t-small); }

/* ---- Persona / generic 3-up cards -------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-4); margin-top: var(--s-7); }
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---- Chips row ---------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-soft);
  background: var(--paper-2);
  font-size: var(--t-small); font-weight: 600;
}
.band-ink .chip { background: transparent; border-color: var(--line-dk); color: var(--on-ink); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

/* ---- Pricing ------------------------------------------------------------ */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-7); align-items: stretch; }
.price {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5); display: flex; flex-direction: column;
}
.price--feature { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), var(--sh-md); position: relative; }
.price__badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.price__name { font-family: var(--font-display); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: 0.015em; }
.price__price { font-family: var(--font-display); font-weight: 400; font-size: 42px; letter-spacing: 0; margin: 10px 0 2px; }
.price__price .per { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-mute); letter-spacing: 0; }
.price__meta { font-size: var(--t-small); color: var(--ink-soft); }
.price__meta b { color: var(--ink); font-weight: 700; }
.price__desc { font-size: var(--t-small); color: var(--ink-mute); margin: 14px 0 18px; flex: 1; }
.price__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.price__list li { font-size: var(--t-small); display: flex; gap: 9px; align-items: flex-start; color: var(--ink-soft); }
.price__list .tick { color: var(--pink-ink); flex: none; margin-top: 2px; }
.price .btn { width: 100%; justify-content: center; }
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

.toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: var(--s-5);
  font-size: var(--t-small); font-weight: 600; }
.toggle__sw { width: 52px; height: 30px; border-radius: 999px; background: var(--ink); position: relative; transition: background .2s; }
.toggle__sw::after { content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%;
  background:#fff; transition: transform .22s var(--ease); }
.toggle.is-annual .toggle__sw { background: var(--pink); }
.toggle.is-annual .toggle__sw::after { transform: translateX(22px); }
.toggle__save { font-family: var(--font-mono); font-size: 11px; color: var(--pink-ink);
  background: var(--pink-wash); padding: 3px 8px; border-radius: 999px; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 800px; margin-top: var(--s-7); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; text-align: left; font-family: var(--font-display); font-weight: 400; font-size: 21px;
  text-transform: uppercase; letter-spacing: 0.015em; line-height: 1.1; color: var(--ink); }
.faq__sign { flex: none; width: 26px; height: 26px; position: relative; }
.faq__sign::before, .faq__sign::after { content:""; position:absolute; top:50%; left:50%; background: var(--pink);
  transform: translate(-50%,-50%); transition: opacity .2s, transform .2s; }
.faq__sign::before { width: 14px; height: 2px; }
.faq__sign::after { width: 2px; height: 14px; }
.faq__item.is-open .faq__sign::after { opacity: 0; transform: translate(-50%,-50%) rotate(90deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a-inner { padding: 0 4px 24px; color: var(--ink-mute); font-size: var(--t-body); max-width: 640px; }

/* ---- Nav active state --------------------------------------------------- */
.nav__links a[aria-current="page"] { color: var(--ink); position: relative; }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; border-radius: 2px; background: var(--pink); }

/* ---- Value-prop trio (pricing hero) ------------------------------------- */
.vprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
@media (max-width: 860px) { .vprops { grid-template-columns: 1fr; } }
.vprop { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5); }
.vprop__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--pink-wash);
  color: var(--pink-deep); display: grid; place-items: center; margin-bottom: var(--s-4); }
.vprop__icon svg { width: 21px; height: 21px; }
.vprop h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; text-transform: uppercase;
  letter-spacing: .015em; line-height: 1.1; color: var(--ink); }
.vprop p { font-size: var(--t-small); color: var(--ink-mute); margin-top: var(--s-3); }

/* ---- Comparison table --------------------------------------------------- */
.cmp { margin-top: var(--s-7); }
.cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 860px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: center; vertical-align: middle; }
.cmp tbody td { border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-soft); }
.cmp__feat { text-align: left; color: var(--ink); font-weight: 600; width: 32%; }

/* plan header */
.cmp thead th { background: var(--paper); vertical-align: bottom;
  padding: 8px 18px 22px; border-bottom: 1px solid var(--line-2); }
.cmp__pname { font-family: var(--font-display); font-weight: 400; font-size: 20px;
  text-transform: uppercase; letter-spacing: .015em; color: var(--ink); }
.cmp__pprice { font-size: 13px; color: var(--ink-mute); margin-top: 3px; }
.cmp__pprice b { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--ink); letter-spacing: 0; }
.cmp thead .btn { margin-top: 13px; width: 100%; justify-content: center; }

/* popular column tint (3rd column = Super Moo) — reads as one highlighted card */
.cmp th:nth-child(3), .cmp td:nth-child(3) { background: color-mix(in srgb, var(--pink) 5%, transparent); }
.cmp thead th:nth-child(3) { background: color-mix(in srgb, var(--pink) 5%, var(--paper)); box-shadow: inset 0 3px 0 var(--pink); }

/* group section rows (single colspan cell). Specificity must beat `.cmp tbody td`. */
.cmp tbody tr.cmp__group td { background: var(--ink); color: var(--on-ink);
  font-family: var(--font-display); font-weight: 400; font-size: 14px;
  letter-spacing: .045em; text-transform: uppercase; text-align: left;
  padding: 11px 18px; border-top: none; }

/* yes / no / value cells */
.cmp__yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--pink-wash); position: relative; vertical-align: middle; }
.cmp__yes::after { content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid var(--pink-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cmp__no { display: inline-block; width: 16px; height: 2.5px; border-radius: 2px; background: var(--ink-faint); vertical-align: middle; }
.cmp__txt { font-size: 13px; color: var(--ink); font-weight: 700; }
.cmp__sub { display: block; font-size: 11px; font-weight: 600; color: var(--ink-mute); }

/* plan limits footer inside price card */
.price__limits { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.price__limits .mono-tag { display: block; margin-bottom: 6px; }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-ink); padding-block: var(--s-8) 0; position: relative; overflow: hidden; }
.footer .container { position: relative; z-index: 2; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer__brand .lead { color: var(--on-ink-soft); max-width: 280px; margin-top: var(--s-3); font-size: var(--t-small); }
.footer__col h4 { font-size: var(--t-small); font-weight: 700; margin-bottom: var(--s-4); color: var(--on-ink); }
.footer__col a { display: block; color: var(--on-ink-mute); font-size: var(--t-small); padding: 5px 0;
  transition: color .15s; }
.footer__col a:hover { color: var(--on-ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: var(--s-8); padding-top: var(--s-5); padding-bottom: var(--s-7); border-top: 1px solid var(--line-dk);
  color: var(--on-ink-mute); font-size: var(--t-small); position: relative; z-index: 2; }

/* Oversized brand wordmark, spanning the full width at the bottom (matches logo font) */
.footer__wordmark {
  display: block; text-align: center; position: relative; z-index: 1;
  margin: 0; pointer-events: none; user-select: none;
  font-family: var(--font-body); font-weight: 800;
  font-size: 20.6vw; line-height: 0.92; letter-spacing: -0.03em; white-space: nowrap;
  color: var(--on-ink);
  margin-bottom: -0.08em;   /* let the descender kiss the page edge */
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } }

/* ---- Hero --------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__media { position: relative; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }

/* ---- Embed-anywhere logo row (below hero video) ------------------------- */
.embedrow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px; margin-top: clamp(18px, 2.4vw, 28px);
}
.embedrow__label,
.embedrow__more {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em;
  color: var(--ink-mute); white-space: nowrap;
}
.embedrow__logos { display: inline-flex; align-items: center; }
.embedrow__tile {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: #FFFFFF; border: 1px solid var(--line);
  box-shadow: var(--sh-sm); margin-left: -8px;
  transition: transform .18s var(--ease); position: relative;
}
.embedrow__tile:first-child { margin-left: 0; }
.embedrow__tile:hover { transform: translateY(-3px); z-index: 2; }
.embedrow__tile img { width: 19px; height: 19px; display: block; }

/* dark tooltip on hover, à la Tella */
.embedrow__tile::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #161514; color: #FBF7F0;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .01em; line-height: 1; white-space: nowrap;
  padding: 6px 9px; border-radius: 7px; box-shadow: var(--sh-md);
  opacity: 0; pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  z-index: 5;
}
.embedrow__tile::before {
  content: ""; position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent; border-top-color: #161514;
  opacity: 0; pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  z-index: 5;
}
.embedrow__tile:hover::after,
.embedrow__tile:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.embedrow__tile:hover::before,
.embedrow__tile:focus-visible::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Performance bars --------------------------------------------------- */
.perf { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
@media (max-width: 920px) { .perf { grid-template-columns: 1fr; } }
.bars { display: grid; gap: var(--s-5); }
.bar-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 14px; }
.bar-row__name { font-size: var(--t-small); font-weight: 700; color: var(--on-ink); display: flex; align-items: center; }
.bar-logo { display: block; width: auto; height: 19px; }
.bar-logo--moo { height: 21px; filter: brightness(0) invert(1); }
.bar-row__val { font-family: var(--font-mono); font-size: 13px; color: var(--on-ink-soft); text-align: right; }
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: rgba(255,255,255,0.4);
  transition: width 2.2s cubic-bezier(.33,1,.68,1); }
.pre .bar__fill { width: 0; }
.bar__fill--pink { background: var(--pink); transition: width .55s cubic-bezier(.2,.9,.25,1); }
/* Continuous "loading race": SuperMoo snaps full fast, others crawl, then reset + repeat */
@media (prefers-reduced-motion: no-preference) {
  .perf__chart:not(.pre) .bar__fill { animation: barRace 4.6s cubic-bezier(.33,1,.68,1) infinite; }
  .perf__chart:not(.pre) .bar__fill--pink { animation: barRaceFast 4.6s cubic-bezier(.2,.9,.25,1) infinite; }
}
@keyframes barRace {
  0% { width: 0; } 60% { width: var(--w); } 84% { width: var(--w); } 100% { width: 0; }
}
@keyframes barRaceFast {
  0% { width: 0; } 12% { width: var(--w); } 84% { width: var(--w); } 100% { width: 0; }
}

/* Performance chart — stays dark in BOTH themes (video-UI style); pops on the light section */
.perf__chart {
  background: #161514; color: #FBF7F0;
  border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--sh-lg);
}
.perf__chart .perf__chart-tag { color: var(--on-ink-mute); }
.perf__chart-note { margin-top: var(--s-5); font-size: var(--t-small); color: var(--on-ink-mute); }
.perf__chart .bar__fill--pink { background: var(--pink); }

/* ---- Customization demo ------------------------------------------------- */
.custom { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-5); margin-top: var(--s-8); align-items: start; }
@media (max-width: 920px) { .custom { grid-template-columns: 1fr; } }
.custom__panel { display: grid; gap: var(--s-5); }
.ctl__label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.06em; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--c); position: relative;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); transition: transform .15s var(--ease); }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 4px var(--c); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--paper-3); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink); cursor: pointer; box-shadow: var(--sh-sm); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--pink); cursor: pointer; }
.seg { display: inline-flex; background: var(--paper-3); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.seg__btn { font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: var(--r-pill); color: var(--ink-mute);
  transition: all .15s var(--ease); }
.seg__btn.is-active { background: var(--paper-2); color: var(--ink); box-shadow: var(--sh-sm); }
.embed-code { font-family: var(--font-mono); font-size: 12.5px; background: var(--ink); color: #fff;
  padding: 13px 15px; border-radius: var(--r-sm); overflow-x: auto; white-space: nowrap; }
.embed-code__tag { color: var(--pink); }

/* ---- Infrastructure layout --------------------------------------------- */
.infra { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px,5vw,72px); align-items: center; }
@media (max-width: 920px) { .infra { grid-template-columns: 1fr; } }

/* ---- Persona mark ------------------------------------------------------- */
.persona__mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--pink); font-family: var(--font-display); font-size: 26px; font-weight: 600; }

/* ---- Background video band ---------------------------------------------- */
.bgvideo { position: relative; min-height: clamp(440px, 56vw, 620px); display: grid; }
.bgvideo__media { position: absolute; inset: 0; border-radius: 0; border: none; }
.bgvideo__overlay { position: relative; align-self: stretch; width: 100%;
  display: flex; align-items: center;
  padding-block: var(--s-8);
  background: linear-gradient(90deg, rgba(15,14,12,0.92) 0%, rgba(15,14,12,0.78) 50%, rgba(15,14,12,0.45) 100%); }

/* ---- Reveal-on-scroll (progressive enhancement: visible unless JS hides) - */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .reveal.pre { opacity: 1; transform: none; } }

/* ---- Speed comparison (uses --good / --bad semantic tokens) ------------- */
/* Green is us, red is them. Lead with the number. */
.compare { display: grid; gap: var(--s-3); }
.compare__row {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: var(--s-4);
  padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
}
.compare__row--good { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.compare__row--bad  { background: var(--bad-bg);  border-color: color-mix(in srgb, var(--bad) 26%, transparent); }
.compare__name { font-weight: 800; font-size: var(--t-small); letter-spacing: -0.01em; }
.compare__row--good .compare__name { color: var(--good-ink); }
.compare__row--bad  .compare__name { color: var(--bad-ink); }
.compare__track { height: 10px; border-radius: 999px; background: rgba(23,18,15,0.07); overflow: hidden; }
.compare__fill { display: block; height: 100%; width: var(--w, 50%); border-radius: 999px; }
.compare__row--good .compare__fill { background: var(--good); }
.compare__row--bad  .compare__fill { background: var(--bad); }
.compare__val { font-family: var(--font-mono); font-size: 15px; font-weight: 700; white-space: nowrap; }
.compare__row--good .compare__val { color: var(--good-ink); }
.compare__row--bad  .compare__val { color: var(--bad-ink); }
@media (max-width: 560px) { .compare__row { grid-template-columns: 84px 1fr auto; gap: var(--s-3); } }

/* =========================================================================
   LAYOUT PRIMITIVES — framed, flat, confident (the "Tella" structure,
   kept in SuperMoo's ink + milk + pink language; no gradients, no glows)
   ========================================================================= */

/* ---- Stage — a framed canvas that puts the product front and center ----- */
.stage {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--paper-2);
  padding: clamp(16px, 3vw, 40px);
}
.stage--ink { background: var(--ink); border-color: var(--line-dk); }
.stage--milk { background: var(--milk); }
/* tiny mono label pinned to a stage corner */
.stage__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em;
  color: var(--ink-mute); background: var(--paper-2);
  border: 1px solid var(--line); padding: 5px 10px; border-radius: var(--r-pill);
}
.stage--ink .stage__tag { color: var(--on-ink-soft); background: var(--ink-2); border-color: var(--line-dk); }

/* ---- Bento — modular grid of mixed-size cells --------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.bento__cell {
  grid-column: span 2; display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-6);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.bento__cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bento__cell--lg   { grid-column: span 4; }   /* wide  (2/3 row) */
.bento__cell--half { grid-column: span 3; }   /* half row        */
.bento__cell--full { grid-column: span 6; }   /* full row        */
.bento__cell--ink  { background: var(--ink); color: var(--on-ink); border-color: var(--line-dk); }
.bento__cell--ink:hover { border-color: rgba(255,255,255,0.28); }
.bento__cell--pink { background: var(--pink-wash); border-color: color-mix(in srgb, var(--pink) 26%, transparent); }
/* media — background video fills the cell behind the content */
.bento__cell--media { position: relative; overflow: hidden; }
.bento__cell--media > .cell__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; }
.bento__cell--media > .cell__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,14,12,0.55) 0%, rgba(15,14,12,0.20) 38%, rgba(15,14,12,0.78) 100%); }
.bento__cell--media > *:not(.cell__bg):not(.cell__scrim) { position: relative; z-index: 2; }
/* bare — visual on top, text below, no card chrome (Tella-style) */
.bento__cell--bare { background: none; border: none; padding: 0; }
.bento__cell--bare:hover { transform: none; }
.bento__cell--bare .viz { margin-top: 0; margin-bottom: var(--s-5); }
/* all feature media tiles share the 16:9 video ratio for consistency */
#features .bento__cell--bare .viz { aspect-ratio: 16 / 9; height: auto; }
#features .bento__cell--bare .viz-bars,
#features .bento__cell--bare .viz-scenes,
#features .bento__cell--bare .viz-anywhere,
#features .bento__cell--bare .gdpr-viz,
#features .bento__cell--bare .size-viz { height: 100%; }
/* a framed media area that lives inside a bento cell or showcase */
.bento__media { margin-top: var(--s-5); flex: 1; min-height: 168px; border-radius: var(--r-sm); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell, .bento__cell--lg, .bento__cell--half, .bento__cell--full { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell, .bento__cell--lg, .bento__cell--half, .bento__cell--full { grid-column: auto; }
}

/* ---- Showcase — alternating framed feature + short caption -------------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.showcase + .showcase { margin-top: clamp(48px, 7vw, 96px); }
.showcase--flip .showcase__copy { order: 2; }      /* media on the left */
.showcase__copy .eyebrow { display: inline-block; margin-bottom: var(--s-4); }
.showcase__copy .lead { margin-top: var(--s-4); }
.showcase__cap { margin-top: var(--s-4); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .03em; color: var(--ink-mute); }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: var(--s-6); }
  .showcase--flip .showcase__copy { order: 0; }
}

/* ---- Animated feature visuals (flat, on-brand; pink stays the punch) ---- */
.viz { position: relative; margin-top: var(--s-5); border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--line); }
.viz__cap { position: absolute; left: 12px; bottom: 9px; z-index: 5;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-mute); }
.viz__cap--onlight { color: var(--ink-soft); background: rgba(255,255,255,0.82);
  padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(2px); }
.viz__cap--ondark { color: rgba(255,255,255,0.9); }

/* analytics — living bar chart, one pink peak */
.viz-bars { height: 200px; background: var(--paper-3); display: flex; align-items: flex-end;
  gap: 9px; padding: 22px 18px 26px; }
.viz-bars i { flex: 1; background: var(--ink); border-radius: 5px 5px 0 0;
  transform-origin: bottom; transform: scaleY(var(--h));
  animation: vizBar 3.4s var(--ease) infinite; animation-delay: var(--d); }
.viz-bars i.is-peak { background: var(--pink); }
@keyframes vizBar { 0%, 100% { transform: scaleY(calc(var(--h) * .58)); } 50% { transform: scaleY(var(--h)); } }

/* video backgrounds — cross-fading scenes in a site frame, persistent pink play */
.viz-scenes { height: 200px; background: var(--ink); }
.viz-scenes__chrome { position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 3;
  background: rgba(251,247,240,.07); display: flex; align-items: center; gap: 5px; padding: 0 11px; }
.viz-scenes__chrome i { width: 7px; height: 7px; border-radius: 50%; background: rgba(251,247,240,.32); }
.viz-scenes b { position: absolute; inset: 26px 0 0; opacity: 0; animation: vizScene 10.5s ease infinite; }
.viz-scenes b:nth-child(2) { background: #232120; animation-delay: 0s; }
.viz-scenes b:nth-child(3) { background: #34312E; animation-delay: 3.5s; }
.viz-scenes b:nth-child(4) { background: #0E0E0D; animation-delay: 7s; }
@keyframes vizScene { 0% { opacity: 0; } 4% { opacity: 1; } 29% { opacity: 1; } 33%, 100% { opacity: 0; } }
.viz-scenes__play { position: absolute; inset: 26px 0 0; z-index: 4; display: grid; place-items: center; }
.viz-scenes__play span { width: 50px; height: 50px; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center; }
.viz-scenes__play svg { width: 20px; height: 20px; fill: #fff; transform: translateX(1px); }

@media (prefers-reduced-motion: reduce) {
  .viz-bars i { animation: none; }
  .viz-scenes b { animation: none; }
  .viz-scenes b:nth-child(2) { opacity: 1; }
}

/* ---- Format switcher (Any format section) ------------------------------- */
.fmt-stage { display: grid; place-items: center; margin-inline: auto; max-width: 968px;
  transition: max-width .5s var(--ease); }
.fmt-stage.is-vertical { max-width: 340px; }
.fmt-frame { display: none; width: 100%; }
.fmt-frame.is-active { display: block; animation: fmtIn .5s var(--ease); }
@keyframes fmtIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .fmt-stage { transition: none; }
  .fmt-frame.is-active { animation: none; }
}
.fmt-embed { position: relative; width: 100%; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); background: #000 center / cover no-repeat;
  transform: translateZ(0); isolation: isolate; }
.fmt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--r-lg); }
.fmt-frame--h .fmt-embed { max-width: 940px; margin-inline: auto; aspect-ratio: 16 / 9; }
.fmt-frame--v .fmt-embed { max-width: 320px; margin-inline: auto; aspect-ratio: 9 / 16; }

/* works-anywhere — embed snippet + platform chips lighting in sequence */
.viz-anywhere { background: var(--paper-3); height: 200px; padding: 20px 18px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.viz-anywhere .embed-code { font-size: clamp(10px, 3vw, 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.viz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-chips span { font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-mute);
  animation: chipGlow 7s var(--ease) infinite; }
.viz-chips span:nth-child(1) { animation-delay: 0s; }
.viz-chips span:nth-child(2) { animation-delay: 1.4s; }
.viz-chips span:nth-child(3) { animation-delay: 2.8s; }
.viz-chips span:nth-child(4) { animation-delay: 4.2s; }
.viz-chips span:nth-child(5) { animation-delay: 5.6s; }
@keyframes chipGlow {
  0%, 12% { background: var(--pink); border-color: var(--pink); color: #fff; }
  18%, 100% { background: var(--paper-2); border-color: var(--line); color: var(--ink-mute); }
}
@media (prefers-reduced-motion: reduce) { .viz-chips span { animation: none; } }

/* works-anywhere — logo tiles that pulse in sequence (echoes the hero embed row) */
.viz-anywhere:has(.embedgrid) { height: auto; min-height: 200px; }
.embedgrid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; max-width: 338px; margin: 0 auto; }
.embedgrid__tile {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: #FFFFFF; border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  animation: tilePulse 15s var(--ease) infinite;
  transition: transform .18s var(--ease);
}
.embedgrid__tile img { width: 26px; height: 26px; display: block; }
.embedgrid__tile:hover { transform: translateY(-3px); z-index: 3; }
.embedgrid__tile:nth-child(1) { animation-delay: 0s; }
.embedgrid__tile:nth-child(2) { animation-delay: 1s; }
.embedgrid__tile:nth-child(3) { animation-delay: 2s; }
.embedgrid__tile:nth-child(4) { animation-delay: 3s; }
.embedgrid__tile:nth-child(5) { animation-delay: 4s; }
.embedgrid__tile:nth-child(6) { animation-delay: 5s; }
.embedgrid__tile:nth-child(7) { animation-delay: 6s; }
.embedgrid__tile:nth-child(8) { animation-delay: 7s; }
.embedgrid__tile:nth-child(9) { animation-delay: 8s; }
.embedgrid__tile:nth-child(10) { animation-delay: 9s; }
.embedgrid__tile:nth-child(11) { animation-delay: 10s; }
.embedgrid__tile:nth-child(12) { animation-delay: 11s; }
.embedgrid__tile:nth-child(13) { animation-delay: 12s; }
.embedgrid__tile:nth-child(14) { animation-delay: 13s; }
.embedgrid__tile:nth-child(15) { animation-delay: 14s; }
@keyframes tilePulse {
  0%, 7%   { box-shadow: 0 0 0 2px var(--pink), var(--sh-sm); border-color: var(--pink); }
  16%, 100%{ box-shadow: 0 0 0 0 transparent, var(--sh-sm); border-color: var(--line); }
}
/* dark tooltip on hover (matches hero embed row) */
.embedgrid__tile::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #161514; color: #FBF7F0;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  line-height: 1; white-space: nowrap; padding: 5px 8px; border-radius: 6px;
  box-shadow: var(--sh-md); opacity: 0; pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease); z-index: 6;
}
.embedgrid__tile:hover::after,
.embedgrid__tile:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .embedgrid__tile { animation: none; } }

/* works-anywhere GDPR — privacy panel inside a bento cell */
.gdpr-viz {
  background: var(--paper-3); height: 200px;
  padding: 22px 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.gdpr-viz__mark { display: flex; align-items: center; gap: 12px; }
.gdpr-viz .gdpr-tag { color: var(--ink-mute); font-size: 12px; }
.gdpr-badge {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--pink-wash); color: var(--pink-ink);
  display: grid; place-items: center;
}
.gdpr-badge svg { width: 25px; height: 25px; }
.gdpr-viz__mark .mono-tag { font-size: 12px; }
.gdpr-list { display: flex; flex-direction: column; gap: 11px; }
.gdpr-item {
  display: flex; align-items: center; gap: 11px;
  font-size: var(--t-small); font-weight: 600; color: var(--ink-soft);
}
.gdpr-tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--pink); position: relative;
}
.gdpr-tick::after {
  content: ""; position: absolute; left: 7px; top: 4px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}

/* any-size card — a single player frame morphing between landscape & portrait, looping */
.size-viz {
  background: var(--paper-3); height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.size-morph {
  background: var(--ink); border-radius: 12px; box-shadow: var(--sh-lg);
  display: grid; place-items: center;
  width: 244px; height: 137px;
  animation: morphAspect 5.6s var(--ease) infinite;
}
@keyframes morphAspect {
  0%, 20%   { width: 244px; height: 137px; border-radius: 12px; }
  42%, 62%  { width: 137px; height: 244px; border-radius: 18px; }
  84%, 100% { width: 244px; height: 137px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .size-morph { animation: none; } }
.size-play {
  width: 34px; height: 34px; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center;
}
.size-play::after {
  content: ""; border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
  margin-left: 2px;
}



/* move-the-play-button card — person thumbnail, ghost (default spot) + moved pink button */
.moveplay-viz { background: var(--ink); position: relative; }
.moveplay-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,14,12,.12) 0%, rgba(15,14,12,.5) 100%); }
.moveplay-ghost { position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.55); top: 30%; left: 50%; transform: translate(-50%,-50%); }
.moveplay-btn { position: absolute; z-index: 4; width: 54px; height: 54px; border-radius: 50%;
  background: var(--pink); top: 66%; left: 31%; transform: translate(-50%,-50%);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.42);
  animation: moveBtn 4.6s var(--ease) infinite; }
.moveplay-btn::after { content: ""; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff; margin-left: 3px; }
@keyframes moveBtn {
  0%, 14%   { top: 30%; left: 50%; }
  40%, 100% { top: 66%; left: 31%; }
}
@media (prefers-reduced-motion: reduce) { .moveplay-btn { animation: none; } }

/* video card — animated thumbnail + click-to-open lightbox */
.video-viz { background: var(--ink); cursor: pointer; }
.video-viz .cell__bg { transition: transform .5s var(--ease); }
.video-viz:hover .cell__bg { transform: scale(1.04); }
.video-play { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .16s var(--ease), background .16s var(--ease); }
.video-play svg { width: 24px; height: 24px; fill: #fff; transform: translateX(2px); }
.video-viz:hover .video-play, .video-viz:focus-visible .video-play {
  transform: translate(-50%,-50%) scale(1.08); background: var(--pink-press); }
.video-viz:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; padding: clamp(16px, 5vw, 72px);
  background: rgba(12, 10, 9, 0.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s var(--ease); }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__inner { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9;
  border-radius: var(--r-md); overflow: hidden; background: #000; box-shadow: var(--sh-lg);
  transform: scale(.96); transition: transform .24s var(--ease); }
.lightbox.is-open .lightbox__inner { transform: scale(1); }
.lightbox__frame, .lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; z-index: 2; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(12,10,9,.55); color: #fff;
  display: grid; place-items: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .15s var(--ease); }
.lightbox__close:hover { background: var(--pink); }
.lightbox__close svg { width: 18px; height: 18px; }

/* auto-thumbnail-compressor card — before/after file size */
.compress-viz { background: var(--paper-3); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.compress-files { display: flex; align-items: center; gap: 18px; }
.compress-file { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.compress-box { border-radius: 10px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-sm); display: grid; place-items: center; color: var(--ink-faint); }
.compress-file--old .compress-box { width: 80px; height: 98px; }
.compress-file--new .compress-box { width: 52px; height: 64px; color: var(--pink); }
.compress-box svg { width: 56%; height: 56%; }
.compress-sz { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.compress-file--new .compress-sz { color: var(--pink-ink); font-weight: 700; }
.compress-arrow { color: var(--ink-faint); font-size: 22px; line-height: 1; }
.compress-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .03em; color: var(--pink-ink); background: var(--pink-wash);
  padding: 5px 12px; border-radius: var(--r-pill); }

/* ---- "Your brand" live customization toggles ---- */
.try-hint { display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 14px; color: var(--pink-ink); margin: 0 0 14px; }
.try-hint .arr { font-family: var(--font-body); font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-5); }
.opt { display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-soft); cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease),
              transform .12s var(--ease), box-shadow .15s var(--ease); }
.opt::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-2); transition: background .15s var(--ease); }
.opt:hover { color: var(--ink); border-color: var(--ink-faint); transform: translateY(-2px); box-shadow: var(--sh-md); }
.opt:hover::before { background: var(--ink-faint); }
.opt:active { transform: translateY(0); box-shadow: var(--sh-sm); }
.opt.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.opt.is-on::before { background: var(--pink); }
#brandPlayer { transition: border-radius .28s var(--ease), outline-color .28s var(--ease); }
#brandPlayer.is-square { border-radius: 3px; }
#brandStage.has-stroke #brandPlayer { outline: 6px solid var(--pink); outline-offset: 0; }
.player__logo { position: absolute; top: 16px; right: 16px; height: 42px; width: auto; z-index: 4;
  filter: invert(1) brightness(1.9); opacity: 0; transform: translateY(-5px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease); }
#brandPlayer.show-logo .player__logo { opacity: 1; transform: none; }
.player__cta { position: absolute; top: 16px; left: 16px; z-index: 4; background: var(--pink); color: #fff;
  font-size: 14px; font-weight: 700; padding: 11px 18px; border-radius: var(--r-pill); border: none;
  text-decoration: none; display: inline-block;
  opacity: 0; transform: translateY(-5px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease); }
#brandPlayer.show-cta .player__cta { opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================================
   THEME TOGGLE — light / dark switch (nav control)
   ========================================================================= */
.theme-toggle {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-soft);
  transition: color .15s var(--ease), border-color .15s var(--ease),
              background .15s var(--ease), transform .15s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; transition: transform .4s var(--ease); }
/* the half-disc rotates to flip its filled side on theme change */
[data-theme="dark"] .theme-toggle svg { transform: rotate(180deg); }

/* =========================================================================
   DARK THEME — component overrides
   Token flips live in tokens.css. These fix the handful of components that
   use --ink as a *surface* (not as text), plus media that must stay dark.
   ========================================================================= */

/* Smooth surface/border transitions when toggling */
.nav, .announce, .footer, .band-ink, .band-paper-3,
.card, .feat, .bento__cell, .mega, .price, .stage, .chip,
.faq__item, .pill, .seg, .opt, .theme-toggle, .player__chip {
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

/* Brand logo SVG is dark artwork — invert it to read on dark surfaces */
[data-theme="dark"] .logo img { filter: invert(1) brightness(1.9); }

/* "Ink" surfaces — match the page black so bands read as one continuous dark */
[data-theme="dark"] .announce,
[data-theme="dark"] .footer,
[data-theme="dark"] .band-ink,
[data-theme="dark"] .stage--ink,
[data-theme="dark"] .bento__cell--ink { background: var(--paper); }
[data-theme="dark"] .band-ink { border-block: 1px solid var(--line); }

/* Ink button → readable light chip on dark UI */
[data-theme="dark"] .btn--ink { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn--ink:hover { background: #fff; }
/* on-ink button sits on dark bands → keep dark text on its light fill */
[data-theme="dark"] .btn--on-ink { color: var(--paper); }

/* Mega "view all" accent tile (used --ink as fill) */
[data-theme="dark"] .mega__item--all .mega__icon { background: var(--ink-2); color: var(--on-ink); }

/* Components that stay dark regardless of theme (video UI + code) */
[data-theme="dark"] .player { background: #0E0B07; }
[data-theme="dark"] .embed-code { background: #0E0B07; }
[data-theme="dark"] .viz-scenes { background: #100C0A; }

/* Player overlay chip — keep a light chip on the always-dark player */
[data-theme="dark"] .player__chip {
  background: rgba(20, 16, 11, 0.82); color: var(--on-ink); border-color: var(--line-dk);
}

/* "On" toggle chip — light fill, dark glyph */
[data-theme="dark"] .opt.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Pricing switch track must show the white thumb */
[data-theme="dark"] .toggle__sw { background: var(--light); }

/* Analytics viz bars read as milk on the dark panel; pink peak stays */
[data-theme="dark"] .viz-bars i { background: var(--ink-soft); }
[data-theme="dark"] .viz-bars i.is-peak { background: var(--pink); }

/* Speed-comparison track on dark surfaces */
[data-theme="dark"] .compare__track { background: rgba(255, 255, 255, 0.08); }

/* Long pills (e.g. the hero eyebrow badge) shouldn't run edge-to-edge on
   phones — allow wrap, center, and shrink the type so the pill keeps breathing
   room from the screen sides instead of cramming against its own edges. */
@media (max-width: 560px) {
  .pill { white-space: normal; text-align: center; line-height: 1.35; font-size: 12.5px; }
}
