/* Lean landing structure shared by all three variations.
   Each variation dresses it by setting the tokens below in its own style.css. */

:root {
  /* Named palette: every colour used in rules comes from a token. */
  --white: #ffffff;
  --lilac: #c7c2e8;
  --lilac-2: #a9a3d6;
  --lilac-3: #8e87c4;
  --lilac-4: #d9d5f2;
  --lilac-wash: #ecebf8;
  --indigo-line: #3a2f7a;
  --window-dot: #6a5fae;
  --periwinkle: #9d9ff5;
  --side-item: #e4e2f5;
  --action-wash: #eef0ff;
  --action-line: #c9cdf6;
  --action-strong: #4f46e5;
  --ok: #15803d;
  --ok-ink: #047857;
  --ok-wash: #ecfdf3;
  --ok-line: #bbe5cc;
  --warn: #b45309;
  --danger: #b91c1c;
  --signal-line: #b9e3f7;
  --dim: #eef0f6;
  --slate-400: #94a3b8;
  --carbon-2: #1e293b;
  --ai-line: #ddd3fb;

  --ink: #271c5f;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #5a687d;
  --ground: #ffffff;
  --ground-alt: #f1f5f9;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-soft: #eef1f5;
  --brand: #271c5f;
  --brand-deep: #1e1549;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --ai: #8b5cf6;
  --ai-ink: #6d28d9;
  --ai-wash: #f3efff;
  --signal: #1091d9;
  --signal-ink: #0b6fa8;
  --signal-wash: #e7f4fc;
  --carbon: #0f172a;
  --focus: #1091d9;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-frame: 0 32px 64px -40px rgb(39 28 95 / 0.4), 0 2px 6px rgb(15 23 42 / 0.06);
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.05);
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --nav-height: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --head-align: center;

  color-scheme: light;
}

body {
  background: var(--ground);
  color: var(--text);
}

::selection {
  background: var(--ai-wash);
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 2rem);
  }
}

.section {
  padding-block: var(--section-pad);
}

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

.section-head {
  display: grid;
  gap: 0.875rem;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: var(--head-align);
}

.section-head--start {
  margin-left: 0;
  text-align: left;
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.example {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--ground-alt);
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.75rem 1.625rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--text-3);
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.btn .icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Navigation ---------- */

.skip-link {
  --skip-bg: var(--brand);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg, var(--ground));
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

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

.nav__bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  flex: none;
}

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

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 550;
}

.nav__links a {
  color: var(--nav-link, var(--text-2));
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.nav__links a:hover {
  color: var(--nav-link-hover, var(--ink));
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}


.nav__toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--nav-line, var(--line));
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--nav-link-hover, var(--ink));
}

.nav__menu {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--nav-line, var(--line));
}

.nav__menu[hidden] {
  display: none;
}

.nav__menu a {
  padding: 0.75rem 0;
  color: var(--nav-link-hover, var(--ink));
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__menu .btn {
  margin-top: 0.75rem;
}

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

  /* The call to action stays in the bar, next to the menu button, never inside the menu. */
  .nav__actions {
    margin-left: auto;
  }

  .nav__actions .btn {
    min-height: 2.75rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }

  .nav__toggle {
    display: grid;
    margin-left: 0;
  }

  .nav__bar {
    gap: 0.75rem;
  }
}

@media (min-width: 901px) {
  .nav__menu {
    display: none;
  }
}

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

.hero {
  padding-top: clamp(2rem, 4.5vw, 3.75rem);
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
}

.hero__title {
  color: var(--hero-ink, var(--ink));
  font-size: clamp(2.5rem, 5.2vw, 4.375rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__sub {
  max-width: 38rem;
  color: var(--hero-text, var(--text-2));
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--hero-muted, var(--text-3));
  font-size: 0.875rem;
  font-weight: 550;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero__trust .icon {
  width: 1rem;
  height: 1rem;
  color: var(--hero-check, var(--signal-ink));
}

.hero__media {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

@media (max-width: 560px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Product frame (hero walkthrough) ---------- */

.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--frame-edge, var(--line));
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.frame__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 940;
  object-fit: cover;
  background: var(--ground-alt);
}

/* Phones get a crop without the app sidebar, so the product reads at a glance. */
@media (max-width: 700px) {
  .frame__video {
    aspect-ratio: 1080 / 682;
    object-position: 80% 0;
  }
}

.frame__toggle {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: var(--brand);
  transition: border-color 0.2s var(--ease-out);
}

.frame__toggle:hover {
  border-color: var(--text-3);
}

.frame__toggle[hidden] {
  display: none;
}

.frame__toggle .icon {
  width: 1rem;
  height: 1rem;
}

.frame__toggle .icon--fill {
  fill: currentColor;
  stroke: none;
}

.frame__toggle [data-when] {
  display: none;
}

.frame__toggle[data-state="playing"] [data-when="playing"],
.frame__toggle[data-state="paused"] [data-when="paused"] {
  display: block;
}


/* ---------- Section pieces shared by the layouts ---------- */

.section--band {
  background: var(--brand);
}

.section--band h2,
.section--band h3 {
  color: var(--white);
}

.section--band .section-head p {
  color: var(--lilac);
}

.section--band :focus-visible {
  outline-color: var(--white);
}


.btn--dark {
  background: var(--carbon);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--carbon-2);
}

.panels {
  display: grid;
}

.panels > [role="tabpanel"] {
  grid-area: 1 / 1;
}

.panels > [role="tabpanel"][hidden] {
  display: none;
}

.panels > .is-entering {
  animation: panel-in 0.4s var(--ease-out) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Pricing ---------- */

.billing {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.billing__group {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ground-alt);
}

.billing__group button {
  min-height: 2.5rem;
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 650;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.billing__group button[aria-pressed="true"] {
  background: var(--carbon);
  color: var(--white);
}

.billing__group small {
  margin-left: 0.375rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.plan--recommended {
  border: 2px solid var(--accent);
}

.plan--recommended .plan__badge {
  background: var(--accent);
}

.plan--value {
  border: 2px solid var(--carbon);
}

.plan--value .plan__badge {
  background: var(--carbon);
}

.plan h3 {
  color: var(--carbon);
  font-size: 1.1875rem;
  font-weight: 700;
}

.plan__for {
  min-height: 2.75rem;
  margin-top: 0.25rem;
  color: var(--text-2);
  font-size: 0.875rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1.25rem;
}

.plan__strike {
  color: var(--text-3);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: line-through;
}

.plan__amount {
  color: var(--carbon);
  font-size: 2.5rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan__amount--talk {
  font-size: 2rem;
}

.plan__per {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.plan__billed {
  min-height: 1.3rem;
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 0.8125rem;
}

.plan__save {
  min-height: 1.2rem;
  color: var(--ok-ink);
  font-size: 0.8125rem;
  font-weight: 650;
}

.features {
  display: grid;
  align-content: start;
  flex: 1;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.4375rem 0;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.features li > .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  color: var(--accent);
}

.features b {
  color: var(--carbon);
  font-weight: 650;
}

.features .features__group {
  margin-top: 0.625rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
}

.features .features__group--muted {
  color: var(--text-3);
}

.plan .btn {
  width: 100%;
  margin-top: 1.5rem;
}

.btn--soft {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
}

.btn--soft:hover {
  background: var(--action-wash);
}

.pricing[data-period="monthly"] .plan__strike,
.pricing[data-period="monthly"] .plan__save,
.pricing[data-period="monthly"] .plan__badge {
  visibility: hidden;
}

.pricing[data-period="monthly"] .plan--recommended,
.pricing[data-period="monthly"] .plan--value {
  border: 1px solid var(--line);
  padding: calc(1.75rem + 1px) calc(1.5rem + 1px) calc(1.5rem + 1px);
}

.pricing__note {
  margin-top: 1.75rem;
  color: var(--text-3);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 1180px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 640px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan--recommended {
    order: -1;
  }
}

/* Feature tooltips: open on hover, keyboard focus or tap; Escape dismisses. */

/* Panels anchor to the feature row, so they never reach past the plan card. */
.features li {
  position: relative;
}

.tip {
  display: inline;
}

.tip__trigger {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline dashed;
  text-decoration-color: var(--slate-400);
  text-underline-offset: 4px;
  cursor: help;
}

.tip__trigger:hover,
.tip.is-open .tip__trigger {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.tip__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: 17rem;
  z-index: 20;
  display: grid;
  gap: 0.25rem;
  margin-top: 0.625rem;
  padding: 0.75rem 0.9375rem;
  border-radius: var(--radius-sm);
  background: var(--tip-bg, var(--brand));
  color: var(--white);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 16px 32px -16px rgb(15 23 42 / 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out), visibility 0.15s;
}

/* Keeps the panel hoverable across the gap below the trigger. */
.tip__panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.75rem;
}

.tip__panel::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 1.25rem;
  width: 10px;
  height: 10px;
  background: var(--tip-bg, var(--brand));
  transform: rotate(45deg);
}

.tip__panel strong {
  font-weight: 700;
}

.tip__panel span {
  color: var(--lilac-4);
}

.tip:hover .tip__panel,
.tip:focus-within .tip__panel,
.tip.is-open .tip__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tip.is-dismissed .tip__panel {
  opacity: 0;
  visibility: hidden;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 48rem;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 0;
  color: var(--carbon);
  font-size: 1.0625rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--text-3);
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq details p {
  max-width: 42rem;
  padding-bottom: 1.375rem;
  color: var(--text-2);
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
}

.closing h2 {
  color: var(--closing-ink, var(--ink));
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.closing p {
  margin-top: 1rem;
  color: var(--closing-text, var(--text-2));
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

.closing .hero__actions {
  justify-content: center;
  margin-top: 2rem;
}

.footer {
  padding-block: 2rem;
  border-top: 1px solid var(--footer-line, var(--line));
  background: var(--footer-bg, var(--ground));
  color: var(--footer-text, var(--text-3));
  font-size: 0.875rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__row img {
  width: auto;
  height: 26px;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: inherit;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--footer-hover, var(--ink));
}

/* ---------- Story video dialog ---------- */

.story {
  width: min(1100px, 100vw - 2rem);
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--carbon);
  overflow: visible;
}

.story::backdrop {
  background: rgb(15 23 42 / 0.78);
}

.story[open] {
  animation: story-in 0.3s var(--ease-out) both;
}

@keyframes story-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.story video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--carbon);
}

.story__close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.story__close:hover {
  border-color: var(--white);
}

.story__close .icon {
  width: 1rem;
  height: 1rem;
}

/* Captions: on by default, but quiet. Small type on a light translucent band. */
.story video::cue {
  background-color: rgb(15 23 42 / 0.55);
  color: var(--white);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.75rem, 1.4vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.3;
}


@media (max-width: 640px) {
  .story__close {
    top: auto;
    bottom: calc(100% + 0.625rem);
  }
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js [data-reveal].is-seen {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Touch targets: 44px minimum ---------- */

.nav__logo {
  padding-block: 0.375rem;
}

.frame__toggle {
  width: 2.75rem;
  height: 2.75rem;
}

.billing__group button {
  min-height: 2.75rem;
}

.footer__links a {
  display: inline-block;
  padding-block: 0.6875rem;
}

/* 404 page */
.notfound {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.5rem;
  min-height: calc(100svh - var(--nav-height));
  padding-block: var(--section-pad);
}

.notfound__title {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.notfound__text {
  max-width: 34rem;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.55;
}

/* ---------- Cookie consent ---------- */

.footer__cookies {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.footer__cookies:hover {
  color: var(--footer-hover, var(--ink));
}

.consent {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: grid;
  gap: 1rem;
  width: min(26rem, 100% - 2rem);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  animation: consent-in 0.4s var(--ease-out) both;
}

@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.consent__text {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.consent__actions .btn {
  flex: 1 1 0;
}

.consent__choose {
  min-height: 2.75rem;
  margin-right: auto;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--action-line);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s var(--ease-out);
}

.consent__choose:hover {
  text-decoration-color: currentColor;
}

.consent-panel {
  width: min(32rem, 100vw - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-frame);
}

.consent-panel::backdrop {
  background: rgb(15 23 42 / 0.5);
}

.consent-panel[open] {
  animation: story-in 0.3s var(--ease-out) both;
}

.consent-panel__form {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem;
}

.consent-panel__title {
  padding-right: 2.5rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.consent-panel__intro {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.consent-panel__list {
  display: grid;
  border-block: 1px solid var(--line);
}

.consent-panel__row + .consent-panel__row {
  border-top: 1px solid var(--line-soft);
}

.consent-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1rem;
  cursor: pointer;
}

.consent-switch__copy {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.consent-switch__copy b {
  display: block;
  margin-bottom: 0.125rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 650;
}

.consent-switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-switch__track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--lilac-4);
  transition: background-color 0.2s var(--ease-out);
}

.consent-switch__track::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-out);
}

.consent-switch__input:checked + .consent-switch__track {
  background: var(--accent);
}

.consent-switch__input:checked + .consent-switch__track::after {
  transform: translateX(1.25rem);
}

.consent-switch__input:disabled + .consent-switch__track {
  background: var(--lilac-2);
}

.consent-switch:has(:disabled) {
  cursor: default;
}

.consent-switch__input:focus-visible + .consent-switch__track {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.consent-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.consent-panel__actions .btn {
  flex: 1 1 10rem;
}

.consent-panel__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.consent-panel__close:hover {
  background: var(--ground-alt);
  color: var(--ink);
}

.consent-panel__close .icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 560px) {
  .consent {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ---------- Chat launcher (Zendesk loads on click) ---------- */

.chat-launch {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.125rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: var(--shadow-frame);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 650;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.chat-launch:hover {
  background: var(--brand-deep);
}

.chat-launch:active {
  transform: translateY(1px);
}

.chat-launch[aria-busy="true"] {
  cursor: progress;
  opacity: 0.8;
}

.chat-launch[hidden] {
  display: none;
}

.chat-launch .icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 560px) {
  .chat-launch {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    min-height: 3.25rem;
    justify-content: center;
    padding: 0;
  }

  .chat-launch span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
