/* ============================================================
   Chitron's — Design System & Homepage Styles
   Palette, type and spacing match docs/02-ARCHITECTURE.md §2
   ============================================================ */

/* Self-hosted Manrope (variable) — no external font request */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blush:     #F8E8EC;
  --cream:     #FFF9F2;
  --pink:      #E9B8C5;
  --charcoal:  #292426;
  --mocha:     #B58A72;

  --ink:       #292426;
  --ink-soft:  #6B5E62;
  --line:      rgba(41, 36, 38, 0.12);
  --white:     #FFFFFF;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 30px;

  --shadow-sm: 0 2px 10px rgba(41, 36, 38, 0.05);
  --shadow:    0 14px 40px rgba(41, 36, 38, 0.10);

  --container: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(115deg, #F9E4EC 0%, #FCEEF0 38%, #FFF5E9 72%, #F8E4E8 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--mocha);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mocha);
}
.lede { color: var(--ink-soft); font-size: clamp(14px, 1.6vw, 17px); }
.section h2, .story h2, .bulk h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ============================================================
   1. ANNOUNCEMENT TICKER
   ============================================================ */
.announcement {
  background: var(--charcoal);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .02em;
  overflow: hidden;
}
.ticker { overflow: hidden; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker__track span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 34px;
  white-space: nowrap;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track strong { font-weight: 800; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   2. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.logo__dot { color: var(--mocha); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--blush); color: var(--ink); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.currency {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.currency:hover { border-color: var(--mocha); }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.icon-btn:hover { border-color: var(--mocha); transform: translateY(-1px); }
.icon-btn svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 10px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s;
}

/* ============================================================
   3. HERO
   ============================================================ */
.hero { padding-top: clamp(14px, 2.4vw, 28px); }
.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 80% at 20% 20%, #FBE3EA 0%, transparent 60%),
    radial-gradient(50% 70% at 85% 25%, #FFF0DE 0%, transparent 65%),
    linear-gradient(120deg, #F6DDE3 0%, #FDF0E4 55%, #EFCBD5 100%);
  box-shadow: var(--shadow);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .65;
}
.hero__glow--a { width: 34%; aspect-ratio: 1; left: 4%; bottom: -18%; background: #E9B8C5; }
.hero__glow--b { width: 28%; aspect-ratio: 1; right: 8%; top: -14%; background: #F3D4B9; }

.hero__scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 32px);
}
.polaroid {
  width: clamp(96px, 17vw, 210px);
  padding: clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px) clamp(18px, 2.4vw, 30px);
  background: #FFFDF9;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(41, 36, 38, .16);
  rotate: var(--rot, 0deg);
  translate: 0 var(--y, 0);
}
.polaroid .ph {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}
.polaroid i {
  display: block;
  margin-top: clamp(4px, .8vw, 10px);
  font-size: clamp(8px, 1vw, 12px);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}
.polaroid--1 { --rot: -8deg; --y: 10px; }
.polaroid--2 { --rot: 3deg;  --y: -14px; z-index: 2; }
.polaroid--3 { --rot: 9deg;  --y: 16px; }

.hero__note {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .72);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Owner-supplied banner: text is baked into the photo, so never crop the edges */
.hero__banner {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- placeholder "photos" ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F3D7DD, #FFF3E6);
}
.ph::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  filter: blur(18px);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 1px, transparent 1px 7px);
  opacity: .5;
}
.ph--1 { background: linear-gradient(135deg, #F6D9DF 0%, #FFF1E4 55%, #E9B8C5 100%); }
.ph--2 { background: linear-gradient(140deg, #E9D3C6 0%, #FFF6EC 50%, #D9B6C0 100%); }
.ph--3 { background: linear-gradient(160deg, #F3DFE6 0%, #FFF8F0 45%, #C9A08F 100%); }
.ph--4 { background: linear-gradient(120deg, #EFE0D7 0%, #FDF3EA 55%, #E7C3CC 100%); }
.ph--5 { background: linear-gradient(150deg, #F7E3E8 0%, #FDF6EE 50%, #B58A72 100%); }
.ph--6 { background: linear-gradient(130deg, #F1D8DE 0%, #FFF4E8 55%, #D8B3A1 100%); }
.ph--7 { background: linear-gradient(145deg, #F9EBEF 0%, #FFFAF3 45%, #E3BFC9 100%); }
.ph--8 { background: linear-gradient(125deg, #EFD9E0 0%, #FDF2E7 60%, #C9A795 100%); }

/* ============================================================
   4. WELCOME / LOGO
   ============================================================ */
.welcome { padding: clamp(56px, 9vw, 110px) 0; }
.welcome__inner { text-align: center; }
.wordmark {
  font-size: clamp(52px, 10vw, 128px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: .95;
  margin: 10px 0 18px;
}
.welcome__tagline {
  font-size: clamp(17px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

/* ============================================================
   5. SECTIONS + RAILS
   ============================================================ */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint {
  background: linear-gradient(180deg, rgba(255, 249, 242, .70), rgba(255, 249, 242, .30));
  border-block: 1px solid rgba(41, 36, 38, .06);
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.view-all {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .18s, border-color .18s;
}
.view-all:hover { color: var(--ink); border-color: var(--ink); }

.rail {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
  cursor: grab;
}
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: 6px; }

.card {
  flex: 0 0 clamp(200px, 25vw, 268px);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
}
.card__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}
.card__badge--new { background: var(--mocha); }
.card__body { padding: 13px 15px 17px; }
.card__title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.card__price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
}
.card__price s {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.rail-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================================
   6. STORY
   ============================================================ */
.story { padding: clamp(24px, 4vw, 48px) 0; }
.story__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.story__media {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.story__copy { display: grid; gap: 16px; justify-items: start; }
.story__copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: clamp(14px, 1.6vw, 17px);
  max-width: 46ch;
}

/* ============================================================
   7. HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 48px);
}
.step {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--charcoal);
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.step p { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   8. REVIEWS
   ============================================================ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 44px);
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--mocha); letter-spacing: 3px; font-size: 13px; }
.review blockquote {
  margin: 14px 0 20px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blush);
  font-weight: 800;
  font-size: 14px;
}
.review figcaption strong { display: block; font-size: 13.5px; font-weight: 750; }
.review figcaption small { display: block; font-size: 11.5px; color: var(--ink-soft); }

/* ============================================================
   9. BULK BANNER
   ============================================================ */
.bulk {
  padding: clamp(20px, 4vw, 40px) 0 clamp(56px, 8vw, 96px);
}
.bulk__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(181, 138, 114, .55), transparent 60%),
    linear-gradient(120deg, #332C2F 0%, #292426 100%);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.bulk h2 { max-width: 18ch; }
.bulk p:not(.eyebrow) {
  margin-top: 12px;
  max-width: 46ch;
  color: rgba(255, 249, 242, .72);
  font-size: 14.5px;
}
.bulk .eyebrow { color: var(--pink); }
.bulk__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--charcoal); color: var(--cream); }
.btn--primary:hover { background: #3A3236; }
.bulk .btn--primary { background: var(--cream); color: var(--charcoal); }
.bulk .btn--primary:hover { background: #fff; }
.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: rgba(255, 249, 242, .35);
}
.btn--ghost:hover { border-color: var(--cream); }

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(48px, 6vw, 76px) 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.footer__logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.footer__logo span { color: var(--mocha); }
.footer__brand p { color: rgba(255, 249, 242, .62); font-size: 13.5px; max-width: 34ch; }
.footer__col h3 {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 249, 242, .5);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 249, 242, .78);
  margin-bottom: 9px;
}
.footer__col a:hover { color: var(--cream); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 249, 242, .22);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.socials a:hover { background: rgba(255, 249, 242, .1); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 249, 242, .14);
  font-size: 11.5px;
  color: rgba(255, 249, 242, .55);
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: var(--cream); }

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: flex; }
  .header__inner { gap: 10px; }
  .logo { margin-inline: auto; }
  .currency { display: none; }
  .story__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .bulk__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .icon-btn:not(.icon-btn--cart) { display: none; }
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__frame--photo { aspect-ratio: 16 / 9; }
  .hero__frame--photo .hero__note { display: none; }
  .hero__scene { gap: 0; }
  .polaroid { width: 34vw; }
  .polaroid--1 { translate: -6vw 4vw; }
  .polaroid--3 { translate: 6vw 2vw; }
  .section__head { align-items: baseline; }
  .card { flex-basis: 74vw; }
  .steps { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .logo { font-size: 19px; }
  .card { flex-basis: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .card, .btn, .icon-btn { transition: none; }
  .card:hover { transform: none; }
}
