/* Waitlist page — white, in the language of likwid.ai.
 *
 * Governed by the Likwid design rulebook (v2): General Sans headings that run
 * thinner than bold with -0.02em tracking, one accent (primary stepping to
 * electric-blue, never the three-stop rainbow), house easing, 14px reveals,
 * no card grids. Every section is two columns on desktop (from 60rem) and
 * stacks on mobile. The footer is the one dark band, as on the main site.
 */

/* --- Local aliases -------------------------------------------------------
 * Content starts at opacity 0 and relies on an animation to appear. If a
 * token were ever undefined (a stale cached tokens.css did exactly this), the
 * whole animation shorthand is dropped and the hero stays blank. Routing every
 * use through these aliases gives each one a literal fallback.
 */

:root {
  --ease: var(--ease-house, cubic-bezier(0.22, 1, 0.36, 1));
  --accent-fill: var(--gradient-accent, linear-gradient(hsl(var(--primary)), hsl(var(--primary))));
  --navy: #070b16;   /* the site's dark canvas — rulebook §1, sanctioned hex */

  /* Hero structure intensity: resting plate opacity, the glint's peak, and
     the halo behind the capstone. Tune the look from here. */
  --mono-base: 0.06;
  --mono-peak: 0.16;
  --mono-halo: 0.22;
}

/* --- Reset --------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body, h1, h2, h3, p, ol, figure, blockquote, dl, dd { margin: 0; }

ol { padding: 0; list-style: none; }

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

input, button, textarea, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Base ---------------------------------------------------------------- */

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: hsl(var(--primary) / 0.14); }

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Layout -------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: 80rem; }

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  border-top: 1px solid hsl(var(--border));
}

/* Two columns from 60rem; stacked below. */
.split {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-24);
    align-items: start;
  }

  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .split--cta {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  /* The heading stays in view while the right column scrolls past it. */
  .split__aside { position: sticky; top: 7rem; }
}

/* --- Nav ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: hsl(var(--background) / 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease);
}

.nav.is-scrolled { border-bottom-color: hsl(var(--border)); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__brand img { height: 28px; width: auto; }

.nav__cta {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background-color: hsl(var(--primary));
  background-image: var(--accent-fill);
  color: hsl(var(--primary-foreground));
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px -10px hsl(var(--primary) / 0.7);
  transition: transform var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px hsl(var(--primary) / 0.8);
}

/* --- Microlabel ----------------------------------------------------------- */

.microlabel {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: var(--space-4);
}

.microlabel--muted { color: hsl(var(--muted-foreground)); }

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;          /* rulebook §2: thinner than bold */
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

/* Capped below the rulebook's lg:text-6xl ceiling — it now shares a row. */
.display { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }

.section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

/* The one gradient moment in a heading. */
.accent {
  background-image: var(--accent-fill);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* --- Motion primitives ---------------------------------------------------- */

/* Hero entrance: fires on load, staggered by --d. */
.rise {
  opacity: 0;
  animation: rise 0.8s var(--ease) var(--d, 0s) forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Below the fold: same motion, triggered by waitlist.js on scroll. */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { animation: rise 0.7s var(--ease) var(--d, 0s) forwards; }

/* Typing caret, used by the plain-words typewriter. */
.typed__caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: hsl(var(--primary));
  animation: caret-blink 1.1s steps(1) infinite;
}

.typed__caret.is-done { animation: none; opacity: 0; transition: opacity 0.6s var(--ease); }

@keyframes caret-blink {
  0%, 45%  { opacity: 1; }
  50%, 95% { opacity: 0; }
  100%     { opacity: 1; }
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;           /* clips the glows and the structure's bleed */
  padding-top: clamp(var(--space-12), 8vh, var(--space-24));
}

.hero__ambient { position: absolute; inset: 0; pointer-events: none; }

.hero__ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--foreground) / 0.14) 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 68% 45%, #000 12%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 60% at 68% 45%, #000 12%, transparent 70%);
}

.hero__glow { position: absolute; border-radius: 50%; filter: blur(110px); }

.hero__glow--a {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: hsl(var(--primary) / 0.1);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.hero__glow--b {
  width: 560px; height: 560px;
  top: 80px; right: -80px;
  background: hsl(var(--electric-blue) / 0.1);
  animation: drift-b 28s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(70px, 50px); } }
@keyframes drift-b { to { transform: translate(-80px, -40px); } }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
}

/* Order: headline → form → sublines. */
.hero__title { max-width: 40rem; margin-bottom: var(--space-8); }

/* "No more juggling between [word]." — the word slides vertically. */
.juggle {
  margin-top: var(--space-12);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.rotator {
  display: inline-grid;
  height: 1.3em;
  overflow: hidden;
  vertical-align: top;
  transition: width 0.55s var(--ease);
}

.rotator__word {
  grid-area: 1 / 1;
  justify-self: start;
  white-space: nowrap;
  color: hsl(var(--primary));
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.rotator__word.is-active  { transform: translateY(0); opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero__pitch { max-width: 32rem; margin-top: var(--space-2); }

/* Structure — mobile: under the copy, at least 640px wide and cropped by the
   hero at the sides, running off the hero's bottom edge. */
.monolith {
  position: relative;
  left: 50%;
  width: max(100%, 640px);
  max-width: 1000px;
  height: auto;
  transform: translateX(-50%);
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: end;           /* the structure sits on the hero's bottom edge */
  }

  .hero__copy {
    align-self: center;
    padding-bottom: var(--space-16);
  }

  /* Larger than its column; the hero crops whatever passes the right edge. */
  .hero__art .monolith {
    left: 0;
    width: 122%;
    max-width: none;
    transform: none;
  }
}

.mono__halo {
  fill: hsl(var(--primary) / var(--mono-halo));
  transform-box: fill-box;
  transform-origin: center;
  animation: mono-breathe 9s ease-in-out infinite;
}

.mono__layer {
  animation: mono-float 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.35s);   /* negative: already moving at load */
}

.mono__layer polygon {
  fill: url(#mono-fill);
  fill-opacity: var(--mono-base);
  stroke: hsl(var(--primary) / 0.22);
  stroke-width: 1;
  stroke-linejoin: round;
  /* A brighter band travels up the stack, bottom plate first. */
  animation: mono-glint 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
}

.mono__cap {
  filter: drop-shadow(0 10px 18px hsl(var(--primary) / 0.45));
  animation: mono-float 8s ease-in-out infinite;
  animation-delay: calc(12 * -0.35s);
}

.mono__cap-edge {
  fill: none;
  stroke: hsl(0 0% 100% / 0.75);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

@keyframes mono-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes mono-glint {
  0%, 16%, 100% { fill-opacity: var(--mono-base); }
  8%            { fill-opacity: var(--mono-peak); }
}

@keyframes mono-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* --- Hypothesis points ----------------------------------------------------- */

.points { border-top: 1px solid hsl(var(--border)); }

.point {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  padding-block: var(--space-8);
  border-bottom: 1px solid hsl(var(--border));
}

.point__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: hsl(var(--primary));
  padding-top: 0.45rem;
}

.point__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: var(--space-3);
}

.point__tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.08);
}

.point__lead {
  font-size: 1.05rem;
  font-weight: 500;
}

.point__text {
  margin-top: var(--space-2);
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
}

/* --- Plain words (typewriter) --------------------------------------------- */

.plain {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.18;
  text-wrap: pretty;
}

/* --- Fancier terms: ontology ------------------------------------------------ */

/* The investor-facing claim, stated before the explanation. */
.onto__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.onto__intro {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 36rem;
  text-wrap: pretty;
}

.onto__head,
.onto__row {
  display: grid;
  grid-template-columns: 4.5rem 2.5rem 1fr;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 46rem) {
  .onto__head, .onto__row { grid-template-columns: 5.5rem 5rem 1fr; }
}

.onto__head {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.onto__row {
  padding-block: var(--space-4);
  border-bottom: 1px solid hsl(var(--border));
}

.onto__sys {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: hsl(var(--muted-foreground));
}

.onto__smb { font-weight: 500; }

/* The connector draws itself as the row arrives. */
.onto__wire {
  position: relative;
  height: 1px;
  background: linear-gradient(to right, hsl(var(--border)), hsl(var(--primary) / 0.6));
  transform: scaleX(0);
  transform-origin: left;
}

.onto__wire::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  border: 3.5px solid transparent;
  border-left: 5px solid hsl(var(--primary) / 0.7);
  border-right: 0;
}

.onto__row.is-visible .onto__wire {
  transform: scaleX(1);
  transition: transform 0.8s var(--ease) calc(var(--d, 0s) + 0.25s);
}

.onto__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onto__drop {
  width: 1px;
  height: 44px;
  background: linear-gradient(hsl(var(--border)), hsl(var(--primary)));
}

.onto__pill {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background-color: hsl(var(--primary));
  background-image: var(--accent-fill);
  color: hsl(var(--primary-foreground));
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px -14px hsl(var(--primary) / 0.7);
}

/* --- Form ---------------------------------------------------------------------
 * Business name full width on top, email and phone side by side, then the
 * compact "what do you want to fix first" chips and the button, each full
 * width. Three text boxes in one row left each too narrow inside a half-width
 * column. On phones everything stacks in one column.
 */

.form { max-width: 40rem; }

.form__row { display: grid; gap: var(--space-3); }

@media (min-width: 34rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__row .button,
  .form__row .field--business,
  .form__row .field--choices { grid-column: 1 / -1; }
}

.input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1.1rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}

.input::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
.input:hover { border-color: hsl(var(--muted-foreground) / 0.45); }

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.12);
}

.phone {
  display: flex;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}

.phone:hover { border-color: hsl(var(--muted-foreground) / 0.45); }

.phone:focus-within {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.12);
}

/* Editable country code, styled as a segment of the phone field. */
.phone__code {
  flex: none;
  width: 4.5rem;
  height: calc(3.5rem - 2px);
  padding: 0;
  border: 0;
  border-right: 1px solid hsl(var(--input));
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-size: 1.05rem;
  text-align: center;
  transition: background var(--duration-fast) var(--ease);
}

.phone__code:focus { outline: none; background: hsl(var(--primary) / 0.06); }

.phone .input { height: calc(3.5rem - 2px); border: 0; border-radius: 0; box-shadow: none; }

/* --- "What do you want to fix first?" ------------------------------------------
 * Compact checkbox chips, scoped to the signup form: the questionnaire also
 * loads this file and styles its own, larger chips in questions.css. Native
 * checkboxes stay focusable and keyboard-operable underneath; the chip carries
 * the visible state. Small with a mouse, at least 40px tall on touch screens.
 */

/* A fieldset defaults to its content's width; 0 lets the chips wrap instead
   of pushing the page wider than the screen. */
.field--choices { margin: 0; padding: 0; border: 0; min-width: 0; }

.choices__question {
  padding: 0;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: hsl(var(--foreground));
}

.choices__hint { font-weight: 400; color: hsl(var(--muted-foreground)); }

.form .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.form .choice { position: relative; }

.form .choice__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.form .chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.8rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: border-color var(--duration-fast) var(--ease),
              background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}

@media (pointer: coarse) {
  .form .chip { min-height: 2.5rem; padding: 0 0.9rem; }
}

@media (hover: hover) {
  .form .choice:hover .chip { border-color: hsl(var(--muted-foreground) / 0.45); }
}

.form .choice__input:checked + .chip {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  font-weight: 600;
}

.form .choice__input:focus-visible + .chip {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Nothing picked yet: outline the unpicked chips; a picked chip keeps its look. */
.field--choices.is-invalid .choice__input:not(:checked) + .chip {
  border-color: hsl(var(--destructive) / 0.5);
}

/* Off-screen rather than display:none — some bots skip hidden inputs but
   fill anything still in the layout. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 var(--space-8);
  background-color: hsl(var(--primary));
  background-image: var(--accent-fill);
  color: hsl(var(--primary-foreground));
  border: 0;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 24px -12px hsl(var(--primary) / 0.65);
  transition: transform var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px hsl(var(--primary) / 0.75);
}

.button:active { transform: translateY(0); }

/* While a submission is in flight (set by waitlist.js). */
.button.is-loading,
.button:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.form__status {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: hsl(var(--primary));
}

.form__status:empty { display: none; }

/* --- Form states ---------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: var(--space-1); }

.field-error {
  font-size: var(--text-sm);
  color: hsl(var(--destructive));
}

.input[aria-invalid="true"],
.phone.is-invalid { border-color: hsl(var(--destructive)); }

/* Rate limit or server trouble — above the fields, for the form that was used. */
.form__error {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: hsl(var(--destructive) / 0.08);
  color: hsl(var(--destructive));
  font-size: var(--text-sm);
}

.form__note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: hsl(var(--muted-foreground));
}

.form__note a { color: inherit; text-underline-offset: 2px; }
.form__note a:hover { color: hsl(var(--foreground)); }

/* After a successful join, the form is replaced by this. */
.form-done {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 40rem;
  padding: var(--space-6);
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.05);
  font-size: 1.05rem;
  font-weight: 500;
}

.form-done__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  background-image: var(--accent-fill);
  color: hsl(var(--primary-foreground));
  font-size: 1rem;
}

/* --- Legal pages ------------------------------------------------------------------ */

.legal {
  padding-block: clamp(var(--space-12), 8vh, var(--space-24));
}

.legal .shell { max-width: 44rem; }

.legal__title { font-size: clamp(2rem, 3.8vw, 3rem); }

.legal__meta {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: hsl(var(--muted-foreground));
}

.legal h2 {
  margin: var(--space-12) 0 var(--space-3);
  font-size: 1.3rem;
}

.legal p,
.legal li {
  line-height: 1.7;
  color: hsl(var(--foreground) / 0.8);
}

.legal p + p,
.legal ul + p,
.legal p + ul { margin-top: var(--space-3); }

.legal ul { padding-left: 1.2rem; }

.legal__entity {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-left: 2px solid hsl(var(--primary));
  background: hsl(var(--muted) / 0.6);
  font-style: normal;
  line-height: 1.7;
  color: hsl(var(--foreground) / 0.85);
}
.legal li + li { margin-top: var(--space-2); }
.legal a { color: hsl(var(--primary)); }

/* --- Footer ---------------------------------------------------------------------
 * After likwid.ai: navy canvas, white logo, top glow, giant ghosted wordmark
 * bleeding off the bottom. Hardcoded white/navy is the rulebook's sanctioned
 * exception for dark sections.
 */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-top: clamp(var(--space-16), 10vw, var(--space-32));
}

.footer__glow {
  position: absolute;
  top: -100px; left: 50%;
  width: 600px; height: 200px;
  margin-left: -300px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.14);
  filter: blur(120px);
  pointer-events: none;
}

/* The fan of planes, anchored bottom-right and faded out towards the text. */
.footer__art {
  position: absolute;
  right: 0; bottom: 0;
  width: min(100%, 1100px);
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
          mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}

.fan {
  fill: url(#fan-fill);
  fill-opacity: 0.13;
  stroke: rgb(255 255 255 / 0.1);
  stroke-width: 1;
  /* A lighter band sweeps from the front plane to the back. */
  animation: fan-glint 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

@keyframes fan-glint {
  0%, 18%, 100% { fill-opacity: 0.13; }
  9%            { fill-opacity: 0.3; }
}

.footer__body { position: relative; z-index: 1; }

.footer__brand { max-width: 26rem; }

.footer__logo img { height: 32px; width: auto; }

.footer__brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.55);
}

.footer__cta {
  display: inline-block;
  margin-top: var(--space-6);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.25);
  padding-bottom: 2px;
  transition: border-color var(--duration-fast) var(--ease);
}

.footer__cta:hover { border-bottom-color: #fff; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: clamp(var(--space-12), 8vw, var(--space-24));
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--text-sm);
  color: rgb(255 255 255 / 0.4);
}

.footer__bar a { color: inherit; text-decoration: none; }
.footer__bar a:hover { color: #fff; }

.footer__wordmark {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: var(--space-6) auto 0;
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-size: 19vw;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.78;
  transform: translateY(16%);
  background-image: linear-gradient(to bottom, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.01));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* --- Reduced motion ----------------------------------------------------------------
 * tokens.css shortens every animation to ~0; this also drops the entrance
 * delays so nothing sits invisible waiting for them, and stills the hero and
 * footer structures. The rotator and typewriter stop in waitlist.js.
 */

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; animation: none; }
  .hero__glow { animation: none; }
  .onto__wire { transform: scaleX(1); }
  .mono__halo, .mono__layer, .mono__layer polygon, .mono__cap, .fan { animation: none; }
}


/* --- Hero -------------------------------------------------------------------
 * The live hero. Its classes carry a v2- prefix from when it was a preview
 * beside the old one; the old hero's styles above are no longer used. Quiet:
 * the live page's nav, button, chips and inputs, a regular-weight headline,
 * one short line, hairlines instead of shadows. Phone: headline, line, the
 * form on the first screen, then the comparison and the stack. 1024px and
 * up: words and stack side by side, the form as one strip underneath.
 */

.v2-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.v2-hero {
  display: grid;
  grid-template-areas: "copy" "card" "stack";
  row-gap: 20px;
  padding-top: 8px;
  padding-bottom: 48px;
}
.v2-copy { grid-area: copy; }
.v2-card { grid-area: card; }
.v2-stack { grid-area: stack; }

.v2-eyebrow {
  margin-bottom: var(--space-3);
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.v2-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }   /* weight 500, as the live page */
.v2-hero h1 .accent { display: block; }

.v2-lede {
  margin-top: var(--space-3);
  font-size: 1.05rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}
.v2-promise {
  margin-top: var(--space-2);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: hsl(var(--foreground));
}

/* the stack: the visitor's tools as plates, Company Brain as the capstone */
.v2-stack { position: relative; height: 320px; margin: 0; --x: 33%; }
.v2-floor {
  position: absolute; left: var(--x); top: 256px; width: 300px; height: 300px;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-45deg);
  background:
    linear-gradient(hsl(var(--primary) / 0.07) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, hsl(var(--primary) / 0.07) 1px, transparent 1px) 0 0 / 20px 20px;
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent);
  mask: radial-gradient(closest-side, #000 30%, transparent);
}
.v2-layer { position: absolute; left: 0; right: 0; height: 0; }
.v2-plate {
  position: absolute; left: var(--x); top: 0; width: var(--w); height: var(--w); border-radius: 7px;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-45deg);
}
.v2-plate.v2-t {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid hsl(var(--primary) / 0.22);
  box-shadow: -1px 1px 0 hsl(var(--primary) / 0.14), -2px 2px 0 hsl(var(--primary) / 0.1), -3px 3px 0 hsl(var(--primary) / 0.06);
}
.v2-plate.v2-sheet {
  background-image:
    linear-gradient(hsl(var(--primary) / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.1) 1px, transparent 1px);
  background-size: 100% 13px, 26px 100%;
}
.v2-plate.v2-ledger {
  background-image: linear-gradient(hsl(var(--electric-blue) / 0.14) 1px, transparent 1px);
  background-size: 100% 10px;
}
.v2-plate.v2-chat b { position: absolute; height: 12%; border-radius: 999px; background: hsl(var(--primary) / 0.13); }
.v2-plate.v2-chat b:nth-child(1) { left: 12%; top: 16%; width: 48%; }
.v2-plate.v2-chat b:nth-child(2) { right: 12%; top: 38%; width: 40%; }
.v2-plate.v2-chat b:nth-child(3) { left: 12%; top: 60%; width: 56%; }
.v2-plate.v2-cap {
  background: var(--accent-fill);
  box-shadow: -1px 1px 0 #5622c1, -2px 2px 0 #4f22bb, -3px 3px 0 #4822b5, -4px 4px 0 #4222b0, -12px 14px 22px hsl(var(--primary) / 0.22);
}
.v2-tag {
  position: absolute; left: 64%; right: 0; top: 0; transform: translateY(-50%);
  display: grid; gap: 2px; padding-left: 12px;
}
.v2-tag::before {
  content: ""; position: absolute; right: 100%; top: 50%;
  width: var(--lead, 22%); border-top: 1px dashed hsl(var(--border));
}
.v2-tag strong { font-size: 0.9rem; font-weight: 500; color: hsl(var(--foreground)); }
.v2-tag span { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.v2-top .v2-tag strong { color: hsl(var(--primary)); }
.v2-l1 { top: 256px; --w: 150px; }
.v2-l2 { top: 200px; --w: 132px; }
.v2-l3 { top: 144px; --w: 114px; }
.v2-l4 { top: 78px; --w: 92px; }

@media (prefers-reduced-motion: no-preference) {
  .v2-layer { animation: v2-rise 0.8s var(--ease) both; }
  .v2-l2 { animation-delay: 0.08s; }
  .v2-l3 { animation-delay: 0.16s; }
  .v2-l4 { animation: v2-drop 0.9s var(--ease) 0.3s both; }
  .v2-tag { animation: v2-fade 0.6s ease 0.6s both; }
}
@keyframes v2-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes v2-drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes v2-fade { from { opacity: 0; } to { opacity: 1; } }

/* the form card, drawn like the footer: navy, the footer's top glow, its fan
   of planes in the bottom-right (faded out towards the fields) and the
   ghosted "likwid" wordmark along the bottom. The text boxes stay white. */
.v2-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: var(--navy);
  color: #e5e7eb;
  box-shadow: 0 24px 48px -32px rgba(7, 11, 22, 0.55);
  scroll-margin-top: 12px;
}
.v2-card__glow {
  position: absolute; z-index: 0;
  top: -120px; left: 50%;
  width: 520px; height: 220px; margin-left: -260px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.24);
  filter: blur(90px);
  pointer-events: none;
}
.v2-card__art {
  position: absolute; z-index: 0;
  right: 0; bottom: 0;
  width: min(100%, 760px); height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
          mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.v2-card .fan { fill: var(--fan-fill); }   /* set per copy on the svg */
.v2-card__wordmark {
  position: absolute; z-index: 0;
  left: 0; right: 0; bottom: 0;
  margin: 0; padding-inline: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(5rem, 24vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.78;
  text-align: right;
  transform: translateY(18%);
  background-image: linear-gradient(to bottom, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.01));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}
.v2-card__body { position: relative; z-index: 1; }
.v2-wl.form { max-width: none; display: grid; gap: var(--space-3); }
.v2-wl-head h2 { font-size: 1.15rem; color: #fff; }
.v2-wl-head p { margin-top: 2px; font-size: 0.9rem; color: rgb(255 255 255 / 0.55); }
.v2-f-l { font-size: var(--text-sm); font-weight: 500; color: rgb(255 255 255 / 0.85); }
.v2-f-l em { font-style: normal; font-weight: 400; color: rgb(255 255 255 / 0.45); }

/* chips on the dark card: glass outlines; a picked chip lights up violet */
.v2-card .form .chip {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.16);
  color: rgb(255 255 255 / 0.85);
}
@media (hover: hover) {
  .v2-card .form .choice:hover .chip { border-color: rgb(255 255 255 / 0.34); }
}
.v2-card .form .choice__input:checked + .chip {
  background: hsl(var(--primary) / 0.32);
  border-color: hsl(263 80% 72%);
  color: #fff;
}
.v2-card .field--choices.is-invalid .choice__input:not(:checked) + .chip { border-color: #f87171; }

/* messages on the dark card */
.v2-card .field-error { color: #fca5a5; }
.v2-card .form__error { background: rgb(248 113 113 / 0.12); color: #fecaca; }
.v2-card .form-done {
  align-items: flex-start;
  max-width: none;
  border-color: rgb(255 255 255 / 0.16); background: rgb(255 255 255 / 0.06); color: rgb(255 255 255 / 0.75);
  font-weight: 400;
}
.form-done__title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: -0.01em; color: #fff;
}
.form-done__title + p { margin-top: 2px; }
.form-done__again {
  margin-top: var(--space-3); padding: 0; min-height: 40px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--text-sm); color: rgb(255 255 255 / 0.85);
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center;
}
.form-done__again:hover { color: #fff; }

/* the text boxes on the dark card: white, borderless, a violet ring on
   focus and a rose ring on an error (Claude Design form states, Nov 2026) */
.v2-card .input,
.v2-card .v2-select {
  height: 3.125rem;
  color: hsl(var(--foreground));   /* the card's light text colour must not reach the boxes */
  border-color: transparent;
  border-radius: 12px;
}
.v2-card .input:hover { border-color: transparent; }
.v2-card .input:focus,
.v2-card .v2-select:focus {
  border-color: #8a5cf6;
  box-shadow: 0 0 0 3px rgb(138 92 246 / 0.55);
}
.v2-card .input[aria-invalid="true"] {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgb(244 63 94 / 0.4);
}
.v2-card .v2-btn { height: 3.375rem; }

/* phones: the chips sit closer, so all seven fit in about three rows */
@media (max-width: 767px) {
  .v2-card .form .chips { gap: 6px; }
  .v2-card .form .chip { padding: 0 0.7rem; font-size: 0.82rem; }
}
.v2-phone { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-2); }
.v2-select {
  width: 100%; height: 3.5rem; padding: 0 1.6rem 0 0.9rem;
  border: 1px solid hsl(var(--input)); border-radius: var(--radius-md);
  font-size: 1.05rem; color: hsl(var(--foreground));
  -webkit-appearance: none; appearance: none;
  background: hsl(var(--background)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
}
.v2-select:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.12); }
.v2-wl .input[aria-invalid="true"] { border-color: hsl(var(--destructive)); }
.v2-card .v2-wl .input[aria-invalid="true"] { border-color: #f43f5e; }
.v2-btn { width: 100%; }
.v2-consent { font-size: 0.75rem; line-height: 1.5; color: rgb(255 255 255 / 0.45); text-align: center; }
.v2-consent a { color: inherit; text-underline-offset: 2px; }
.v2-consent a:hover { color: #fff; }

/* 768: roomier, the form in two columns */
@media (min-width: 768px) {
  .v2-wrap { padding: 0 32px; }
  .v2-hero { padding-top: var(--space-6); row-gap: var(--space-6); }
  .v2-lede { font-size: 1.05rem; white-space: nowrap; }   /* one line from tablet up */
  .v2-stack { height: 380px; --x: 34%; }
  .v2-floor { top: 300px; width: 380px; height: 380px; }
  .v2-l1 { top: 300px; --w: 190px; }
  .v2-l2 { top: 232px; --w: 168px; }
  .v2-l3 { top: 164px; --w: 146px; }
  .v2-l4 { top: 86px; --w: 118px; }
  .v2-tag strong { font-size: 1rem; }
  .v2-card { padding: var(--space-6); }
  .v2-wl.form { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .v2-wl-head, .v2-span, .v2-f-biz, .v2-chips, .v2-btn, .v2-consent { grid-column: 1 / -1; }
}

/* 1024: words and stack side by side, the form as one strip underneath */
@media (min-width: 1024px) {
  .v2-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "copy stack" "card card";
    column-gap: var(--space-12); row-gap: var(--space-6); align-items: center;
    padding-bottom: var(--space-16);
  }
  .v2-copy { align-self: center; }
  .v2-stack { height: 340px; --x: 30%; }
  .v2-floor { top: 270px; }
  .v2-l1 { top: 270px; }
  .v2-l2 { top: 204px; }
  .v2-l3 { top: 138px; }
  .v2-l4 { top: 62px; }
  .v2-tag { left: 66%; }
  /* the hero's card is a strip: business | email | phone, then the chips
     beside the button. The closing card keeps its two columns. */
  .v2-card--strip .v2-wl.form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas:
      "head head head"
      "error error error"
      "biz email phone"
      "chips chips btn"
      "consent consent consent";
    align-items: start;   /* an error under one box must not lift it above the others */
  }
  .v2-card--strip .v2-wl-head { grid-area: head; display: flex; align-items: baseline; gap: var(--space-4); }
  .v2-card--strip .v2-wl-head p { margin: 0; }
  .v2-card--strip .v2-span { grid-area: error; }
  .v2-card--strip .v2-f-biz { grid-area: biz; }
  .v2-card--strip .v2-f-email { grid-area: email; }
  .v2-card--strip .v2-f-phone { grid-area: phone; }
  .v2-card--strip .v2-chips { grid-area: chips; }
  .v2-card--strip .v2-btn { grid-area: btn; justify-self: end; align-self: end; max-width: 300px; }
  .v2-card--strip .v2-consent { grid-area: consent; text-align: left; }
  .v2-card:not(.v2-card--strip) :is(.v2-wl-head, .v2-span, .v2-f-biz, .v2-chips, .v2-btn, .v2-consent) {
    grid-column: 1 / -1;
  }
}

/* The brand line, under the hero: one band running slowly left to right.
   The track holds the line four times, spaced apart; it moves by exactly half its width,
   so the loop is seamless. Screen readers get the line once, from the
   section's label. Reduced motion: one copy, still and centred. */
.v2-marquee {
  overflow: hidden;
  padding-block: clamp(var(--space-8), 5vw, var(--space-12));
  border-block: 1px solid hsl(var(--border));
}
.v2-marquee__track {
  display: flex;
  width: max-content;
  animation: v2-marquee 45s linear infinite;
}
.v2-marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  padding-right: clamp(var(--space-6), 4vw, var(--space-12));
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: hsl(var(--foreground));
}
@keyframes v2-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .v2-marquee__track { animation: none; width: auto; justify-content: center; }
  .v2-marquee__item:not(:first-child) { display: none; }
  .v2-marquee__item { white-space: normal; text-align: center; padding-right: 0; }
}


/* --- Product tour -------------------------------------------------------------------
   The walkthrough video under the brand line, blended into the page: no
   player bar, border or shadow, and its edges fade out so the video's own
   pale background melts into the white. Wide cut on tablet and up; the tall
   cut on phones, kept within the screen's height. */
.v2-tour__head { max-width: 44rem; margin-bottom: var(--space-6); }
.v2-tour__frame { position: relative; margin: 0; }
.v2-tour__video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #f3f1fa;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
          mask-composite: intersect;
}
.v2-tour__video.is-tall {
  width: auto;
  max-width: 100%;
  max-height: 80dvh;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}
.v2-tour__toggle {
  position: absolute;
  right: 4%;
  bottom: 5%;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgb(15 23 41 / 0.08);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: hsl(var(--foreground));
  font-size: 0.8rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.v2-tour__toggle:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.v2-tour__frame:has(.is-tall) .v2-tour__toggle { right: calc(50% - min(22.5dvh, 50%) + 12px); }
.v2-tour__sound {
  position: absolute;
  left: 4%;
  bottom: 5%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 0.95rem 0 0.8rem;
  border: 1px solid rgb(15 23 41 / 0.08);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  color: hsl(var(--foreground));
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.v2-tour__sound svg { width: 1.05rem; height: 1.05rem; flex: none; }
.v2-tour__sound:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.v2-tour__frame:has(.is-tall) .v2-tour__sound { left: calc(50% - min(22.5dvh, 50%) + 12px); }
