/* ============================================================
   ZANE'S CUSTOM BOOKMARKS — playful, kid-friendly, leather/paper
   ============================================================ */

:root {
  /* leather + paper palette */
  --paper:        #fdf6e7;
  --paper-deep:   #f7ecd0;
  --leather:      #7a4a1f;
  --leather-deep: #4a2a10;
  --leather-soft: #c08a52;
  --tan:          #f3e1bd;
  --cream:        #fffaee;

  /* fun accents */
  --pop-yellow:   #ffd23f;
  --pop-red:      #ee4d4d;
  --pop-green:    #4fb868;
  --pop-blue:     #3a8dde;

  --ink:          #2a1a0a;
  --muted:        #6f5a3e;
  --line:         #e2cfa0;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 6px rgba(74, 42, 16, 0.10);
  --shadow:    0 6px 18px rgba(74, 42, 16, 0.18);
  --shadow-lg: 0 18px 40px rgba(74, 42, 16, 0.25);

  --t-fast: 150ms;
  --t-normal: 280ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1200px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, button { font-family: inherit; }

html { scroll-behavior: smooth; }

body {
  font-family: "Quicksand", "Nunito", "Avenir Next", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(192, 138, 82, 0.08), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255, 210, 63, 0.10), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Fredoka", "Quicksand", "Avenir Next", system-ui, sans-serif;
  font-weight: 700;
  color: var(--leather-deep);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.75rem);
}
h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}

p { margin: 0 0 1em; }

a { color: var(--leather); text-decoration: none; }
a:hover { color: var(--leather-deep); }

.eyebrow {
  display: inline-block;
  background: var(--pop-yellow);
  color: var(--leather-deep);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.btn-icon { font-size: 0.9em; }
.btn-primary {
  background: var(--leather);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--leather-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--cream);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-big {
  padding: 1.15rem 2rem;
  font-size: 1.2rem;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(520px, 86vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(74, 42, 16, 0.40) 0%, rgba(74, 42, 16, 0.55) 60%, rgba(74, 42, 16, 0.78) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: 820px;
  width: 100%;
  animation: heroIn 800ms var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.hero-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pop-yellow);
  box-shadow: 0 0 10px var(--pop-yellow);
}
.hero-title {
  font-family: "Fredoka", "Quicksand", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.5rem);
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  line-height: 0.95;
}
.hero-accent {
  background: linear-gradient(120deg, var(--pop-yellow), #ff9a3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.1em;
}
.hero-sub {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-cta-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   WATCH-FULL-VIDEO BUTTON (lives in hero CTA row)
   ============================================================ */
.btn-watch {
  background: var(--pop-yellow);
  color: var(--leather-deep);
  box-shadow: var(--shadow);
  position: relative;
  padding-left: 1.1rem;
}
.btn-watch:hover {
  background: #ffdf60;
  color: var(--leather-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-watch:active { transform: translateY(0); }

.btn-play-circle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--leather);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.btn-play-circle svg { transform: translateX(1px); }

/* subtle pulse so it draws the eye but doesn't shout */
.btn-watch::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--pop-yellow);
  opacity: 0;
  animation: btnPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes btnPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.12); opacity: 0;   }
  100% { transform: scale(1.12); opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .btn-watch::before { display: none; }
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: vmodalIn 220ms var(--ease);
}
.vmodal[hidden] { display: none; }

@keyframes vmodalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.vmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vmodal-stage {
  position: relative;
  /* portrait 9:16 box, height-driven so the FULL video fits vertically */
  width: min(calc((100vh - 2rem) * 9 / 16), calc(100vw - 2rem));
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: vmodalStageIn 320ms var(--ease);
}
@supports (height: 100dvh) {
  .vmodal-stage {
    width: min(calc((100dvh - 2rem) * 9 / 16), calc(100vw - 2rem));
  }
}
@keyframes vmodalStageIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1);    }
}

.vmodal-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  /* video is 720x1280 (9:16) and stage is 9:16 — they match perfectly */
  object-fit: cover;
}

.vmodal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--leather-deep);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.vmodal-close:hover {
  transform: scale(1.08);
  background: #fff;
}

/* lock body scroll while modal open */
body.vmodal-open {
  overflow: hidden;
  touch-action: none;
}

/* Hide hero video while modal is open so its compositor layer can't punch through */
body.vmodal-open .hero-video {
  visibility: hidden;
}

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */
.about, .how, .picker, .order {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 4vw, 6rem) 1.25rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0.5rem auto 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  transform: rotate(-2deg);
}
.about-sticker {
  position: absolute;
  top: -16px;
  right: -10px;
  background: var(--pop-yellow);
  color: var(--leather-deep);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: rotate(8deg);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  font-weight: 600;
}
.about-list .emoji {
  font-size: 1.4rem;
  width: 2rem;
  text-align: center;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  background: var(--cream);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; }
}
.how-card {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal);
}
.how-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.how-num {
  position: absolute;
  top: -16px;
  left: -12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--leather);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.how-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* ============================================================
   PICKER SECTIONS (leather, tassel, stamps)
   ============================================================ */
.picker-tan {
  background: var(--tan);
  border-radius: var(--radius-lg);
}

/* leather tile cards */
.leather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  max-width: 940px;
  margin: 0 auto;
}
.leather-card {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
}
.leather-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.leather-card.is-selected {
  border-color: var(--leather);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(122, 74, 31, 0.15), var(--shadow);
}
.leather-swatch {
  width: 100%;
  height: 90px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.18);
}
.leather-card .name {
  font-weight: 700;
  color: var(--leather-deep);
}
.leather-card .check {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--pop-green);
  opacity: 0;
  transition: opacity var(--t-fast);
  font-size: 1.1rem;
}
.leather-card.is-selected .check { opacity: 1; }

/* chart image */
.chart {
  margin: 0 auto 1.75rem;
  max-width: 920px;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.chart img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* numbered grid (tassel, stamps) */
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.6rem;
  max-width: 920px;
  margin: 0 auto;
}
.num-btn {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: "Fredoka", "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--leather-deep);
  display: grid;
  place-items: center;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background var(--t-fast);
  position: relative;
}
.num-btn:hover {
  transform: scale(1.06);
  border-color: var(--leather-soft);
}
.num-btn.is-selected {
  background: var(--leather);
  color: #fff;
  border-color: var(--leather-deep);
  box-shadow: 0 0 0 4px rgba(122, 74, 31, 0.18);
}
.num-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.picker-note {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--muted);
}

/* ============================================================
   NAME STAMP
   ============================================================ */
.name-stamp-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.name-stamp-input {
  width: 100%;
  padding: 1.1rem 1.2rem;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  font-family: "Fredoka", "Quicksand", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--leather-deep);
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.name-stamp-input:focus {
  outline: none;
  border-color: var(--leather);
  box-shadow: 0 0 0 4px rgba(122, 74, 31, 0.15);
}

/* ============================================================
   ORDER FORM
   ============================================================ */
.order {
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.order-summary {
  max-width: 540px;
  margin: 0 auto 2rem;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  gap: 1rem;
}
.sum-row:last-child { border-bottom: none; }
.sum-row span { color: var(--muted); }
.sum-row strong { color: var(--leather-deep); text-align: right; }
.sum-total { font-size: 1.15rem; padding-top: 0.85rem; }
.sum-total strong { color: var(--pop-green); font-size: 1.3rem; }

.order-form {
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-narrow { flex: 0 0 auto; }
.field label {
  font-weight: 700;
  color: var(--leather-deep);
  font-size: 0.95rem;
}
.req { color: var(--pop-red); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.address-wrap { width: 100%; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leather);
  box-shadow: 0 0 0 4px rgba(122, 74, 31, 0.12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 90px 110px;
  gap: 0.85rem;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
.hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.address-wrap { position: relative; }
.photon-box {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
}
.photon-box.show { display: block; }
.photon-item {
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.photon-item:last-child { border-bottom: none; }
.photon-item:hover, .photon-item.active { background: var(--cream); }
.photon-item .p-line1 { font-weight: 700; color: var(--leather-deep); font-size: 0.95rem; }
.photon-item .p-line2 { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.photon-loading {
  padding: 0.85rem 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* math captcha */
.math-captcha .math-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.math-q {
  font-family: "Fredoka", "Quicksand", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--leather-deep);
  background: var(--tan);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  user-select: none;
}
.math-captcha input {
  width: 90px !important;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.form-status {
  text-align: center;
  font-weight: 600;
  min-height: 1.5em;
}
.form-status.is-error { color: var(--pop-red); }
.form-status.is-success { color: var(--pop-green); }
.form-status.is-loading { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--muted);
}
.foot p { margin: 0.25rem 0; }
.foot-small { font-size: 0.85rem; opacity: 0.75; }

/* ============================================================
   FONT IMPORT (Google Fonts — Fredoka + Quicksand)
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Quicksand:wght@500;600;700&display=swap");

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .hero-video { display: none; }
}
