/* HelperConnect public first page — trust palette per HELPERCONNECT-FIRST-PAGE-PRD.md:
   warm off-white base, plum as ACCENT only, rich teal for action, charcoal text,
   soft lilac supporting surfaces. No purple-gradient domination. */
:root {
  --bg: #faf7f2;
  --ink: #2a2733;
  --muted: #6b6577;
  --plum: #581c87;
  --plum-deep: #3d2b45;
  --teal: #0f766e;
  --teal-dark: #0b5d57;
  --lilac: #efe9f7;
  --card: #ffffff;
  --line: #e7e0d6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(42, 39, 51, 0.07);
  --shadow-lg: 0 14px 40px rgba(42, 39, 51, 0.13);
  --font: "Hanken Grotesk", "Noto Sans TC", "Noto Sans", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; color: var(--plum); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-select {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; cursor: pointer;
}
.login-link {
  font-size: 14.5px; font-weight: 700; text-decoration: none;
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}
.login-link:hover { background: var(--ink); color: var(--bg); }

/* Focus visibility everywhere (keyboard requirement) */
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px;
}

/* ── Hero — product-card hero on the cream canvas ───────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(116px, 15vh, 168px) clamp(18px, 5vw, 64px) clamp(56px, 9vh, 96px);
}
.hero::before { /* barely-there atmosphere behind the card cluster */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 440px at 80% 16%, rgba(88, 28, 135, 0.07), transparent 66%),
    radial-gradient(540px 420px at 96% 82%, rgba(15, 118, 110, 0.06), transparent 66%);
}
.hero-inner {
  position: relative; max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 5vw, 76px); align-items: center;
}
.hero-copy h1 {
  font-size: clamp(30px, 3.9vw, 50px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; text-wrap: balance;
}
.hero-copy .sub {
  margin-top: 14px; font-size: clamp(15px, 1.45vw, 17.5px); color: var(--muted);
  max-width: 46ch; font-weight: 500;
}
.hero-copy .sub strong { font-weight: 800; color: var(--ink); }

/* Selling points — 2×2 icon grid; every claim maps to a shipped feature. */
.hero-points {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px; max-width: 560px;
}
.hp { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.hp-ic {
  grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px;
  background: var(--lilac); color: var(--plum);
  display: grid; place-items: center;
}
.hp-ic svg { width: 20px; height: 20px; }
.hp-t { font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em; }
.hp-d { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.35; margin-top: 1px; }
/* Breath between the selling points and the CTAs — tuned by eye over a few
   rounds (140 -> 93 -> 46). */
.hero-copy .cta-row { margin-top: 46px; }

/* ── Comparison table: Traditional Agency vs HelperConnect ─────────────── */
.cmp-table {
  margin-top: 34px;
  display: grid; grid-template-columns: minmax(150px, 0.9fr) 1fr 1fr;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
}
/* Column headers — the HelperConnect side is the filled plum panel. */
.cmp-head {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 17px 16px; font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}
.cmp-head-spacer { border-bottom-color: transparent; }
.cmp-head-old { background: #f6f3ee; color: var(--ink); }
.cmp-head-new { background: var(--plum); color: #fff; border-bottom-color: var(--plum); }
.cmp-badge {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--plum);
}
.cmp-head-old .cmp-badge { background: #fff; color: var(--muted); }
.cmp-badge svg { width: 19px; height: 19px; }

/* Row label + the two answer cells. Each row draws its own top hairline. */
.cmp-row-h, .cmp-cell { padding: 15px 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.cmp-row-h { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); }
.cmp-rh-ic { flex: 0 0 auto; color: var(--plum); display: grid; place-items: center; }
.cmp-rh-ic svg { width: 21px; height: 21px; }
.cmp-cell { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.cmp-cell.cmp-new { background: #faf8fe; color: var(--plum-deep); font-weight: 600; border-left: 1px solid var(--line); }
.cmp-cell.cmp-old { border-left: 1px solid var(--line); }
/* Verdict marks */
.cmp-yes, .cmp-no { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.cmp-yes { background: var(--plum); color: #fff; }
.cmp-yes svg { width: 12px; height: 12px; }
.cmp-no { background: #eee9e2; color: #8b8397; }
.cmp-no svg { width: 11px; height: 11px; }
/* Fee callouts (the reference's tinted High/Low fee blocks) */
.cmp-cell:has(.cmp-fee) { flex-direction: column; align-items: flex-start; gap: 5px; }
.cmp-fee { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 13.5px; }
.cmp-fee svg { width: 15px; height: 15px; }
.cmp-fee-high { background: #fbeeeb; color: #a8402f; }
.cmp-fee-low { background: var(--lilac); color: var(--plum); }

.cmp-foot {
  margin-top: 16px; display: flex; align-items: center; gap: 16px;
  background: var(--lilac); border-radius: 16px; padding: 18px 22px;
}
.cmp-foot-ic { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; color: var(--plum); }
.cmp-foot-ic svg { width: 30px; height: 30px; }
.cmp-foot-txt { display: flex; flex-direction: column; gap: 2px; }
.cmp-foot-txt b { font-size: 16px; font-weight: 800; color: var(--plum); letter-spacing: -0.01em; }
.cmp-foot-txt span { font-size: 13.5px; color: var(--plum-deep); font-weight: 500; }

@media (max-width: 700px) {
  /* Stack per row: label full width, then the two answers side by side —
     keeps the head-to-head reading without a horizontal scroll. */
  .cmp-table { grid-template-columns: 1fr 1fr; }
  .cmp-head-spacer { display: none; }
  .cmp-head { font-size: 14px; gap: 8px; padding: 13px 10px; }
  .cmp-badge { width: 28px; height: 28px; flex-basis: 28px; }
  .cmp-badge svg { width: 16px; height: 16px; }
  .cmp-row-h { grid-column: 1 / -1; background: #faf8fe; padding: 11px 14px; font-size: 13px; }
  .cmp-cell { border-top: 0; font-size: 12.5px; padding: 12px 14px; align-items: flex-start; }
  .cmp-cell.cmp-old { border-left: 0; }
  .cmp-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Job postings: benefit points + synthetic job-post card ────────────── */
.jobs-wrap {
  margin-top: 38px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.jobs-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.jp { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 15px; }
.jp-ic {
  grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 13px;
  background: var(--lilac); color: var(--plum); display: grid; place-items: center;
}
.jp-ic svg { width: 22px; height: 22px; }
.jp-t { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; align-self: end; }
.jp-d { grid-column: 2; margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; font-weight: 500; }

/* The card mirrors the app's job page: title, pill row, a 2-col facts grid
   with hairline dividers, skills/cert chips, and the green applied strip. */
.job-demo {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 24px 24px 22px;
}
.jd-title { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.jd-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.jd-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.jd-facts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.jd-fact { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.jd-fact:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.jd-fact:nth-child(even) { padding-left: 16px; }
.jd-k, .jd-label, .jd-contact-l { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.jd-v { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.jd-label { margin-top: 16px; }
.jd-label + .jd-pills { margin-top: 8px; }
.jd-contact {
  margin-top: 18px; background: #e9f5ee; border: 1px solid #c3e2d0;
  border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.jd-contact-l { color: #2f6b4c; }
.jd-contact-t { font-size: 13.5px; color: #245c3f; font-weight: 600; }
.jd-applied {
  margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #237a4b; color: #fff; font-weight: 800; font-size: 14.5px;
  border-radius: 999px; padding: 11px;
}
.jd-applied svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
  .jobs-wrap { grid-template-columns: 1fr; }
  .job-demo { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* ── How it works: five-step app flow + traditional-way strip ──────────── */
.hw-flow {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr 44px 1fr 44px 1fr;
  gap: 10px; align-items: start;
}
.hw-step { display: flex; flex-direction: column; }
.hw-ic {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--lilac); color: var(--plum); display: grid; place-items: center;
}
.hw-ic svg { width: 42px; height: 42px; }
.hw-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; letter-spacing: -0.01em; }
.hw-num {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--plum); color: #fff; font-style: normal; font-weight: 800;
  font-size: 13px; display: grid; place-items: center;
}
.hw-desc { margin: 9px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; font-weight: 500; }
/* Arrow cells share the icon row's height so they aim at the circle centers. */
.hw-arrow { display: grid; place-items: center; height: 92px; color: #b9b2c6; }
.hw-arrow svg { width: 34px; }

.hw-trad {
  margin-top: 44px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hw-trad-label { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hw-trad-flow { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hw-trad-flow li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.hw-trad-flow li:not(:last-child)::after { content: "→"; color: #c9c2d4; font-weight: 700; }

/* Reading order at every size: How-it-works rides directly under the hero
   (visual order only — DOM keeps hero -> compare -> how for a11y/SEO). */
main { display: flex; flex-direction: column; }
/* Flex items with auto margins shrink-to-fit; force full width so each
   section's own max-width + auto margins center it exactly as in block flow. */
main > section { width: 100%; }
#hero { order: -2; }
#how { order: -1; }

@media (max-width: 860px) {
  /* Stack: icon left, copy right; arrows drop (steps stay numbered). */
  .hw-flow { grid-template-columns: 1fr; gap: 20px; }
  .hw-arrow { display: none; }
  .hw-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; }
  .hw-ic { grid-row: 1 / 3; width: 64px; height: 64px; margin: 0; }
  .hw-ic svg { width: 30px; height: 30px; }
  .hw-desc { grid-column: 2; margin-top: 5px; }
  .hw-trad { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hw-trad-flow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hw-trad-flow li { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 520px) {
  .hero-points { grid-template-columns: 1fr; gap: 14px; }
}

/* The product IS the hero image: real screenshots of the app (no invented
   UI, no sample copy) in dark iPhone frames — the bezel needs real contrast
   against the cream page background to read as a device, not silver-on-cream.
   Each frame shares one --pw (all three THE SAME SIZE, per feedback) so one
   set of rules scales for every instance and for the mobile override. */
.hero-cards { position: relative; min-height: 510px; }
.phone-frame {
  /* --pw is a PURE px scalar: every hardware detail (band, bezel, buttons,
     island, camera) is calc'd from it, and several of those properties
     (border-width, pseudo sizes) reject or mis-resolve percentages. The
     fluid shrink on narrow columns lives here in width via --pcap instead. */
  position: absolute; width: min(var(--pw), var(--pcap, 100%));
  /* Two shadows: a soft ambient throw + a tight contact shadow — grounds the
     device like the reference render instead of a single flat blur. */
  filter: drop-shadow(0 20px 32px rgba(42, 39, 51, 0.26)) drop-shadow(0 5px 9px rgba(42, 39, 51, 0.18));
}
/* Machined titanium band: the gradient's bright stops land on the corners
   (top-left light source), like light catching a polished chamfer. A thin
   inner black bezel ring (on .phone-screen-area) separates band from glass. */
.phone-shell {
  position: relative; padding: calc(var(--pw) * 0.016);
  border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(148deg,
    #83838d 0%, #40404a 12%, #131318 34%, #0a0a0e 52%, #17171d 72%, #3c3c46 90%, #6b6b76 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 1px rgba(0, 0, 0, 0.55) inset,
    0 0 0 1px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--rot));
}
.phone-island {
  position: absolute; top: calc(var(--pw) * 0.062); left: 50%; translate: -50% 0;
  width: calc(var(--pw) * 0.29); height: calc(var(--pw) * 0.078);
  border-radius: calc(var(--pw) * 0.045); background: #050506; z-index: 3;
}
/* Front camera: a lens dot with a cool glint, tucked in the island's right end. */
.phone-island::after {
  content: ""; position: absolute; right: calc(var(--pw) * 0.022); top: 50%; translate: 0 -50%;
  width: calc(var(--pw) * 0.036); height: calc(var(--pw) * 0.036); border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #3d4d78 0%, #16203c 45%, #05070d 78%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone-screen-area {
  position: relative; overflow: hidden;
  /* The black bezel between the metal band and the glass. */
  border: calc(var(--pw) * 0.02) solid #060608;
  border-radius: calc(var(--pw) * 0.144); background: #fff;
}
/* Side buttons — machined like the band; half proud of the frame edge.
   Left (viewer's): action + volume pair. Right: power. Children of the shell
   so they rotate with it. Offsets are % of the shell height (~2.08x width). */
.pbtn {
  position: absolute; width: calc(var(--pw) * 0.02);
  border-radius: calc(var(--pw) * 0.012);
  background: linear-gradient(90deg, #6e6e78, #2a2a31 45%, #0d0d11);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.pbtn-action { left: calc(var(--pw) * -0.012); top: 18%; height: calc(var(--pw) * 0.055); }
.pbtn-vup   { left: calc(var(--pw) * -0.012); top: 24.5%; height: calc(var(--pw) * 0.095); }
.pbtn-vdn   { left: calc(var(--pw) * -0.012); top: 31%; height: calc(var(--pw) * 0.095); }
.pbtn-pwr   { right: calc(var(--pw) * -0.012); top: 27%; height: calc(var(--pw) * 0.15);
  background: linear-gradient(270deg, #6e6e78, #2a2a31 45%, #0d0d11); }
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--pw) * 0.05) calc(var(--pw) * 0.08) calc(var(--pw) * 0.012);
  font-size: calc(var(--pw) * 0.05); font-weight: 700; color: #0c0c10; background: #fff;
}
.phone-status-icons { display: flex; align-items: center; gap: calc(var(--pw) * 0.02); }
.phone-status-icons svg { height: calc(var(--pw) * 0.046); }
.phone-shot-wrap { position: relative; width: 100%; aspect-ratio: 490 / 1000; overflow: hidden; }
.phone-shot { display: block; width: 102%; max-width: none; height: auto; }
.phone-home-indicator {
  position: absolute; left: 50%; bottom: calc(var(--pw) * 0.016); translate: -50% 0;
  width: calc(var(--pw) * 0.28); height: 3px; min-height: 3px;
  border-radius: 3px; background: rgba(0, 0, 0, 0.28); z-index: 2;
}

/* Collage — device fan (reference: hero showcase): the helper PROFILE phone
   is the star — larger, nearly upright, front and center — with Browse
   tucked behind its left edge leaning out (-8deg) and Credits behind its
   right edge leaning the other way (+9deg). Side phones sit lower so all
   three top edges draw an arc; their inner edges slip a few % under the
   center phone (only bezel is covered, every screen stays readable). */
.frame-browse { --pw: 175px; --pcap: 34%; --rot: -8deg; top: 64px; left: -1%; z-index: 2; }
.frame-profile { --pw: 206px; --pcap: 40%; --rot: 2deg; top: 0; left: 30%; z-index: 3; }
.frame-credits { --pw: 175px; --pcap: 34%; --rot: 9deg; top: 84px; left: 65%; z-index: 1; }

/* Entrance: one staggered rise on load. */
@keyframes heroRise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.hero-copy > * { animation: heroRise 0.6s ease backwards; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.phone-frame { animation: heroRise 0.7s ease backwards; }
.frame-profile { animation-delay: 0.12s; }
.frame-browse { animation-delay: 0.22s; }
.frame-credits { animation-delay: 0.32s; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  min-height: 48px;
}
.btn.primary { background: var(--plum); color: #fff; box-shadow: var(--shadow-lg); }
.btn.primary:hover { background: #47156f; transform: translateY(-1px); }
.btn.ghost { background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.micro { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* ── Standard sections ──────────────────────────────────────────────────── */
section.flow { padding: clamp(64px, 10vh, 120px) clamp(18px, 5vw, 64px); max-width: 1160px; margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; max-width: 22ch; text-wrap: balance; }
.lede { margin-top: 14px; font-size: clamp(15.5px, 1.5vw, 18px); color: var(--muted); max-width: 62ch; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .phone-frame { animation: none; }
}

/* Product preview — synthetic app UI */
.preview-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; align-items: start; }
.ui-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px; font-size: 14px;
}
.ui-card .row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  background: var(--lilac); color: var(--plum);
  background-size: cover; background-position: center;
}
.ui-name { font-weight: 800; font-size: 16.5px; }
.ui-sub { color: var(--muted); font-size: 13px; }
.badge { margin-left: auto; background: var(--lilac); color: var(--plum); font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.chip { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.chip.match { background: #e6f3f1; border-color: #bcdcd8; color: var(--teal-dark); }
.stars { color: #eab308; letter-spacing: 1.5px; font-size: 13px; }
.lockline {
  display: flex; align-items: center; gap: 9px; margin-top: 15px; padding-top: 14px;
  border-top: 1px dashed var(--line); font-weight: 700; font-size: 13.5px;
}
.lockline svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.lockline .mono { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.lockline.unlocked { color: var(--teal-dark); }
.lockline.unlocked svg { color: var(--teal); }
.wa-btn {
  margin-left: auto; background: #25d366; color: #fff; font-weight: 800; font-size: 12.5px;
  padding: 6px 12px; border-radius: 999px; text-decoration: none;
}
.reveal-btn {
  margin-left: auto; background: var(--plum); color: #fff; font-weight: 800; font-size: 12.5px;
  padding: 6px 12px; border-radius: 999px; border: 0;
}
.ui-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Matching section */
.why-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.why-chips .chip { font-size: 14px; padding: 9px 16px; background: var(--card); box-shadow: var(--shadow); }
.credit-note {
  margin-top: 30px; background: var(--lilac); border-radius: var(--radius);
  padding: 22px 24px; font-size: 15.5px; max-width: 720px;
}
.credit-note strong { color: var(--plum); }

/* Languages section */
.langs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lang-pill {
  font-size: 16px; font-weight: 700; padding: 12px 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* Final CTA */
.final {
  text-align: center; background: var(--plum-deep); color: #f5eefc;
  border-radius: calc(var(--radius) + 8px); padding: clamp(48px, 8vw, 84px) 24px;
  margin: 0 clamp(14px, 4vw, 56px);
}
.final h2 { color: #fff; margin: 0 auto; }
.final .lede { color: #d9c9ec; margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }
.final .btn.ghost { background: transparent; color: #f5eefc; border-color: #8a6bab; }
.final .btn.ghost:hover { border-color: #f5eefc; }
.final .micro { color: #bfa8d8; }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: 34px clamp(18px, 5vw, 64px) 44px; max-width: 1160px; margin: 0 auto;
  color: var(--muted); font-size: 13.5px;
}
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .preview-wrap { grid-template-columns: 1fr; }
  /* Hero stacks: copy first, card cluster centered below. */
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-cards { width: 100%; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .login-link { padding: 7px 13px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; align-items: stretch; }

  /* Hero: compact static stack — the care photo peeks out behind the locked
     profile card; the match card is desktop-only garnish. Cards lead, copy
     follows (visual order only — DOM keeps the headline first for a11y/SEO).
     Sized so cards + headline + sub + CTA all fit the ~700px of viewport a
     real iPhone shows once Safari's chrome is counted. */
  .hero { padding-top: 78px; padding-bottom: 40px; }
  /* Generous air between the phone pair and the headline, paid for with
     smaller display type (25/15 -> 22/14) so the CTA stays above the fold. */
  .hero-inner { gap: 52px; }
  .hero-cards { order: 1; }
  .hero-copy { order: 2; }
  .hero-copy h1 { font-size: 22px; text-wrap: pretty; }
  .hero-copy .sub { font-size: 14px; margin-top: 8px; }
  /* The two CTAs ride side-by-side here — stacking a second full-width
     button would push the pair below the fold. */
  .hero-copy .cta-row { margin-top: 16px; flex-direction: row; gap: 10px; }
  .hero-copy .cta-row .btn { width: auto; flex: 1; padding: 14px 8px; font-size: 14.5px; white-space: nowrap; }

  /* Same reference pattern, pocket-sized: TWO nested parallel phones
     (Browse front-left-low, Profile right-high); Credits drops. Same
     +14deg lean and the same nesting inequality (dx 166 >= 163.7 required
     at width 144 / gap 8 / dy -28) — zero true overlap. The chassis keeps
     the FULL 1:2.04 iPhone proportion (no shorter screen crop — that read
     as an iPad); the pair is sized so headline + sub + CTA still clear the
     ~700px a real iPhone shows under Safari's chrome. */
  .hero-cards { min-height: 334px; }
  .frame-credits { display: none; }
  /* Mobile keeps the ORIGINAL hero composition (rewound by request): the
     equal-size parallel pair with the +14deg lean — Browse front-left-low,
     Profile right-high, zero true overlap — sized so headline + sub + CTA
     still clear the fold. The desktop fan stays desktop-only. */
  .frame-browse { --pw: 144px; --pcap: 100%; --rot: 14deg; top: 28px; left: 16px; z-index: 3; }
  .frame-profile { --pw: 144px; --pcap: 100%; --rot: 14deg; top: 0; left: 182px; z-index: 2; }
  /* The 2x2 selling-point chips are desktop garnish — stacked on a phone they
     add ~200px and push the CTAs below the fold, so the mobile hero goes back
     to its original title -> sub -> CTAs rhythm. */
  .hero-points { display: none; }

  /* Section headers on phones: half the top padding (40 -> 20px). Bottom
     padding halved too (84 -> 42px) — the gap above a header is really
     the PREVIOUS section's bottom padding plus this one's top padding,
     so trimming only top wasn't enough. */
  section.flow { padding-top: 20px; padding-bottom: 42px; }
}
