/* SectionKit — clean static clone layout. Brand: SectionKit (Willy). Placeholders for SuperGrok. */
:root {
  --bg: #f4f2ef;
  --bg-soft: #eceae6;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #d6d2cb;
  --card: #ffffff;
  --accent: #111111;
  --rail: #7a7a7a;
  --rail-dark: #4a4a4a;
  --ok: #1a7f4b;
  --radius: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 12px 40px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Top nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(244,242,239,.9);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.logo {
  font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem;
}
.logo span { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: .85rem; }
.nav { display: flex; gap: 22px; font-size: .92rem; }
.nav a:hover { opacity: .65; }
.badge-demo {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--line); padding: 6px 10px; border-radius: var(--radius);
  background: var(--card);
}

/* Hero */
.hero {
  padding: 72px 0 40px; text-align: center;
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 16px;
  letter-spacing: -.03em;
}
.hero p.lead {
  max-width: 560px; margin: 0 auto 28px; color: var(--muted); font-size: 1.05rem;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.soft { background: #e8e6e2; border-color: #cfcbc4; color: var(--ink); }
.marquee {
  margin-top: 36px; overflow: hidden; border-block: 1px solid var(--line);
  background: #ebe8e3;
}
.marquee-track {
  display: flex; gap: 40px; white-space: nowrap; padding: 12px 0;
  animation: slide 28s linear infinite; width: max-content;
  font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section shells */
.section {
  padding: 64px 0;
}
.section.alt { background: var(--bg-soft); }
.section-head {
  text-align: center; margin-bottom: 28px;
}
.section-head .kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted);
  margin-bottom: 8px;
}
.section-head h2 {
  margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em;
}
.section-head p { margin: 0 auto; max-width: 520px; color: var(--muted); }

.note-sg {
  margin: 10px auto 0; max-width: 640px; font-size: .8rem; color: #8a5a00;
  background: #fff6e0; border: 1px dashed #e0b84a; padding: 8px 12px; border-radius: 8px;
}

/* ============ HANG RAIL ============ */
.hang-rail-wrap {
  background: linear-gradient(180deg, #f7f5f2 0%, #ebe8e3 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 12px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hang-rail-stage {
  position: relative;
  min-height: 360px;
  padding: 30px 0 10px;
}
.rail-bar {
  position: absolute; left: 4%; right: 4%; top: 42px; height: 6px;
  background: linear-gradient(180deg, #b0b0b0, #6e6e6e 45%, #9a9a9a);
  border-radius: 4px;
  box-shadow: 0 2px 0 #555, 0 6px 12px rgba(0,0,0,.12);
  z-index: 1;
}
.rail-bar::before, .rail-bar::after {
  content: ""; position: absolute; top: -8px; width: 14px; height: 22px;
  background: linear-gradient(90deg, #888, #555); border-radius: 3px;
}
.rail-bar::before { left: -6px; }
.rail-bar::after { right: -6px; }

.rail-track {
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(8px, 2.2vw, 28px);
  position: relative; z-index: 2;
  padding-top: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }

.garment {
  flex: 0 0 auto; width: 110px; scroll-snap-align: center;
  text-align: center; position: relative;
  transition: transform .35s ease, filter .35s ease;
  cursor: pointer;
  border: 0; background: transparent; padding: 0;
  color: inherit;
}
.garment .hook {
  width: 2px; height: 28px; background: #666; margin: 0 auto;
  position: relative; z-index: 3;
}
.garment .tag {
  position: absolute; top: 18px; right: 8px;
  background: #fff; border: 1px solid #ccc; font-size: .68rem; font-weight: 700;
  padding: 2px 5px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
  z-index: 4;
}
.garment .art {
  width: 110px; height: 220px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: center;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.12));
  transition: transform .4s ease;
  transform-origin: top center;
  transform: perspective(600px) rotateY(-55deg) scale(.92);
}
.garment .art img { width: 100%; height: auto; pointer-events: none; }
.garment.active {
  width: 150px; z-index: 5;
}
.garment.active .art {
  transform: perspective(600px) rotateY(0deg) scale(1.05);
  width: 150px; height: 260px;
}
.garment:not(.active) { filter: saturate(.85); opacity: .92; }
.garment .label {
  margin-top: 8px; font-weight: 600; font-size: .9rem;
  opacity: 0; transition: opacity .2s;
}
.garment.active .label { opacity: 1; }

.rail-caption {
  text-align: center; margin-top: 8px; color: var(--muted); font-size: .95rem;
}
.rail-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Detail panel (lift-off) */
.detail-panel {
  display: none;
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  grid-template-columns: 1.2fr .8fr;
}
.detail-panel.open { display: grid; }
.detail-visual {
  background: #f7f5f2; min-height: 360px;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  position: relative;
}
.detail-visual img { max-height: 340px; width: auto; }
.detail-visual .sg-mark {
  position: absolute; left: 12px; bottom: 12px; font-size: .7rem;
  background: #fff6e0; border: 1px dashed #e0b84a; padding: 4px 8px; border-radius: 6px;
}
.detail-info { padding: 28px 26px; }
.detail-info .idx { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.detail-info h3 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.02em; }
.detail-info .price { font-size: 1.15rem; margin-bottom: 16px; }
.view-toggle { display: flex; gap: 16px; margin-bottom: 18px; font-size: .9rem; }
.view-toggle button {
  background: none; border: 0; padding: 0 0 6px; border-bottom: 2px solid transparent; color: var(--muted);
}
.view-toggle button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.size-label { font-size: .72rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.sizes { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.sizes button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #bbb; background: #fff;
}
.sizes button.on { background: #111; color: #fff; border-color: #111; }
.add-cart {
  width: 100%; border: 0; background: #222; color: #fff; border-radius: var(--radius);
  padding: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.add-cart.loading::before {
  content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.detail-desc { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.close-detail {
  margin-top: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem;
}

@media (max-width: 800px) {
  .detail-panel.open { grid-template-columns: 1fr; }
  .garment { width: 96px; }
  .garment.active { width: 130px; }
}

/* ============ RUNWAY ============ */
.runway-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.runway-hero {
  padding: 36px 28px 8px; text-align: center;
}
.runway-hero h3 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.runway-hero p { margin: 0; color: var(--muted); }

.runway-stage {
  display: grid; grid-template-columns: 1.35fr .9fr; min-height: 480px;
}
.runway-visual {
  position: relative; background: #f0eeea;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px; overflow: hidden;
}
.runway-visual .look-img {
  max-height: 520px; width: auto; transition: filter .35s ease, transform .35s ease;
}
.runway-visual .tap-hint {
  position: absolute; left: 16px; bottom: 16px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.85); padding: 6px 10px; border-radius: 6px;
}
.hotspot {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: #111; color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
  transition: transform .15s ease, background .15s;
}
.hotspot:hover, .hotspot.on { background: #fff; color: #111; transform: translate(-50%, -50%) scale(1.08); }

.runway-side {
  border-left: 1px solid var(--line); background: #faf9f7; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.runway-side .pieces-label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.piece {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; border: 1px solid transparent;
  background: #fff;
}
.piece.on { border-color: #111; }
.piece img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #eee; }
.piece .meta .brand { font-size: .68rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.piece .meta .name { font-weight: 600; }
.piece .meta .price { font-size: .9rem; }
.piece .plus {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ccc; background: #fff;
  display: grid; place-items: center; font-size: 1rem;
}
.piece .num { font-size: .7rem; color: var(--muted); margin-bottom: 2px; }

.bundle {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.bundle p { margin: 0 0 6px; font-size: .92rem; }
.bundle .save { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.bundle .totals { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.bundle .was { text-decoration: line-through; color: var(--muted); }
.bundle .now { font-size: 1.2rem; font-weight: 700; }
.bundle .btn { width: 100%; }

.runway-controls {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 16px 28px; border-top: 1px solid var(--line);
}
.runway-controls .dots { display: flex; gap: 10px; align-items: center; }
.runway-controls .dots button {
  background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 4px;
}
.runway-controls .dots button.on { color: var(--ink); text-decoration: underline; }
.runway-controls .progress {
  width: min(280px, 40vw); height: 3px; background: #ddd; border-radius: 2px; overflow: hidden;
}
.runway-controls .progress > i {
  display: block; height: 100%; width: 0%; background: #111; transition: width .35s ease;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center;
}

@media (max-width: 900px) {
  .runway-stage { grid-template-columns: 1fr; }
  .runway-side { border-left: 0; border-top: 1px solid var(--line); }
  .runway-visual { min-height: 420px; }
}

/* Features grid */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.feature h4 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

.compare {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
  font-size: .92rem;
}
.compare div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare .head { font-weight: 700; background: #f0eeea; }
.compare .good { color: var(--ok); font-weight: 600; }
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
}

/* Footer / legal */
.site-footer {
  border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .88rem;
}
.site-footer .inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: #111; color: #fff; padding: 12px 18px; border-radius: var(--radius);
  transition: transform .25s ease; z-index: 50; font-size: .9rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.legal-page { max-width: 720px; margin: 40px auto; padding: 0 16px 60px; }
.legal-page h1 { letter-spacing: -.02em; }
.legal-page p, .legal-page li { color: var(--muted); }
