/* ==========================================================================
   Meeta — marketing site
   Order: tokens ▸ base ▸ utilities ▸ components ▸ sections ▸ pages ▸ motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #171320;
  --ink-2: #3a3448;
  --muted: #615b73;
  --line: #e4dfd6;
  --line-strong: #cdc6ba;
  --paper: #fbfaf6;
  --paper-2: #f4f1ea;
  --white: #fff;

  --violet: #6c4cf1;
  --violet-ink: #4a2fd0;
  --violet-soft: #ede8ff;
  --sun: #ffc46b;
  --sun-deep: #8a5200;
  --sun-soft: #fff3dc;
  --clay: #b24a2c;
  --clay-soft: #fbe9e2;
  --mint: #0b6b63;
  --mint-soft: #e2f4f0;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 19, 32, 0.05);
  --shadow: 0 2px 4px rgba(23, 19, 32, 0.04), 0 14px 34px -22px rgba(23, 19, 32, 0.45);
  --shadow-lg: 0 3px 8px rgba(23, 19, 32, 0.05), 0 40px 80px -40px rgba(23, 19, 32, 0.55);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    ui-serif, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(68px, 8.5vw, 132px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--violet-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid var(--violet-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

/* 3. Utilities ------------------------------------------------------------ */
.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-ink);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head {
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.section-head p {
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  color: var(--muted);
  max-width: 62ch;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
}

/* 4. Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  color: var(--btn-fg);
  background: var(--violet-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

.btn--light:hover {
  background: var(--sun);
  color: var(--ink);
}

.btn--lg {
  padding: 17px 30px;
  min-height: 58px;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: 9px 16px;
  min-height: 40px;
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--violet-ink);
}

.link-arrow svg {
  transition: transform 0.16s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 250, 246, 0.92); /* fallback for color-mix */
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -24px rgba(23, 19, 32, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 6px 14px -6px rgba(108, 76, 241, 0.8);
}

.brand-word {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-nav {
  margin-inline: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-2);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.nav-toggle {
  display: none;
}

/* Accessibility menu ------------------------------------------------------ */
.a11y {
  position: relative;
}

.a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.a11y-btn:hover {
  background: #fff;
  border-color: var(--ink);
}

.a11y-btn svg {
  flex: none;
}

.a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 306px;
  padding: 14px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.a11y-group {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.seg {
  display: flex;
  gap: 6px;
}

.seg button {
  flex: 1;
  padding: 9px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.seg button:hover {
  border-color: var(--ink);
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.a11y-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(52px, 6vw, 88px) clamp(64px, 8vw, 120px);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(46% 60% at 18% 30%, rgba(255, 196, 107, 0.34), transparent 70%),
    radial-gradient(44% 58% at 82% 22%, rgba(108, 76, 241, 0.22), transparent 72%),
    radial-gradient(40% 50% at 50% 82%, rgba(11, 107, 99, 0.14), transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.85rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin-top: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--violet-ink);
}

.hero-lede {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  color: var(--mint);
  flex: none;
}

/* Phone collage ---------------------------------------------------------- */
.hero-stage {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  aspect-ratio: 1 / 1.02;
}

.phone {
  position: absolute;
  margin: 0;
}

.phone img {
  width: 100%;
  border-radius: 0;
  /* Shadow lives on the image, not the animated figure: some engines fail to
     paint a filtered element that is also animated. */
  filter: drop-shadow(0 30px 50px rgba(23, 19, 32, 0.28));
}

.phone--main {
  width: 47%;
  left: 26.5%;
  top: 0;
  z-index: 3;
}

.phone--back-l {
  width: 40%;
  left: -2%;
  top: 15%;
  z-index: 2;
  transform: rotate(-7deg) translateY(10px);
}

.phone--back-r {
  width: 40%;
  right: -2%;
  top: 17%;
  z-index: 1;
  transform: rotate(7deg) translateY(16px);
}


/* 7. Communities marquee --------------------------------------------------- */
.community-strip {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 22px;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.community-strip:hover .marquee,
.community-strip:focus-within .marquee {
  animation-play-state: paused;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 8. Communities grid ------------------------------------------------------ */
.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(52px, 6vw, 88px);
}

.section--paper2 {
  background: var(--paper-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}

.card {
  position: relative;
  padding: 26px 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  margin-top: 18px;
}

.card p {
  margin-top: 10px;
  font-size: 0.9688rem;
  color: var(--muted);
  line-height: 1.6;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--violet-soft);
  color: var(--violet-ink);
}

.icon-badge--sun {
  background: var(--sun-soft);
  color: var(--sun-deep);
}

.icon-badge--mint {
  background: var(--mint-soft);
  color: var(--mint);
}

.icon-badge--clay {
  background: var(--clay-soft);
  color: var(--clay);
}

/* 9. How it works --------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.steps-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.steps-visual .phone {
  position: relative;
  width: min(78%, 320px);
  transform: rotate(-3deg);
  animation: none;
}

.steps-visual::before {
  content: "";
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe6b8, #f4f1ea 68%);
  filter: blur(2px);
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding-left: 62px;
  padding-block: 18px;
}

.steps-list li + li {
  border-top: 1px dashed var(--line-strong);
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--violet-ink);
}

.steps-list h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  letter-spacing: -0.01em;
}

.steps-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9688rem;
  max-width: 46ch;
}

/* 10. Bento --------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}

.bento-item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 216px;
}

.bento-item--wide {
  grid-column: span 3;
}

.bento-item--full {
  grid-column: span 4;
}

.bento-item--tall {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.bento-item h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: -0.012em;
}

.bento-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9688rem;
  max-width: 42ch;
}

.bento-item--tall p {
  color: #c8c2d6;
}

.bento-item--tall .icon-badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sun);
}

/* mini UI samples inside bento cards */
.ui-sample {
  margin-top: auto;
  padding-top: 22px;
}

.caption-box {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2a2440, #171320);
  padding: 16px;
  color: #fff;
}

.caption-box p {
  margin: 0;
  color: #f2eefb;
  font-size: 0.875rem;
  line-height: 1.5;
}

.caption-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}

.caption-tag {
  flex: none;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--sun);
  color: #3a2600;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.type-scale {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--ink);
}

.type-scale b {
  font-family: var(--font-serif);
  font-weight: 600;
}

.type-scale b:nth-child(1) { font-size: 1.1rem; color: var(--muted); }
.type-scale b:nth-child(2) { font-size: 1.7rem; }
.type-scale b:nth-child(3) { font-size: 2.4rem; color: var(--violet-ink); }

.mini-event {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.mini-date {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 10px;
  background: var(--violet-soft);
  color: var(--violet-ink);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-event strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
}

.mini-event span {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.chip svg {
  flex: none;
  color: var(--mint);
}

.chip--solid {
  background: var(--violet-soft);
  border-color: transparent;
  color: var(--violet-ink);
  font-weight: 600;
}

/* 11. Events (dark) ------------------------------------------------------- */
.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--dark .section-head h2 {
  color: #fff;
}

.section--dark .section-head p {
  color: #c8c2d6;
}

.section--dark .eyebrow {
  color: var(--sun);
}

.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 48px);
}

.events-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.events-visual .phone {
  position: relative;
  width: min(82%, 330px);
  animation: none;
}

.include-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.include-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.include-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.include-list svg {
  color: var(--sun);
  margin-top: 3px;
}

.include-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.include-list span {
  display: block;
  margin-top: 3px;
  color: #b9b3c6;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* 12. Chat section -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--flip .split-visual {
  order: -1;
}

.split-visual {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.split-visual .phone {
  position: relative;
  width: 100%;
  animation: none;
}

.split-visual .phone img {
  filter: drop-shadow(0 24px 40px rgba(23, 19, 32, 0.22));
}

.split-visual .phone:nth-child(2) {
  margin-top: 46px;
}

.bullet-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 2px var(--mint);
}

.bullet-list strong {
  font-weight: 600;
  color: var(--ink);
}

/* 13. Accessibility ------------------------------------------------------- */
.a11y-section {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, #f0ecff 100%);
  border-top: 1px solid var(--line);
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 52px);
}

.a11y-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.a11y-card h3 {
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}

.a11y-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.a11y-card svg {
  color: var(--violet-ink);
  flex: none;
}

.a11y-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.a11y-cta p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* 14. Membership ---------------------------------------------------------- */
.plan {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 52px);
}

.plan-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.plan-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 107, 0.26), transparent 56%);
  pointer-events: none;
}

.plan-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}

.plan-price strong {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price span {
  color: #c8c2d6;
  font-size: 0.9688rem;
}

.plan-fine {
  margin-top: 14px;
  color: #b9b3c6;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.benefits li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9688rem;
  color: var(--ink-2);
}

.benefits li:last-child {
  border-bottom: 0;
}

.benefits svg {
  color: var(--mint);
  margin-top: 4px;
}

.benefits strong {
  color: var(--ink);
}

/* 15. FAQ ----------------------------------------------------------------- */
.faq {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  letter-spacing: -0.01em;
}

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

.faq summary:hover {
  color: var(--violet-ink);
}

.faq summary .plus {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq details[open] summary .plus {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.faq .faq-body {
  padding: 0 56px 24px 0;
  color: var(--muted);
  max-width: 72ch;
}

.faq .faq-body a {
  color: var(--violet-ink);
}

/* 16. CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(64px, 8vw, 112px);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 460px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(108, 76, 241, 0.55), transparent 72%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.cta-inner p {
  margin-top: 18px;
  color: #c8c2d6;
  max-width: 44ch;
}

.cta-phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0;
}

.cta-phones .phone {
  position: relative;
  width: 58%;
  margin-inline: -9%;
  animation: none;
}

.cta-phones .phone img {
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.cta-phones .phone:nth-child(1) {
  transform: rotate(-6deg) translateY(14px);
}

.cta-phones .phone:nth-child(2) {
  z-index: 2;
}

/* 17. Footer -------------------------------------------------------------- */
.site-footer {
  background: #12101a;
  color: #e9e5f2;
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.9fr));
  gap: 32px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand:hover {
  color: #fff;
}

.footer-brand p {
  margin-top: 16px;
  color: #b9b3c6;
  max-width: 34ch;
  font-size: 0.9375rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8f89a0;
  font-weight: 600;
}

.footer-col ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: #d8d3e4;
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8f89a0;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

/* 18. Legal / prose pages ------------------------------------------------- */
.page-head {
  padding-block: clamp(48px, 6vw, 80px) clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin-top: 16px;
}

.page-head p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 62ch;
}

.prose-wrap {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 64px) var(--section-y);
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  font-size: 0.875rem;
}

.toc h2 {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
  counter-reset: toc;
  max-height: 70vh;
  overflow-y: auto;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--ink);
  border-left-color: var(--ink);
}

.prose-wrap--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.prose-wrap--single .prose {
  max-width: 70ch;
}

.prose {
  max-width: 74ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.6em;
  padding-top: 0.2em;
  scroll-margin-top: 104px;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--ink);
  margin-top: 1.8em;
  scroll-margin-top: 104px;
}

.prose h2 + h3 {
  margin-top: 1.1em;
}

.prose p {
  margin-top: 1em;
}

.prose ul,
.prose ol {
  margin: 1em 0 0;
  padding-left: 1.25em;
  display: grid;
  gap: 0.4em;
}

.prose li::marker {
  color: var(--violet-ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose a {
  color: var(--violet-ink);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--sun);
  background: var(--sun-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin: 0;
  color: #4a3a20;
  font-size: 0.9688rem;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-block: 20px 28px;
  padding: 16px 18px;
  border: 1px solid #e8d3a2;
  border-radius: var(--radius-sm);
  background: var(--sun-soft);
  font-size: 0.9375rem;
  color: #4a3a20;
}

.notice svg {
  color: var(--sun-deep);
  margin-top: 2px;
}

.notice p {
  margin: 0;
}

.notice code,
.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(23, 19, 32, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* 19. Reveal animation ---------------------------------------------------- */
.reveal {
  opacity: 1;
}

/* Only hide the animated blocks once the script has confirmed it can show them. */
html.anim-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-in,
html.anim-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Without JS the menu button cannot work, so show the links plainly. */
@media (max-width: 920px) {
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-bottom: 12px;
  }

  html:not(.js) .site-nav {
    display: block;
    flex-basis: 100%;
    order: 3;
  }

  html:not(.js) .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }
}

/* 20. User preference modes ----------------------------------------------- */
html[data-text="lg"] body { font-size: 1.1875rem; }
html[data-text="xl"] body { font-size: 1.3125rem; }

html[data-text="lg"] .hero-lede,
html[data-text="xl"] .hero-lede { font-size: 1.3125rem; }

html[data-contrast="high"] {
  --ink: #000;
  --ink-2: #111;
  --muted: #262626;
  --line: #767676;
  --line-strong: #000;
  --paper: #fff;
  --paper-2: #f2f2f2;
  --violet: #3c1ecf;
  --violet-ink: #240f8f;
  --violet-soft: #e6e0ff;
  --sun: #ffe08a;
  --sun-deep: #4a2c00;
  --mint: #00524c;
  --clay: #8a2f12;
}

html[data-contrast="high"] .site-header,
html[data-contrast="high"] .a11y-panel,
html[data-contrast="high"] .card,
html[data-contrast="high"] .bento-item,
html[data-contrast="high"] .a11y-card {
  backdrop-filter: none;
  background: #fff;
}

html[data-contrast="high"] .site-header {
  border-bottom-color: #000;
}

html[data-contrast="high"] .icon-badge {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

html[data-contrast="high"] .chip {
  background: #fff;
  border-color: #000;
  color: #000;
}

html[data-contrast="high"] .brand {
  text-decoration: none;
}

html[data-contrast="high"] .section--dark,
html[data-contrast="high"] .cta-band,
html[data-contrast="high"] .plan-card {
  background: #000;
}

html[data-contrast="high"] .btn {
  background: #000;
  color: #fff;
  border-color: #000;
}

html[data-contrast="high"] .btn--ghost {
  background: #fff;
  color: #000;
  border-color: #000;
}

html[data-contrast="high"] a {
  text-decoration: underline;
}

html[data-contrast="high"] .hero::before {
  display: none;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html[data-motion="reduced"] .reveal,
html[data-motion="reduced"] .reveal.is-in {
  opacity: 1;
  transform: none;
}

html[data-motion="reduced"] .marquee {
  animation: none;
  transform: none;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee {
    animation: none;
    transform: none;
  }
}

/* 21. Responsive ---------------------------------------------------------- */
@media (max-width: 1140px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 5.4vw, 4rem);
  }

  .hero-lede {
    max-width: 30em;
  }

  .phone--back-l,
  .phone--back-r {
    width: 38%;
  }
}

@media (max-width: 1080px) {
  .bento-item,
  .bento-item--wide {
    grid-column: span 3;
  }

  .bento-item--tall {
    grid-column: span 3;
    grid-row: span 1;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  :root {
    --section-y: clamp(56px, 9vw, 88px);
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .site-header.menu-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px var(--gutter) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header {
    position: sticky;
  }

  .site-header.menu-open .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-header.menu-open .site-nav a {
    padding: 14px 12px;
    border-radius: var(--radius-xs);
    font-size: 1.0625rem;
  }

  .hero-grid,
  .steps,
  .split,
  .events-grid,
  .plan,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-stage {
    width: min(100%, 460px);
    margin-top: 12px;
  }

  .split--flip .split-visual {
    order: 0;
  }

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

  .toc {
    position: static;
    padding-bottom: 8px;
  }

  .toc ol {
    max-height: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    display: grid;
  }

  .toc a {
    border-left: 0;
    border-bottom: 2px solid var(--line);
    padding: 8px 4px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .a11y-btn span {
    display: none;
  }

  .a11y-panel {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .a11y-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    padding-inline: 16px;
  }

  .card {
    padding: 22px 20px 24px;
  }

  .brand-word {
    font-size: 1.35rem;
  }

  .phone--back-l,
  .phone--back-r {
    display: none;
  }

  .phone--main {
    position: relative;
    width: min(86%, 340px);
    left: 0;
    margin-inline: auto;
  }

  .hero-stage {
    aspect-ratio: auto;
    display: grid;
    place-items: center;
  }

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

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

  .bento-item,
  .bento-item--wide,
  .bento-item--tall {
    grid-column: span 1;
  }

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

  .split-visual .phone:nth-child(2) {
    margin-top: 0;
  }

  .split-visual .phone {
    width: min(78%, 300px);
    margin-inline: auto;
  }

  .steps-list li {
    padding-left: 52px;
  }

  .steps-list li::before {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
  }

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

  .faq .faq-body {
    padding-right: 0;
  }

  .prose-wrap {
    padding-top: 28px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .a11y,
  .cta-band,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .prose-wrap {
    display: block;
  }

  .toc {
    display: none;
  }
}

/* 22. Placeholder tokens & meta lines (legal pages) ----------------------- */
.ph {
  background: var(--sun-soft);
  border-bottom: 1px dashed var(--sun-deep);
  border-radius: 3px;
  padding: 0 3px;
  color: #4a3a20;
  white-space: nowrap;
}

html[data-contrast="high"] .ph {
  background: #ffe08a;
  color: #000;
}

.prose .meta-line {
  margin-top: 0.5em;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose .meta-line strong {
  color: var(--ink);
}

/* Support page callouts */
.contact-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
}

.contact-card p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-card a {
  font-weight: 600;
  word-break: break-word;
}

.contact-card--lead {
  margin-top: 20px;
  padding: 24px;
  background: #fff;
}

.contact-card--lead p + p {
  margin-top: 6px;
}

.contact-card--lead a {
  font-size: 1.0625rem;
}

.topic-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
}

.topic-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.topic-tag {
  justify-self: start;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--sun-soft);
  color: var(--sun-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

html[data-contrast="high"] .topic-tag {
  background: #ffe08a;
  color: #000;
}
