/* ============================================================
   SellMyCard — design system
   Paper / Ink / Vermillion · editorial minimal
   ============================================================ */

:root {
  --paper:      #F4F2EE;
  --paper-2:    #EBE8E1;
  --paper-3:    #E3DFD7;
  --ink:        #101010;
  --ink-soft:   #2B2A28;
  --muted:      #6C6A65;
  --muted-2:    #8E8B85;
  --line:       rgba(16, 16, 16, .13);
  --line-strong:rgba(16, 16, 16, .26);
  --accent:     #E2542C;
  --accent-ink: #B93F1C;
  --ok:         #1B7F5A;
  --danger:     #C0392B;

  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --shell: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --r: 6px;
  --r-lg: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23101010' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */

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

* { margin: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: clamp(72px, 11vw, 148px);
  border-top: 1px solid var(--line);
}

.section-tight { padding-block: clamp(56px, 8vw, 104px); }

/* ---------- type ---------- */

.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 18ch;
}

h3 {
  font-size: 1.075rem;
  line-height: 1.3;
  letter-spacing: -0.017em;
  font-weight: 600;
}

.eyebrow {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
}

.section-note {
  font-size: .95rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.6;
}

.ta-right { text-align: right; }

.inline-link {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease);
}
.inline-link:hover { border-color: var(--accent); }

/* ---------- buttons & links ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r);
  padding: .82rem 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .42s var(--ease-out);
  z-index: -1;
}

.btn > * { position: relative; }

.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-invert {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}
.btn-invert::after { background: var(--accent); }
.btn-invert:hover { color: #fff; }

.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- progress + header ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .1s linear;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
  transition: height .35s var(--ease);
}
.site-header.is-stuck .header-inner { height: 62px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 1.02rem;
}
.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 5px;
}
.brand-mark svg { width: 16px; height: 16px; }

.nav-desktop {
  display: flex;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  font-size: .92rem;
  color: var(--ink-soft);
}
.nav-desktop a {
  position: relative;
  padding-block: 4px;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.nav-desktop a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: .8rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .2rem;
  padding: .5rem var(--gut) 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-mobile a:not(.btn) {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-mobile .btn { margin-top: 1rem; }
.nav-mobile.is-open { display: flex; }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(120px, 16vh, 176px);
  padding-bottom: clamp(48px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(circle at 50% 50%, rgba(226, 84, 44, .1), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  position: relative;
}

.hero-copy .eyebrow { margin-bottom: 1.6rem; }
.hero-copy .display { margin-bottom: 1.7rem; }
.hero-copy .lede { margin-bottom: 2.3rem; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  gap: 1rem;
  max-width: 460px;
}
.hero-facts dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.hero-facts dd {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

/* hero visual */

.hero-visual { position: relative; }

.card-stage {
  position: relative;
  aspect-ratio: 1 / .92;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.card-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
}

.gift-card {
  width: min(88%, 420px);
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(148deg, #17171A 0%, #101010 45%, #232326 100%);
  color: #EFEDE8;
  border-radius: 16px;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 1px 0 rgba(255,255,255,.12) inset,
    0 26px 60px -22px rgba(16,16,16,.55);
  transform: rotate(-4deg);
  transition: transform .5s var(--ease-out);
  position: relative;
  z-index: 2;
  will-change: transform;
}

.gc-top { display: flex; align-items: center; justify-content: space-between; }
.gc-brand {
  font-size: .68rem;
  letter-spacing: .3em;
  color: #A8A49C;
}
.gc-chip {
  width: 34px; height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #D8C08A, #A5884C 55%, #E4D2A6);
  position: relative;
}
.gc-chip::after {
  content: "";
  position: absolute;
  inset: 6px 4px;
  border-left: 1px solid rgba(0,0,0,.35);
  border-right: 1px solid rgba(0,0,0,.35);
}

.gc-number {
  font-size: clamp(.95rem, 1.7vw, 1.22rem);
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: #EFEDE8;
}

.gc-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: .64rem;
  letter-spacing: .16em;
  color: #8D8981;
}
.gc-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  color: #EFEDE8;
}

.credit-pill {
  position: absolute;
  z-index: 3;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .55rem .95rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 18px 40px -20px rgba(16,16,16,.4);
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.credit-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(27,127,90,.5);
  animation: pulse 2.4s infinite;
}
.pill-a { top: 8%; right: -2%; animation: float 6.5s var(--ease) infinite; }
.pill-b { bottom: 10%; left: -3%; animation: float 7.5s var(--ease) infinite reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(27,127,90,.45); }
  70% { box-shadow: 0 0 0 9px rgba(27,127,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(27,127,90,0); }
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted-2);
}
.scroll-line {
  width: 72px; height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: sweep 2.6s var(--ease) infinite;
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.05rem;
  overflow: hidden;
  border-top: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: slide 42s linear infinite;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(244,242,238,.72);
}
.ticker-track span { position: relative; }
.ticker-track span::before {
  content: "";
  position: absolute;
  left: calc(clamp(2rem, 5vw, 4rem) / -2);
  top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- section heads ---------- */

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.2rem; }

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

/* ---------- steps ---------- */

.steps { list-style: none; padding: 0; border-top: 1px solid var(--line); }

.step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.8rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.step.is-in::before { transform: scaleX(1); }

.step-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: .9;
  color: var(--paper-3);
  letter-spacing: -0.03em;
  transition: color .5s var(--ease);
}
.step.is-in .step-num { color: var(--accent); }

.step-body h3 { margin-bottom: .6rem; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.025em; }
.step-body p { color: var(--muted); max-width: 58ch; font-size: .98rem; }

.step-meta {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .38rem .8rem;
  white-space: nowrap;
}

/* ---------- rates table ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #FBFAF8;
  background: color-mix(in srgb, var(--paper) 60%, #fff);
}

.rates {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.rates th, .rates td {
  padding: clamp(.95rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 2rem);
  text-align: left;
  font-size: .96rem;
}
.rates thead th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 500;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.rates tbody tr { border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.rates tbody tr:last-child { border-bottom: none; }
.rates tbody tr:hover { background: var(--paper-2); }
.rates tbody th { font-weight: 500; letter-spacing: -0.015em; }
.rates td:nth-child(3) { font-weight: 500; }
.rate {
  font-weight: 600;
  color: var(--accent-ink);
}

/* ---------- stats ---------- */

.stats-band {
  background: var(--ink);
  color: var(--paper);
  border-top: none;
}
.stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.stats li {
  border-left: 1px solid rgba(244,242,238,.16);
  padding-left: clamp(1rem, 2vw, 1.6rem);
}
.stat-value {
  display: block;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: .7rem;
}
.stat-label {
  font-size: .8rem;
  color: rgba(244,242,238,.6);
  letter-spacing: .01em;
}

/* ---------- why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.why-sticky {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  align-items: flex-start;
}
.why-sticky h2 { max-width: 12ch; }
.why-sticky .btn { margin-top: .6rem; }

.why-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.why-list li {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  transition: background-color .4s var(--ease);
}
.why-list li:hover { background: #fff; }
.why-list h3 { margin-bottom: .7rem; }
.why-list p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.why-list li::before {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--accent);
  margin-bottom: 1.4rem;
}

/* ---------- quotes ---------- */

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

.big-quote { max-width: 900px; }
.big-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.big-quote figcaption {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .9rem;
}
.q-name { font-weight: 600; }
.q-meta { color: var(--muted); }
.q-meta::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--line-strong);
  vertical-align: middle;
  margin-right: .9rem;
}

.mini-quotes {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.mini-quote {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}
.mini-quote blockquote {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.mini-quote figcaption {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq-intro { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.2rem; }

.faq-list { border-top: 1px solid var(--line); }

.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(1.2rem, 2.4vw, 1.7rem) 3rem clamp(1.2rem, 2.4vw, 1.7rem) 0;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  position: relative;
  transition: color .3s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-ink); }

.chev {
  position: absolute;
  right: 0; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
}
.chev::before, .chev::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.chev::before { left: 0; top: 6.5px; width: 14px; height: 1.5px; }
.chev::after { left: 6.5px; top: 0; width: 1.5px; height: 14px; }
details[open] .chev::after { transform: rotate(90deg); opacity: 0; }

.faq-body {
  padding: 0 3rem 1.6rem 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.65;
  max-width: 64ch;
  animation: faqIn .4s var(--ease-out);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- cta band ---------- */

.cta-band {
  background: var(--accent);
  color: #fff;
  padding-block: clamp(56px, 8vw, 104px);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.cta-band .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.cta-action .btn { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.cta-action .btn::after { background: var(--ink); }
.cta-action .btn:hover { color: var(--paper); }
.cta-note { font-size: .8rem; color: rgba(255,255,255,.8); letter-spacing: .04em; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand p {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: .92rem;
  max-width: 34ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  padding: .34rem 0;
  font-size: .93rem;
  color: var(--ink-soft);
  transition: color .25s var(--ease), transform .3s var(--ease-out);
}
.footer-col a:hover { color: var(--accent-ink); transform: translateX(4px); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--muted-2);
}

/* ============================================================
   SELL PAGE
   ============================================================ */

.page-head {
  padding-top: clamp(112px, 15vh, 156px);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 16ch;
}
.page-head h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.page-head p {
  margin-top: 1.2rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.02rem;
}

.stepline {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.4rem);
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.stepline-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  letter-spacing: -0.01em;
  color: var(--muted-2);
}
.stepline-item b {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-size: .68rem;
  font-weight: 600;
}
.stepline-item.is-active { color: var(--ink); font-weight: 500; }
.stepline-item.is-active b { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stepline-sep {
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: var(--line);
}

.sell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* ---------- form ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.form-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.form-card-head h2 { font-size: 1.3rem; letter-spacing: -0.03em; }
.form-card-head span {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted-2);
}

.field { margin-bottom: 1.5rem; position: relative; }

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .55rem;
}
.field-label label {
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.field-label .hint {
  font-size: .74rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.input-wrap { position: relative; }

.input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .95rem 1.05rem;
  font-size: 1.02rem;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: border-color .28s var(--ease), background-color .28s var(--ease), box-shadow .28s var(--ease);
  outline: none;
}
.input::placeholder { color: var(--muted-2); letter-spacing: .06em; }
.input:hover { border-color: var(--line-strong); }
.input:focus {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16,16,16,.07);
}
.input:focus-visible { outline: none; }

.input-card {
  font-size: clamp(.95rem, 2vw, 1.18rem);
  font-weight: 500;
  letter-spacing: .12em;
  padding-block: 1.05rem;
  text-transform: uppercase;
}
.input-pin { letter-spacing: .14em; font-size: 1rem; font-weight: 500; text-transform: uppercase; }
.input-phone { letter-spacing: .06em; }

.input-prefix {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  color: var(--muted);
  border-right: 1px solid var(--line);
  padding-right: .7rem;
  height: 20px;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.input-prefix + .input { padding-left: 4.1rem; }

.input-status {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) scale(.7);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease-out);
  background: var(--ok);
  color: #fff;
}
.input-status svg { width: 11px; height: 11px; }
.field.is-valid .input-status { opacity: 1; transform: translateY(-50%) scale(1); }
.field.is-valid .input { border-color: rgba(27,127,90,.5); }

.field-error {
  display: block;
  font-size: .78rem;
  color: var(--danger);
  margin-top: .5rem;
  min-height: 1em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.field.has-error .input { border-color: var(--danger); background: #FDF4F3; }
.field.has-error .field-error,
.field-error.is-shown { opacity: 1; transform: none; }

.field-note {
  font-size: .78rem;
  color: var(--muted-2);
  margin-top: .5rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted-2);
}
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.6rem;
  cursor: pointer;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: background-color .2s, border-color .2s;
}
.consent input:checked { background: var(--ink); border-color: var(--ink); }
.consent input:checked::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 2px;
  width: 4px; height: 8px;
  border: solid var(--paper);
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(42deg);
}
.consent a { border-bottom: 1px solid var(--line-strong); }

.form-actions { display: flex; flex-direction: column; gap: 1rem; }
.submit-btn { width: 100%; padding-block: 1.05rem; font-size: 1rem; }
.submit-btn .spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(244,242,238,.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.submit-btn.is-loading .spinner { display: block; }
.submit-btn.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-footnote {
  font-size: .78rem;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
}

.demo-banner {
  display: none;
  gap: .9rem;
  align-items: flex-start;
  border: 1px solid var(--accent);
  background: rgba(226, 84, 44, .07);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  scroll-margin-top: 110px;
  animation: faqIn .45s var(--ease-out);
}
.demo-banner.is-shown { display: flex; }
.demo-banner strong { display: block; margin-bottom: .2rem; color: var(--accent-ink); }
.demo-banner svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }

/* ---------- aside ---------- */

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #FBFAF8;
  background: color-mix(in srgb, var(--paper) 55%, #fff);
  margin-bottom: 1.25rem;
}
.aside-card h3 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 1.3rem;
}

.flow { list-style: none; padding: 0; counter-reset: f; }
.flow li {
  display: flex;
  gap: .95rem;
  padding-bottom: 1.15rem;
  position: relative;
  font-size: .92rem;
  line-height: 1.5;
}
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  counter-increment: f;
  content: counter(f);
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .7rem;
  font-weight: 600;
  background: var(--paper);
  z-index: 1;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px; top: 24px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.flow li span { color: var(--muted); display: block; font-size: .84rem; margin-top: .15rem; }

.trust-list { list-style: none; padding: 0; display: grid; gap: .85rem; }
.trust-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .89rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.trust-list svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 4px; color: var(--ok); }

.preview-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}
.preview-card h3 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(244,242,238,.5);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.preview-number {
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  min-height: 1.4em;
  word-break: break-all;
}
.preview-number.is-empty { color: rgba(244,242,238,.35); letter-spacing: .1em; font-size: 1rem; }
.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(244,242,238,.15);
  font-size: .78rem;
  color: rgba(244,242,238,.55);
}
.preview-meta b { color: var(--paper); font-weight: 500; display: block; margin-top: .2rem; letter-spacing: .02em; }

.support-note {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
[data-split] .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--w) * 55ms);
}
[data-split].is-in .word > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, [data-split] .word > span { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .card-stage { aspect-ratio: 1 / .7; max-width: 560px; margin-inline: auto; }
  .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .sell-grid { grid-template-columns: minmax(0, 1fr); }
  .why-sticky, .faq-intro { position: static; }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .why-list { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px minmax(0, 1fr); }
  .step-meta { grid-column: 2; justify-self: start; margin-top: .8rem; }
  .step-num { font-size: 2.2rem; }
  .mini-quotes { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-facts { grid-template-columns: 1fr; gap: 0; }
  .hero-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-block: .7rem;
    border-bottom: 1px solid var(--line);
  }
  .hero-facts dt { margin-bottom: 0; }
  .credit-pill { font-size: .72rem; padding: .45rem .75rem; }
  .pill-a { right: 0; }
  .pill-b { left: 0; }
  .card-stage { aspect-ratio: 1 / .9; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rates th:nth-child(2), .rates td:nth-child(2) { display: none; }
  .stepline { gap: .5rem; }
  .stepline-sep { min-width: 8px; }
  .stepline-item span { display: none; }
  .stepline-item.is-active span { display: inline; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.legal-toc {
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.legal-toc .eyebrow { margin-bottom: .1rem; }
.legal-meta {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-2);
}

.toc-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: toc;
}
.toc-list li { border-bottom: 1px solid var(--line); counter-increment: toc; }
.toc-list a {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  padding: .62rem 0;
  font-size: .89rem;
  color: var(--muted);
  transition: color .25s var(--ease), padding-left .3s var(--ease-out);
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.toc-list a:hover { color: var(--ink); padding-left: 5px; }

.legal-body { counter-reset: sec; }
.legal-body section { scroll-margin-top: 104px; }

.legal-body h2 {
  counter-increment: sec;
  display: flex;
  gap: .9rem;
  align-items: baseline;
  max-width: none;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal-body section:first-of-type h2 { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h2::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: .78em;
  color: var(--accent);
}

.legal-body p {
  font-size: .99rem;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 68ch;
}
.legal-body p a { border-bottom: 1px solid var(--line-strong); }
.legal-body p a:hover { border-color: var(--accent); }

.legal-body ul {
  list-style: none;
  padding: 0;
  margin: .4rem 0 1.3rem;
  max-width: 68ch;
}
.legal-body ul li {
  position: relative;
  font-size: .97rem;
  line-height: 1.65;
  color: var(--ink-soft);
  padding: .6rem 0 .6rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-body ul li:first-child { border-top: 1px solid var(--line); }
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.22em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.legal-body strong { font-weight: 600; color: var(--ink); }

.legal-callout {
  border-left: 2px solid var(--accent);
  background: rgba(226, 84, 44, .06);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0 1.6rem;
  max-width: 68ch;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal-callout b { color: var(--accent-ink); }

@media (max-width: 1040px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .toc-list { max-width: 520px; }
}

.legal-body h2 { margin-bottom: 1.05rem; }
.legal-body section:first-of-type h2 { margin-bottom: 1.05rem; }

/* ============================================================
   DYNAMIC CARD FIELDS
   ============================================================ */

[hidden] { display: none !important; }

.input-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  background-size: 12px 8px;
  padding-right: 2.7rem;
  cursor: pointer;
}

.input-select:hover,
.input-select:focus,
.input-select:focus-visible {
  background-image: var(--select-chevron);
}

.input-select:disabled {
  opacity: .62;
  cursor: not-allowed;
  background-color: var(--paper-2);
}

.form-row.is-single { grid-template-columns: minmax(0, 1fr); }


/* ============================================================
   LIVE PROGRESS
   ============================================================ */

.stepline-item {
  transition: color .35s var(--ease);
}
.stepline-item b {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.stepline-item.is-done { color: var(--ink); }
.stepline-item.is-done b {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-size: 0;
}
.stepline-item.is-done b::after {
  content: "\2713";
  font-size: .66rem;
  line-height: 1;
}
.stepline-item.is-done span {
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.form-meter {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.form-meter-track {
  display: block;
  width: clamp(64px, 12vw, 124px);
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.form-meter-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: 99px;
  transition: width .55s var(--ease-out);
}
.form-meter-text {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.form-alert {
  border: 1px solid var(--danger);
  background: #FDF4F3;
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  margin-bottom: 1.7rem;
  animation: faqIn .4s var(--ease-out);
}
.form-alert strong {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--danger);
  margin-bottom: .5rem;
}
.form-alert ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: .4rem;
}
.form-alert a {
  font-size: .84rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(16,16,16,.18);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.form-alert a:hover { color: var(--ink); border-color: var(--ink); }

.field-note a { color: inherit; }

/* ============================================================
   SUPPORTED BRAND BOARD
   ============================================================ */

.brand-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3.25rem);
}
.brand-group h3 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 1rem;
}
.brand-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.brand-group li {
  font-size: .96rem;
  letter-spacing: -.012em;
  color: var(--ink-soft);
}


/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */

.mobile-cta { display: none; }

@media (max-width: 860px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    z-index: 60;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.35rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 99px;
    text-decoration: none;
    font-size: .96rem;
    font-weight: 500;
    letter-spacing: -.01em;
    box-shadow: 0 14px 34px rgba(16,16,16,.28);
    transform: translateY(150%);
    opacity: 0;
    transition: transform .55s var(--ease-out), opacity .4s var(--ease);
  }
  .mobile-cta.is-shown { transform: none; opacity: 1; }
  .mobile-cta-rate {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: rgba(244,242,238,.7);
    white-space: nowrap;
  }
  .has-mobile-cta { padding-bottom: 96px; }
  .form-meter-text { display: none; }
  .form-meter-track { width: 84px; }
}


/* ============================================================
   BRAND PICKER — trigger + floating overlay
   ============================================================ */

.select-trigger {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
  transition: border-color .28s var(--ease), background-color .28s var(--ease), box-shadow .28s var(--ease);
}
.select-trigger:hover { border-color: var(--line-strong); }
.select-trigger:focus-visible {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16,16,16,.07);
}

.select-trigger-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-out);
}
.select-trigger-mark.is-set { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }

.select-trigger-mark .bi { width: 19px; height: 19px; display: block; object-fit: contain; }

.select-trigger-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-trigger-text.is-empty { color: var(--muted-2); }

.select-trigger-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-ink);
  white-space: nowrap;
}
.select-trigger-cta svg { width: 11px; height: 11px; }

.field.has-error .select-trigger { border-color: var(--danger); background: #FDF4F3; }
.field.is-valid .select-trigger { border-color: rgba(27,127,90,.5); }

/* ---- overlay ---- */

.brand-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vh, 44px) clamp(14px, 4vw, 44px);
}

.brand-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16,16,16,.44);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.brand-overlay.is-open .brand-overlay-backdrop { opacity: 1; }

.brand-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(80vh, 880px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 44px 90px rgba(16,16,16,.34);
  opacity: 0;
  transform: translateY(20px) scale(.985);
  transition: opacity .3s var(--ease), transform .42s var(--ease-out);
  overflow: hidden;
}
.brand-overlay.is-open .brand-panel { opacity: 1; transform: none; }

.brand-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 1.7rem) 1rem;
  border-bottom: 1px solid var(--line);
}
.brand-panel-titles .eyebrow {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--muted-2);
  margin-bottom: .4rem;
}
.brand-panel-titles h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.035em;
}

.brand-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .4s var(--ease-out);
}
.brand-close:hover { background: var(--paper-2); border-color: var(--line-strong); transform: rotate(90deg); }
.brand-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.brand-close svg { width: 13px; height: 13px; }

.brand-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem clamp(1.1rem, 3vw, 1.7rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand-search svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted-2); }
.brand-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: .35rem 0;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.brand-search input::placeholder { color: var(--muted-2); }
.brand-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.brand-search-count {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.brand-search-count b { color: var(--ink); font-weight: 600; }

.brand-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.1rem, 3vw, 1.7rem);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .55rem;
}
@media (max-width: 1180px) { .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 430px)  { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  min-height: 96px;
  padding: .7rem .65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  opacity: 0;
  animation: brandTileIn .38s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 14ms);
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              transform .25s var(--ease-out), box-shadow .25s var(--ease);
}
@keyframes brandTileIn { to { opacity: 1; } }

.brand-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(16,16,16,.09);
}
.brand-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.brand-tile.is-selected {
  border-color: var(--accent);
  background: rgba(226,84,44,.07);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.brand-tile-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.brand-tile-mark .bi { width: 18px; height: 18px; display: block; object-fit: contain; }
.brand-tile.is-selected .brand-tile-mark { background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }

.brand-tile-name {
  font-size: .76rem;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink-soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.brand-empty {
  padding: 2.75rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.brand-empty a { border-bottom: 1px solid var(--line-strong); }
.brand-empty a:hover { color: var(--ink); border-color: var(--ink); }

.brand-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1.1rem, 3vw, 1.7rem);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.brand-cancel {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 99px;
  padding: .5rem 1.15rem;
  font-size: .82rem;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.brand-cancel:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.brand-cancel:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 760px) {
  .brand-overlay { align-items: flex-end; padding: 0; }
  .brand-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    transform: translateY(30px);
    box-shadow: 0 -24px 60px rgba(16,16,16,.35);
  }
  .brand-panel::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: var(--line-strong);
    z-index: 1;
  }
  .brand-panel-head { padding-top: 1.25rem; }
  .brand-tile { min-height: 88px; }
  .brand-search-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-tile { animation: none; opacity: 1; }
  .brand-tile:hover { transform: none; }
  .brand-panel, .brand-overlay-backdrop { transition-duration: .01ms; }
  .brand-close:hover { transform: none; }
}
