/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: -0.01em;
  min-height: 48px;
  transition: transform var(--d-fast) var(--ease-quart),
              box-shadow var(--d-med) var(--ease-quart),
              background var(--d-fast) ease,
              border-color var(--d-fast) ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 16px oklch(70% 0.175 256 / 22%);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1px solid var(--border-2);
  color: var(--text);
  background: oklch(90% 0.02 260 / 3%);
}
.btn-outline:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-outline.is-copied { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  min-height: 44px;
  transition: color var(--d-fast) ease, gap var(--d-fast) var(--ease-quart);
}
.btn-ghost:hover { color: var(--accent); gap: var(--s-3); }

.btn .arw { transition: transform var(--d-med) var(--ease-expo); }
.btn:hover .arw { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: var(--s-12);
  padding-bottom: var(--s-10);
  display: grid;
  gap: var(--s-12);
  align-items: center;
}

/* Soft radial pool behind the hero — depth without a gradient wash.
   Width is capped at 100% of the container rather than a vw value: a
   viewport-wide centred element overflows the page and lets mobile scroll
   sideways, which no amount of overflow-x on body reliably prevents. */
.hero::before {
  content: '';
  position: absolute;
  top: -22%; left: 50%;
  width: min(100%, 1000px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, oklch(70% 0.175 256 / 13%), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
  background: oklch(90% 0.02 260 / 3%);
}

.hero h1 {
  font-size: var(--t-3xl);
  margin-top: var(--s-6);
}

/* padding + matching negative margin keeps descenders from being clipped
   by the overflow:hidden the line-mask animation needs */
.hero h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero h1 .ln > span { display: block; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  margin-top: var(--s-6);
  font-size: var(--t-md);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  color: var(--muted-2);
}
.hero-trust li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* --- Hero visual: phone + floating result card --- */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.phone {
  position: relative;
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: 30px;
  padding: 10px;
  box-shadow: var(--sh-lg);
  max-width: 250px;
  margin-inline: auto;
}

.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 20px;
  background: var(--bg);
  border-radius: var(--r-pill);
  z-index: 2;
}

.phone-screen {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.phone-tag {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-xs);
  background: oklch(13% 0.02 260 / 78%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(90% 0.02 260 / 16%);
}
.phone-tag b { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--accent); letter-spacing: -0.04em; }
.phone-tag span { font-size: 0.625rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* floating stat card */
.float-card {
  position: absolute;
  right: -4px;
  bottom: 34px;
  width: 168px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--sh-md);
}

.float-card .lbl {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.float-card .val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--text);
  margin-top: var(--s-1);
}
.float-card .sub { font-size: 0.6875rem; color: var(--accent); margin-top: 2px; }

.float-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: var(--s-3); }
.float-bars i {
  flex: 1;
  background: var(--accent-line);
  border-radius: 1px;
  height: var(--h, 30%);
  transform-origin: bottom;
}
.float-bars i:nth-child(n+5) { background: var(--accent); }

.hero-cap {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: -0.03em;
  color: var(--muted-2);
  margin-top: var(--s-5);
}

@media (min-width: 480px) {
  .hero-cta { flex-direction: row; align-items: center; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.18fr 0.82fr;
    gap: var(--s-16);
    padding-top: var(--s-20);
    padding-bottom: var(--s-16);
  }
  .hero-visual { max-width: none; }
  .phone { max-width: 260px; }
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  font-size: var(--t-xs);
  color: var(--muted-2);
  white-space: nowrap;
}
.ticker-item b {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.ticker-item::after { content: '—'; color: var(--border-3); margin-left: var(--s-3); }

/* ==========================================================================
   Headline stat strip
   ========================================================================== */

.stats {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-16);
}

.stat {
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 1.1s var(--ease-expo);
}
.stat.in::before { width: 42px; }

.stat-v {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--text);
  line-height: 1;
}
.stat:nth-child(2) .stat-v { color: var(--accent); }

.stat-l { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-3); }
.stat-n { font-size: var(--t-xs); color: var(--muted-2); margin-top: var(--s-1); }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
}

/* ==========================================================================
   Services — offset editorial rows, not a 3-up box grid
   ========================================================================== */

.svc { display: flex; flex-direction: column; }

.svc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4) var(--s-5);
  padding-block: var(--s-8);
  border-top: 1px solid var(--border);
  position: relative;
  transition: background var(--d-med) var(--ease-soft);
}
.svc-row:last-child { border-bottom: 1px solid var(--border); }

.svc-row::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--d-slow) var(--ease-expo);
}
.svc-row.in::before { width: 100%; }

.svc-n {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-top: 6px;
}

.svc-row h3 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.svc-row p { font-size: var(--t-sm); line-height: 1.7; color: var(--muted); max-width: 54ch; }

.svc-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-1);
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: -0.02em;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px var(--s-3);
  transition: border-color var(--d-fast) ease, color var(--d-fast) ease;
}
.svc-row:hover .chip { border-color: var(--accent-line); color: var(--muted); }

@media (min-width: 860px) {
  .svc-row { grid-template-columns: 64px 1fr 300px; align-items: start; padding-block: var(--s-10); }
  .svc-meta { grid-column: auto; margin-top: 0; justify-content: flex-end; align-content: flex-start; }
}

/* ==========================================================================
   Process — vertical timeline with a progress spine
   ========================================================================== */

.proc { position: relative; display: flex; flex-direction: column; }

.proc-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-10);
}
.proc-row:last-child { padding-bottom: 0; }

/* the spine */
.proc-row::before {
  content: '';
  position: absolute;
  left: 16px; top: 30px; bottom: -6px;
  width: 1px;
  background: var(--border);
}
.proc-row:last-child::before { display: none; }

.proc-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  z-index: 1;
  transition: border-color var(--d-med) ease, color var(--d-med) ease, background var(--d-med) ease;
}
.proc-row.in .proc-dot {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.proc-row h4 { font-size: var(--t-md); margin-bottom: var(--s-2); padding-top: 5px; }
.proc-row p { font-size: var(--t-sm); color: var(--muted); line-height: 1.7; max-width: 54ch; }

.proc-when {
  display: inline-block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px var(--s-3);
}

@media (min-width: 760px) {
  .proc-row { grid-template-columns: 44px 1fr; gap: var(--s-6); padding-bottom: var(--s-12); }
  .proc-row::before { left: 21px; top: 40px; }
  .proc-dot { width: 44px; height: 44px; font-size: var(--t-xs); }
}

/* ==========================================================================
   Compare
   ========================================================================== */

.cmp { border-top: 1px solid var(--border); }

.cmp-head { display: none; }

.cmp-row {
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--border);
}

.cmp-k {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.cmp-a, .cmp-b {
  display: flex;
  gap: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.6;
}
.cmp-a { color: var(--muted-2); }
.cmp-b { color: var(--text); font-weight: 500; }

.cmp-a i, .cmp-b i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  flex-shrink: 0;
  padding-top: 2px;
}
.cmp-a i { color: var(--muted-2); }
.cmp-b i { color: var(--accent); }

@media (min-width: 800px) {
  .cmp-head {
    display: grid;
    grid-template-columns: 190px 1fr 1fr;
    gap: var(--s-6);
    padding-bottom: var(--s-4);
  }
  .cmp-head span {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
  }
  .cmp-head span:last-child { color: var(--accent); }
  .cmp-row { grid-template-columns: 190px 1fr 1fr; gap: var(--s-6); align-items: start; }
  .cmp-k { padding-top: 2px; }
}

/* ==========================================================================
   Fit check
   ========================================================================== */

.fit { display: grid; gap: var(--s-3); }

.fit-col {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-6);
  background: var(--bg-2);
}
.fit-col.yes { border-color: var(--accent-line); background: var(--accent-soft); }

.fit-col h3 { font-size: var(--t-md); margin-bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-2); }
.fit-col.yes h3 { color: var(--accent); }
.fit-col.no h3 { color: var(--muted); }

.fit-col ul { display: flex; flex-direction: column; gap: var(--s-4); }
.fit-col li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--text-2);
}
.fit-col li i { font-style: normal; font-family: var(--font-mono); font-size: var(--t-xs); padding-top: 3px; }
.fit-col.yes li i { color: var(--accent); }
.fit-col.no li i { color: var(--muted-2); }
.fit-col.no li { color: var(--muted); }

@media (min-width: 800px) {
  .fit { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .fit-col { padding: var(--s-10); }
}

/* ==========================================================================
   Case panel
   ========================================================================== */

.case {
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-6);
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(70% 0.175 256 / 10%), transparent 58%),
    var(--surface);
  display: grid;
  gap: var(--s-8);
}

.case h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); text-wrap: balance; }
.case p:not(.tag) { font-size: var(--t-sm); line-height: 1.75; color: var(--muted); }

.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.case-v {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.case-metrics > div:nth-child(even) .case-v { color: var(--accent-3); }
.case-l { font-size: var(--t-xs); color: var(--muted-2); margin-top: var(--s-1); }

@media (min-width: 860px) {
  .case { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-12); align-items: center; padding: var(--s-12); }
}

/* ==========================================================================
   Proof gallery
   ========================================================================== */

.proof-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.arrows { display: none; gap: var(--s-2); }
.arrows button {
  width: 44px; height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--d-fast) ease, background var(--d-fast) ease, transform var(--d-fast) var(--ease-quart);
}
.arrows button:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.arrows button:disabled { opacity: 0.28; cursor: default; }

.rail-scroll {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-5);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail-scroll::-webkit-scrollbar { display: none; }

.pcard {
  flex: 0 0 auto;
  width: 172px;
  scroll-snap-align: start;
  transition: transform var(--d-med) var(--ease-quart);
}
.pcard:hover { transform: translateY(-6px); }

.pcard-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
}
.pcard-frame img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.pcard-badge {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

.pcard-meta { margin-top: var(--s-3); }
.pcard-v {
  font-family: var(--font-mono);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--text);
}
.pcard-l { font-size: var(--t-xs); color: var(--muted-2); }

.pcard-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: var(--s-2);
  overflow: hidden;
}
.pcard-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1.1s var(--ease-expo);
}
.pcard.in .pcard-bar i { width: var(--w, 20%); }

.dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--s-2); }
.dots button {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-3);
  transition: background var(--d-fast) ease, transform var(--d-fast) var(--ease-quart), width var(--d-fast) ease;
}
.dots button[aria-current="true"] { background: var(--accent); width: 18px; border-radius: 3px; }

@media (min-width: 760px) {
  .pcard { width: 200px; }
  .pcard-frame img { height: 340px; }
  .arrows { display: flex; }
  .dots { display: none; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }

/* Each question is a heading wrapping the button, so screen readers and
   search engines see a real Q&A outline. The h3 itself carries no styling. */
.faq-item h3 {
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  min-height: 56px;
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color var(--d-fast) ease;
}
.faq-q:hover { color: var(--accent); }

.faq-ic { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-ic::before, .faq-ic::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--d-med) var(--ease-expo), opacity var(--d-fast) ease;
}
.faq-ic::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-ic::after { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item[data-open="true"] .faq-ic::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-med) var(--ease-quart); }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding-bottom: var(--s-6);
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.75;
  max-width: 62ch;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final {
  position: relative;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(90% 130% at 50% 0%, oklch(70% 0.175 256 / 12%), transparent 60%),
    var(--bg);
}

.final h2 { font-size: var(--t-3xl); max-width: 15ch; text-wrap: balance; }
.final p { margin-top: var(--s-5); font-size: var(--t-md); color: var(--muted); max-width: 44ch; }
.final .hero-cta { margin-top: var(--s-8); }

.final-note {
  margin-top: var(--s-8);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: -0.03em;
  color: var(--muted-2);
}

@media (min-width: 860px) {
  .final .container { text-align: center; }
  .final h2, .final p { margin-inline: auto; }
  .final .hero-cta { justify-content: center; }
}
