/* ============================================================================
 * AltoV Beauty Shade Finder — luxury UI pass
 * Brand palette from altovbeauty.com:
 *   coral #FF7062 · deep plum #3B2A55 · warm ivory paper · ink #2B2427
 * Typography: Fraunces (display serif) + Inter (body)
 * ==========================================================================*/

:root {
  --coral: #ff7062;
  --coral-dark: #e85a4c;
  --coral-soft: #ffd9d3;
  --blush: #fdefe9;
  --plum: #3b2a55;
  --plum-deep: #2d1f42;
  --ink: #2b2427;
  --ink-soft: #5c5356;
  --ink-faint: #8a7f83;
  --paper: #fdfbf8;
  --mist: #f7f1ea;
  --hairline: #ece2d8;
  --radius: 22px;
  --radius-sm: 14px;

  /* Layered, plum-tinted shadows for soft depth */
  --shadow-sm: 0 1px 2px rgba(59, 42, 85, 0.06), 0 4px 12px rgba(59, 42, 85, 0.06);
  --shadow-md: 0 2px 4px rgba(59, 42, 85, 0.05), 0 14px 34px rgba(59, 42, 85, 0.10);
  --shadow-lg: 0 2px 6px rgba(59, 42, 85, 0.05), 0 28px 60px rgba(59, 42, 85, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--coral-soft); }

/* ---------- Header / footer ---------- */
.site-header {
  background: var(--plum);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}
.logo { height: 54px; width: auto; transition: opacity 0.25s var(--ease); }
.logo-link:hover .logo { opacity: 0.85; }
.header-nav { display: flex; gap: 32px; }
.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.header-nav a:hover { color: #fff; border-color: var(--coral); }

.site-footer {
  background: var(--plum);
  color: #fff;
  text-align: center;
  padding: 64px 24px 52px;
  margin-top: 110px;
}
.footer-logo { height: 58px; margin: 0 auto 20px; opacity: 0.95; }
.site-footer p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}
.site-footer .fine-print {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
}
.site-footer a { color: var(--coral); text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--coral-soft); }

/* ---------- Steps ---------- */
main { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.step { display: none; padding: 72px 0 32px; }
.step.active { display: block; animation: rise 0.55s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.center-text { text-align: center; }

/* ---------- Landing ---------- */
#step-landing { padding-top: 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

h1 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  color: var(--ink);
}
h1 em, .results-title em {
  color: var(--coral);
  font-style: italic;
  font-weight: 450;
}
.hero-sub {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 36px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cta-row.center { justify-content: center; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary {
  background: linear-gradient(135deg, #ff7d70 0%, var(--coral) 45%, var(--coral-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(232, 90, 76, 0.25), 0 12px 28px rgba(255, 112, 98, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(232, 90, 76, 0.28), 0 18px 38px rgba(255, 112, 98, 0.42);
}
.btn-secondary {
  background: transparent;
  color: var(--plum);
  border-color: rgba(59, 42, 85, 0.35);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--plum);
  padding: 14px 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(59, 42, 85, 0.3);
  border-radius: 0;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-ghost:hover { color: var(--coral-dark); border-color: var(--coral); }

.photo-tip {
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--plum);
  max-width: 44ch;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 52ch;
}
.privacy-note svg { flex-shrink: 0; margin-top: 3px; color: var(--plum); opacity: 0.7; }
.privacy-note.center-note { justify-content: center; text-align: center; margin: 22px auto 0; }

/* Shown in place of the photo CTA for products configured with
   matchingReady: false (no trustworthy shade colour reference yet). */
.not-ready {
  margin-top: 30px;
  max-width: 46ch;
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.not-ready[hidden] { display: none; }
.not-ready h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--plum);
  margin-bottom: 10px;
}
.not-ready p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.not-ready-alt {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 16px 0 0;
}
.not-ready-alt a {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: rgba(59, 42, 85, 0.3);
  text-underline-offset: 3px;
}
.not-ready-alt a:hover { color: var(--coral-dark); text-decoration-color: var(--coral); }

/* Hero product — the photography is the hero. The store's group shot sits
   directly on the page: multiply blending melts its white studio background
   into the ivory paper, so the compacts stand alone with their own natural
   shadows. No frames, no backdrop graphics. */
.hero-product { text-align: center; }
.hero-compact {
  /* the photo has a transparent background (white removed offline), so the
     compacts and their natural shadows sit directly on the page */
  width: min(440px, 94%);
  margin: 0 auto 26px;
}

.shade-strip {
  display: flex;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  max-width: 340px;
  margin: 0 auto;
}
.shade-strip span { flex: 1; transition: flex 0.3s var(--ease); }
.shade-strip:hover span:hover { flex: 2.2; }
.strip-caption {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------- How it works ---------- */
.how-it-works { margin-top: 84px; }
.how-rule {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
}
.how-rule::before, .how-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.how-rule span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--plum);
  white-space: nowrap;
}
.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  max-width: 940px;
  margin: 0 auto;
}
.how-steps li { text-align: center; }
.how-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: 1.7rem;
  color: var(--coral);
  margin-bottom: 8px;
}
.how-steps h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.how-steps p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 30ch;
  margin: 0 auto;
}

/* ---------- Shared step headings ---------- */
.step-title {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 10px;
}
.step-sub {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 auto 28px;
}

/* ---------- Camera ---------- */
.camera-wrap {
  position: relative;
  max-width: 500px;
  margin: 30px auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum-deep);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}
#camera-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-guide {
  position: absolute;
  inset: 9%;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: 50% / 42%;
  pointer-events: none;
  animation: guide-breathe 3.2s var(--ease) infinite;
}
@keyframes guide-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.012); }
}
.btn-round {
  width: 78px; height: 78px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
}
.shutter {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  display: block;
  transition: transform 0.25s var(--ease);
}
.btn-round:hover .shutter { transform: scale(1.12); }
#btn-camera-back { display: block; margin: 22px auto 0; }

.error-msg, .warn-msg {
  max-width: 500px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
}
.error-msg { background: #fdecea; color: #a4322a; border: 1px solid #f6d5d1; }
.warn-msg { background: #faf3e4; color: #7a5a2e; border: 1px solid #efe2c6; }

/* ---------- Consent step ---------- */
.consent-compact {
  width: min(220px, 60%);
  margin: 0 auto 28px;
}
#btn-consent-back { display: block; margin: 22px auto 0; }

/* Required consent, gating "Continue to Shade Match" */
.consent-block {
  max-width: 460px;
  margin: 26px auto 0;
  text-align: left;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}
.consent-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--coral);
  cursor: pointer;
}
.consent-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.consent-subtext {
  margin-top: 10px;
  margin-left: 29px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-faint);
}
.consent-subtext a {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: rgba(59, 42, 85, 0.3);
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.consent-subtext a:hover { color: var(--coral-dark); text-decoration-color: var(--coral); }

/* ---------- Photo confirm ---------- */
.photo-wrap {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline);
  line-height: 0;
}
#photo-canvas { width: 100%; height: auto; cursor: crosshair; }
.sample-dot {
  position: absolute;
  width: 36px; height: 36px;
  border: 2.5px solid var(--coral);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 3px 10px rgba(0, 0, 0, 0.3);
  animation: dot-pop 0.35s var(--ease);
}
@keyframes dot-pop {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.tone-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.tone-chip {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--hairline), 0 3px 12px rgba(59, 42, 85, 0.22);
  display: inline-block;
}
.tone-chip.big { width: 46px; height: 46px; }

/* The honest pause: "Reading your skin tone…" */
.analyzing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--plum);
}
.analyzing[hidden] { display: none; }
.analyzing-chip {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px var(--hairline), 0 2px 8px rgba(59, 42, 85, 0.2);
  animation: chip-pulse 1.1s var(--ease) infinite;
}
@keyframes chip-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px var(--hairline), 0 2px 8px rgba(59, 42, 85, 0.2); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 5px var(--coral-soft), 0 2px 8px rgba(59, 42, 85, 0.2); }
}
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ---------- Results ---------- */
#step-results .eyebrow { text-align: center; }
.results-title {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 14px;
}
.tone-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 26px 0 44px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.tone-fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.tone-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tone-value {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.tone-divider {
  width: 1px;
  height: 34px;
  background: var(--hairline);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.result-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 58px 26px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  animation: rise 0.6s var(--ease) both;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.results-grid .result-card:nth-child(1) { animation-delay: 0.08s; }
.results-grid .result-card:nth-child(2) { animation-delay: 0s; }
.results-grid .result-card:nth-child(3) { animation-delay: 0.16s; }
.card-best {
  border: 1.5px solid var(--coral);
  transform: scale(1.035);
  z-index: 1;
  background: linear-gradient(180deg, #fff7f3 0%, #ffffff 50%);
  box-shadow: 0 2px 6px rgba(232, 90, 76, 0.08), 0 26px 54px rgba(59, 42, 85, 0.16);
}
.card-best:hover { transform: scale(1.035) translateY(-4px); }

.role-badge {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 18px;
  white-space: nowrap;
}
.badge-best {
  background: linear-gradient(135deg, #ff7d70, var(--coral-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 112, 98, 0.4);
}

.card-img-wrap { padding: 10px 18px 4px; }
.card-img-wrap img {
  margin: 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(236, 226, 216, 0.7);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}
.result-card:hover .card-img-wrap img { transform: scale(1.025); }
.card-shade {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  margin-top: 16px;
}
.soldout-badge {
  display: inline-block;
  vertical-align: 3px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a4322a;
  background: #fdecea;
  border-radius: 999px;
  padding: 4px 11px;
  margin-left: 8px;
}
.card-desc { font-size: 0.88rem; color: var(--ink-faint); margin: 5px 0 18px; }
.card-swatch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.mini-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px var(--hairline), 0 2px 8px rgba(59, 42, 85, 0.2);
}
.card-price {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.card-cta { margin-top: auto; justify-content: center; }

.result-endcap {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  animation: rise 0.6s var(--ease) both;
}

/* Sold-out best match → nearest in-stock pointer */
.stock-note {
  max-width: 56ch;
  margin: -18px auto 34px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #7a5a2e;
  background: #faf3e4;
  border: 1px solid #efe2c6;
  border-radius: 999px;
  padding: 10px 26px;
}
.stock-note[hidden] { display: none; }

/* The full range with "you are here" */
.shade-ladder { margin: 52px auto 0; text-align: center; }
.ladder-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 30px;
}
.ladder-track {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: 860px;
  margin: 0 auto;
}
.ladder-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  text-decoration: none;
  min-width: 46px;
}
.ladder-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px var(--hairline), 0 2px 6px rgba(59, 42, 85, 0.16);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ladder-step:hover .ladder-dot {
  transform: scale(1.18);
  box-shadow: 0 0 0 1px var(--hairline), 0 4px 12px rgba(59, 42, 85, 0.25);
}
.ladder-code {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.ladder-step.is-out .ladder-dot { opacity: 0.45; }
.ladder-step.is-out .ladder-code { text-decoration: line-through; opacity: 0.6; }
.ladder-step.is-you .ladder-dot {
  width: 38px; height: 38px;
  margin-top: -4px;
  box-shadow: 0 0 0 2px var(--coral), 0 0 0 6px var(--coral-soft), 0 4px 14px rgba(59, 42, 85, 0.28);
}
.ladder-step.is-you .ladder-code { color: var(--coral-dark); font-weight: 700; }
.you-pin {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff7d70, var(--coral-dark));
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 112, 98, 0.35);
}
.you-pin::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--coral-dark);
  border-bottom: none;
}

/* "Not quite right?" — quiet return to the tap-to-refine step */
.adjust-row { text-align: center; margin-top: 34px; }
.link-quiet {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(59, 42, 85, 0.3);
  text-underline-offset: 4px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.link-quiet:hover { color: var(--coral-dark); text-decoration-color: var(--coral); }

.results-note {
  max-width: 62ch;
  margin: 38px auto 0;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* Understated AI-transparency & privacy cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 780px;
  margin: 42px auto 0;
}
.info-card {
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
}
.info-card h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 9px;
}
.info-card h4 svg { color: var(--coral-dark); flex-shrink: 0; }
.info-card p {
  font-size: 0.79rem;
  line-height: 1.65;
  color: var(--ink-faint);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-product { order: -1; padding-top: 6px; }
  .hero-compact { width: min(330px, 88%); margin-bottom: 20px; }
  h1 { margin-bottom: 18px; }
  .how-it-works { margin-top: 60px; }
  .how-steps { grid-template-columns: 1fr; gap: 30px; max-width: 380px; }
  .how-steps li { display: grid; grid-template-columns: 44px 1fr; text-align: left; column-gap: 14px; }
  .how-num { grid-row: 1 / span 2; margin: 0; }
  .how-steps p { margin: 0; max-width: none; }
  .results-grid { grid-template-columns: 1fr; max-width: 430px; margin: 0 auto; gap: 22px; }
  .card-best { transform: none; }
  .card-best:hover { transform: translateY(-4px); }
  .results-grid .card-best { order: -1; animation-delay: 0s; }
  .results-grid .result-card:not(.card-best) { animation-delay: 0.12s; }
}
@media (max-width: 700px) {
  .info-cards { grid-template-columns: 1fr; max-width: 430px; }
}
@media (max-width: 560px) {
  main { padding: 0 20px; }
  .site-header { padding: 14px 20px; }
  .logo { height: 44px; }
  .header-nav { display: none; }
  .step { padding: 44px 0 20px; }
  .cta-row .btn-primary, .cta-row .btn-secondary { width: 100%; justify-content: center; }
  .site-footer { margin-top: 72px; padding: 48px 20px 40px; }
  .tips { padding: 22px 22px; }
}


/* ---- PREVIEW ONLY: customer-controlled depth refinement ---- */
.refine { margin: 22px auto 0; max-width: 560px; text-align: center; }
.refine-q { font-size: .95rem; color: #6b625f; margin: 0 0 10px; }
.refine-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.refine-btn, .refine-reset {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 10px 18px; background: #fff;
  border: 1px solid #e3d9d3; color: #231f20;
}
.refine-btn:hover:not([disabled]) { border-color: #ff7062; color: #ff7062; }
.refine-btn[disabled] { opacity: .4; cursor: not-allowed; }
.refine-reset { border-style: dashed; color: #6b625f; }
.refine-note {
  margin: 12px auto 0; max-width: 460px; font-size: .86rem; line-height: 1.5;
  color: #6b625f; background: #fdf6f4; border: 1px solid #f3dcd7;
  border-radius: 10px; padding: 10px 14px;
}
.tap-hint {
  display: block; margin: 10px auto 0; max-width: 460px; font-size: .88rem;
  line-height: 1.5; color: #6b625f;
}
.tap-hint b { color: #231f20; }


/* ---- PREVIEW ONLY: face-first guidance + framing control ---- */
.face-first{max-width:460px;margin:0 auto 22px;padding:14px 18px;text-align:left;
  background:#fff;border:1px solid #e8ded8;border-left:3px solid #ff7062;border-radius:10px}
.ff-head{font-family:inherit;font-weight:700;font-size:1rem;margin:0 0 4px;color:#231f20}
.ff-sub{margin:0 0 8px;font-size:.92rem;color:#6b625f;line-height:1.5}
.ff-list{margin:0;padding-left:18px;font-size:.9rem;color:#6b625f;line-height:1.7}
.photo-wrap{position:relative}
.guide-ring{position:absolute;left:50%;top:50%;width:84%;height:84%;
  transform:translate(-50%,-50%);border:2px dashed rgba(255,112,98,.9);
  border-radius:50%;pointer-events:none;box-shadow:0 0 0 9999px rgba(35,31,32,.16)}
.frame-tools{display:flex;align-items:center;gap:10px;justify-content:center;
  margin:12px auto 0;max-width:360px;flex-wrap:wrap}
.frame-btn{width:34px;height:34px;border-radius:50%;border:1px solid #e3d9d3;background:#fff;
  font-size:1.1rem;line-height:1;cursor:pointer;color:#231f20}
.frame-btn:hover{border-color:#ff7062;color:#ff7062}
#zoom{flex:1;min-width:120px;accent-color:#ff7062}
.frame-reset{font:inherit;font-size:.82rem;border:1px dashed #e3d9d3;background:none;
  color:#6b625f;border-radius:999px;padding:7px 14px;cursor:pointer}
@media (max-width:480px){ .frame-tools{max-width:100%} }
