/* ==========================================================================
   ChavisTec — landing, legal, and confirmation page styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 96px;
}

a {
  color: var(--color-lavender);
}

a:hover {
  color: var(--color-amethyst);
}

/* Keyboard focus. Do not remove — the form and accordion are keyboard-driven. */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.shell {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Shared section furniture -------------------------------------------- */
.section {
  padding: var(--pad-section);
  border-top: 1px solid var(--border-06);
}

.section--base {
  background: var(--surface-base);
}

.section--alt {
  background: var(--surface-alt);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}

.section-head h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-65);
  line-height: 1.75;
  margin: 0;
}

.minor-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-40);
  margin-bottom: 24px;
}

.icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-gold-28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box svg {
  width: 19px;
  height: 19px;
  color: var(--color-gold);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

/* Primary — the only element that carries the purple glow. */
.btn--primary {
  padding: 15px 32px;
  background: var(--color-amethyst);
  color: var(--text-1);
  font-size: 16px;
  transition: background var(--t-fast), box-shadow var(--t-fast),
    transform var(--t-transform);
}

.btn--primary:hover {
  background: var(--color-violet-peak);
  color: var(--text-1);
  box-shadow: var(--glow-cta-hero-hover);
  transform: translateY(-1px);
}

/* Ghost — neutral border, gold on hover. */
.btn--ghost {
  padding: 14px 30px;
  background: transparent;
  color: var(--text-1);
  font-size: 15px;
  border-color: var(--border-22);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Gold ghost — inverts to a solid gold fill on hover. */
.btn--gold {
  padding: 13px 28px;
  background: transparent;
  color: var(--color-gold);
  font-size: 15px;
  border-color: var(--border-gold-45);
  transition: background var(--t-fast), color var(--t-fast);
}

.btn--gold:hover {
  background: var(--color-gold);
  color: var(--surface-base);
}

/* --- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  height: var(--nav-height);
  background: var(--surface-nav);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-08);
}

.nav__logo {
  height: 31px;
  width: 99px;
  flex-shrink: 0;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: flex-end;
}

.nav__links a {
  color: var(--text-70);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}

.nav__links a:hover,
.nav__links a[aria-current="page"],
.nav__panel a[aria-current="page"] {
  color: var(--color-gold);
}

.nav__cta {
  padding: 10px 22px;
  background: transparent;
  color: var(--text-1) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-22);
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.nav__cta:hover {
  border-color: var(--color-gold);
  color: var(--color-gold) !important;
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-18);
  border-radius: var(--radius-input);
  cursor: pointer;
  padding: 0;
}

.nav__burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav__burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Fixed, and a sibling of .nav rather than a child — see the note in the
   markup. Nesting it inside the blurred nav breaks its own backdrop-filter. */
.nav__panel {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--surface-nav-panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-10);
  padding: 10px 40px 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__panel[hidden] {
  display: none;
}

.nav__panel a {
  color: var(--text-75);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-07);
  transition: color var(--t-fast);
}

.nav__panel a:hover {
  color: var(--color-gold);
}

.nav__panel .nav__panel-cta {
  margin-top: 18px;
  text-align: center;
  padding: 15px 24px;
  background: var(--color-amethyst);
  color: var(--text-1);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border-bottom: none;
}

.nav__panel .nav__panel-cta:hover {
  color: var(--text-1);
  background: var(--color-violet-peak);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--gradient-hero);
  padding: var(--pad-section-hero);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero__text {
  flex: 1 1 480px;
  min-width: 320px;
  animation: fadeUp var(--t-entrance) ease both;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-gold-40);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 28px;
}

.hero__pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  display: inline-block;
}

.hero__pill-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-70);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 40px;
}

.hero__media {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  animation: fadeUp var(--t-entrance) ease 0.1s both;
}

/* --- Hero phone graphic --------------------------------------------------
   A real client screenshot in a 402x874 device frame, scaled to 0.75
   inside a 301x655 clipping window.
   ------------------------------------------------------------------------- */
/* The shadow lives here, outside the overflow clip, so it is never cut off
   square. 42px is the frame's 56px radius at 0.75 scale. */
.phone-clip {
  width: 301px;
  height: 655px;
  overflow: hidden;
  position: relative;
  border-radius: 42px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.phone-scale {
  transform: scale(0.75);
  transform-origin: top left;
}

.phone {
  position: relative;
  width: 402px;
  height: 874px;
  background: #0b0410;
  border-radius: 56px;
  padding: 12px;
  box-shadow: inset 0 0 0 2px rgba(248, 244, 255, 0.14);
}

.phone__screen {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: var(--surface-base);
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  border-radius: 100px;
  background: #0b0410;
  z-index: 2;
}

/* Screenshots start below the status bar, so leave room for the notch. */
.phone__shot {
  display: block;
  width: 100%;
  height: 100%;
  padding-top: 44px;
  background: #000;
  object-fit: cover;
  object-position: top;
}

/* --- Problem ------------------------------------------------------------- */
.problem {
  background: var(--surface-base);
  padding: var(--pad-section);
}

.problem__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.problem__lead {
  font-size: 19px;
  color: var(--text-72);
  line-height: 1.75;
  margin: 0 auto 56px;
  max-width: 720px;
}

/* The largest type on the page and the pivot point of the scroll. */
.problem__statement {
  font-family: var(--font-display);
  font-size: var(--size-statement);
  font-weight: 800;
  color: var(--color-gold);
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

/* --- What We Build ------------------------------------------------------- */
.no-row {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-12);
  border-bottom: 1px solid var(--border-12);
  margin-bottom: 56px;
}

.no-row div {
  flex: 1 1 220px;
  padding: 22px 24px;
  border-right: 1px solid var(--border-12);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}

.no-row div:last-child {
  border-right: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature p {
  font-size: 15px;
  color: var(--text-75);
  line-height: 1.6;
  margin: 6px 0 0;
}

.case-study {
  border: 1px solid var(--border-gold-30);
  border-radius: var(--radius-card);
  padding: 40px;
  margin-bottom: 40px;
  display: flex;
  gap: 44px;
  align-items: center;
  flex-wrap: wrap;
}

.case-study__text {
  flex: 1 1 380px;
  min-width: 280px;
}

.case-study__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.case-study__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
}

.case-study__text p {
  font-size: 16px;
  color: var(--text-70);
  line-height: 1.75;
  margin: 0 0 28px;
}

.case-study__media {
  flex: 0 1 300px;
  min-width: 240px;
}

.case-study__media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-image);
  display: block;
}

/* --- Beyond the App ------------------------------------------------------ */
.beyond__body p {
  font-size: 17px;
  color: var(--text-65);
  line-height: 1.75;
  margin: 0 0 18px;
}

.beyond__emphasis {
  font-family: var(--font-display);
  font-size: 18px !important;
  font-weight: 600;
  color: var(--color-lavender) !important;
  line-height: 1.6 !important;
  margin: 24px 0 0 !important;
}

.cards {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.cards--addons {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards--why {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 80px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-10);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: border-color var(--t-card), background var(--t-card);
}

.card:hover {
  border-color: var(--border-gold-45);
  background: var(--surface-card-hover);
}

.card .icon-box {
  margin-bottom: 18px;
}

.card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.5;
  margin: 0;
}

.cards--why .card {
  padding: 32px;
}

.cards--why .card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 12px;
  line-height: 1.3;
}

.cards--why .card p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-60);
  line-height: 1.65;
}

.note-italic {
  font-size: 14px;
  font-style: italic;
  color: var(--text-42);
  margin: 0 0 32px;
  max-width: 640px;
}

/* --- How It Works -------------------------------------------------------- */
/* Reveal is opacity-only by design: animating transform on this wrapper
   creates a containing block and silently kills the sticky heading. */
.hiw {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
  transition: opacity var(--t-reveal) ease;
}

/* Hidden-then-revealed only when JS is there to reveal it. Without the .js
   flag the section renders normally — never trap content behind a script. */
.js .hiw {
  opacity: 0;
}

.js .hiw.is-revealed {
  opacity: 1;
}

.hiw__heading {
  flex: 0 0 320px;
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
}

.hiw__heading h2 {
  margin: 0;
}

.hiw__steps {
  flex: 1 1 380px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.step {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-08);
  transition: opacity var(--t-focus) ease, transform var(--t-focus) ease;
}

/* Same reasoning: without JS nothing ever becomes .is-active, so every step
   would sit dimmed at 0.28 forever. Only dim when JS can undim. */
.js .step {
  opacity: 0.28;
  transform: scale(0.98);
}

.js .step.is-active {
  opacity: 1;
  transform: scale(1.02);
}

.step__n {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 14px;
  line-height: 1.25;
}

.step p {
  font-size: 17px;
  color: var(--text-60);
  line-height: 1.7;
  margin: 0;
}

/* --- Testimonial --------------------------------------------------------- */
.testimonial {
  max-width: 900px;
  margin: 0;
  padding-top: 56px;
  border-top: 1px solid var(--border-gold-28);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--size-quote);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__rule {
  width: 34px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.testimonial figcaption span:last-child {
  font-size: 15px;
  color: var(--text-60);
  line-height: 1.5;
}

.testimonial__name {
  color: var(--text-1);
  font-weight: 600;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 840px;
  margin: 0 auto;
}

.faq__list {
  border-top: 1px solid var(--border-10);
}

.faq__item {
  border-bottom: 1px solid var(--border-10);
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text-1);
  transition: color var(--t-fast);
}

.faq__trigger:hover {
  color: var(--color-gold);
}

.faq__q {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.faq__sign {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

/* max-height + overflow handles the collapse; aria-hidden/inert handle AT.
   `hidden` would remove the element and kill the transition. */
.faq__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--t-panel) ease, opacity 0.3s ease;
}

.faq__panel.is-open {
  max-height: 600px;
  opacity: 1;
}

.faq__panel p {
  font-size: 16px;
  color: var(--text-65);
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 680px;
}

/* --- Conversion form ----------------------------------------------------- */
.get-started {
  background: var(--surface-base);
  padding: var(--pad-section-form);
  border-top: 1px solid var(--border-06);
}

.get-started__inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  gap: 72px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.get-started__pitch {
  flex: 1 1 380px;
  min-width: 300px;
}

.get-started__pitch .eyebrow {
  margin-bottom: 16px;
}

.get-started__pitch h2 {
  font-family: var(--font-display);
  font-size: var(--size-h2-form);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
  text-wrap: balance;
}

.get-started__pitch > p {
  font-size: 17px;
  color: var(--text-65);
  line-height: 1.7;
  margin: 0 0 28px;
}

.trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust__row svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.trust__row span {
  font-size: 14px;
  color: var(--text-55);
}

.form-col {
  flex: 1 1 400px;
  min-width: 300px;
}

.lead-form {
  background: var(--surface-card);
  border: 1px solid var(--border-10);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-45);
}

.field input,
.field textarea {
  background: var(--surface-input);
  border: 1px solid var(--border-14);
  border-radius: var(--radius-input);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  outline: none;
  transition: border-color var(--t-fast);
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-gold);
}

.form-error {
  font-size: 14px;
  color: var(--color-fuchsia);
  line-height: 1.6;
  margin: 0;
}

.form-error[hidden] {
  display: none;
}

.lead-form button[type='submit'] {
  margin-top: 4px;
  padding: 15px 30px;
  background: var(--color-amethyst);
  color: var(--text-1);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--glow-cta);
  transition: background var(--t-fast), box-shadow var(--t-fast),
    transform var(--t-transform);
}

.lead-form button[type='submit']:hover:not(:disabled) {
  background: var(--color-violet-peak);
  box-shadow: var(--glow-cta-hover);
  transform: translateY(-1px);
}

.lead-form button[type='submit']:disabled {
  cursor: default;
  opacity: 0.75;
}

/* Honeypot — hidden from people, tempting to bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Interstitial shown between submit and redirect. */
.form-sent {
  border: 1px solid var(--border-gold-35);
  border-radius: var(--radius-card);
  padding: 44px 36px;
  text-align: center;
}

.form-sent[hidden] {
  display: none;
}

.form-sent__ring {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-sent__ring svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
}

.form-sent__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.form-sent p {
  font-size: 15px;
  color: var(--text-60);
  line-height: 1.7;
  margin: 0 0 8px;
}

.form-sent a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: var(--surface-footer);
  border-top: 1px solid var(--border-08);
  padding: 48px 40px 32px;
}

.footer__cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer__brand {
  max-width: 340px;
}

.footer__brand img {
  height: 24px;
  margin-bottom: 14px;
  display: block;
}

.footer__brand p {
  font-size: 13px;
  color: var(--text-45);
  line-height: 1.7;
  margin: 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-35);
  margin-bottom: 2px;
}

.footer__col a {
  font-size: 14px;
  color: var(--text-70);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer__col a:hover {
  color: var(--color-gold);
}

.footer__col span {
  font-size: 14px;
  color: var(--text-45);
}

.footer__bar {
  border-top: 1px solid var(--border-06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bar > span {
  font-size: 12px;
  color: var(--text-30);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 12px;
  color: var(--text-40);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer__legal a:hover {
  color: var(--color-gold);
}

/* --- Legal pages --------------------------------------------------------- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  height: var(--nav-height);
  background: var(--surface-nav);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-08);
}

.legal-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-70);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast);
}

.legal-nav a:hover {
  color: var(--color-gold);
}

.legal-header {
  background: linear-gradient(158deg, #8138a1 0%, #4f2867 55%, #1b0824 100%);
  padding: 80px 40px 64px;
}

.legal-header__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

.legal-body {
  padding: 64px 40px 100px;
}

.legal-body__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border-12);
  border-bottom: 1px solid var(--border-12);
  margin: 0 0 64px;
}

.legal-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 244, 255, 0.38);
  margin-bottom: 6px;
}

.legal-meta dd {
  font-size: 15px;
  color: var(--text-1);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.legal-meta dd a {
  color: var(--color-lavender);
  text-decoration: none;
}

.legal-meta dd a:hover {
  color: var(--color-gold);
}

/* Documents, not UI — scoped element selectors rather than per-element classes. */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 48px 0 16px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-75);
  line-height: 1.4;
  margin: 28px 0 12px;
}

.legal p {
  font-size: 16px;
  color: var(--text-65);
  line-height: 1.8;
  margin: 0 0 18px;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal li {
  font-size: 16px;
  color: var(--text-65);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal a {
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold-35);
}

.legal a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.legal strong {
  color: var(--text-1);
  font-weight: 600;
}

/* --- Case study page ----------------------------------------------------- */
.cs-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 56px 0 72px;
}

.cs-shots__photo {
  width: 300px;
  max-width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-image);
}

.cs-cta {
  margin-top: 72px;
  padding: 40px;
  border: 1px solid var(--border-gold-30);
  border-radius: var(--radius-card);
}

.cs-cta h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  margin: 0 0 12px;
}

.cs-cta p {
  font-size: 16px;
  color: var(--text-70);
  line-height: 1.7;
  margin: 0 0 24px;
}

@media (max-width: 480px) {
  .cs-cta {
    padding: 28px;
  }
}

.footer--slim {
  padding: 32px 40px;
}

/* --- Thank You ----------------------------------------------------------- */
.thanks {
  background: linear-gradient(
    158deg,
    #8138a1 0%,
    #4f2867 45%,
    #2a0f38 78%,
    #1b0824 100%
  );
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.thanks__card {
  max-width: 640px;
  text-align: center;
  animation: fadeUp var(--t-entrance) ease both;
}

.thanks__ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks__ring svg {
  width: 30px;
  height: 30px;
  color: var(--color-gold);
}

.thanks__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.thanks h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
  text-wrap: balance;
}

.thanks__lead {
  font-size: 18px;
  color: var(--text-72);
  line-height: 1.7;
  margin: 0 0 44px;
}

.thanks__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 44px;
  padding: 28px 32px;
  border: 1px solid var(--border-14);
  border-radius: var(--radius-card);
}

.thanks__contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-40);
  margin-bottom: 2px;
}

.thanks__contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  transition: color var(--t-fast);
}

.thanks__contact a:hover {
  color: var(--color-gold);
}

.thanks__contact svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Thank-you CTA carries the resting glow. */
.thanks .btn--primary {
  box-shadow: 0 0 40px rgba(129, 56, 161, 0.35);
}

.thanks .btn--primary:hover {
  box-shadow: var(--glow-cta-hover);
}

@media (max-width: 480px) {
  .thanks {
    padding: 56px 24px;
  }

  .thanks__contact {
    padding: 24px;
  }
}

/* --- Offline fallback ---------------------------------------------------- */
.offline {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--surface-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.offline__inner {
  max-width: 440px;
}

.offline h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.offline p {
  font-size: 16px;
  color: var(--text-65);
  line-height: 1.7;
  margin: 0 0 32px;
}

.offline img {
  height: 28px;
  margin-bottom: 32px;
}

/* --- Animations ---------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Update banner --------------------------------------------------------
   Fixed to the bottom and out of the page flow, so it never shifts the form
   or anything else. Only the box takes clicks; the strip around it passes
   them through to the page.
   ------------------------------------------------------------------------- */
.update-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  justify-content: flex-end;
  padding: 0 24px max(24px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.update-banner[hidden] {
  display: none;
}

.update-banner__box {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 440px;
  padding: 16px 16px 16px 22px;
  background: var(--surface-nav-panel);
  border: 1px solid var(--border-gold-30);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: fadeUp var(--t-entrance) ease both;
}

.update-banner__box p {
  margin: 0;
  font-size: 14px;
  color: var(--text-75);
  line-height: 1.5;
}

.update-banner__btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 14px;
}

.update-banner__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 480px) {
  .update-banner {
    justify-content: center;
    padding: 0 16px max(16px, env(safe-area-inset-bottom));
  }

  .update-banner__box {
    width: 100%;
  }
}

/* --- Responsive ---------------------------------------------------------- */
/* A sticky heading makes no sense at tablet width and below. */
@media (max-width: 1024px) {
  .hiw__heading {
    position: static;
    transform: none;
    flex: 1 1 100%;
  }

  .hiw {
    gap: 0;
  }
}

@media (max-width: 880px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .no-row div {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-12);
  }

  .no-row div:last-child {
    border-bottom: none;
  }

  .case-study {
    padding: 28px;
    gap: 28px;
  }

  .step {
    padding: 44px 0;
  }
}

/* Flat 40px horizontal padding is too tight on a 390px phone. */
@media (max-width: 480px) {
  .nav,
  .legal-nav {
    padding: 0 24px;
  }

  .nav__panel {
    padding: 10px 24px 26px;
  }

  .hero {
    padding: 64px 24px 80px;
  }

  .problem,
  .section {
    padding: 72px 24px;
  }

  .get-started {
    padding: 80px 24px;
  }

  .legal-header {
    padding: 56px 24px 48px;
  }

  .legal-body {
    padding: 48px 24px 80px;
  }

  .footer {
    padding: 40px 24px 28px;
  }

  .lead-form {
    padding: 24px;
  }

  .step h3 {
    font-size: 25px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .problem__lead {
    font-size: 17px;
  }
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
