/* ==========================================================================
   Cadre — site styles
   One file for the whole site. Colors and sizes live in :root below,
   so changing a token changes it everywhere.
   ========================================================================== */

:root {
  /* Colors */
  --bone: #F3F1EC;        /* main background */
  --stone: #E6E2DA;       /* alternate section background */
  --paper: #FBFAF7;       /* cards, off-white text on dark */
  --ink: #141210;         /* text, dark sections, buttons */
  --ink-soft: #4F4A44;    /* body text on light */
  --muted: #6E675F;       /* small print on light */
  --line: #D6D2CA;        /* hairlines on light */
  --line-soft: #E3E0D9;
  --line-strong: #CBC6BD;
  --bronze: #65553F;      /* small labels on light */
  --accent: #7E6A55;      /* italic words in headings on light */
  --on-dark: #D9D3CA;     /* body text on dark */
  --on-dark-muted: #A9A197;
  --dark-line: #2E2A26;
  --sand: #C9B79F;        /* small labels on dark */
  --sand-light: #E2CFB4;  /* italic words in headings on dark */
  --alert: #9A3324;       /* payment problems */
  --alert-soft: #F4E4DF;

  /* Type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --side: 48px;
  --section: 150px;
  --max: 1360px;
}

@media (max-width: 760px) {
  :root {
    --side: 20px;
    --section: 80px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--sand-light); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--side); }
.container--narrow { max-width: 1000px; }
.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.bg-paper { background: var(--paper); border-block: 1px solid var(--line); }
.bg-stone { background: var(--stone); }
.bg-ink { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bronze);
}
.on-dark .eyebrow, .bg-ink .eyebrow { color: var(--sand); }

.display, .h2, .h3 {
  font-family: var(--serif); font-weight: 400;
}
.display { font-size: clamp(52px, 7.4vw, 116px); line-height: 0.94; letter-spacing: -0.02em; }
.h2 { font-size: clamp(40px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.015em; }
.h3 { font-size: clamp(32px, 3vw, 46px); line-height: 1.02; }
.display em, .h2 em, .h3 em { color: var(--accent); }
.on-dark .display em, .on-dark .h2 em, .on-dark .h3 em,
.bg-ink .display em, .bg-ink .h2 em, .bg-ink .h3 em { color: var(--sand-light); }
.home-hero .display em, .photo-hero .display em, .photo-band .display em, .photo-band .h2 em { color: inherit; }

.lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; }
.on-dark .lead, .bg-ink .lead { color: var(--on-dark); }
.small { font-size: 14px; color: var(--muted); }
.on-dark .small, .bg-ink .small { color: var(--on-dark-muted); }
.stack > * + * { margin-top: 24px; }
.stack-sm > * + * { margin-top: 14px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { background: #2A2622; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--bone); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); font-weight: 500; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(251, 250, 247, 0.8); font-weight: 500; }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row--center { justify-content: center; }
@media (max-width: 760px) {
  .btn-row--stack { flex-direction: column; }
  .btn-row--stack .btn { width: 100%; }
}

.text-link {
  display: inline-block; padding: 10px 0 6px; border-bottom: 1px solid currentColor;
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  background: var(--bone); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header--dark { background: var(--ink); color: var(--paper); border-bottom-color: var(--dark-line); }
.site-header--overlay {
  position: absolute; inset: 0 0 auto 0;
  background: transparent; color: var(--paper);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 20px var(--side);
}
.site-header__nav, .site-header__actions {
  display: flex; align-items: center; gap: 30px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.site-header__actions { justify-self: end; gap: 28px; }
.site-header__nav a, .site-header__actions a:not(.btn) {
  text-decoration: none; padding: 8px 0 6px; border-bottom: 1px solid transparent;
}
.site-header__nav a:hover, .site-header__actions a:not(.btn):hover,
.site-header a[aria-current="page"] { border-bottom-color: currentColor; }
.logo {
  font-family: var(--serif); font-size: 42px; line-height: 1; text-decoration: none; letter-spacing: 0.01em;
}
.site-header .btn--header { min-height: 44px; padding: 0 24px; font-size: 12.5px; }
.site-header:not(.site-header--dark):not(.site-header--overlay) .btn--header { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-header--dark .btn--header, .site-header--overlay .btn--header { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.menu-button {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; color: inherit; border: 1px solid currentColor; cursor: pointer;
  opacity: 0.85;
}

@media (max-width: 1080px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; padding: 12px var(--side); }
  .site-header__nav, .site-header__actions a:not(.btn) { display: none; }
  .logo { font-size: 32px; grid-column: 1; grid-row: 1; }
  .site-header__actions { grid-column: 3; gap: 8px; }
  .site-header .btn--header { padding: 0 14px; font-size: 11.5px; letter-spacing: 0.14em; }
  .menu-button { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: 12px var(--side) 32px;
  visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 200ms;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 68px; }
.mobile-menu__links { display: flex; flex-direction: column; margin-top: 32px; border-top: 1px solid var(--dark-line); }
.mobile-menu__links a {
  font-family: var(--serif); font-size: 40px; line-height: 1.1; text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--dark-line);
}
.mobile-menu .btn { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ---------- Home hero ---------- */
.home-hero {
  position: relative; min-height: max(760px, 100svh); overflow: hidden;
  display: flex; flex-direction: column; background: var(--ink); color: var(--paper);
}
.home-hero__photos { position: absolute; inset: 0; display: flex; gap: 2px; background: var(--ink); }
.home-hero__photos img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.home-hero__photos .is-base { display: none; }
.home-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0) 24%, rgba(20,18,16,0) 46%, rgba(20,18,16,0.82) 100%);
}
.home-hero__content {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; gap: 26px; padding: 140px var(--side) 88px;
}
.home-hero__content .eyebrow { color: #E9DCC8; letter-spacing: 0.32em; }
.home-hero__content .lead { color: #F1ECE4; }
.hero-dots { display: none; gap: 6px; justify-content: center; }
.hero-dots span { width: 24px; height: 1px; background: rgba(255,255,255,0.4); }
.hero-dots span:first-child { background: #fff; }

@keyframes cadreFade {
  0% { opacity: 0; transform: scale(1); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.07); }
  100% { opacity: 0; transform: scale(1.07); }
}
@media (max-width: 760px) {
  .home-hero { min-height: max(680px, 100svh); }
  .home-hero__photos { display: block; }
  .home-hero__photos img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .home-hero__photos .is-base { display: block; }
  .home-hero__photos img:not(.is-base) { opacity: 0; animation: cadreFade 15s linear infinite; }
  .home-hero__photos img:nth-child(3) { animation-delay: 5s; }
  .home-hero__photos img:nth-child(4) { animation-delay: 10s; }
  .home-hero__content { padding-bottom: 32px; gap: 18px; }
  .home-hero__content .btn-row { width: 100%; flex-direction: column; }
  .home-hero__content .btn { width: 100%; }
  .hero-dots { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__photos img:not(.is-base) { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Trust strip */
.trust-strip {
  background: var(--ink); color: var(--sand); border-top: 1px solid #2B2723;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px;
  padding: 22px var(--side);
  font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; text-align: center;
}
@media (max-width: 760px) { .trust-strip { font-size: 10.5px; gap: 6px 14px; padding: 16px var(--side); } }

/* ---------- Photo hero (Plans) & photo bands ---------- */
.photo-hero, .photo-band {
  position: relative; overflow: hidden; display: flex; background: var(--ink); color: var(--paper);
}
.photo-hero { min-height: 660px; align-items: flex-end; }
.photo-band { min-height: 680px; align-items: center; }
.photo-hero > img, .photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,0.35) 0%, rgba(20,18,16,0.15) 40%, rgba(20,18,16,0.72) 100%); }
.photo-band__shade { position: absolute; inset: 0; background: rgba(10, 22, 28, 0.45); }
.photo-hero__content, .photo-band__content {
  position: relative; width: 100%; max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.photo-hero__content { padding: 160px var(--side) 80px; }
.photo-hero__content .eyebrow { color: #E9DCC8; }
.photo-hero__content .lead { color: #F1ECE4; }
.photo-band__content { padding: 110px var(--side); }
@media (max-width: 760px) {
  .photo-hero { min-height: 560px; }
  .photo-band { min-height: 500px; }
  .photo-hero__content { padding: 120px var(--side) 48px; }
}

/* ---------- Split layouts ---------- */
.split { display: flex; flex-wrap: wrap; gap: 64px 88px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--top { align-items: flex-start; }
.split__media img { width: 100%; height: 680px; object-fit: cover; }
@media (max-width: 760px) { .split { gap: 40px; } .split__media img { height: 420px; } }

.label-row { display: flex; flex-wrap: wrap; gap: 20px 88px; }
.label-row > .eyebrow { flex: 0 0 240px; }
.label-row > div { flex: 1 1 520px; min-width: 0; }

/* ---------- Homepage quiz teaser ---------- */
.quiz-teaser { display: flex; flex-wrap: wrap; gap: 56px 88px; align-items: center; }
.quiz-teaser > :first-child { flex: 1 1 380px; min-width: 0; }
.quiz-teaser > :last-child { flex: 1 1 540px; min-width: 0; }

.quiz-card {
  background: var(--paper); border: 1px solid var(--line);
  padding: 52px; display: flex; flex-direction: column; gap: 26px;
  box-shadow: 0 40px 80px -40px rgba(60, 40, 20, 0.22);
}
@media (max-width: 760px) { .quiz-card { padding: 26px 18px; gap: 20px; } }
.quiz-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.progress { height: 1px; background: #DDD8CF; }
.progress > span { display: block; height: 100%; background: var(--ink); transition: width 400ms ease; }
.quiz-question { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -0.01em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px;
  padding: 18px 20px; text-align: left; font-size: 17px; font-weight: 500;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); cursor: pointer; text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"], .choice.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice__box { flex: none; width: 18px; height: 18px; border: 1px solid #8C847A; }
.choice[aria-pressed="true"] .choice__box { background: var(--paper); border-color: var(--paper); }

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step { display: flex; flex-direction: column; gap: 14px; padding: 40px 40px 0; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step:last-child { padding-right: 0; }
.step h3 { font-size: 22px; font-weight: 500; }
.step p { color: var(--ink-soft); }
.photo-num {
  font-family: var(--serif); font-size: 168px; line-height: 0.9; font-weight: 400;
  background-size: cover; background-position: center;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.photo-num--1 { background-image: url('../img/aerial-ocean.jpg'); background-position: center 60%; }
.photo-num--2 { background-image: url('../img/surfer-gold.jpg'); background-position: center 40%; }
.photo-num--3 { background-image: url('../img/pastel-horizon.jpg'); background-position: center 70%; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: row; align-items: center; gap: 18px; padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step .photo-num { font-size: 84px; width: 72px; flex: none; text-align: center; }
  .step h3 { font-size: 19px; margin-bottom: 4px; }
}

/* ---------- Lists with hairlines ---------- */
.rule-list { border-top: 1px solid var(--ink); }
.rule-list li { padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.rule-list--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 40px; }
.bg-ink .rule-list, .on-dark .rule-list { border-top-color: var(--dark-line); }
.bg-ink .rule-list li, .on-dark .rule-list li { border-bottom-color: var(--dark-line); }

/* ---------- Lexi feature ---------- */
/* One portrait with a thin gold frame offset behind it (same detail as the login) */
.lexi-portrait { position: relative; max-width: 520px; padding: 0 22px 22px 0; }
.lexi-portrait::before { content: ""; position: absolute; top: 22px; left: 22px; right: 0; bottom: 0; border: 1px solid rgba(201, 183, 159, 0.6); }
.lexi-portrait img { position: relative; display: block; width: 100%; height: 680px; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 760px) { .lexi-portrait img { height: 440px; } }

/* 404: sand ripples behind the text, faded toward the middle so the words stay easy to read */
.sand-hero { position: relative; isolation: isolate; min-height: 72svh; display: flex; align-items: center; }
.sand-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/img/sand-ripples.jpg") center / cover; }
.sand-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(243, 241, 236, 0.82) 0%, rgba(243, 241, 236, 0.55) 55%, rgba(243, 241, 236, 0.2) 100%); }

/* Edge-to-edge split: text on the left inside the page margins, photo filling the right half top to bottom */
.edge-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.edge-split__text { align-self: center; padding: clamp(80px, 9vw, 128px) clamp(40px, 6vw, 88px) clamp(80px, 9vw, 128px) max(var(--side), calc((100vw - var(--max)) / 2 + var(--side))); }
.edge-split__media { position: relative; min-height: 720px; overflow: hidden; }
.edge-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
@media (max-width: 900px) {
  .edge-split { grid-template-columns: minmax(0, 1fr); }
  .edge-split__text { padding: 64px var(--side) 48px; }
  .edge-split__media { min-height: 480px; }
}
.signature { display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.bg-ink .signature, .on-dark .signature { border-top-color: var(--dark-line); }
.signature__name { font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; }
.signature__role { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.bg-ink .signature__role, .on-dark .signature__role { color: var(--on-dark-muted); }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.plan { background: var(--paper); padding: 44px 36px; display: flex; flex-direction: column; gap: 20px; }
.plan + .plan { border-left: 1px solid var(--ink); }
.plan--featured { background: var(--ink); color: var(--paper); }
.plan__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.plan--featured .plan__tag { color: var(--sand); }
.plan__name { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan--featured .plan__price span { color: var(--on-dark-muted); }
.plan__desc { color: var(--ink-soft); }
.plan--featured .plan__desc { color: var(--on-dark); }
.plan__list { border-top: 1px solid var(--line-soft); }
.plan__list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.plan--featured .plan__list { border-top-color: var(--dark-line); color: var(--on-dark); }
.plan--featured .plan__list li { border-bottom-color: var(--dark-line); }
.plan .btn { margin-top: auto; }
.plan--featured .btn--outline { color: var(--paper); border-color: var(--paper); }
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--ink); }
  .plan-grid--mobile-featured-first .plan--featured { order: -1; }
  .plan { padding: 30px 22px; }
  .plan__name { font-size: 40px; }
  .plan__price strong { font-size: 44px; }
}

/* ---------- Motion helpers (main.js adds .fx to <html> unless reduced motion is on) ---------- */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }
.fx .reveal:not(.is-in) { opacity: 0; }
.fx .reveal.is-in { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes foil { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0% 0; } }

/* ---------- Plan rows (home page) ---------- */
.plan-rows { position: relative; isolation: isolate; }
.plan-rows::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left; }
.fx .plan-rows:not(.is-in)::before { transform: scaleX(0); }
.fx .plan-rows.is-in::before { animation: draw 1.6s var(--ease-out) both; }
.plan-row { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.4fr) auto 52px; align-items: center; gap: 32px; padding: 38px 8px; color: var(--ink); text-decoration: none; transition: padding 0.7s var(--ease-out); }
/* hover fill: rises from the bottom, with a soft warm light that follows the cursor */
.plan-row::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.7s var(--ease-out);
  background: radial-gradient(520px circle at var(--mx, 50%) 50%, rgba(226, 207, 180, 0.42), transparent 65%), var(--paper); }
.plan-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); transform-origin: left; transition: background 0.5s ease; }
.fx .plan-row:not(.is-in)::after { transform: scaleX(0); }
.fx .plan-row.is-in::after { animation: draw 1.3s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 250ms); }
/* gold diamond separator between plans (the last row keeps its plain bottom line) */
.plan-row:not(:last-child)::after { display: none; }
.plan-sep { display: flex; align-items: center; height: 14px; }
.plan-sep::before, .plan-sep::after { content: ""; flex: 1; height: 1px; transition: transform 1.4s var(--ease-out) 0.2s; }
@media (max-width: 760px) { .plan-sep::before, .plan-sep::after { height: 2px; } }
.plan-sep::before { background: linear-gradient(90deg, rgba(168, 139, 98, 0.3), #A88B62 45%); transform-origin: right; }
.plan-sep::after { background: linear-gradient(90deg, #A88B62 55%, rgba(168, 139, 98, 0.3)); transform-origin: left; }
.plan-sep span { flex: none; width: 10px; height: 10px; margin: 0 14px; transform: rotate(45deg); transition: transform 0.8s var(--ease-out);
  background: linear-gradient(135deg, #E9D5AF, #A88B62); }
.fx .plan-sep:not(.is-in)::before, .fx .plan-sep:not(.is-in)::after { transform: scaleX(0); }
.fx .plan-sep:not(.is-in) span { transform: rotate(45deg) scale(0); }
.plan-row:hover::before, .plan-row:focus-visible::before { transform: scaleY(1); }
.plan-row:hover::after { background: var(--ink); }
.plan-row:hover { padding-inline: 24px; }
.plan-row__index { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; color: var(--accent); }
.plan-row__index::after { content: ""; width: 0; height: 1px; background: var(--accent); transition: width 0.7s var(--ease-out); }
.plan-row:hover .plan-row__index::after { width: 22px; }
.plan-row__name { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* gold glint that sweeps across the name on hover */
.plan-row__glint { background: linear-gradient(105deg, var(--ink) 0 40%, #8C7354 45%, #E9D5AF 50%, #8C7354 55%, var(--ink) 60% 100%); background-size: 320% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.3s var(--ease-out); }
.plan-row:hover .plan-row__glint { background-position: 0% 0; }
.plan-row__badge { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); padding: 6px 10px; background: linear-gradient(105deg, #C9B79F, #F1E3CC 50%, #C9B79F); background-size: 200% 100%; transition: background-position 1s var(--ease-out); }
.plan-row:hover .plan-row__badge { background-position: 100% 0; }
.plan-row__desc { color: var(--ink-soft); max-width: 44ch; transition: color 0.5s ease; }
.plan-row:hover .plan-row__desc { color: var(--ink); }
.plan-row__price { white-space: nowrap; text-align: right; }
.plan-row__price strong { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.plan-row__price span { display: block; font-size: 13px; color: var(--muted); }
.plan-row__arrow { position: relative; isolation: isolate; justify-self: end; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; overflow: hidden; transition: color 0.5s var(--ease-out); }
.plan-row__arrow::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 0.55s var(--ease-out); }
.plan-row__arrow svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease-out); }
.plan-row:hover .plan-row__arrow { color: var(--paper); }
.plan-row:hover .plan-row__arrow::before { transform: scale(1); }
.plan-row:hover .plan-row__arrow svg { transform: rotate(-45deg); }
.plan-rows-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.plan-rows-foot a:not(.text-link) { color: var(--ink); }
@media (max-width: 900px) {
  .plan-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "i n a" ". d d" ". p p"; gap: 10px 16px; padding: 28px 0; }
  .plan-row:hover { padding-inline: 0; }
  .plan-row__index { grid-area: i; } .plan-row__name { grid-area: n; } .plan-row__arrow { grid-area: a; width: 44px; height: 44px; }
  .plan-row__desc { grid-area: d; } .plan-row__price { grid-area: p; text-align: left; }
  .plan-row__price span { display: inline; margin-left: 6px; }
  .plan-row__index::after { display: none; }
}

/* ---------- Noir plan cards (plans page) ---------- */
.noir { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); background: radial-gradient(1200px 600px at 50% -10%, #2A2520 0%, var(--ink) 60%); }
.noir::after { /* fine film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.noir__head { text-align: center; max-width: 820px; margin: 0 auto 72px; }
.noir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; perspective: 1400px; }
.noir-card { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; padding: 48px 38px 40px;
  background: linear-gradient(160deg, rgba(251, 250, 247, 0.06), rgba(251, 250, 247, 0.015) 50%), rgba(20, 18, 16, 0.6);
  border: 1px solid rgba(226, 207, 180, 0.14);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out), border-color 0.6s ease, box-shadow 0.8s var(--ease-out); }
.noir-card.is-tilting { transition: transform 0.12s linear, border-color 0.6s ease, box-shadow 0.8s var(--ease-out); }
.noir-card:hover { border-color: rgba(226, 207, 180, 0.4); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8); }
.noir-card__light { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(226, 207, 180, 0.14), transparent 65%); }
.fx .noir-card:hover .noir-card__light { opacity: 1; }
.noir-card > :not(.noir-card__light) { transform: translateZ(30px); }
.noir-card__top { display: flex; justify-content: space-between; align-items: center; }
.noir-card__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sand); }
.noir-card__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--on-dark-muted); }
.noir-card__name { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 4.8vw, 74px); line-height: 0.95; margin-top: 64px; color: var(--paper); }
.noir-card__rule { height: 1px; margin: 28px 0 24px; background: linear-gradient(90deg, rgba(226, 207, 180, 0.6), rgba(226, 207, 180, 0)); transform-origin: left; }
.fx .noir-card:not(.is-in) .noir-card__rule { transform: translateZ(30px) scaleX(0); }
.fx .noir-card.is-in .noir-card__rule { animation: draw-z 1.4s var(--ease-out) 0.4s both; }
@keyframes draw-z { from { transform: translateZ(30px) scaleX(0); } to { transform: translateZ(30px) scaleX(1); } }
.noir-card__price { display: flex; align-items: baseline; gap: 8px; }
.noir-card__price strong { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; color: var(--paper); }
.noir-card__price span { color: var(--on-dark-muted); font-size: 14px; }
.noir-card__desc { color: var(--on-dark); margin-top: 14px; }
.noir-card__plus { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--sand-light); }
.noir-card__list { margin-top: 12px; display: flex; flex-direction: column; gap: 11px; font-size: 15px; color: var(--on-dark); }
.noir-card__list li { position: relative; padding-left: 24px; }
.noir-card__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border: 1px solid var(--sand); transform: rotate(45deg); }
.noir-card__cta { margin-top: auto; padding-top: 40px; }
.noir-card__link { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); text-decoration: none; }
.noir-card__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; }
.noir-card__link span { transition: transform 0.4s var(--ease-out); }
.noir-card__link:hover span { transform: translateX(6px); }
.fx .noir-card__link:hover::after { animation: sweep 0.9s var(--ease-out); }
@keyframes sweep { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.noir-card .btn { position: relative; overflow: hidden; isolation: isolate; }
.noir-card .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand-light); transform: translateY(101%); transition: transform 0.55s var(--ease-out); }
.noir-card .btn:hover { background: var(--paper); }
.noir-card .btn:hover::before { transform: none; }
.noir-card--featured { border-color: rgba(226, 207, 180, 0.45); background: linear-gradient(165deg, rgba(226, 207, 180, 0.14), rgba(226, 207, 180, 0.02) 55%), rgba(20, 18, 16, 0.7); }
.noir-card--featured .noir-card__tag { color: var(--ink); background: linear-gradient(105deg, #C9B79F, #F1E3CC 50%, #C9B79F); padding: 6px 10px; }
.noir-card__name--foil { background: linear-gradient(105deg, #B89C76 0%, #E9D7BA 30%, #FFF7E8 44%, #E2CFB4 52%, #A58A65 72%, #E2CFB4 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx .noir-card__name--foil { animation: foil 7s var(--ease-out) infinite; }
.noir-note { display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; margin-top: 24px; padding: 28px 38px; border: 1px solid rgba(226, 207, 180, 0.14); background: rgba(251, 250, 247, 0.03); }
.noir-note > .eyebrow { flex: 0 0 200px; }
.noir-note > p:not(.eyebrow) { flex: 1 1 420px; color: var(--on-dark); }
.noir-note strong { color: var(--paper); font-weight: 500; }
@media (max-width: 1000px) { .noir-note { padding: 24px; } }
.noir-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin-top: 48px; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); }
.noir-foot > * { display: inline-flex; align-items: center; gap: 12px; }
.noir-foot > *::before { content: "◆"; font-size: 8px; color: var(--sand); }
.noir-foot a { color: var(--paper); }
@media (max-width: 1000px) {
  .noir-grid { grid-template-columns: minmax(0, 1fr); }
  .noir-card--featured { order: -1; }
  .noir-card { padding: 36px 24px 32px; }
  .noir-card__name { margin-top: 36px; }
  .noir__head { margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-row, .plan-row::before, .plan-row__glint, .plan-row__arrow svg, .noir-card { transition: none; }
}

.note-box { background: var(--stone); padding: 32px; display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; }
.note-box > .eyebrow { flex: 0 0 220px; }
.note-box > p { flex: 1 1 420px; color: var(--ink-soft); }
.note-box strong { color: var(--ink); font-weight: 500; }

/* Compare table */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 8px; border-bottom: 1px solid var(--line-soft); }
.compare thead th { padding-block: 20px; border-bottom-color: var(--line); font-family: var(--serif); font-weight: 400; font-size: 24px; text-align: center; width: 18%; }
.compare thead th:first-child { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-align: left; width: auto; padding-left: 0; }
.compare tbody th { text-align: left; font-weight: 400; padding-left: 0; }
.compare td { text-align: center; }
.compare .is-featured { background: var(--ink); color: var(--paper); border-bottom-color: var(--dark-line); }
.compare .no { color: #A49C92; }
.compare .is-featured .no { color: #8C847A; }
.check { width: 20px; height: 20px; vertical-align: middle; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 24px; font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 30px; line-height: 0.8; color: var(--accent); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; max-width: 760px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-hero { display: flex; flex-wrap: wrap; background: #0B0A09; color: var(--paper); }
.about-hero__media { flex: 1 1 56%; min-width: 320px; min-height: 900px; position: relative; overflow: hidden; }
.about-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.about-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,10,9,0) 70%, #0B0A09 100%); }
.about-hero__text { flex: 1 1 420px; min-width: 0; padding: 80px 72px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.about-hero__text .lead { color: var(--on-dark); }
@media (max-width: 960px) {
  .about-hero__media { min-height: 560px; flex-basis: 100%; }
  .about-hero__media::after { background: linear-gradient(180deg, rgba(11,10,9,0) 70%, #0B0A09 100%); }
  .about-hero__text { padding: 40px var(--side) 64px; }
}
.story p { font-size: 19px; color: #3F3A35; }
.story p + p { margin-top: 20px; }
.pull-quote { padding: 48px 0; border-block: 1px solid var(--ink); }
.pull-quote p { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.015em; max-width: 1100px; }
/* About: Lexi's story as chapters laid out like magazine spreads (big serif title + her text on one side,
   a large photo on the other, alternating), with her quote as a full-width dark band in between. */
.chapters__list { display: flex; flex-direction: column; gap: clamp(96px, 11vw, 160px); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.chapter figure { margin: 0; overflow: hidden; }
.chapter figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chapter__photo { aspect-ratio: 4 / 5; }
.chapter__photo--square { aspect-ratio: 1 / 1; }
.chapter__photo--tall { aspect-ratio: 3 / 4; }
.chapter--photo-right .chapter__photo { grid-column: 8 / 13; grid-row: 1; }
.chapter--photo-right .chapter__text { grid-column: 1 / 7; grid-row: 1; }
.chapter--photo-left .chapter__photo { grid-column: 1 / 6; grid-row: 1; }
.chapter--photo-left .chapter__text { grid-column: 7 / 13; grid-row: 1; }
.chapter--solo .chapter__text { grid-column: 3 / 11; display: flex; flex-direction: column; align-items: center; text-align: center; }
.chapter--solo .chapter__head { align-items: center; }
.chapter__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.chapter__num { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1; color: #A88B62; }
.chapter__head .eyebrow { margin: 0; }
.chapter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.01em; margin: 4px 0 0; text-wrap: balance; }
.chapter__title em { color: var(--accent); }
.chapter__body p { font-size: 19px; line-height: 1.7; color: #3F3A35; max-width: 60ch; }
.chapter__body p + p { margin-top: 20px; }
.chapter--solo .chapter__body p { margin-inline: auto; }
.chapter__body--dropcap > p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 92px; line-height: 0.78; padding: 8px 12px 0 0; color: var(--ink); }

/* Her quote: watermelon edge to edge on one half, the quote and her signature on dark on the other */
.quote-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); color: var(--paper); background: radial-gradient(900px 600px at 100% 0%, #2E2822 0%, var(--ink) 65%); }
.quote-band__photo { position: relative; min-height: 720px; margin: 0; overflow: hidden; }
.quote-band__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.quote-band__text { align-self: center; display: flex; flex-direction: column; gap: 22px; padding: 80px max(var(--side), calc((100vw - var(--max)) / 2 + var(--side))) 80px clamp(40px, 6vw, 96px); }
.quote-band__text .eyebrow { color: var(--sand); }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--serif); font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -0.01em; color: var(--paper); text-wrap: balance; }
.quote-band__sign { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--sand-light); }

@media (max-width: 860px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chapter .chapter__photo, .chapter .chapter__text { grid-column: 1 !important; grid-row: auto !important; }
  .chapter__photo--square { width: 72%; }
  .quote-band { grid-template-columns: minmax(0, 1fr); }
  .quote-band__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .quote-band__text { padding: 48px var(--side) 56px; }
}
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); }
.values > div { padding: 36px 36px 36px 0; border-bottom: 1px solid var(--dark-line); }
.values h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin-bottom: 12px; }
.values p { color: var(--on-dark); }
@media (max-width: 760px) { .values { grid-template-columns: minmax(0, 1fr); } }
.photo-placeholder {
  width: 100%; aspect-ratio: 4 / 5; min-height: 420px; background: var(--stone); border: 1px dashed var(--bronze);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
}
.photo-placeholder span:last-child { font-family: var(--serif); font-size: 36px; line-height: 1; }

/* ---------- Resources ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.feature-card { display: flex; flex-wrap: wrap; background: var(--ink); color: var(--paper); text-decoration: none; }
.feature-card__media { flex: 1 1 520px; min-width: 0; min-height: 520px; position: relative; overflow: hidden; }
.feature-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.feature-card:hover .feature-card__media img { transform: scale(1.03); }
.feature-card__text { flex: 1 1 400px; min-width: 0; padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.feature-card__text p { color: var(--on-dark); }
@media (max-width: 760px) { .feature-card__media { min-height: 280px; } .feature-card__text { padding: 32px 22px 40px; } }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 24px; }
.article-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.article-card[hidden] { display: none; }
.cover {
  height: 300px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid transparent; transition: transform 300ms ease;
}
.article-card:hover .cover { transform: translateY(-4px); }
.cover__kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; }
.cover__big { font-family: var(--serif); font-size: 54px; line-height: 0.96; letter-spacing: -0.015em; }
.cover__small { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; border-top: 1px solid; padding-top: 14px; }
.cover--stone { background: var(--stone); color: var(--ink); }
.cover--stone .cover__small { border-color: var(--line-strong); }
.cover--ink { background: var(--ink); color: var(--paper); }
.cover--ink .cover__small { border-color: #3A3631; }
.cover--paper { background: var(--paper); color: var(--ink); border-color: var(--line); }
.cover--paper .cover__small { border-color: var(--line); }
.cover--bronze { background: var(--bronze); color: var(--paper); }
.cover--bronze .cover__small { border-color: var(--accent); }
.article-card__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }
.article-card__title { font-family: var(--serif); font-size: 30px; line-height: 1.08; }
.article-card__blurb { color: var(--ink-soft); font-size: 16px; }
.glossary { border-top: 1px solid var(--ink); }
.glossary > div { display: flex; flex-wrap: wrap; gap: 6px 40px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.glossary dt { flex: 0 0 220px; font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.glossary dd { flex: 1 1 280px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend, .field-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.input, .textarea {
  width: 100%; min-height: 56px; padding: 0 16px; font-size: 17px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 0;
}
.textarea { padding: 14px 16px; min-height: 160px; resize: vertical; }
.input:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form-card { background: var(--paper); border: 1px solid var(--line); padding: 44px; }
@media (max-width: 760px) { .form-card { padding: 24px 18px; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 560px; }
.inline-form .input { flex: 1 1 260px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.4em; }
/* Cloudflare bot check: hidden while switched off; otherwise usually invisible, with a tick box only if needed */
.bot-check:empty { display: none; }
.bot-check iframe { max-width: 100%; }
.form-status.is-error { color: #8A2C1F; }
.form-status.is-ok { color: var(--bronze); }
.notice { background: var(--stone); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.notice strong { color: var(--ink); }
.info-rows { border-top: 1px solid var(--ink); }
.info-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-rows .field-label { color: var(--muted); }

/* ---------- Quiz page ---------- */
.quiz-page { min-height: 100svh; display: flex; flex-direction: column; }
.quiz-page__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--side); border-bottom: 1px solid var(--line); }
.quiz-page__bar .logo { font-size: 34px; }
.quiz-page__bar a:not(.logo) { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.quiz-page__body { flex: 1; display: flex; }
.quiz-page__media { flex: 0 0 42%; position: relative; overflow: hidden; background: var(--ink); }
.quiz-page__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms ease; }
.quiz-page__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,0) 55%, rgba(20,18,16,0.7) 100%); }
.quiz-page__media p { position: absolute; left: 40px; right: 40px; bottom: 36px; z-index: 1; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--paper); }
.quiz-page__panel { flex: 1; display: flex; justify-content: center; padding: 64px 72px; }
.quiz-page__inner { width: 100%; max-width: 640px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.quiz-help { color: #5A544D; font-size: 16px; margin-top: 10px; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.quiz-nav .hint { font-size: 14px; color: var(--muted); }
/* Quiz result: a Noir card with the plan name in gold foil */
.quiz-result { position: relative; overflow: hidden; isolation: isolate; padding: 44px 40px 36px; color: var(--paper);
  background: radial-gradient(700px 420px at 100% 0%, #2E2822 0%, var(--ink) 65%); box-shadow: 0 60px 100px -60px rgba(20, 18, 16, 0.7);
  --ink-soft: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--dark-line); --accent: var(--sand-light); animation: rise 1s var(--ease-out) both; }
.quiz-result::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #A88B62, #E9D7BA 50%, #A88B62); transform-origin: left; animation: draw 1.4s var(--ease-out) 0.3s both; }
.quiz-result::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.quiz-result .eyebrow { color: var(--sand) !important; }
.quiz-result .plan__price span { color: var(--on-dark-muted); }
.quiz-result .small { color: var(--on-dark-muted); }
.quiz-result .small span, .quiz-result .small a { color: var(--paper); }
.result-plan { font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 9vw, 112px); line-height: 0.92; letter-spacing: -0.02em; padding-bottom: 0.06em; }
.result-plan:focus { outline: none; }
.reasons { border-top: 1px solid rgba(226, 207, 180, 0.25); padding-top: 18px; }
.reasons li { padding: 14px 0; border-bottom: 1px solid var(--dark-line); display: flex; gap: 14px; align-items: baseline; color: var(--on-dark); }
.reasons li:last-child { border-bottom: 0; }
.reasons li span:first-child { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sand); width: 24px; flex: none; }
.quiz-result #result-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.quiz-result #result-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand-light); transform: translateY(101%); transition: transform 0.55s var(--ease-out); }
.quiz-result #result-cta:hover::before { transform: none; }
.upsell { border: 1px solid rgba(226, 207, 180, 0.35); color: var(--on-dark); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-result .upsell a, .quiz-result #quiz-restart { color: var(--sand-light); }
@media (max-width: 760px) { .quiz-result { padding: 32px 22px 26px; margin-inline: calc(var(--side) * -0.5); } }
@media (prefers-reduced-motion: reduce) { .quiz-result, .quiz-result::before { animation: none; } .result-plan.foil { animation: none; } }
@media (max-width: 960px) {
  .quiz-page__media { display: none; }
  .quiz-page__panel { padding: 28px var(--side) 48px; }
}
[hidden] { display: none !important; }

/* ---------- Login ---------- */
/* The portrait fills the left ~60%; a cream panel overlaps its edge, with a gold line and an offset gold frame */
.auth { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--bone); }
.auth__media { position: absolute; top: 0; bottom: 0; left: 0; width: 60%; overflow: hidden; background: var(--ink); color: var(--paper); }
.auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.auth__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,0.2) 0%, rgba(20,18,16,0) 25%, rgba(20,18,16,0) 60%, rgba(20,18,16,0.7) 100%); }
.auth__media .logo { position: absolute; top: 28px; left: 40px; z-index: 1; color: var(--paper); }
.auth__media p { position: absolute; left: 40px; bottom: 40px; max-width: 440px; z-index: 1; font-family: var(--serif); font-size: 44px; line-height: 0.98; }
.auth__panel { position: relative; z-index: 2; width: min(520px, 100%); margin: 48px 8vw 48px auto; padding: 44px 48px; display: flex; flex-direction: column; background: var(--paper);
  box-shadow: 0 70px 120px -60px rgba(20, 18, 16, 0.55), 20px 20px 0 -1px var(--bone), 20px 20px 0 0 rgba(168, 139, 98, 0.6); }
.auth__panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #A88B62, #E9D7BA 50%, #A88B62); transform-origin: left; animation: draw 1.4s var(--ease-out) 0.3s both; }
.auth__mobile-top { display: none; justify-content: space-between; align-items: center; padding-bottom: 32px; }
.auth__mobile-top a:not(.logo) { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.auth__form { width: 100%; display: flex; flex-direction: column; gap: 18px; }
/* "Check your email" screen after signing up / asking for a password reset */
.auth-sent { display: flex; flex-direction: column; gap: 18px; animation: rise 0.8s var(--ease-out) both; }
.auth-sent[hidden] { display: none; }
.auth-sent__icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.auth-sent__icon svg { width: 24px; height: 24px; }
.auth-sent .h2 { font-size: clamp(44px, 4.4vw, 60px); }
.auth-sent .h2:focus { outline: none; }
.auth-sent__text { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.auth-sent__text strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.auth-sent__hint { font-size: 14px; color: var(--muted); }
.auth-sent__back { align-self: center; text-transform: none; letter-spacing: 0; font-size: 14px; text-decoration: underline; min-height: 0; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tabs button {
  min-height: 48px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.tabs button[aria-selected="true"] { border-bottom-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn--google { background: var(--paper); color: var(--ink); border-color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 500; }
.btn--google:hover { background: var(--bone); }
.google-mark { width: 20px; height: 20px; }
/* Phones and tablets: the portrait becomes a band at the top, the cream panel overlaps its bottom edge */
@media (max-width: 960px) {
  .auth { display: block; }
  .auth__media { position: relative; width: 100%; height: 44svh; min-height: 300px; }
  .auth__media img { object-position: 50% 10%; }
  .auth__media .logo { top: 18px; left: var(--side); font-size: 30px; }
  .auth__media p { font-size: 30px; left: var(--side); right: var(--side); bottom: 56px; }
  .auth__panel { width: auto; margin: -32px 14px 32px; padding: 28px 22px; box-shadow: 0 30px 60px -40px rgba(20, 18, 16, 0.5); }
}
@media (prefers-reduced-motion: reduce) { .auth__panel::before { animation: none; } }

/* ---------- Account ---------- */
.account-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 18px var(--side); max-width: var(--max); margin: 0 auto; }
.account-header nav { display: flex; gap: 28px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.account-header nav a, .account-header .link-btn { text-decoration: none; padding: 10px 0 6px; border-bottom: 1px solid transparent; }
.account-header nav a[aria-current="page"], .account-header nav a:hover { border-bottom-color: currentColor; }
.link-btn { background: none; border: 0; cursor: pointer; font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; min-height: 44px; }
@media (max-width: 760px) { .account-header nav { order: 3; flex-basis: 100%; } }
.account-header--dark { background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--dark-line); }
.account-header--dark a, .account-header--dark .link-btn { color: var(--paper); }

/* Gold foil text (member name, plan name on the black card) */
.foil { background: linear-gradient(105deg, #B89C76 0%, #E9D7BA 30%, #FFF7E8 44%, #E2CFB4 52%, #A58A65 72%, #E2CFB4 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s var(--ease-out) infinite; padding-right: 0.08em; }

/* Dark band at the top: greeting, payment warning, next step */
.acct-band { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); background: radial-gradient(1200px 600px at 70% -10%, #2E2822 0%, var(--ink) 60%);
  --ink-soft: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--dark-line); --accent: var(--sand-light); }
.acct-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.acct-band__inner, .acct-band__plan { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.acct-band__inner { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.acct-band .eyebrow { color: var(--sand); }
.acct-main { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); }

.next-step { display: flex; flex-wrap: wrap; color: var(--paper); background: linear-gradient(160deg, rgba(251, 250, 247, 0.06), rgba(251, 250, 247, 0.01) 50%); border: 1px solid rgba(226, 207, 180, 0.2); }
.next-step__text { flex: 1 1 420px; padding: 48px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.next-step__text p { color: var(--on-dark); }
.next-step__media { flex: 0 1 38%; min-width: 280px; min-height: 340px; position: relative; overflow: hidden; }
.next-step__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 82%; }
.next-step__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1D1A17 0%, rgba(29, 26, 23, 0.4) 18%, rgba(29, 26, 23, 0) 38%); }
.next-step .btn--light { position: relative; overflow: hidden; isolation: isolate; }
.next-step .btn--light::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand-light); transform: translateY(101%); transition: transform 0.55s var(--ease-out); }
.next-step .btn--light:hover::before { transform: none; }
.next-step__bill { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; max-width: 520px; padding: 14px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); color: var(--paper) !important; }
.next-step__bill strong { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--sand-light); }
@media (max-width: 760px) { .next-step__text { padding: 28px 22px; } .next-step__media { display: none; } }

/* Setup steps: roman-numeral dots joined by a line that draws in (vertical on phones) */
.progress-steps { counter-reset: step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-top: 8px; }
.progress-steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 18px 0 0; color: var(--muted); }
.progress-steps li.is-done, .progress-steps li.is-next { color: var(--ink); }
.progress-steps li::before, .progress-steps li::after { content: ""; position: absolute; top: 17px; left: 44px; right: 8px; height: 1px; background: var(--line-strong); }
.progress-steps li::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.progress-steps li.is-done::after { animation: draw 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 180ms + 300ms); }
.progress-steps li:last-child::before, .progress-steps li:last-child::after { display: none; }
.progress-steps .dot { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bone); display: inline-flex; align-items: center; justify-content: center; color: var(--paper); font-family: var(--serif); font-size: 16px; }
.progress-steps li:not(.is-done) .dot::before { content: counter(step, upper-roman); color: var(--muted); font-style: italic; }
.progress-steps .is-done .dot { background: var(--ink); border-color: var(--ink); }
.progress-steps .is-next .dot { border-color: var(--accent); background: var(--paper); }
.progress-steps .is-next .dot::before { color: var(--accent); }
.progress-steps .is-next .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.progress-steps li > span:last-child { font-size: 17px; }
.progress-steps .is-next > span:last-child { font-family: var(--serif); font-size: 24px; line-height: 1.05; }
.progress-steps small { display: block; font-size: 13px; color: var(--muted); }
.progress-steps .is-next small { color: var(--accent); font-family: var(--sans); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; margin-top: 6px; }
@media (max-width: 760px) {
  .progress-steps { grid-auto-flow: row; grid-auto-columns: auto; }
  .progress-steps li { flex-direction: row; padding: 0 0 26px; }
  .progress-steps li::before, .progress-steps li::after { top: 40px; bottom: 4px; left: 17px; right: auto; width: 1px; height: auto; transform-origin: top; }
  .progress-steps li.is-done::after { animation-name: draw-y; }
  .progress-steps li > span:last-child { padding-top: 7px; }
}
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Cards: gold rule that draws in, lift + warm light that follows the cursor (--mx/--my set in account.js) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.card { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 18px; transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out), border-color 0.5s ease; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #A88B62, #E9D7BA 50%, #A88B62); transform-origin: left; animation: draw 1.4s var(--ease-out) 0.3s both; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(226, 207, 180, 0.38), transparent 65%); }
.card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -45px rgba(20, 18, 16, 0.45); }
.card:hover::after { opacity: 1; }
.card--outlined { border-color: var(--ink); }
.card--stone { border-color: var(--line-strong); }
.card--stone .eyebrow { color: var(--ink); background: linear-gradient(105deg, #C9B79F, #F1E3CC 50%, #C9B79F); padding: 6px 10px; align-self: flex-start; }
.card .btn { margin-top: auto; }
.card .plan__name { background: linear-gradient(105deg, var(--ink) 0 40%, #8C7354 45%, #E9D5AF 50%, #8C7354 55%, var(--ink) 60% 100%); background-size: 320% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.3s var(--ease-out); }
.card:hover .plan__name { background-position: 0% 0; }
@media (max-width: 760px) { .card { padding: 26px 22px; } .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* The member's own plan: a black "membership card" */
.member-card { --ink-soft: var(--on-dark); --muted: var(--on-dark-muted); --line-soft: var(--dark-line); color: var(--paper); border-color: var(--ink);
  background: linear-gradient(135deg, rgba(226, 207, 180, 0.12), rgba(226, 207, 180, 0) 40%), radial-gradient(600px 300px at 100% 0%, #2E2822, var(--ink) 70%); }
.member-card .eyebrow { color: var(--sand) !important; }
.member-card .plan__name { background-image: linear-gradient(105deg, #B89C76 0%, #E9D7BA 30%, #FFF7E8 44%, #E2CFB4 52%, #A58A65 72%, #E2CFB4 100%); background-size: 260% 100%; animation: foil 7s var(--ease-out) infinite; }
.member-card .btn--outline { color: var(--paper); border-color: rgba(226, 207, 180, 0.55); }
.member-card .btn--outline:hover { background: var(--paper); color: var(--ink); }
.member-card::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(226, 207, 180, 0.16), transparent 65%); }

/* Important dates: rows that fill with a soft light on hover */
.dates { border-top: 1px solid var(--ink); }
.dates > div { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 12px; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding 0.6s var(--ease-out); }
.dates > div::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out); background: radial-gradient(480px circle at var(--mx, 30%) 50%, rgba(226, 207, 180, 0.42), transparent 65%), var(--paper); }
.dates > div:hover::before { transform: scaleY(1); }
.dates > div:hover { padding-inline: 24px; }
.dates > div.is-next .date { color: var(--accent); }
.dates .date { flex: 0 0 200px; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.dates .what { flex: 1 1 260px; }
.dates .tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); background: linear-gradient(105deg, #C9B79F, #F1E3CC 50%, #C9B79F); padding: 5px 9px; }
.dates .tag:empty { display: none; }
#dates-title { font-size: clamp(36px, 3.6vw, 52px); }
@media (prefers-reduced-motion: reduce) {
  .foil, .member-card .plan__name, .progress-steps .is-next .dot::after { animation: none; }
  .card::before, .progress-steps li.is-done::after { animation: none; transform: none; }
  .card:hover { transform: none; }
}
.skeleton { color: transparent !important; background: linear-gradient(90deg, var(--stone), var(--bone), var(--stone)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Welcome (after payment): dark band with the member card ---------- */
.welcome__inner { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px 72px; }
.welcome__text { display: flex; flex-direction: column; gap: 22px; }
.welcome .display { color: var(--paper); font-size: clamp(56px, 6.6vw, 104px); }
.welcome .lead { color: var(--on-dark); }
.welcome__steps { display: flex; flex-direction: column; border-top: 1px solid var(--dark-line); max-width: 520px; }
.welcome__steps li { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
.welcome__num { flex: none; width: 34px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--sand); }
.welcome__steps strong { font-weight: 500; color: var(--paper); }
.welcome__steps p { color: var(--on-dark); font-size: 15px; margin-top: 2px; }
.welcome__btn { align-self: flex-start; position: relative; overflow: hidden; isolation: isolate; }
.welcome__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand-light); transform: translateY(101%); transition: transform 0.55s var(--ease-out); }
.welcome__btn:hover::before { transform: none; }
.welcome__card-wrap { perspective: 1200px; display: flex; justify-content: center; padding: 20px; animation: pass-in 1.4s var(--ease-out) 0.2s both; }
@keyframes pass-in { from { transform: perspective(1200px) translateY(40px) rotateX(18deg) rotateY(-22deg); opacity: 0; } to { transform: none; opacity: 1; } }
.member-pass { position: relative; overflow: hidden; width: min(480px, 100%); aspect-ratio: 1.586; border-radius: 18px; padding: 30px 32px; display: flex; flex-direction: column; justify-content: space-between;
  color: var(--paper); border: 1px solid rgba(226, 207, 180, 0.3);
  background: linear-gradient(135deg, rgba(226, 207, 180, 0.16), rgba(226, 207, 180, 0) 40%), radial-gradient(500px 300px at 100% 0%, #3A322A, #161412 70%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 247, 232, 0.12);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease-out); }
.member-pass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 247, 232, 0.16) 50%, transparent 65%); background-size: 250% 100%; animation: pass-sheen 6s var(--ease-out) 1.4s infinite; }
@keyframes pass-sheen { 0% { background-position: 120% 0; } 40%, 100% { background-position: -40% 0; } }
.member-pass__top { display: flex; justify-content: space-between; align-items: center; }
.member-pass__logo { font-family: var(--serif); font-size: 30px; }
.member-pass__tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); background: linear-gradient(105deg, #C9B79F, #F1E3CC 50%, #C9B79F); padding: 5px 10px; }
.member-pass__chip { width: 46px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #8C7354, #E9D5AF 45%, #A88B62 70%, #E2CFB4); opacity: 0.85; }
.member-pass__plan { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.member-pass__bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); }
.member-pass__bottom span:first-child { color: var(--paper); font-size: 13px; }
@media (max-width: 900px) {
  .welcome__inner { grid-template-columns: minmax(0, 1fr); }
  .welcome__card-wrap { order: -1; padding: 0; }
  .member-pass { padding: 20px 22px; border-radius: 14px; }
  .member-pass__logo { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .welcome__card-wrap, .member-pass::after { animation: none; } }

/* ---------- Payment problems (member area) ---------- */
.btn--alert { background: var(--alert); color: var(--paper); border-color: var(--alert); }
.btn--alert:hover { background: #7E2A1D; border-color: #7E2A1D; }
.pay-alert { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 32px 40px; background: var(--alert-soft); border: 1px solid var(--alert); box-shadow: inset 6px 0 0 var(--alert); }
.pay-alert__icon { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--alert); color: var(--paper); font-family: var(--serif); font-size: 32px; line-height: 1; }
.pay-alert__icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--alert); opacity: 0; animation: pay-ring 2.4s var(--ease-out) infinite; }
@keyframes pay-ring { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
.pay-alert__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.pay-alert__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--alert); }
.pay-alert__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.pay-alert__title em { color: var(--alert); }
.pay-alert__text p:last-child { color: var(--ink-soft); max-width: 56ch; }
.pay-alert__actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pay-alert__link { color: var(--alert); text-decoration: underline; text-underline-offset: 4px; }
.plan-status { font-size: 15px; color: var(--ink-soft); }
.plan-status.is-alert { color: var(--alert); font-weight: 600; }
.plan-status.is-ok { color: var(--bronze); font-weight: 600; }
.card.is-alert { border-color: var(--alert); box-shadow: inset 0 4px 0 #C4513B; }
.card.is-alert .eyebrow, .member-card .plan-status.is-alert { color: #F0A08E !important; }
/* On the dark band at the top of the member area */
.acct-band .pay-alert { background: rgba(154, 51, 36, 0.24); border-color: #B5442F; box-shadow: inset 6px 0 0 #C4513B; }
.acct-band .pay-alert__title, .acct-band .pay-alert__text p { color: var(--paper); }
.acct-band .pay-alert__title em, .acct-band .pay-alert__eyebrow, .acct-band .pay-alert__link { color: #F0A08E; }
@media (max-width: 760px) {
  .pay-alert { padding: 24px 20px; box-shadow: inset 4px 0 0 var(--alert); }
  .pay-alert__icon { width: 42px; height: 42px; font-size: 26px; }
  .pay-alert__actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pay-alert__icon::after { animation: none; } }

/* ---------- Team page: 2-step verification ---------- */
.mfa { position: relative; overflow: hidden; max-width: 560px; display: flex; flex-direction: column; gap: 18px; padding: 40px; background: var(--paper); border: 1px solid var(--line); }
.mfa::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #A88B62, #E9D7BA 50%, #A88B62); }
.mfa[hidden] { display: none; }
.mfa__text { color: var(--ink-soft); }
.mfa__setup { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px; background: var(--bone); border: 1px solid var(--line-soft); }
.mfa__qr { width: 180px; height: 180px; background: #fff; padding: 8px; }
.mfa__setup .small { flex: 1 1 200px; }
.mfa__secret { display: inline-block; margin-top: 6px; font-size: 13px; letter-spacing: 0.06em; word-break: break-all; color: var(--ink); }
.mfa__code { max-width: 220px; font-size: 26px; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.mfa .btn { align-self: flex-start; }
@media (max-width: 760px) { .mfa { padding: 28px 20px; } }

/* ---------- Team page (/staff) ---------- */
.staff { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.staff__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 56px; }
.staff-stats { display: flex; border-top: 1px solid var(--ink); }
.staff-stats > div { padding: 14px 32px 0 0; min-width: 120px; }
.staff-stats > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.staff-stats dt { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.staff-stats dd { font-family: var(--serif); font-size: 56px; line-height: 1; margin-top: 6px; }
.staff-stats.has-alert .staff-stats__alert dt, .staff-stats.has-alert .staff-stats__alert dd { color: var(--alert); }
.staff-denied { font-size: 18px; border-left: 3px solid var(--bronze); background: var(--stone); padding: 18px 22px; }
.staff-denied a { margin-left: 6px; }

.staff-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 18px; }
.staff-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-filter button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.staff-filter button:hover { border-color: var(--ink); color: var(--ink); }
.staff-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.staff-search input { width: min(320px, 100%); min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); }
.staff-search input:focus { outline: none; border-color: var(--ink); }
.staff-search { flex: 0 1 320px; }

#members { border-top: 1px solid var(--ink); }
.member { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 280px; gap: 20px 40px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.member.is-alert { background: var(--alert-soft); box-shadow: inset 3px 0 0 var(--alert); padding-inline: 24px; }
.member__name { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.member__email { display: inline-block; margin-top: 4px; font-size: 15px; color: var(--ink-soft); word-break: break-all; }
.member__meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.member__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.chip--alert { background: var(--alert); border-color: var(--alert); color: var(--paper); }
.member__step { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16px; }
.member__count { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.member.is-done .member__count { color: var(--muted); }
.member__bar { display: flex; gap: 4px; margin-top: 12px; }
.member__bar li { flex: 1; height: 4px; background: var(--line); }
.member__bar li.is-done { background: var(--ink); }
.member__bar li.is-next { background: linear-gradient(90deg, var(--accent) 0 40%, var(--line) 40%); }
.member__updated { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.member__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.member__actions .btn { white-space: nowrap; }
.member__waiting { font-size: 13px; color: var(--bronze); font-style: italic; text-align: right; }
.member__undo { color: var(--muted); font-size: 11.5px; min-height: 36px; }
.member__undo:hover { color: var(--ink); }
.member__quiz { grid-column: 1 / -1; }
.member__quiz summary { cursor: pointer; width: fit-content; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.member__quiz dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 32px; margin-top: 14px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line-soft); }
.member__quiz dt { font-size: 12px; color: var(--muted); }
.member__quiz dd { margin-top: 2px; font-size: 15px; }
.staff-empty { padding: 28px 0; }
.member__bill { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.member__bill-label { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); min-width: 110px; }
.member__bill-status { font-size: 15px; color: var(--muted); }
.member__bill-status strong { font-weight: 600; }
.member__bill-status.is-sent { color: var(--ink); }
.member__bill-status.is-sent strong { color: var(--bronze); }
.member__bill-status.is-paid strong { color: #2F6B45; }
.member__bill-btn { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); min-height: 36px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.member__bill-btn:hover { color: var(--accent); }
.bill-form { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; background: var(--paper); border: 1px solid var(--line-soft); }
.bill-form__select, .bill-form__input { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--bone); font: inherit; font-size: 15px; color: var(--ink); }
.bill-form__select { flex: 1 1 260px; }
.bill-form__input { flex: 1 1 240px; }
.bill-form__amount { flex: 0 1 140px; }
.bill-form__select:focus, .bill-form__input:focus { outline: none; border-color: var(--ink); }
#staff-status:not(:empty) { position: sticky; bottom: 20px; align-self: center; z-index: 5; background: var(--ink); color: var(--paper); padding: 14px 22px; box-shadow: 0 12px 30px rgba(20,18,16,0.2); }
#staff-status.is-error:not(:empty) { background: var(--alert); color: var(--paper); }

@media (max-width: 900px) {
  .member { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .member__actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .staff-stats { width: 100%; }
  .staff-stats > div { flex: 1; min-width: 0; padding-right: 12px; }
  .staff-stats > div + div { padding-left: 14px; }
  .staff-stats dd { font-size: 44px; }
}
@media (max-width: 760px) {
  .member.is-alert { padding-inline: 16px; margin-inline: -16px; }
  .member__actions .btn { width: 100%; white-space: normal; }
  .staff-search { flex-basis: 100%; }
  .staff-search input { width: 100%; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin-top: 48px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 20px; margin-top: 12px; }
.draft-banner { background: var(--stone); border-left: 3px solid var(--bronze); padding: 16px 20px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; background: var(--ink); color: var(--on-dark); padding: 112px var(--side) 40px; display: flex; flex-direction: column; gap: 72px; }
/* Photo behind the footer, darkened at the top so the links stay readable */
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('../img/wet-sand.jpg') center / cover no-repeat; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,16,0.84) 0%, rgba(20,18,16,0.6) 50%, rgba(20,18,16,0.5) 72%, rgba(20,18,16,0.78) 100%); }
.site-footer .eyebrow { color: var(--on-dark); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px 72px; justify-content: space-between; }
.site-footer__contact { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.site-footer__contact a { color: var(--paper); }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 24px 72px; font-size: 15px; }
.site-footer nav div { display: flex; flex-direction: column; gap: 4px; }
.site-footer nav a { color: var(--paper); text-decoration: none; padding: 6px 0; }
.site-footer nav a:hover { text-decoration: underline; }
/* Wordmark fills the width on small screens (53.5cqi ≈ width / 1.859em for "Cadre"), capped on large ones */
.site-footer__mark { font-family: var(--serif); font-size: min(53.5cqi, 220px); line-height: 0.8; letter-spacing: -0.03em; white-space: nowrap; color: rgba(251,250,247,0.94); margin-left: -0.035em; }
.site-footer__legal { margin-top: -32px; font-size: 12px; line-height: 1.6; letter-spacing: 0.01em; color: rgba(217,211,202,0.72); border-top: 1px solid rgba(255,255,255,0.16); padding-top: 24px; }
@media (max-width: 760px) { .site-footer { padding: 64px var(--side) 28px; gap: 44px; } .site-footer nav { gap: 24px 40px; } }

/* Small footer (account, legal) */
.mini-footer { border-top: 1px solid var(--line); }
.mini-footer > div { max-width: var(--max); margin: 0 auto; padding: 28px var(--side); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.mini-footer a { color: var(--muted); }
