/* The Veridical marketing site. Plain CSS, no build step. Colours follow the app screens. */

:root {
  color-scheme: light;

  --cream: #fefef8;        /* app background */
  --cream-2: #f9f7ee;      /* soft cream band */
  --surface: #ffffff;
  --line: #ecebdc;         /* app card border */
  --lav-100: #f3f0fb;
  --lav-200: #e4dff7;
  --lav-300: #d8d5fa;      /* gradient start, as in the logo */
  --lilac-400: #b8a3d1;    /* gradient end */
  --violet-500: #8c78b8;
  --violet-700: #574a7d;   /* app headings: 8:1 on cream */
  --violet-800: #463b69;
  --night: #241c4d;        /* the sky */
  --ink: #3a3350;
  --text: #4c4759;         /* 8.6:1 on cream */
  --muted: #676276;        /* 5.6:1 on cream */
  --error: #a63446;
  --error-bg: #fbeef0;

  --grad: linear-gradient(135deg, var(--lav-300), var(--lilac-400));
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(58 51 80 / 0.04), 0 12px 32px rgb(87 74 125 / 0.09);
  --shadow-lg: 0 2px 6px rgb(36 28 77 / 0.08), 0 30px 70px rgb(36 28 77 / 0.22);
  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--violet-700);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  color: var(--violet-800);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--violet-700);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--violet-700);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}

.button-primary {
  background: var(--grad);
  color: #392f5f;          /* 5.3:1 on the darkest end of the gradient */
  box-shadow: 0 10px 26px rgb(140 120 184 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.55);
}

.button-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03) saturate(1.05);
  box-shadow: 0 14px 34px rgb(140 120 184 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.55);
}

.button-primary:active {
  transform: translateY(0);
}

.button-primary:disabled {
  cursor: progress;
  filter: saturate(0.6);
  transform: none;
}

.button-small {
  min-height: 2.6rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

.button-block {
  width: 100%;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(254 254 248 / 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgb(87 74 125 / 0.06);
}

.site-header.is-open {
  background: var(--cream);
  transition: none;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  border-radius: 8px;
}

.brand-icon {
  width: 28px;
  height: auto;
}

.brand-text {
  width: 158px;
  height: auto;
}

/* White wordmark over the sky, lilac once the header turns cream. */
.brand-text-color,
.site-header.is-scrolled .brand-text-light,
.site-header.is-open .brand-text-light {
  display: none;
}

.site-header.is-scrolled .brand-text-color,
.site-header.is-open .brand-text-color {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  color: rgb(255 255 255 / 0.92);
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  transition: color 0.2s;
}

.site-nav ul a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.site-header.is-scrolled .site-nav ul a {
  color: var(--violet-700);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  border-color: var(--lilac-400);
  background: var(--surface);
  color: var(--violet-700);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 52rem) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgb(87 74 125 / 0.1);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav ul a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--violet-700);
    font-size: 1.05rem;
  }

  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .site-header {
    position: absolute;
    height: auto;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  html:not(.js) .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

/* The slanted cream edge, echoing the sign-in screen. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(3rem, 8vw, 7rem);
  background: var(--cream);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 30%;  /* the sky's own logo sits between the copy and the phone */
}

/* A soft scrim on the left keeps the copy readable over the sky. */
.hero-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(28 21 64 / 0.78) 0%, rgb(28 21 64 / 0.45) 38%, rgb(28 21 64 / 0) 60%),
    linear-gradient(180deg, rgb(28 21 64 / 0.35) 0%, rgb(28 21 64 / 0) 25%);
}

.glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 34rem;
  height: 34rem;
  margin: -17rem 0 0 -17rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(226 210 255 / 0.28) 0%, rgb(180 150 240 / 0.08) 45%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.spark {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px rgb(225 210 255 / 0.9));
  opacity: 0.85;
}

.spark-1 { left: 9%;  top: 18%; }
.spark-2 { left: 41%; top: 74%; width: 9px; height: 9px; }
.spark-3 { right: 7%; top: 30%; width: 11px; height: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .glow {
    animation: breathe 9s ease-in-out infinite;
  }

  .spark {
    animation: twinkle 5s ease-in-out infinite;
  }

  .spark-2 { animation-delay: -1.7s; animation-duration: 6.5s; }
  .spark-3 { animation-delay: -3.2s; animation-duration: 7s; }

  .spark-1 {
    animation: twinkle 5s ease-in-out infinite, drift 18s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1) rotate(45deg); }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 1.5rem -0.75rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.55fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  grid-column: 1;
  max-width: 31rem;
}

.beta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.86rem;
  font-weight: 500;
  color: #f1ecff;
}

.beta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9ccff;
  box-shadow: 0 0 0 3px rgb(217 204 255 / 0.25), 0 0 10px #d9ccff;
}

.hero h1 {
  margin-top: 1.3rem;
  color: #fff;
  font-size: clamp(2.35rem, 1.5rem + 2.6vw, 3.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-shadow: 0 2px 30px rgb(28 21 64 / 0.5);
}

.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.07rem, 1rem + 0.35vw, 1.22rem);
  color: #ece7fb;
  max-width: 31rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2rem;
}

.hero-link {
  color: #fff;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: #d6cff0;
}

.hero-visual {
  grid-column: 3;
  margin: 0;
  justify-self: end;
  width: min(100%, 19.5rem);
}

/* ------------------------------------------------------------ device frames */

.phone {
  position: relative;
  padding: 9px;
  border-radius: 2.6rem;
  background: linear-gradient(160deg, #ffffff, #efeaf9);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(184 163 209 / 0.45);
}

.phone img {
  width: 100%;
  border-radius: 2.05rem;
  background: var(--cream);
}

/* Partial screens: a soft fade at the cut edge instead of a hard crop. */
.phone-crop img {
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent);
  mask-image: linear-gradient(180deg, #000 85%, transparent);
}

.hero-visual .phone {
  box-shadow: 0 40px 90px rgb(10 6 30 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.25), 0 0 60px rgb(200 180 255 / 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .phone {
    animation: float 8s ease-in-out infinite;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Tablets and phones: the sky sits on top (its logo visible), the copy on a cream sheet. */
@media (max-width: 64rem) {
  .hero {
    background: var(--cream);
    color: var(--text);
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero::after {
    display: none;
  }

  .hero-sky {
    position: relative;
    inset: auto;
    height: clamp(17rem, 72vw, 22rem);
    z-index: 0;
  }

  .hero-sky img {
    object-position: 50% 40%;
  }

  .hero-sky::after {
    background: linear-gradient(180deg, rgb(28 21 64 / 0.45) 0%, rgb(28 21 64 / 0) 35%);
  }

  .glow {
    top: 52%;
    width: 22rem;
    height: 22rem;
    margin: -11rem 0 0 -11rem;
  }

  .hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
    margin-top: -3.5rem;
    padding-top: 2.75rem;
    padding-bottom: 4rem;  /* room for the phone's shadow inside the clipped sheet */
    background: var(--cream);
    border-radius: 2rem 2rem 0 0;
    clip-path: polygon(0 1.8rem, 100% 0, 100% 100%, 0 100%);
    gap: 2.5rem;
  }

  .hero-copy,
  .hero-visual {
    grid-column: 1;
  }

  .beta-label {
    background: var(--lav-100);
    border-color: var(--lav-200);
    color: var(--violet-700);
  }

  .hero h1 {
    color: var(--violet-800);
    text-shadow: none;
  }

  .lead {
    color: var(--text);
  }

  .hero-link {
    color: var(--violet-700);
  }

  .hero-note {
    color: var(--muted);
  }

  .hero-visual {
    justify-self: center;
    width: min(78%, 18rem);
  }
}

@media (min-width: 46.01rem) and (max-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
    padding-top: 4rem;
  }

  .hero-visual {
    grid-column: 2;
    width: min(100%, 17rem);
  }
}

/* ----------------------------------------------------------------- sections */

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-cream {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(216 213 250 / 0.28), transparent 60%),
    var(--cream-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--violet-700);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sparkle-mark {
  width: 12px;
  height: 12px;
  background: var(--grad);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.fine-print {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Gentle entrance, only with JavaScript and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ----------------------------------------------------------------- showcase */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.showcase-main {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  position: relative;
}

.showcase-main::before {
  content: "";
  position: absolute;
  inset: 8% 0 20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(216 213 250 / 0.7), transparent);
}

.showcase-main .phone {
  width: min(100%, 20rem);
}

.showcase-main figcaption,
.shot-card figcaption {
  max-width: 24rem;
}

.showcase-main figcaption {
  text-align: center;
}

figcaption p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.showcase-side {
  display: grid;
  gap: 1.75rem;
}

.shot-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-card img {
  border-radius: var(--radius);
  background: var(--cream);
  outline: 1px solid var(--line);
}

.shot-card figcaption {
  padding: 1.1rem 0.4rem 0.2rem;
}

@media (max-width: 52rem) {
  .showcase {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }

.step-art {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, var(--lav-100) 70%);
  box-shadow: inset 0 0 0 1.5px var(--lav-200), 0 8px 20px rgb(140 120 184 / 0.18);
}

.step-art svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--violet-500);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-number {
  color: var(--violet-700);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.step > p:last-child {
  margin-top: 0.6rem;
  color: var(--muted);
}

@media (max-width: 52rem) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ subjects */

.subjects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.subject-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(28rem 14rem at 100% 0%, rgb(216 213 250 / 0.35), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.subject-card:nth-child(2) { transition-delay: 0.1s; }

.subject-card h3 {
  font-size: 1.5rem;
}

.subject-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-height: 4.75rem;
  margin-bottom: 1.6rem;
}

.subject-art-reading span:not(.blend-arrow) {
  display: grid;
  place-items: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--lilac-400);
  color: var(--violet-700);
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 24rem) {
  .subject-art-reading span:not(.blend-arrow) {
    min-width: 2.5rem;
    height: 2.5rem;
  }

  .frame {
    grid-template-columns: repeat(5, 1.3rem);
  }

  .frame i {
    width: 1.3rem;
    height: 1.3rem;
  }
}

.subject-art-reading .blend-word {
  background: var(--grad) !important;
  box-shadow: 0 8px 20px rgb(140 120 184 / 0.3) !important;
  color: #392f5f !important;
  padding: 0 1.2rem !important;
}

.blend-arrow {
  color: var(--violet-500);
  font-size: 1.3rem;
}

.subject-art-math {
  gap: 1.25rem;
  flex-wrap: wrap;
}

.frame {
  display: grid;
  grid-template-columns: repeat(5, 1.6rem);
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--lilac-400);
}

.frame i {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--lav-200);
}

.frame .on {
  background: var(--grad);
  box-shadow: none;
}

.frame .on-2 {
  background: #f1d9a8;
  box-shadow: none;
}

.sum {
  color: var(--violet-700);
  font-size: 1.3rem;
  font-weight: 650;
}

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23574a7d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat,
    var(--lav-200);
}

@media (max-width: 52rem) {
  .subjects {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------- parents */

.parents-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.parents-visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 21rem);
}

.parents-copy .section-head {
  margin-bottom: 1.75rem;
}

.insight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.insight-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2rem;
  border-bottom: 1px solid var(--line);
}

.insight-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.15rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--grad);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.insight-list strong {
  color: var(--violet-800);
  font-weight: 650;
}

.note-card {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--lav-100);
  color: var(--text);
  font-size: 0.97rem;
}

@media (max-width: 52rem) {
  .parents-grid {
    grid-template-columns: 1fr;
  }

  .parents-visual {
    order: 2;
    width: min(85%, 19rem);
  }
}

/* --------------------------------------------------------------- honest beta */

.beta-band {
  padding-block: clamp(3rem, 7vw, 5rem) 0;
}

.beta-band-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 50rem;
}

.beta-band-icon {
  flex: none;
  width: 2.5rem;
  margin-top: 0.2rem;
}

.beta-band h2 {
  font-size: 1.5rem;
}

.beta-band p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- form */

.section-form {
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.form-aside {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--lav-200);
  color: var(--muted);
  font-size: 0.97rem;
}

.form-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* A thin lilac rim on the card. */
.form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--lav-300), transparent 40%, var(--lilac-400));
  filter: blur(14px);
  opacity: 0.55;
}

.beta-form {
  display: grid;
  gap: 1.35rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  color: var(--violet-800);
  font-weight: 600;
  padding: 0;
}

.field > legend {
  margin-bottom: 0.45rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid #ddd9c6;
  border-radius: 999px;
  background: #fcfcf6;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23574a7d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1rem;
}

input[type="text"]:hover,
input[type="email"]:hover,
select:hover {
  border-color: var(--lilac-400);
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
select:focus-visible {
  border-color: var(--violet-500);
  background-color: #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgb(184 163 209 / 0.35);
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
}

.field-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-error {
  color: var(--error);
  font-size: 0.95rem;
  font-weight: 600;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.5rem 1.15rem 0.5rem 0.9rem;
  border: 1.5px solid var(--lav-200);
  border-radius: 999px;
  background: var(--surface);
  color: var(--violet-700);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.choice:hover {
  border-color: var(--lilac-400);
}

.choice:has(input:checked) {
  border-color: var(--violet-500);
  background: var(--lav-100);
}

.choice:has(input:focus-visible) {
  box-shadow: var(--focus);
}

.choice input,
.consent input {
  accent-color: var(--violet-700);
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
}

.choice input:focus-visible {
  box-shadow: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400 !important;
  color: var(--text) !important;
  cursor: pointer;
}

.consent input {
  flex: none;
  margin-top: 0.25rem;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.error-summary {
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--error);
  border-radius: var(--radius);
  background: var(--error-bg);
}

.error-summary h3 {
  color: var(--error);
  font-size: 1.05rem;
}

.error-summary ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: var(--error);
  font-weight: 600;
}

.spinner {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgb(57 47 95 / 0.25);
  border-top-color: #392f5f;
  border-radius: 50%;
}

[aria-busy="true"] .spinner {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  [aria-busy="true"] .spinner {
    animation-duration: 2.4s;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  min-height: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.form-status:empty {
  min-height: 0;
  margin-top: -1rem;
}

.form-status.is-error {
  color: var(--error);
  font-weight: 600;
}

.form-success {
  text-align: center;
  padding-block: 1.5rem;
}

.form-success:focus-visible {
  border-radius: var(--radius);
}

.success-mark {
  width: 2.5rem;
  margin: 0 auto 1.1rem;
}

.form-success h3 {
  font-size: 1.4rem;
}

.form-success p {
  margin-top: 0.75rem;
  color: var(--muted);
}

@media (max-width: 52rem) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------- footer */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  background: var(--cream-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.brand-footer .brand-text {
  width: 140px;
}

.footer-text {
  flex: 1 1 18rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (forced-colors: active) {
  .button,
  .choice,
  input,
  select {
    border: 1px solid ButtonText;
  }
}
