/* Server-rendered landing, season pages, FAQ, sticky CTA */
html, body { overflow-x: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.landing { padding: 0 20px; }

/* hero: the reveal itself */
.hero-reveal { margin: 6px -20px 0; display: grid; gap: 18px; }
.hdrape { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; background: #333; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.hlayer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.hlayer img { height: 94%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); pointer-events: none; }
.hlayer.best { clip-path: inset(0 0 0 100%); }
.hdrape.animating .hlayer.best { transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); }
.hhandle { position: absolute; top: 0; bottom: 0; left: 100%; width: 0; }
.hhandle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(255,255,255,.9); }
.hhandle span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.hhandle span::before { content: "\27F7"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: var(--ink); }
.hdrape.animating .hhandle { transition: left 1.1s cubic-bezier(.7,0,.2,1); }
.hlabels { position: absolute; left: 0; right: 0; top: 14px; display: flex; justify-content: space-between; padding: 0 16px; pointer-events: none; }
.hlabels span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
/* text-only hero used until a real reveal is featured */
.hdrape-text { aspect-ratio: 4 / 4.2; max-height: 62vh; }
.hdrape-text .hlayer.worst { background: #8E8676; }
.hdrape-text .hlayer.best { background: #0F2A5C; }
.hdrape-text .hword { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.hword { width: 100%; padding: 0 24px 34px; color: rgba(255,255,255,.92); font-family: var(--serif); font-size: clamp(30px, 8.5vw, 64px); line-height: 1.02; letter-spacing: -0.01em; }
.hword span { display: block; }
.hword b { font-weight: 400; font-style: italic; color: #fff; transition: opacity .25s; }
.hlayer.best .hword, .hlayer.best .hword b { color: #fff; }
.hero-reveal .hero-copy { padding: 0 20px; gap: 16px; }
.hero-reveal .lede { max-width: 40ch; }
@media (min-width: 900px) {
  .hero-reveal { margin: 14px 0 0; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .hdrape { border-radius: 28px; }
  .hero-reveal .hero-copy { padding: 0; }
  .hdrape-text { max-height: 70vh; }
}
.count { margin: 26px 0 0; color: var(--muted); }
.count b { font-family: var(--serif); font-size: 28px; color: var(--ink); font-weight: 400; margin-right: 6px; }

/* how it works: swipe cards on phone, grid on desktop */
.how { padding: 54px 0 0; }
.how h2, .seasons-row h2, .method h2, .faq h2 { margin-bottom: 10px; }
.how-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 16px 20px 8px; scrollbar-width: none; }
.how-cards::-webkit-scrollbar { display: none; }
.hcard { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.hcard-art { aspect-ratio: 4 / 3; position: relative; }
.hcard-face { position: absolute; left: 50%; bottom: 0; width: 42%; aspect-ratio: 1 / 1.25; transform: translateX(-50%); background: #D9A07A; border-radius: 48% 48% 36% 36% / 52% 52% 30% 30%; opacity: .92; }
.hcard h3 { font-size: 21px; padding: 16px 18px 4px; }
.hcard p { padding: 0 18px 18px; color: var(--ink-2); font-size: 15px; }
@media (min-width: 760px) { .how-cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin: 0; padding: 16px 0 8px; overflow: visible; } }

/* seasons row */
.seasons-row { padding: 54px 0 0; }
.srow { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; margin: 14px -20px 0; padding: 4px 20px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.srow::-webkit-scrollbar { display: none; }
.scell { scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: 16px; position: relative; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; transition: transform .2s; }
.scell:hover { transform: translateY(-3px); }
.scell-name { color: #fff; font-family: var(--serif); font-size: 20px; text-shadow: 0 1px 8px rgba(0,0,0,.35); line-height: 1.05; }
.scell-name.dark { color: var(--ink); text-shadow: none; }
.scell-dots { display: flex; gap: 4px; margin-top: 8px; }
.scell-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); }
@media (min-width: 900px) { .srow { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; margin: 14px 0 0; padding: 0; overflow: visible; } }

/* method */
.method { padding: 54px 0 0; }
.method-grid { display: grid; gap: 18px; margin-top: 14px; }
.method-grid h3 { font-size: 20px; margin-bottom: 4px; }
.method-grid p { color: var(--ink-2); }
@media (min-width: 760px) { .method-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; } }

/* faq */
.faq { padding: 54px 0 0; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-2); padding-top: 8px; }
.faq > p { margin-top: 14px; }

/* footer with season links */
.foot { flex-direction: column; align-items: stretch; gap: 18px; }
.foot-seasons div { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }

/* sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(246,241,234,.98), rgba(246,241,234,.85)); display: flex; justify-content: center; z-index: 50; }
.sticky-cta .btn { width: 100%; max-width: 420px; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* season + faq pages */
.season-page article { max-width: 760px; margin: 10px auto 0; display: grid; gap: 16px; }
.season-page h1 { font-size: clamp(38px, 7vw, 64px); }
.season-page h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 26px; }
.season-page h3 { font-size: 20px; }
.season-page p { color: var(--ink-2); }
.season-hero { border-radius: var(--radius); padding: 22px; margin-top: 8px; }
.season-hero-swatches, .swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch-grid.sm { grid-template-columns: repeat(5, 1fr); }
.sw { display: block; aspect-ratio: 1; border-radius: 12px; position: relative; }
.sw i { position: absolute; left: 6px; bottom: 5px; font-size: 10px; font-style: normal; letter-spacing: .04em; color: rgba(255,255,255,.9); text-shadow: 0 1px 3px rgba(0,0,0,.5); font-weight: 600; }
.sw.light i { color: rgba(0,0,0,.65); text-shadow: none; }
.season-guide { display: grid; gap: 18px; margin-top: 10px; }
@media (min-width: 760px) { .season-guide { grid-template-columns: 1fr 1fr; gap: 20px 32px; } }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.season-page .tips li { color: var(--ink-2); }

/* ===== gold vs silver ===== */
.metals-block { display: grid; gap: 12px; }
.metal-drape { position: relative; aspect-ratio: 4 / 5; max-height: 60vh; border-radius: var(--radius); overflow: hidden; }
.metal-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; transition: opacity .5s ease; }
.metal-layer.gold { background: radial-gradient(120% 90% at 30% 20%, #F3D98B 0%, #C9A24C 45%, #8C6A1F 100%); }
.metal-layer.silver { background: radial-gradient(120% 90% at 30% 20%, #F2F4F6 0%, #B9C0C8 45%, #6F7780 100%); opacity: 0; }
.metal-drape.show-silver .metal-layer.silver { opacity: 1; }
.metal-layer img.subject { height: 94%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.2)); }
.metal-layer img.subject.photo { height: 100%; width: 100%; object-fit: cover; filter: none; }
.metal-labels { position: absolute; left: 0; right: 0; top: 14px; display: flex; justify-content: space-between; padding: 0 16px; pointer-events: none; }
.metal-labels span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(0,0,0,.55); }
.metal-toggle { display: flex; gap: 8px; }
.metal-toggle .btn.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.metal-verdict { font-family: var(--serif); font-size: 20px; color: var(--ink-2); }

/* ===== can I wear this ===== */
.check-block { display: grid; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.check-block h2 { font-size: clamp(26px, 4.5vw, 36px); }
.check-results { display: grid; gap: 18px; margin-top: 8px; }
.check { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.check-drape { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 8 / 5; }
.cd-pane { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.cd-pane img { height: 92%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.2)); }
.cd-pane span { position: absolute; top: 10px; left: 12px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.check-copy { padding: 16px 18px 18px; display: grid; gap: 8px; }
.check-head { display: flex; align-items: center; gap: 12px; }
.check-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.check-label { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.verdict-wear .check-label { color: #2E7D4F; }
.verdict-maybe .check-label { color: #B7791F; }
.verdict-skip .check-label { color: #B3261E; }
.check-line { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--ink-2); }

/* ===== garment drape (photo mode) ===== */
.drape.garment .drape-layer, .hdrape .hlayer.photo, .metal-drape.garment .metal-layer { background: #111; }
.drape.garment img.subject, .hlayer.photo img, .metal-drape.garment img.subject, .cd-pane.photo img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 12%; filter: none; }
.metal-drape.garment .metal-layer.gold, .metal-drape.garment .metal-layer.silver { background: #111; }
.metal-drape.garment .metal-labels span { color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* photo-frame: the frame matches the photo, so object-fit never crops */
.hdrape.photo-frame { max-height: 82vh; }
.hdrape.photo-frame .hlayer.photo img { object-fit: cover; object-position: 50% 50%; }
@media (min-width: 900px) { .hdrape.photo-frame { height: 78vh; max-height: none; width: auto; max-width: 100%; justify-self: center; } }
.drape.garment img.subject { object-position: 50% 50%; }
