/* Ring Style Finder: home page styles (loads after base.css) */

/* ── hero ── */
.hero-band {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(248, 213, 181, 0.8) 0, rgba(248, 213, 181, 0) 46%),
    radial-gradient(ellipse at 100% 0%, rgba(188, 228, 202, 0.75) 0, rgba(188, 228, 202, 0) 48%),
    radial-gradient(ellipse at 92% 100%, rgba(229, 218, 244, 0.55) 0, rgba(229, 218, 244, 0) 44%);
  padding: 34px 0 44px;
}
.hero {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(18, 20, 30, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  min-height: clamp(500px, 58vw, 600px);
  display: flex;
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: 560px;
  padding: clamp(26px, 3.6vw, 48px);
  display: flex; flex-direction: column;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero-eyebrow img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 5px 12px rgba(18, 20, 30, 0.14); }
h1 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent-strong); }
.hero-body { margin: 16px 0 0; max-width: 44ch; color: var(--ink-soft); font-size: 18.5px; font-weight: 500; }

.cta-row { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 22px; }
.cta-row .store-badge { width: 190px; height: auto; display: block; }
.qr-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-left: 22px; border-left: 1px solid var(--divider); text-decoration: none;
}
.qr-tile img {
  width: 82px; height: 82px; padding: 7px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 18px rgba(18, 20, 30, 0.08);
}
.qr-tile span { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.hero-marquee {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.hero-row { display: flex; width: max-content; will-change: transform; }
.hero-row img {
  height: clamp(150px, 16vw, 196px); width: auto; aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: 10px; margin-right: 10px; display: block;
  background: rgba(19, 19, 22, 0.06);
}
.hero-row--l { animation: mqLeft 60s linear infinite; }
.hero-row--r { animation: mqRight 74s linear infinite; }
.hero-row--slow { animation-duration: 88s; }
@keyframes mqLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mqRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(248, 248, 251, 0.96) 0%,
    rgba(248, 248, 251, 0.9) 40%,
    rgba(248, 248, 251, 0.6) 72%,
    rgba(248, 248, 251, 0.4) 100%);
}

/* ── steps ── */
.steps-band { padding: 0 0 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step {
  padding: 20px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(18, 20, 30, 0.05);
}
.step .caps { color: var(--accent); font-size: 10px; letter-spacing: 0.22em; }
.step h3 { margin: 8px 0 0; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.step p:not(.caps) { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ── section headings ── */
h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.9vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-copy { margin: 14px 0 0; max-width: 58ch; color: var(--ink-soft); font-size: 17.5px; font-weight: 500; line-height: 1.6; }

/* ── try-on section ── */
.tryon-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr); gap: clamp(26px, 5vw, 60px); align-items: center; }
.feature-list { margin-top: 22px; border-top: 1px solid var(--divider); }
.feature { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.feature-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(31, 95, 90, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(216, 240, 231, 0.5);
  color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0; font-size: 16.5px; font-weight: 700; }
.feature p { margin: 5px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }

.phones { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 2.6vw, 30px); }
.phone { display: grid; justify-items: center; gap: 12px; margin: 0; }
.phone-frame {
  position: relative;
  aspect-ratio: 719 / 1560;
  overflow: hidden;
  border-radius: 29px;
  border: 1px solid rgba(19, 19, 22, 0.1);
  background: linear-gradient(145deg, #ffffff 0%, #d9dce1 48%, #ffffff 100%);
  box-shadow: 0 18px 36px rgba(18, 20, 30, 0.12), 0 5px 12px rgba(18, 20, 30, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}
.phone--before .phone-frame { height: clamp(300px, 30vw, 420px); }
.phone--after .phone-frame { height: clamp(340px, 34vw, 480px); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 28px; }

/* ── before/after slider (from app paywall) ── */
.ba-slider {
  position: absolute; inset: 0; overflow: hidden; border-radius: 28px;
  background: #e7e9ee; touch-action: none; cursor: ew-resize; user-select: none;
}
.ba-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(18, 20, 32, 0.25); }
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(18, 20, 32, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 16px; font-weight: 800; line-height: 1;
}
.ba-label {
  position: absolute; top: 12px; padding: 5px 11px; border-radius: var(--radius-sm);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1;
}
.ba-label--before { left: 12px; background: rgba(19, 19, 22, 0.72); color: #fff; }
.ba-label--after { right: 12px; background: rgba(255, 255, 255, 0.86); color: #1f2230; }

/* ── guides teaser ── */
.guides-grid { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr); gap: clamp(26px, 4.5vw, 56px); align-items: center; }
.guides-photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(19, 19, 22, 0.1); }
.guides-photo img { width: 100%; height: clamp(300px, 30vw, 400px); object-fit: cover; display: block; }
.guides-photo .badge--soft { position: absolute; top: 14px; left: 14px; }
.guide-links { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide-links a {
  position: relative;
  min-height: 66px;
  padding: 14px 38px 14px 16px;
  border: 1px solid rgba(19, 19, 22, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-strong);
  font-size: 15px; font-weight: 700; line-height: 1.35;
  text-decoration: none;
  display: flex; align-items: center;
}
.guide-links a::after {
  content: ""; position: absolute; top: 50%; right: 16px;
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-50%) rotate(-45deg); opacity: 0.7;
}
.guide-links a:hover { background: rgba(255, 255, 255, 0.85); }

/* ── closing ── */
.closing { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing h2 { max-width: 22ch; }
.closing .section-copy { max-width: 52ch; }
.closing .cta-row { margin-top: 4px; padding-top: 24px; justify-content: center; }

/* ── contact ── */
.band--contact {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(207, 224, 250, 0.55) 0, rgba(207, 224, 250, 0) 56%),
    radial-gradient(ellipse at 100% 100%, rgba(216, 240, 231, 0.6) 0, rgba(216, 240, 231, 0) 56%),
    linear-gradient(180deg, #f8f8fb, #eef2f6);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.contact-block { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr); gap: clamp(26px, 5vw, 56px); align-items: center; }
.contact-copy h2 { max-width: 18ch; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82); resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(19, 19, 22, 0.4); }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid rgba(31, 95, 90, 0.4); outline-offset: 1px; border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-status { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }
.contact-status:empty { display: none; }
.contact-status--ok { color: var(--accent-strong); font-weight: 600; }
.contact-status--err { color: #9f2f22; font-weight: 600; }
.contact-form--sent { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 900px) {
  .tryon-grid, .guides-grid { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; }
  /* On mobile the 1-2-3 steps duplicate the try-on feature bullets, so hide them here. */
  .steps-band { display: none; }
  .hero { min-height: 460px; }
  .hero-copy { max-width: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(248, 248, 251, 0.9) 0%, rgba(248, 248, 251, 0.82) 100%); }
  .steps { grid-template-columns: 1fr; }
  .step p:not(.caps) { font-size: 17px; }
  .guide-links { grid-template-columns: 1fr; }
  .guide-links a:nth-child(n + 4) { display: none; }
  .qr-tile { display: none; }
  .phone--before .phone-frame { height: 340px; }
  .phone--after .phone-frame { height: 380px; }
  .phones { flex-wrap: wrap; }
}
