/* ==========================================================================
   Family Side — SON crossbody. Sales page.
   Design tokens sourced from brand core: Pantone palette, Akrobat type scale.
   ========================================================================== */

:root {
  /* Brand colors */
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --gray: #D9D8D6;
  --dark-brown: #382E2C;
  --brown: #653024;
  --light-brown: #9A3324;
  --light-red: #D0C4C5;
  --green: #94A596;
  --tan: #E1B7A7;

  /* Product colors */
  --swatch-black: #242220;
  --swatch-brown: #A96A34;

  /* Semantic */
  --ink: var(--dark-brown);
  --ink-soft: rgba(56, 46, 44, .64);
  --ink-faint: rgba(56, 46, 44, .40);
  --bg: var(--white);
  --bg-alt: var(--light-gray);
  --line: var(--gray);
  --accent: var(--brown);
  --accent-2: var(--light-brown);

  /* Type */
  --font: 'Poppins', 'Akrobat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Layout */
  --maxw: 1280px;
  --pad: 24px;
}

@media (min-width: 641px) {
  :root { --pad: 40px; }
}
@media (min-width: 1025px) {
  :root { --pad: 64px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Type scale (Akrobat → Poppins fallback) ---------- */

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

.h1 { font-size: 40px; line-height: 48px; font-weight: 700; }
.h2 { font-size: 32px; line-height: 40px; font-weight: 700; }
.h3 { font-size: 26px; line-height: 32px; font-weight: 700; }
.h4 { font-size: 20px; line-height: 28px; font-weight: 700; }
.eyebrow {
  font-size: 13px; line-height: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent);
}
.body-lg { font-size: 20px; line-height: 28px; font-weight: 400; color: var(--ink-soft); }
.body { font-size: 17px; line-height: 26px; font-weight: 400; color: var(--ink-soft); }
.caption { font-size: 13px; line-height: 20px; font-weight: 400; color: var(--ink-faint); }

@media (min-width: 641px) {
  .h1 { font-size: 48px; line-height: 56px; }
  .h2 { font-size: 36px; line-height: 44px; }
  .h3 { font-size: 28px; line-height: 32px; }
}
@media (min-width: 1025px) {
  .h1 { font-size: 60px; line-height: 68px; }
  .h2 { font-size: 48px; line-height: 56px; }
  .body-lg { font-size: 24px; line-height: 36px; }
}

.on-dark { color: var(--white); }
.on-dark .body, .on-dark .body-lg { color: rgba(255,255,255,.72); }
.on-dark .eyebrow { color: var(--tan); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--dark-brown); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark { background: var(--white); color: var(--dark-brown); }
.btn-on-dark:hover { background: var(--tan); }

.btn-ghost-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-on-dark:hover { border-color: var(--white); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid rgba(217,216,214,0);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-solid {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.nav-brand img { width: 24px; height: 24px; }
.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-price { font-size: 14px; font-weight: 600; display: none; }
@media (min-width: 641px) { .nav-price { display: inline; } }

/* ---------- Sticky buy bar ---------- */

.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}
.buybar.is-visible { transform: translateY(0); }
.buybar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad);
}
.buybar-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.buybar-id img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.buybar-id div { min-width: 0; }
.buybar-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-size: 13px; color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 132px;
  padding-bottom: 40px;
  background: var(--bg-alt);
  overflow: hidden;
}
@media (min-width: 1025px) { .hero { padding-top: 168px; padding-bottom: 0; } }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero-eyebrow { display: flex; align-items: center; gap: 8px; }
.hero h1 { max-width: 900px; }
.hero-sub { max-width: 620px; }
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}
.hero-price .was { font-size: 15px; font-weight: 400; color: var(--ink-faint); text-decoration: line-through; }
.hero-price .split { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }

.hero-media {
  position: relative;
  margin-top: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-media img {
  width: 100%;
  max-width: 920px;
  height: auto;
  will-change: transform;
}
.hero-scrollcue {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 12px;
}
.hero-scrollcue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Statement ---------- */

.statement {
  background: var(--dark-brown);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}
.statement p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}
.statement p em { color: var(--tan); font-style: normal; }
@media (min-width: 641px) { .statement p { font-size: 38px; } }
@media (min-width: 1025px) { .statement p { font-size: 48px; } }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .08s; }
.reveal-delay-2.is-visible { transition-delay: .16s; }
.reveal-delay-3.is-visible { transition-delay: .24s; }

/* ---------- Feature sections ---------- */

.feature {
  padding: 88px 0;
  overflow: hidden;
}
.feature.alt { background: var(--bg-alt); }
.feature-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-grid.flip .feature-media { order: 2; }
  .feature-grid.flip .feature-copy { order: 1; }
}
.feature-copy { max-width: 480px; }
.feature-copy .eyebrow { margin-bottom: 12px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy .body { margin-top: 16px; }
.feature-media {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-alt);
}
.feature.alt .feature-media { background: var(--white); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature-media:hover img { transform: scale(1.035); }

.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 24px;
}
.feature-list li b { color: var(--ink); font-weight: 600; }
.feature-list .dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}

/* ---------- Compartment cards ---------- */

.compart-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
}
@media (min-width: 641px) { .compart-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1025px) { .compart-grid { grid-template-columns: repeat(5, 1fr); } }
.compart-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px 18px;
  border: 1px solid var(--line);
}
.compart-card .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.compart-card h4 { font-size: 15px; line-height: 20px; margin-bottom: 6px; }
.compart-card p { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }

.compart-media {
  margin-top: 40px;
  border-radius: 24px;
  overflow: hidden;
}
.compart-media img { width: 100%; }

/* ---------- Strap diagram ---------- */

.strap-diagram {
  margin-top: 48px;
  padding: 40px 28px 32px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--line);
}
.strap-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  margin: 0 8px;
}
.strap-fill {
  position: absolute;
  top: 0; left: 18%;
  height: 100%;
  width: 64%;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}
.reveal.is-visible .strap-fill { transform: scaleX(1); }
.strap-node {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%);
}
.strap-node.min { left: 18%; }
.strap-node.max { left: 82%; }
.strap-labels { display: flex; justify-content: space-between; margin-top: 18px; }
.strap-labels div { text-align: center; }
.strap-labels .num { font-size: 26px; font-weight: 700; }
.strap-labels .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Color picker ---------- */

.color-section { padding: 96px 0; text-align: center; }
.color-stage {
  position: relative;
  margin: 40px auto 0;
  max-width: 640px;
  border-radius: 28px;
  background: var(--bg-alt);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.color-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.color-stage img.is-active { opacity: 1; }

.color-picker {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
}
.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-soft);
}
.color-swatch .puck {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 4px var(--bg);
  transition: border-color .25s ease, transform .25s ease;
}
.color-swatch[data-color="black"] .puck { background: var(--swatch-black); }
.color-swatch[data-color="brown"] .puck { background: var(--swatch-brown); }
.color-swatch span.name { font-size: 14px; font-weight: 600; color: var(--ink); }
.color-swatch span.desc { font-size: 12px; }
.color-swatch.is-active .puck { border-color: var(--ink); transform: scale(1.08); }

/* ---------- Specs ---------- */

.specs { padding: 96px 0; }
.specs-table { margin-top: 40px; border-top: 1px solid var(--line); }
.specs-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 641px) {
  .specs-row { grid-template-columns: 260px 1fr; gap: 24px; }
}
.specs-key { font-size: 14px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.specs-val { font-size: 17px; color: var(--ink-soft); line-height: 26px; }

/* ---------- Craft ---------- */

.craft {
  position: relative;
  background: var(--dark-brown);
  color: var(--white);
  padding: 96px 0;
  overflow: hidden;
}
.craft-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .craft-grid { grid-template-columns: .9fr 1.1fr; } }
.craft-media { border-radius: 24px; overflow: hidden; }
.craft-media img { width: 100%; }
.craft-copy .eyebrow { color: var(--tan); }

/* ---------- Reviews ---------- */

.reviews { padding: 96px 0; background: var(--bg-alt); text-align: center; }
.stars { color: var(--accent); font-size: 22px; letter-spacing: 4px; margin-bottom: 20px; }
.review-quote {
  max-width: 720px;
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 600;
}
@media (min-width: 641px) { .review-quote { font-size: 30px; } }
.review-meta { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.review-meta b { color: var(--ink); }

/* ---------- Buy box ---------- */

.buybox { padding: 96px 0 112px; text-align: center; }
.buybox-card {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--bg-alt);
  border-radius: 28px;
  padding: 40px 28px;
}
@media (min-width: 641px) { .buybox-card { padding: 56px 64px; } }
.buybox-price { font-size: 40px; font-weight: 700; margin: 8px 0 4px; }
.buybox-split { font-size: 14px; color: var(--ink-soft); }
.buybox-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.pay-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pay-chip {
  font-size: 12px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.buybox-delivery { margin-top: 24px; }

/* ---------- FAQ ---------- */

.faq { padding: 96px 0; max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 24px 0;
  text-align: left;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; background: var(--ink); transition: transform .3s var(--ease), opacity .3s ease;
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }
.faq-item.is-open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-a p { margin: 0 0 24px; font-size: 15px; line-height: 24px; color: var(--ink-soft); }
.faq-item.is-open .faq-a { max-height: 240px; }

/* ---------- Footer ---------- */

footer { background: var(--dark-brown); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 780px) { .footer-top { flex-direction: row; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand div b { color: var(--white); font-size: 16px; display: block; }
.footer-brand div span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col h5 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col div, .footer-col a { display: block; font-size: 14px; line-height: 24px; }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
@media (min-width: 780px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
