/* Nura — site styles. All values come from tokens.css.
   One block per section, named after nura-homepage-structure.md. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
button, input { font-family: inherit; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--body);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--pad-side));
  margin-inline: auto;
  padding-inline: var(--pad-side);
}
.section { padding-block: var(--section-pad); }
.section--grey { background: var(--section); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

/* ---------- Type ---------- */
.h1 {
  font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: var(--fw-heading);
  letter-spacing: var(--track-h1); color: var(--ink); text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-heading);
  letter-spacing: var(--track-h2); color: var(--ink); text-wrap: balance;
}
.statement {
  font-size: var(--fs-statement); line-height: var(--lh-statement); font-weight: var(--fw-statement);
  letter-spacing: var(--track-statement); color: var(--ink); text-wrap: balance;
}
.row-title {
  font-size: var(--fs-row-title); line-height: var(--lh-row-title); font-weight: var(--fw-heading);
  letter-spacing: var(--track-row-title); color: var(--ink);
}
.subheading { font-size: var(--fs-subheading); line-height: 1.3; font-weight: 500; letter-spacing: var(--track-subheading); color: var(--muted); }
.card-title { font-size: var(--fs-card-title); line-height: 1.25; font-weight: var(--fw-card-title); color: var(--ink); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--body); }
.eyebrow {
  font-size: var(--fs-eyebrow); line-height: 1.2; font-weight: 700;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted);
}
.caption { font-size: var(--fs-nav); line-height: 1.4; color: var(--muted); }
.accent {
  font-family: var(--font-accent); font-style: italic; font-weight: var(--fw-accent);
  font-size: var(--accent-scale); letter-spacing: var(--track-accent);
  line-height: 0;   /* the larger accent must not change the line spacing of its heading */
}
.text-link {
  font-weight: 600; color: var(--ink); text-decoration: none;
  transition: color 0.2s ease-out;
}
.text-link:hover { color: var(--link-hover); }

/* ---------- Components ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h-button); padding: 0 28px;
  border: var(--bw-button) solid var(--ink); border-radius: var(--radius-pill);
  font-family: var(--font-main); font-size: var(--fs-button); font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--flash-swap-duration) ease-out, color var(--flash-swap-duration) ease-out;
}
/* One style in two colours. On hover or keyboard focus the button ends in the opposite colour.
   The spectrum sweep itself is motion: see motion.css (Effect 8). */
.btn--primary { background: var(--ink); color: var(--page); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--page); color: var(--ink); }
.btn--secondary { background: var(--page); color: var(--ink); }
.btn--secondary:hover, .btn--secondary:focus-visible { background: var(--ink); color: var(--page); }
.btn--hero { height: var(--h-button-hero); padding: 0 32px; }
.btn--nav { height: var(--h-button-nav); padding: 0 20px; font-size: var(--fs-nav); }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-eyebrow); font-weight: 700; line-height: 1;
}
.badge--glass {
  gap: 6px; padding: 0 14px 0 10px;
  background: var(--badge-glass-bg); border: 1px solid var(--border); color: var(--ink);
  font-weight: 600;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.badge__star { width: 16px; height: 16px; flex: none; }
.badge--soft { background: var(--badge-soft); color: var(--ink); }

.card {
  border-radius: var(--radius-card); padding: var(--card-pad);
  background: var(--page); border: 1px solid var(--border);
}

.media-box {
  position: relative; display: grid; place-items: center;
  border-radius: var(--radius-media); overflow: hidden;
}
.media-box--cool { background: var(--pastel-cool); }
.media-box--warm { background: var(--pastel-warm); }
/* Placeholder media: one clear glass box with the 2px spectrum line along its top edge, no inner label */
.media-box--glass {
  background: var(--glass-bg); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.media-box--glass::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--spectrum-line); }
/* Glass card: only over a pastel surface or a glow. 2px spectrum line along its top edge. */
.glass-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card); border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.glass-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--spectrum-line); }
.media-box__label {
  max-width: 80%; padding: var(--space-3) var(--card-pad); text-align: center;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--muted);
}

.star { display: block; width: 28px; height: 28px; }

/* Logo: nura-logo.svg (3203 x 1050). The lettering follows the text colour. */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo__mark { display: block; height: 28px; width: auto; aspect-ratio: 3203 / 1050; }

/* ---------- 0. nav ---------- */
.nav {
  position: absolute; top: var(--nav-top); left: 0; right: 0; z-index: 50;
  padding-inline: var(--nav-side);
  color: var(--ink);
}
.nav__pill {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1360px; height: var(--h-nav); margin-inline: auto;
  padding: 6px 6px 6px 14px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
}
.nav .logo { color: inherit; justify-self: start; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__right { display: flex; align-items: center; gap: var(--space-1); justify-self: end; }
.nav__link {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: var(--fs-nav); font-weight: 500; line-height: 1.4;
  color: inherit; text-decoration: none;
  transition: background-color 0.2s ease-out;
}
.nav__link:hover { background: var(--hover-pill); }
.nav__link svg { width: 16px; height: 16px; }
.nav__menu-button { display: none; }
.nav__menu { display: none; }

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 140px var(--pad-side) 120px;
  background: var(--page);
  text-align: center;
  overflow: hidden;
}
.hero__glow { position: absolute; inset: 0; background: var(--hero-glow); filter: blur(var(--hero-glow-blur)); pointer-events: none; }
/* Thin spectrum line: divider at the bottom edge of the hero */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--spectrum-line); opacity: 0.5; }
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  max-width: 1100px;
}
.hero__sub { max-width: 640px; }
.hero__audience { font-size: var(--fs-nav); font-weight: 600; line-height: 1.4; color: var(--ink); }
.hero__note { margin-top: calc(-1 * var(--space-2)); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.rotating-word { display: inline-block; white-space: nowrap; }

/* ---------- 2. walkthrough-video ---------- */
.walkthrough-video { position: relative; z-index: 1; background: var(--page); padding-bottom: calc(var(--section-pad) / 2); }
.walkthrough-video__frame { width: 100%; aspect-ratio: 16 / 9; }
.walkthrough-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.walkthrough-video__caption { margin-top: var(--space-3); text-align: center; }

/* ---------- 5b. software-band (part of How it works) ---------- */
.software-band { padding-block: var(--space-6); overflow: hidden; }
.software-band__line { text-align: center; color: var(--ink); margin-bottom: var(--space-5); }
.software-band__track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2);
  padding-inline: var(--pad-side);
}
.software-band__group { display: contents; }
.software-band__item {
  flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-size: var(--fs-nav); font-weight: 600; line-height: 1.2; text-align: center;
  color: var(--ink); background: var(--section);
}
.software-band__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 8px; line-height: 1; }
.software-band__logo { width: 18px; height: 18px; }

/* ---------- 3. problem ---------- */
.problem__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.problem__list { display: flex; flex-direction: column; gap: var(--space-3); }
.problem__list ul { display: flex; flex-direction: column; }
.problem__list li { padding-block: var(--space-2); border-top: 1px solid var(--border); }
.problem__closer { margin-top: var(--space-5); color: var(--ink); font-weight: 600; }

/* ---------- 5. how-it-works ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); max-width: 900px; }
.how-it-works__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.step { display: flex; flex-direction: column; gap: var(--space-2); min-height: 280px; }
.step__number { font-size: var(--fs-row-title); line-height: 1; font-weight: var(--fw-heading); letter-spacing: var(--track-tight); margin-bottom: auto; padding-bottom: var(--space-5); }
.step__number--1 { color: var(--coral); }
.step__number--2 { color: var(--teal); }
.step__number--3 { color: var(--violet); }
.how-it-works__software { margin-top: var(--space-4); color: var(--ink); font-weight: 600; }
.how-it-works__note { margin-top: var(--space-1); color: var(--muted); }

/* ---------- 7. benefits ---------- */
.benefits__rows { display: flex; flex-direction: column; gap: var(--grid-gap); }
.benefit-row { align-items: center; }
.benefit-row__text { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: var(--space-3); }
.benefit-row__media { grid-column: 7 / span 6; aspect-ratio: 3 / 2; }
.benefit-row__icon { display: none; }
/* Icon cards (benefits--cards): four white cards with a line icon; media boxes hidden.
   Used until real media exists. Remove the class in index.html to return to the rows. */
.benefits--cards .benefits__rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.benefits--cards .benefit-row {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--page); border: 1px solid var(--border); border-radius: 24px;
}
.benefits--cards .benefit-row__media { display: none; }
.benefits:not(.benefits--cards) .benefit-row::before, .benefits:not(.benefits--cards) .benefit-row::after { display: none; }   /* glow only on the cards */
.benefits--cards .benefit-row__text { gap: 14px; }
.benefits--cards .benefit-row__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px;
  border-radius: 50%; background: linear-gradient(135deg, var(--icon-tint-a), var(--icon-tint-b));
}
.benefits--cards .benefit-row__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--icon-stroke); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.benefits--cards .row-title { font-size: var(--fs-card-title); line-height: 1.25; font-weight: var(--fw-card-title); letter-spacing: 0; }

/* ---------- 6. live scene (demo styles) ---------- */
.demo { text-align: center; }
.demo .section-head { align-items: center; margin-inline: auto; }
.demo__stage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap);
  padding-inline: var(--space-3);
}
.demo__media { aspect-ratio: 4 / 3; }
.demo__badge { position: absolute; top: var(--space-3); right: var(--space-3); }
.demo__caption { margin-top: var(--space-2); }
.demo__stage--single { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--content-max) + 2 * var(--pad-side)); margin-inline: auto; padding-inline: var(--pad-side); }
.demo__media--wide { aspect-ratio: 16 / 9; }
.demo__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.demo__open { display: inline-block; margin-top: var(--space-1); }
.demo__hint { margin-top: var(--space-1); }
.demo__cta { margin-top: var(--space-5); }

/* ---------- 8. who it's for ---------- */
.audience__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.audience-card { display: flex; flex-direction: column; gap: var(--space-2); }
.audience-card__who { font-size: var(--fs-nav); line-height: 1.4; color: var(--muted); margin-bottom: var(--space-2); }
.audience__closer { margin-top: var(--space-4); color: var(--muted); }

/* ---------- 9. faq ---------- */
.faq__title { grid-column: 1 / span 5; }
.faq__list { grid-column: 7 / span 6; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform 0.2s ease-out;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 var(--space-5) var(--space-3) 0; }

/* ---------- 4. why we built nura (mission styles) ---------- */
.mission { position: relative; text-align: center; overflow: hidden; }
.mission__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.mission__mark { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: var(--space-2); }
.mission__glow {
  position: absolute; left: 50%; top: 50%; width: 900px; height: 720px;
  transform: translate(-50%, -50%);
  background: var(--hero-glow);
  filter: blur(var(--hero-glow-blur)); pointer-events: none;
}
.mission__mark .star { position: relative; width: 96px; height: 96px; }
.mission__heading { max-width: 980px; position: relative; }
.mission__body { max-width: 720px; position: relative; }
.mission__body p + p { margin-top: var(--space-2); }
.mission .text-link { position: relative; }

/* ---------- 10. test your scene + form ---------- */
.closing-cta__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: var(--space-4); align-self: start; position: sticky; top: 120px; }
.closing-cta__badge { align-self: flex-start; margin-bottom: calc(-1 * var(--space-2)); }
.closing-cta__steps { display: flex; flex-direction: column; gap: var(--space-2); counter-reset: beta-step; }
.closing-cta__steps li { display: flex; gap: var(--space-2); counter-increment: beta-step; }
.closing-cta__steps li::before { content: counter(beta-step, decimal-leading-zero); flex: none; font-weight: 700; color: var(--ink); }
.closing-cta__call { margin-top: var(--space-3); }
.closing-cta__form-box { grid-column: 7 / span 6; scroll-margin-top: 96px; }
.form__head { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-4); }
.form__head .subheading { color: var(--ink); }
.form { display: flex; flex-direction: column; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: var(--space-1); border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font-size: var(--fs-nav); font-weight: 600; color: var(--ink); padding: 0; }
.field__hint { font-weight: 400; color: var(--muted); }
.input {
  height: var(--h-input); padding: 0 22px; width: 100%;
  border: var(--bw-input) solid var(--border); border-radius: var(--radius-pill);
  background: var(--page); color: var(--ink);
  font-family: var(--font-main); font-size: var(--fs-body);
  transition: border-color 0.2s ease-out;
}
.input:focus { outline: 0; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: var(--bw-input) solid var(--border); border-radius: var(--radius-pill);
  font-size: var(--fs-nav); font-weight: 500; color: var(--ink); background: var(--page);
  transition: border-color 0.2s ease-out, background-color 0.2s ease-out;
}
.chip input:hover + span { background: var(--section); }
.chip input:checked + span { border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__success { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-5); }

/* ---------- 11. footer ---------- */
.footer { position: relative; background: var(--page); padding-top: var(--space-7, 96px); overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: var(--pad-side); right: var(--pad-side); height: 1px; background: var(--border); }
.footer__inner { display: flex; flex-direction: column; }
.footer__top { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-5); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.footer__signup { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px; }
.footer__signup .footer__heading { margin: 0; }
.footer__signup-row { display: flex; gap: 8px; }
.footer__signup-row .input { flex: 1; min-width: 0; height: 42px; }
.footer__social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer__social-link {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink); background: var(--section); transition: background 0.2s ease-out;
}
.footer__social-link:hover { background: var(--border); }
.footer__social-link svg { width: 20px; height: 20px; }
.footer__sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__heading { margin: 0 0 4px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted); }
.footer__link { font-size: var(--fs-nav); font-weight: 500; color: var(--ink); text-decoration: none; transition: color 0.2s ease-out; }
.footer__link:hover { color: var(--link-hover); }
.footer__small { font-size: var(--fs-nav); color: var(--muted); }
.footer__bottom { position: relative; display: flex; justify-content: space-between; }
/* Faint spectrum behind the wordmark: same blurred star-order lights as the manifesto,
   fading in from white at the copyright line */
.footer__base { position: relative; margin-top: var(--space-6); padding-top: var(--space-3); }
.footer__spectrum {
  position: absolute; left: -10%; right: -10%; top: 0; bottom: -20%; pointer-events: none;
  opacity: 0.32; filter: blur(40px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
          mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  background:
    radial-gradient(ellipse 26% 56% at 6% 64%, rgba(255, 90, 95, 0.85) 0%, rgba(255, 90, 95, 0.62) 22%, rgba(255, 90, 95, 0.36) 45%, rgba(255, 90, 95, 0.16) 65%, rgba(255, 90, 95, 0.05) 82%, rgba(255, 90, 95, 0) 100%),
    radial-gradient(ellipse 26% 56% at 19% 58%, rgba(255, 138, 61, 0.85) 0%, rgba(255, 138, 61, 0.62) 22%, rgba(255, 138, 61, 0.36) 45%, rgba(255, 138, 61, 0.16) 65%, rgba(255, 138, 61, 0.05) 82%, rgba(255, 138, 61, 0) 100%),
    radial-gradient(ellipse 26% 56% at 32% 63%, rgba(255, 194, 61, 0.85) 0%, rgba(255, 194, 61, 0.62) 22%, rgba(255, 194, 61, 0.36) 45%, rgba(255, 194, 61, 0.16) 65%, rgba(255, 194, 61, 0.05) 82%, rgba(255, 194, 61, 0) 100%),
    radial-gradient(ellipse 26% 56% at 44% 57%, rgba(76, 217, 138, 0.85) 0%, rgba(76, 217, 138, 0.62) 22%, rgba(76, 217, 138, 0.36) 45%, rgba(76, 217, 138, 0.16) 65%, rgba(76, 217, 138, 0.05) 82%, rgba(76, 217, 138, 0) 100%),
    radial-gradient(ellipse 26% 56% at 56% 64%, rgba(46, 196, 196, 0.85) 0%, rgba(46, 196, 196, 0.62) 22%, rgba(46, 196, 196, 0.36) 45%, rgba(46, 196, 196, 0.16) 65%, rgba(46, 196, 196, 0.05) 82%, rgba(46, 196, 196, 0) 100%),
    radial-gradient(ellipse 26% 56% at 68% 58%, rgba(56, 182, 255, 0.85) 0%, rgba(56, 182, 255, 0.62) 22%, rgba(56, 182, 255, 0.36) 45%, rgba(56, 182, 255, 0.16) 65%, rgba(56, 182, 255, 0.05) 82%, rgba(56, 182, 255, 0) 100%),
    radial-gradient(ellipse 26% 56% at 81% 63%, rgba(123, 97, 255, 0.85) 0%, rgba(123, 97, 255, 0.62) 22%, rgba(123, 97, 255, 0.36) 45%, rgba(123, 97, 255, 0.16) 65%, rgba(123, 97, 255, 0.05) 82%, rgba(123, 97, 255, 0) 100%),
    radial-gradient(ellipse 26% 56% at 94% 58%, rgba(212, 92, 255, 0.85) 0%, rgba(212, 92, 255, 0.62) 22%, rgba(212, 92, 255, 0.36) 45%, rgba(212, 92, 255, 0.16) 65%, rgba(212, 92, 255, 0.05) 82%, rgba(212, 92, 255, 0) 100%);
}
.footer__wordmark { position: relative; }
/* Very large wordmark along the bottom edge, cut by the page end */
.footer__wordmark {
  margin: var(--space-3) 0 0; padding-inline: var(--pad-side);
  font-weight: 700; letter-spacing: -0.06em; line-height: 0.74;
  font-size: calc((100vw - 2 * var(--pad-side)) / 1.98); text-align: center; white-space: nowrap;
  margin-bottom: -0.06em; user-select: none;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 35%, rgba(11, 11, 18, 0.12) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Nav: mobile menu parts (hidden on desktop) ---------- */
.nav__menu-button {
  position: relative; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.nav__menu-button span {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 0.2s ease-out, top 0.2s ease-out;
}
.nav__menu-button span:nth-child(1) { top: 17px; }
.nav__menu-button span:nth-child(2) { top: 25px; }
.nav.is-menu-open .nav__menu-button span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-menu-open .nav__menu-button span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.nav__menu {
  flex-direction: column; gap: 4px;
  max-width: 1360px; margin: var(--space-1) auto 0; padding: var(--space-2);
  border-radius: var(--radius-card); border: 1px solid var(--border);
  background: var(--page); color: var(--ink);
}
.nav__menu .nav__link { font-size: var(--fs-body); padding: 10px 14px; }

/* ---------- Tablet and below: two-column blocks stack ---------- */
@media (max-width: 1000px) {
  .faq__title, .faq__list,
  .closing-cta__text, .closing-cta__form-box { grid-column: 1 / -1; }
  .grid { row-gap: var(--space-5); }
  .closing-cta__text { position: static; }
  .benefit-row__text { grid-column: 1 / span 5; }
  .benefits--cards .benefits__rows { grid-template-columns: repeat(2, 1fr); }
  .benefit-row__media { grid-column: 7 / span 6; }
  .how-it-works__steps, .audience__cards { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step__number { padding-bottom: var(--space-3); }
}

/* ---------- Mobile (375px target) ---------- */
@media (max-width: 760px) {
  /* nav: logo left, button right, links behind a menu icon */
  .nav__pill { grid-template-columns: 1fr auto; padding: 6px 6px 6px 12px; }
  .nav__links, .nav__link--login { display: none; }
  .nav__menu-button { display: block; }
  .nav.is-menu-open .nav__menu { display: flex; }
  .nav__right { gap: 2px; }
  .btn--nav { padding: 0 16px; }

  .section-head { margin-bottom: var(--space-5); }

  .hero { padding: 120px var(--pad-side) var(--section-pad); }
  .hero__content { gap: var(--space-3); }
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { width: 100%; }

  .walkthrough-video { padding-bottom: calc(var(--section-pad) / 2); }
  .walkthrough-video__frame { aspect-ratio: 4 / 3; }

  .software-band { padding-block: var(--space-5); }
  .software-band__line { padding-inline: var(--pad-side); margin-bottom: var(--space-4); }

  .problem__lists { grid-template-columns: 1fr; }

  /* benefit rows stack: text above media */
  .benefits__rows { gap: var(--space-5); }
  .benefit-row__text, .benefit-row__media { grid-column: 1 / -1; }
  .benefit-row { row-gap: var(--space-3); }
  .benefits--cards .benefits__rows { grid-template-columns: 1fr; gap: var(--space-2); }

  .demo__stage { grid-template-columns: 1fr; padding-inline: var(--pad-side); row-gap: var(--space-4); }
  .demo__cta { margin-top: var(--space-4); }

  .faq__answer { padding-right: 0; }
  .mission__glow { width: 560px; height: 520px; }


  .footer__top { grid-template-columns: 1fr; }
  .footer__col { gap: 0; }
  .footer__link { padding-block: 10px; }   /* 44px tap targets */
  .footer__heading { margin-bottom: 4px; }
  .software-band__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .software-band__logo { width: 22px; height: 22px; }
  .footer__sitemap { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
}

/* Glow card (js/glow-card.js): spectrum glow on the card border, following the pointer.
   Subtle: a bright 1.5px border spot plus a pale outer bloom that fades fully into the ground. */
.how-it-works__steps, .audience__cards, .benefits__rows { isolation: isolate; }   /* keeps the bloom above the section ground, behind the cards */
[data-glow] { position: relative; --glow-size: 240px; }
[data-glow]::before,
[data-glow]::after {
  content: ""; position: absolute; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(var(--glow-size) circle at var(--glow-x, -9999px) var(--glow-y, -9999px), var(--glow-color, transparent), transparent 70%);
}
/* Border ring, drawn over the 1px Border outline */
[data-glow]::before {
  inset: -1px; padding: 1.5px; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Outer bloom: unmasked and behind the white card, so it has no edge */
[data-glow]::after {
  inset: -1px; z-index: -1;
  background: radial-gradient(calc(var(--glow-size) * 0.8) circle at var(--glow-x, -9999px) var(--glow-y, -9999px), var(--glow-color, transparent), transparent 75%);
  opacity: .35; filter: blur(28px);
}

/* ---------- Showcase page ---------- */
.page-top { padding-top: 96px; }
.showcase__title { margin-bottom: var(--space-5); }
.showcase__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.showcase__card { aspect-ratio: 3 / 2; }

/* ---------- App bar (login, dashboard) ---------- */
.app-bar {
  position: absolute; top: var(--nav-top); left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1360px; margin-inline: auto; padding: 6px var(--nav-side);
  height: var(--h-nav); color: var(--ink);
}

/* ---------- Login page (prototype: mock SSO) ---------- */
.login { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad-side) var(--space-6); }
.login__card { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; padding: var(--space-5) var(--card-pad); }
.login__star { width: 48px; height: 48px; }
.login__options { width: 100%; display: flex; flex-direction: column; gap: var(--space-2); }

/* ---------- Dashboard (prototype) ---------- */
.page-dashboard { background: var(--page); }
.dash { display: flex; min-height: 100vh; min-height: 100svh; }
.dash__sidebar {
  position: sticky; top: 0; flex: none; width: 72px; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0; background: var(--ink); color: var(--page);
}
.dash__mark { display: grid; place-items: center; width: 44px; height: 44px; }
.dash__mark .star { width: 32px; height: 32px; }
.dash__tools { display: flex; flex-direction: column; gap: var(--space-1); }
.dash__tool {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--page); transition: background-color 0.2s ease-out;
}
.dash__tool:hover { background: rgba(255, 255, 255, 0.12); }
.dash__tool svg { width: 22px; height: 22px; }
.dash__main { flex: 1; min-width: 0; padding: var(--space-6) clamp(24px, 6vw, 96px) 140px; }
.dash__head { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-5); }
.dash__tile { display: inline-flex; flex-direction: column; gap: var(--space-1); text-decoration: none; color: var(--ink); }
.dash__thumb { display: grid; place-items: center; width: 160px; aspect-ratio: 1; border-radius: var(--radius-card); transition: transform 0.2s ease-out; }
.dash__tile:hover .dash__thumb { transform: translateY(-2px); }
.dash__tile { isolation: isolate; }   /* keeps the glow bloom behind the card */
.dash__thumb--new { background: var(--section); border: 1px solid var(--border); }
.dash__thumb--new svg { width: 36px; height: 36px; }
.dash__label { font-size: var(--fs-nav); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__rule { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
.dash__scenes { display: flex; flex-wrap: wrap; gap: var(--grid-gap); }
.dash__section-title { margin-bottom: var(--space-4); }
.dash__scene { width: 160px; display: flex; flex-direction: column; gap: var(--space-1); }
.dash__scene:hover .dash__thumb { transform: translateY(-2px); }
.dash__scene-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); }
.dash__actions { display: flex; gap: 2px; margin-right: -8px; }
.dash__action {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--ink); transition: background-color 0.2s ease-out;
}
.dash__action:hover { background: var(--hover-pill); }
.dash__action svg { width: 18px; height: 18px; }
.dash__feedback { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.dash__feedback-panel { width: min(320px, calc(100vw - 2 * var(--space-4))); }
.dash__feedback-panel form { display: flex; flex-direction: column; gap: var(--space-2); }
.dash__textarea {
  width: 100%; padding: 12px 16px; resize: vertical;
  border: var(--bw-input) solid var(--border); border-radius: var(--radius-card);
  font-family: var(--font-main); font-size: var(--fs-body); color: var(--ink); background: var(--page);
}
.dash__textarea:focus { outline: 0; border-color: var(--ink); }
.dash__thanks { font-weight: 600; color: var(--ink); }

/* ---------- Scene details pop-up (dashboard) ---------- */
.scene-dialog {
  width: min(1040px, calc(100vw - 2 * var(--space-4))); max-height: calc(100vh - 2 * var(--space-4));
  padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--page); color: var(--body); overflow: auto;
}
.scene-dialog::backdrop { background: rgba(11, 11, 18, 0.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.scene-dialog__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-5); padding: var(--space-5); }
.scene-dialog__preview { aspect-ratio: 16 / 9; align-self: start; }
.scene-dialog__details { display: flex; flex-direction: column; gap: var(--space-3); padding-right: var(--space-4); }
.scene-dialog__link { display: flex; gap: var(--space-1); align-items: center; }
.scene-dialog__link .input { flex: 1; min-width: 0; color: var(--muted); background: var(--section); text-overflow: ellipsis; }
.scene-dialog__link .btn { flex: none; }
.scene-dialog__value { color: var(--ink); }
[data-scene-password-field] { margin-top: var(--space-2); }
.scene-dialog__switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); cursor: pointer; }
.scene-dialog__close {
  position: absolute; top: var(--space-2); right: var(--space-2);
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.2s ease-out;
}
.scene-dialog__close:hover { background: var(--hover-pill); }
.scene-dialog__close svg { width: 22px; height: 22px; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--border); cursor: pointer;
  transition: background-color 0.2s ease-out;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--page); transition: transform 0.2s ease-out;
}
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 1000px) {
  .scene-dialog__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) var(--space-3) var(--space-3); }
  .scene-dialog__details { padding-right: 0; }
  .scene-dialog__preview { margin-top: var(--space-4); }
}

@media (max-width: 1000px) {
  .showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .showcase__grid { grid-template-columns: minmax(0, 1fr); }
  .page-top { padding-top: 72px; }
  .dash__sidebar { width: 56px; }
  .dash__main { padding: var(--space-5) var(--space-3) 120px; }
  .dash__thumb { width: 120px; }
  .dash__scene { width: 120px; }
  .dash__action { width: 28px; height: 28px; }
  .dash__actions { margin-right: -6px; gap: 0; }
  .dash__feedback { right: var(--space-2); bottom: var(--space-2); }
}
