/* ============================================================
   PROXIMA SENIOR ADVISING — styles.css
   Swiss / International Typographic Style
   Cream ground · near-black ink · poster accents (one per zone)
   Grid: 12 col / 8px base unit · Inter (self-hosted variable)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "InterVar";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("../assets/fonts/inter-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* ground + ink */
  --paper:    #F7F4ED;
  --paper-2:  #EFEADD;
  --ink:      #141311;
  --ink-2:    #4A463E;
  --line:     #D8D1C0;
  --line-dark:#2C2A25;

  /* poster accents */
  --red:      #C9311B;   /* CTA / step 01 — AA large on paper, white text ok */
  --red-hot:  #E0381F;   /* graphic-only vermilion (star, duotone) */
  --blue:     #2447C9;   /* step 02 / focus rings / links */
  --green:    #1F7048;   /* step 03 / confirmation */
  --yellow:   #F0B400;   /* graphic-only highlight */
  --error:    #A02713;

  /* type */
  --font: "InterVar", "Neue Haas Grotesk Display Pro", "Helvetica Neue",
          Helvetica, Arial, sans-serif;
  --fs-0: 0.75rem;    /* 12 — caps labels   */
  --fs-1: 0.875rem;   /* 14 — small         */
  --fs-2: 1.125rem;   /* 18 — body          */
  --fs-3: 1.375rem;   /* 22 — lead          */
  --fs-4: 1.625rem;   /* 26 — h3            */
  --fs-h2: clamp(2.125rem, 1.1rem + 3.4vw, 3.5rem);
  --fs-h1: clamp(2.625rem, 1.2rem + 5.6vw, 5.75rem);

  /* rhythm */
  --u: 8px;
  --gap: 24px;
  --section-y: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);

  /* layers */
  --z-chat: 50;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: var(--fs-2);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv05" 1; /* Inter: open 'l' — friendlier, closer to Haas */
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
strong { font-weight: 650; }

::selection { background: var(--red); color: #fff; }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

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

/* ---------- Layout primitives ---------- */
.container {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .container { width: min(100% - 96px, 1240px); }
}

.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }

section { border-top: 1px solid var(--line); }

/* ---------- Caps labels (the Swiss ruled label) ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label .star-i { width: 10px; height: 13.8px; flex: none; }

/* ---------- Wordmark (locked geometry from brand sheet) ---------- */
.wm { display: inline-block; text-decoration: none; color: inherit; }
.wm-word {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1;
}
.wm-star {
  display: inline-block;
  vertical-align: baseline;
  flex-shrink: 0;
  overflow: visible;
  width: .725em;
  height: 1em;
  margin-left: -0.02em;
}
.wm-sub {
  display: block;
  font-size: .415em;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: .25em;
  padding-left: 2px;
}

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.site-head .wm { font-size: 24px; }

.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 36px; }
}
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--fs-1);
  font-weight: 550;
  letter-spacing: .04em;
  padding: 10px 2px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.head-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font-size: var(--fs-1);
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .12s ease;
  cursor: pointer;
}
.head-call:hover { background: var(--ink); color: var(--paper); }
.head-call:active { transform: translateY(1px); }
.head-call .star-i { width: 11px; height: 15px; color: var(--red); transition: color .22s var(--ease); }
.head-call:hover .star-i { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-top: none;
  overflow: hidden;
}
.hero .container {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px) clamp(64px, 8vw, 120px);
}

.hero-mark {
  position: absolute;
  top: -4%;
  right: -14%;
  width: min(52vw, 660px);
  color: var(--ink);
  opacity: .055;
  pointer-events: none;
  z-index: 0;
}
.hero-mark svg { width: 100%; height: auto; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px var(--gap);
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-card { grid-column: 9 / span 4; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .hero-card { grid-column: 8 / span 5; }
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 14ch;
  margin-top: 28px;
  text-wrap: balance;
}
.hero .deck {
  font-size: var(--fs-3);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
  margin-top: 28px;
  text-wrap: pretty;
}
.hero .deck strong { color: var(--ink); }

.hero-callline {
  margin-top: 32px;
  font-size: var(--fs-2);
}
.hero-callline a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s var(--ease);
}
.hero-callline a:hover { color: var(--red); }

/* trust chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chips .star-i { width: 11px; height: 15px; flex: none; }
.c-red   { color: var(--red); }
.c-blue  { color: var(--blue); }
.c-green { color: var(--green); }
.c-yellow{ color: var(--yellow); }

/* ---------- Callback card ---------- */
.card {
  background: #FFFEFA;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 22px;
}
.card-head .star-i { width: 12px; height: 16.5px; color: var(--red-hot); }
.card-head h2 {
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.card-body { padding: 24px 22px 26px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: var(--fs-1);
  font-weight: 650;
  margin-bottom: 8px;
}
.field .opt { color: var(--ink-2); font-weight: 450; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 1.0625rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink-2);
  border-radius: 0;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.input:hover { border-color: var(--ink); }
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 71, 201, .18);
}
textarea.input { min-height: 88px; resize: vertical; line-height: 1.5; }

.field.is-error .input { border-color: var(--error); }
.err {
  display: none;
  font-size: var(--fs-1);
  font-weight: 550;
  color: var(--error);
  margin-top: 6px;
}
.field.is-error .err { display: block; }

/* segmented radios — best time */
.seg {
  border: 0;
}
.seg legend {
  font-size: var(--fs-1);
  font-weight: 650;
  margin-bottom: 8px;
}
.seg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1.5px solid var(--ink-2);
  font-size: var(--fs-1);
  font-weight: 550;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .1s ease;
  user-select: none;
}
.seg label:hover { border-color: var(--ink); }
.seg label:active { transform: scale(.98); }
.seg input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.seg input:focus-visible + label {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* consent */
.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 20px 0 18px;
}
.consent input {
  appearance: none;
  width: 24px; height: 24px;
  margin-top: 2px;
  border: 2px solid var(--ink);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background-color .15s var(--ease);
}
.consent input::before {
  content: "";
  width: 12px; height: 12px;
  transform: scale(0);
  transition: transform .15s var(--ease);
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.consent input:checked { background: var(--red); border-color: var(--red); }
.consent input:checked::before { transform: scale(1); }
.consent label {
  font-size: var(--fs-1);
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.consent.is-error input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(160,39,19,.15); }

.turnstile-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-bottom: 18px;
}

/* form status messages */
.form-status { margin-top: 14px; font-size: var(--fs-1); font-weight: 550; }
.form-status[data-tone="error"] { color: var(--error); }
.form-status[data-tone="ok"]    { color: var(--green); }

/* success state */
.card-success { padding: 36px 22px; text-align: left; }
.card-success .star-i { width: 26px; height: 36px; color: var(--green); }
.card-success h3 { font-size: var(--fs-4); letter-spacing: -.01em; margin: 14px 0 8px; }
.card-success p { color: var(--ink-2); font-size: var(--fs-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 30px;
  font-size: 1.0625rem;
  font-weight: 680;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .12s ease, box-shadow .22s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(2px) scale(.99); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn .arr { transition: transform .22s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

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

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

.btn--block { width: 100%; }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul {
  display: flex;
  align-items: center;
  list-style: none;
}
.ticker li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 15px 14px 15px 14px;
  font-size: var(--fs-1);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker .star-i { width: 12px; height: 16.5px; flex: none; }
.ticker li:nth-child(4n+1) .star-i { color: var(--red-hot); }
.ticker li:nth-child(4n+2) .star-i { color: var(--yellow); }
.ticker li:nth-child(4n+3) .star-i { color: #6E8DFF; }
.ticker li:nth-child(4n+4) .star-i { color: #4CAF7D; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); }

.sec-head {
  display: grid;
  gap: 28px var(--gap);
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .sec-head > .sec-title { grid-column: 1 / span 7; }
  .sec-head > .sec-side  { grid-column: 9 / span 4; }
}
.sec-title h2 {
  font-size: var(--fs-h2);
  font-weight: 730;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: 22px;
  max-width: 20ch;
  text-wrap: balance;
}
.sec-side {
  font-size: var(--fs-2);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: var(--gap);
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step { padding-right: 8px; }
.step-no {
  font-size: clamp(3.25rem, 5vw, 4.5rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.step:nth-child(1) .step-no { color: var(--red); }
.step:nth-child(2) .step-no { color: var(--blue); }
.step:nth-child(3) .step-no { color: var(--green); }
.step h3 {
  font-size: var(--fs-4);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 18px 0 10px;
}
.step p { color: var(--ink-2); }

.how-photo { position: relative; }
.how-photo figcaption {
  margin-top: 12px;
  font-size: var(--fs-0);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Duotone treatment ---------- */
.duo {
  position: relative;
  background: var(--duo, var(--blue));
  overflow: hidden;
}
.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.07) brightness(1.05);
  mix-blend-mode: multiply;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease);
}
.duo:hover img { transform: scale(1.03); }
.duo--red  { --duo: var(--red-hot); }
.duo--blue { --duo: #2E55D8; }
.duo--blue img { filter: grayscale(1) contrast(1.02) brightness(1.3); }
@supports not (mix-blend-mode: multiply) {
  .duo img { filter: grayscale(1); }
}

/* ---------- Free / approach ---------- */
.free { background: var(--paper-2); }
.free-grid { display: grid; gap: 48px var(--gap); }
@media (min-width: 1024px) {
  .free-grid { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .free-photo { grid-column: 1 / span 5; }
  .free-copy  { grid-column: 7 / span 6; }
}
.free-photo .duo { aspect-ratio: 4 / 4.6; }
.free-copy h2 {
  font-size: var(--fs-h2);
  font-weight: 730;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 22px 0 26px;
  max-width: 16ch;
}
.free-copy p {
  font-size: var(--fs-2);
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.free-copy p + p { margin-top: 18px; }
.free-copy p strong { color: var(--ink); }

mark {
  background: linear-gradient(transparent 8%, var(--yellow) 8%, var(--yellow) 92%, transparent 92%);
  color: var(--ink);
  padding-inline: 2px;
  font-weight: 650;
}

/* ---------- Paying for care (dark) ---------- */
.paying {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
}
.paying .label { color: #B9B2A2; }
.paying .sec-side { color: #B9B2A2; }
.pay-grid {
  display: grid;
  gap: var(--gap);
  border-top: 1px solid var(--line-dark);
  padding-top: 36px;
}
@media (min-width: 700px)  { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pay-grid { grid-template-columns: repeat(4, 1fr); } }
.pay {
  border-left: 3px solid var(--pay-accent, var(--paper));
  padding: 6px 0 6px 20px;
}
.pay:nth-child(1) { --pay-accent: var(--red-hot); }
.pay:nth-child(2) { --pay-accent: #6E8DFF; }
.pay:nth-child(3) { --pay-accent: var(--yellow); }
.pay:nth-child(4) { --pay-accent: #4CAF7D; }
.pay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pay p { font-size: var(--fs-1); line-height: 1.6; color: #CFC9BB; }

.pay-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.pay-foot p { color: #CFC9BB; max-width: 52ch; font-size: var(--fs-2); }

/* ---------- CTA band ---------- */
.band {
  background: var(--red);
  color: #fff;
  border-top: 1px solid var(--red);
}
.band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(48px, 7vw, 88px);
}
.band h2 {
  font-size: clamp(2rem, 1rem + 3.4vw, 3.25rem);
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.band p { margin-top: 10px; font-size: var(--fs-2); color: #FFE3DC; }
.band-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.band .btn {
  background: #fff; border-color: #fff; color: var(--ink);
}
.band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.band-call { color: #fff; font-weight: 650; }
.band-call a {
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.band-call a:hover { color: var(--yellow); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}
.foot-grid {
  display: grid;
  gap: 44px var(--gap);
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: repeat(12, 1fr); }
  .foot-col--talk  { grid-column: 1 / span 5; }
  .foot-col--pages { grid-column: 7 / span 2; }
  .foot-col--id    { grid-column: 9 / span 4; }
}
.foot-label {
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8F897B;
  margin-bottom: 20px;
}
.foot-phone {
  display: inline-block;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 740;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 3px solid var(--red-hot);
  padding-bottom: 4px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot-phone:hover { color: var(--yellow); border-color: var(--yellow); }
.foot-col--talk p { color: #B9B2A2; font-size: var(--fs-1); margin-top: 16px; max-width: 40ch; }
.foot-col--talk a.mail { color: var(--paper); text-underline-offset: 3px; }
.foot-col--talk a.mail:hover { color: var(--yellow); }

.foot-col--pages ul { list-style: none; }
.foot-col--pages li + li { margin-top: 12px; }
.foot-col--pages a {
  text-decoration: none;
  font-size: var(--fs-1);
  font-weight: 550;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.foot-col--pages a:hover { border-color: var(--paper); }

.foot-col--id p { font-size: var(--fs-1); color: #B9B2A2; text-wrap: pretty; }
.foot-col--id p + p { margin-top: 14px; }

.foot-tag {
  font-style: italic;
  font-weight: 320;
  font-size: var(--fs-3);
  color: #CFC9BB;
  padding-top: 8px;
}

.foot-mark {
  padding-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line-dark);
}
.foot-mark .wm { display: block; }
.foot-mark .wm-word { font-size: clamp(56px, 14.5vw, 210px); }
.foot-mark .wm-sub { font-size: clamp(11px, 1.2vw, 18px); color: #8F897B; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 36px;
  font-size: 0.8125rem;
  color: #8F897B;
}
.foot-legal a { color: #B9B2A2; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--paper); }

/* ---------- Chat float ---------- */
.chat-btn {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: var(--z-chat);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 19, 17, .28);
  transition: transform .18s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chat-btn:hover { transform: translateY(-3px); }
.chat-btn:active { transform: translateY(0) scale(.96); }
.chat-btn .star-i { width: 17px; height: 23.5px; color: var(--yellow); transition: transform .4s var(--ease); }
.chat-btn:hover .star-i { transform: rotate(90deg); }
.chat-btn[aria-expanded="true"] { background: var(--red); border-color: var(--red); }

.chat-panel {
  position: fixed;
  right: 20px; bottom: 92px;
  z-index: var(--z-chat);
  width: min(360px, calc(100vw - 40px));
  background: #FFFEFA;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .25s;
}
.chat-panel.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.chat-panel .card-head { padding: 14px 18px; }
.chat-panel .card-body { padding: 20px 18px; }
.chat-panel p { font-size: var(--fs-1); color: var(--ink-2); margin-bottom: 16px; }
@media (max-width: 480px) {
  .chat-panel { right: 12px; bottom: 84px; }
  .chat-btn { right: 12px; bottom: 12px; }
}

/* ---------- Reveal animations ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .65s var(--ease) var(--d, 0ms),
    transform .65s var(--ease) var(--d, 0ms);
}

/* slow hero star spin */
.spin-slow { animation: spin 90s linear infinite; transform-origin: center; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .spin-slow { animation: none; }
  .duo img, .duo:hover img { transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Inner pages (privacy / data deletion) ---------- */
.page-main { padding-block: clamp(48px, 7vw, 96px); }
.page-main .label { margin-bottom: 20px; }
.page-main h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 28px;
}
.page-main .prose { max-width: 68ch; color: var(--ink-2); }
.page-main .prose h2 {
  font-size: var(--fs-4);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
}
.page-main .prose p + p { margin-top: 14px; }
.page-main .prose ul { margin: 14px 0 14px 22px; }
.page-main .prose li + li { margin-top: 8px; }
.notice {
  border: 1.5px solid var(--ink);
  background: #FFFEFA;
  padding: 18px 20px;
  font-size: var(--fs-1);
  margin: 28px 0;
  max-width: 68ch;
}

/* ============================================================
   Resources / guide page (resources.html)
   ============================================================ */

.res-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.res-hero h1 {
  font-size: clamp(2.375rem, 1.1rem + 4.4vw, 4.375rem);
  font-weight: 740;
  line-height: 1.03;
  letter-spacing: -0.028em;
  max-width: 17ch;
  margin-top: 26px;
  text-wrap: balance;
}
.res-hero .deck {
  font-size: var(--fs-3);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 24px;
  text-wrap: pretty;
}
.res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 28px;
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.res-layout {
  display: grid;
  gap: 48px var(--gap);
  padding-bottom: var(--section-y);
}
@media (min-width: 1024px) {
  .res-layout { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .res-body { grid-column: 1 / span 8; min-width: 0; }
  .res-rail { grid-column: 10 / span 3; position: sticky; top: 24px; }
}

/* table of contents */
.toc { border: 2px solid var(--ink); background: #FFFEFA; padding: 18px 20px 8px; }
.toc-label {
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.toc ol { list-style: none; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: var(--fs-1);
  font-weight: 570;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.toc li:last-child a { border-bottom: none; }
.toc a:hover { color: var(--red); transform: translateX(3px); }
.toc .no {
  font-weight: 760;
  font-feature-settings: "tnum" 1;
  font-size: 0.8125rem;
}
.toc li:nth-child(3n+1) .no { color: var(--red); }
.toc li:nth-child(3n+2) .no { color: var(--blue); }
.toc li:nth-child(3n+3) .no { color: var(--green); }

/* guide sections */
.rsec { border-top: 1px solid var(--line); padding-top: 36px; margin-top: clamp(40px, 6vw, 60px); }
.res-body > .rsec:first-child { margin-top: 0; }
.rsec-no {
  font-size: clamp(2.5rem, 3vw, 3rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.rsec:nth-of-type(3n+1) .rsec-no { color: var(--red); }
.rsec:nth-of-type(3n+2) .rsec-no { color: var(--blue); }
.rsec:nth-of-type(3n+3) .rsec-no { color: var(--green); }
.rsec h2 {
  font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.375rem);
  font-weight: 730;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 14px 0 18px;
  max-width: 24ch;
  text-wrap: balance;
}
.rsec p { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.rsec p + p { margin-top: 14px; }
.rsec p strong, .rsec li strong { color: var(--ink); }
.rsec ul { list-style: none; margin-top: 16px; max-width: 62ch; }
.rsec ul li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  color: var(--ink-2);
}
.rsec ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 10px; height: 10px;
  background: var(--ink);
}

/* cost table */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  font-feature-settings: "tnum" 1;
}
.cost-table th {
  text-align: left;
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 16px 12px 0;
  border-bottom: 2px solid var(--ink);
}
.cost-table td {
  vertical-align: top;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--ink-2);
}
.cost-table td:first-child { font-weight: 700; color: var(--ink); font-size: var(--fs-2); }
.cost-table .money { font-weight: 700; color: var(--ink); white-space: nowrap; display: block; }
.cost-table .per { font-weight: 450; color: var(--ink-2); font-size: var(--fs-1); }
.table-note { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 640px) {
  .cost-table { border-top: 2px solid var(--ink); }
  .cost-table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  }
  .cost-table tbody, .cost-table tr, .cost-table td { display: block; }
  .cost-table tr { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .cost-table td { border: none; padding: 0; }
  .cost-table td:first-child { font-size: var(--fs-3); }
  .cost-table td:nth-child(2) { margin: 2px 0 8px; }
  .cost-table .money { display: inline; }
}

/* fact boxes */
.facts { border: 2px solid var(--ink); background: #FFFEFA; margin-top: 26px; max-width: 640px; }
.facts-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: var(--fs-0);
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.facts-head .star-i { width: 11px; height: 15px; }
.facts dl { padding: 6px 18px 14px; }
.facts-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-1);
}
.facts dl .facts-row:last-child { border-bottom: none; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { color: var(--ink-2); }
@media (max-width: 560px) {
  .facts-row { grid-template-columns: 1fr; gap: 4px; }
}

/* pricing-questions checklist */
.check-grid { display: grid; gap: 12px; margin-top: 26px; }
@media (min-width: 700px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex;
  gap: 12px;
  border: 1.5px solid var(--ink-2);
  background: #FFFEFA;
  padding: 16px 18px;
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--ink-2);
}
.check .star-i { width: 11px; height: 15px; flex: none; margin-top: 4px; }
.check:nth-child(4n+1) .star-i { color: var(--red); }
.check:nth-child(4n+2) .star-i { color: var(--blue); }
.check:nth-child(4n+3) .star-i { color: var(--green); }
.check:nth-child(4n+4) .star-i { color: var(--yellow); }
.check strong { color: var(--ink); }

/* FAQ */
.qa { border-top: 2px solid var(--ink); margin-top: 26px; }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  cursor: pointer;
  font-size: var(--fs-2);
  font-weight: 680;
  letter-spacing: -0.005em;
  list-style: none;
  transition: color .18s var(--ease);
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary:hover { color: var(--red); }
.qa-item summary .star-i {
  width: 12px; height: 16.5px; flex: none;
  color: var(--ink);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.qa-item[open] summary .star-i { transform: rotate(135deg); color: var(--red); }
.qa-body { padding: 0 2px 20px; }
.qa-body p { color: var(--ink-2); max-width: 60ch; }
.qa-body p + p { margin-top: 12px; }

