@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --ink:    #10203E;
  --paper:  #F7F9FF;
  --cobalt: #174EE8;
  --coral:  #FF5B6E;
  --sun:    #FFD94A;
  --sky:    #DCE9FF;
  --line:   rgba(16,32,62,.1);
  --r:      14px;
  --shadow: 0 18px 48px rgba(16,32,62,.11);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
ul { list-style: none; }

/* ── SKIP + VISUALLY HIDDEN ── */
.skip, .visually-hidden {
  position: fixed; top: -80px; left: 1rem; z-index: 100;
  background: var(--sun); color: var(--ink); font-weight: 700;
  padding: .6rem 1rem; border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: .8rem; }
.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0); clip-path: inset(50%);
  height: 1px; overflow: hidden;
  position: absolute; white-space: nowrap; width: 1px;
  top: auto; left: auto;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }

/* ── EYEBROW ── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: .7rem; font-weight: 500; letter-spacing: .1em;
  color: var(--cobalt); text-transform: uppercase;
  margin-bottom: 1.1rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--cobalt); color: #fff;
  padding: .8rem 1.75rem; border-radius: 999px;
  font-size: .9rem; font-weight: 700; letter-spacing: -.01em;
  transition: background .18s, transform .1s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }

/* Sun button — dark text on bright yellow, for newsletter (on dark bg) */
.btn-sun {
  display: inline-block;
  background: var(--sun); color: var(--ink);
  padding: .8rem 1.75rem; border-radius: 999px;
  font-size: .9rem; font-weight: 700; letter-spacing: -.01em;
  transition: background .18s, transform .1s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-sun:hover { background: #ffe066; transform: translateY(-1px); }
.btn-sun:active { transform: scale(.98); }

.text-link {
  font-size: .88rem; font-weight: 600; opacity: .62;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: .05rem; transition: opacity .15s;
  white-space: nowrap;
}
.text-link:hover { opacity: 1; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  background: rgba(247,249,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex; align-items: center; gap: .4rem;
  font-size: 1.18rem; font-weight: 700; letter-spacing: -.06em;
  flex-shrink: 0;
}
.mark {
  background: var(--coral); color: var(--ink);
  width: 1.38rem; height: 1.38rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .76rem; font-weight: 800; letter-spacing: -.1em;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: clamp(.8rem, 2vw, 2.5rem); }
.nav-links a { font-size: .86rem; font-weight: 600; opacity: .6; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; }
.cart-btn {
  display: flex; align-items: center; gap: .4rem;
  background: none; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: .42rem .85rem; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-count {
  background: var(--coral); color: var(--ink);
  border-radius: 999px; padding: .04rem .36rem;
  font-size: .74rem; font-weight: 800;
  min-width: 1.1rem; text-align: center;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  min-height: calc(100dvh - 68px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 8vw, 8rem) clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
}
.hero-h1 {
  font-size: clamp(3.75rem, 9vw, 8.5rem);
  font-weight: 700; letter-spacing: -.078em; line-height: .94;
  margin-bottom: 1.5rem;
}
.hero-h1 em { color: var(--coral); font-style: normal; }
.hero-sub {
  font-size: clamp(.96rem, 1.5vw, 1.18rem);
  max-width: 28rem; opacity: .68; line-height: 1.6;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-img {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--sky) 0%, #c8d9ff 100%);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── WHY — stacked full-width + 3-col points grid ── */
.why {
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.why-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.why-h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700; letter-spacing: -.065em; line-height: .96;
}
.why-body {
  font-size: 1.05rem; opacity: .68; line-height: 1.65;
  max-width: 36rem; align-self: end;
}
.why-points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.why-point {
  padding: 2.25rem 2rem 2.25rem 0;
  border-top: 2px solid var(--ink);
}
.why-point + .why-point { padding-left: 2rem; border-left: 1px solid var(--line); }
.point-num {
  font-family: 'DM Mono', monospace;
  font-size: .68rem; color: var(--cobalt); font-weight: 500;
  letter-spacing: .05em;
  display: block; margin-bottom: 1rem;
}
.point-label { font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; margin-bottom: .45rem; }
.point-detail { font-size: .9rem; opacity: .58; line-height: 1.55; }

/* ── STORY — 2-col split, image left (reversed from hero) ── */
.story {
  display: grid; grid-template-columns: 1.05fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-img { background: linear-gradient(145deg, var(--sky) 0%, #c8d9ff 100%); overflow: hidden; }
.story-img img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.story-copy {
  padding: clamp(3rem, 7vw, 7rem) clamp(2rem, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center;
}
.story-h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700; letter-spacing: -.05em; line-height: 1.02;
  margin-bottom: 1.4rem;
}
.story-body { font-size: 1rem; opacity: .66; line-height: 1.7; max-width: 32rem; margin-bottom: 2.25rem; }

/* ── SHOP — sky background, full-width header + auto grid ── */
.shop {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--sky);
  border-bottom: 1px solid rgba(23,78,232,.12);
}
.shop-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: end;
  margin-bottom: 3rem;
}
.shop-h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700; letter-spacing: -.065em; line-height: .96;
}
.shop-sub { font-size: 1rem; opacity: .68; max-width: 28rem; line-height: 1.6; }
.shop-cta-wrap { display: flex; align-items: flex-end; justify-content: flex-end; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--paper); border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(23,78,232,.12);
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-thumb {
  aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(145deg, var(--sky) 0%, #c4d8ff 100%);
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 1.5rem 1.5rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -.03em; margin-bottom: .35rem; }
.product-desc { font-size: .86rem; opacity: .6; line-height: 1.58; margin-bottom: 1.25rem; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-family: 'DM Mono', monospace; font-size: .96rem; font-weight: 500; letter-spacing: -.02em; }
/* Coral button: ink text to pass WCAG AA (5.4:1 vs 2.9:1 for white) */
.btn-add {
  background: var(--coral); color: var(--ink);
  border: none; border-radius: 999px;
  padding: .55rem 1.15rem; font-size: .82rem; font-weight: 800;
  cursor: pointer; letter-spacing: -.01em;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-add:hover { background: #ff7080; }
.btn-add:active { transform: scale(.97); }

/* ── MISSION — centered, full-width, ink text on white ── */
.mission {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 5rem);
  text-align: center; border-bottom: 1px solid var(--line);
}
.mission-quote {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  font-weight: 700; letter-spacing: -.055em; line-height: 1;
  color: var(--cobalt); max-width: 820px; margin: 0 auto 1.75rem;
}
.mission-body {
  font-size: 1.08rem; opacity: .65; line-height: 1.7;
  max-width: 44rem; margin: 0 auto;
}

/* ── NEWSLETTER — ink bg, intentional dark section ── */
.newsletter {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.newsletter .eyebrow { color: var(--sun); opacity: 1; }
.newsletter-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -.05em; line-height: 1.05;
  margin-top: .85rem;
}
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.email-row { display: flex; gap: .6rem; }
.email-input {
  flex: 1; background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 999px; color: var(--paper);
  padding: .8rem 1.3rem; font-size: .9rem;
  transition: border-color .15s; outline: none;
  min-width: 0;
}
.email-input::placeholder { color: rgba(255,255,255,.35); }
.email-input:focus { border-color: var(--sun); }
.form-msg { font-size: .82rem; min-height: 1.1rem; }
.form-msg.success { color: var(--sun); }
.form-msg.error { color: var(--coral); }

/* ── FOOTER ── */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem; opacity: .55;
  flex-wrap: wrap;
}
.footer .wordmark { opacity: 1; }

/* ── CART DRAWER ── */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 420px;
  background: var(--paper); border-left: 1px solid var(--line);
  z-index: 50; padding: 2rem;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(16,32,62,.13);
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.cart-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.03em; }
.cart-close {
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  width: 2.1rem; height: 2.1rem; cursor: pointer;
  display: grid; place-items: center; font-size: 1rem;
  transition: background .15s;
}
.cart-close:hover { background: var(--sky); }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
/* Designed empty state */
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%;
  gap: .85rem; text-align: center; padding: 2rem;
}
.cart-empty-icon { color: var(--ink); margin-bottom: .5rem; }
.cart-empty-text { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.cart-empty-sub { font-size: .86rem; opacity: .45; max-width: 18rem; line-height: 1.5; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.cart-item-img { width: 68px; height: 68px; border-radius: 10px; background: var(--sky); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: .9rem; margin-bottom: .18rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-family: 'DM Mono', monospace; font-size: .8rem; opacity: .55; }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.qty-btn {
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  width: 1.65rem; height: 1.65rem; cursor: pointer;
  font-size: .92rem; display: grid; place-items: center;
  transition: background .12s; line-height: 1;
}
.qty-btn:hover { background: var(--sky); }
.qty-val { font-family: 'DM Mono', monospace; font-size: .82rem; width: 1.5rem; text-align: center; }
.cart-remove { background: none; border: none; cursor: pointer; opacity: .3; font-size: .94rem; transition: opacity .15s; padding: 0 0 0 .25rem; }
.cart-remove:hover { opacity: 1; }
.cart-footer { padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .85rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total-label { font-size: .86rem; opacity: .5; }
.cart-total-val { font-family: 'DM Mono', monospace; font-size: 1.1rem; font-weight: 600; }
.btn-checkout {
  width: 100%; padding: .9rem; background: var(--cobalt); color: #fff;
  border: none; border-radius: 999px; font-size: .96rem; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn-checkout:hover:not(:disabled) { background: var(--ink); transform: translateY(-1px); }
.btn-checkout:disabled { opacity: .38; cursor: not-allowed; }
.checkout-msg { font-size: .78rem; opacity: .5; text-align: center; min-height: 1rem; }
.cart-scrim {
  position: fixed; inset: 0;
  background: rgba(16,32,62,.38);
  z-index: 40; backdrop-filter: blur(2px);
  display: none;
}
.cart-scrim.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .why-header { grid-template-columns: 1fr; }
  .why-points { grid-template-columns: 1fr 1fr; }
  .why-point:nth-child(3) { border-left: none; padding-left: 0; }
  .shop-header { grid-template-columns: 1fr; }
  .shop-cta-wrap { justify-content: flex-start; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { min-height: 55vw; max-height: 58dvh; }
  .story { grid-template-columns: 1fr; }
  .story-img { order: -1; }
  .mission { text-align: left; }
  .newsletter { grid-template-columns: 1fr; gap: 2.5rem; }
  .email-row { flex-direction: column; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .why-points { grid-template-columns: 1fr; }
  .why-point + .why-point { border-left: none; padding-left: 0; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
