/* Bunny Book marketing — editorial system.
   Refined light purple: mostly white, soft lavender accents, oversized
   type, bordered grids, a dark CTA. Shared class names so the legal /
   contact pages inherit the same look. */
:root {
  --paper: #FFFFFF;
  --bg: #F7F4FD;
  --purple: #7C3AED;
  --purple-deep: #6D28D9;
  --purple-soft: #F3EEFE;
  --purple-line: #E9E2FA;
  --grad: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  --ink: #1E1B2E;
  --mute: #6B6480;
  --border: #ECE7F5;
  --success: #10B981;
  --shadow-sm: 0 1px 2px rgba(30, 27, 46, 0.04), 0 2px 8px rgba(30, 27, 46, 0.04);
  --shadow-md: 0 8px 28px rgba(30, 27, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(108, 56, 217, 0.10);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); text-decoration: none; }
a:hover { color: var(--purple); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 {
  font-family: "Quicksand", "Inter", sans-serif; font-weight: 700;
  letter-spacing: -0.03em; margin: 0 0 16px; line-height: 1.05; color: var(--ink);
}
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 16px; color: var(--mute); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.80); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--mute); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
/* hamburger — hidden on desktop, shown ≤720px (see media query) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--border); border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 0 auto;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; font-family: inherit;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { color: #fff; background: #322a4a; transform: translateY(-1px); }
.btn-outline { background: var(--paper); color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple-deep); background: var(--purple-soft); }

/* store badges — custom pill buttons, crisp on light + dark backgrounds */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 9px 18px 9px 16px; line-height: 1.05;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); color: #fff; box-shadow: var(--shadow-md); }
.store-badge svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store-badge .sb-text { display: flex; flex-direction: column; text-align: left; }
.store-badge .sb-top { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.82; }
.store-badge .sb-main {
  font-size: 16px; font-weight: 600; font-family: "Quicksand", sans-serif;
  letter-spacing: -0.01em;
}

/* hero — editorial */
.hero { padding: 100px 0 80px; }
.hero .kick {
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 13px; color: var(--purple-deep); margin-bottom: 24px;
}
.hero h1 { margin-bottom: 0; }
.hero h1 em {
  font-style: normal; position: relative; color: var(--purple);
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.16em; background: var(--purple-soft); z-index: -1; border-radius: 4px;
}
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-top: 36px; flex-wrap: wrap;
}
.hero-sub { font-size: 20px; line-height: 1.55; max-width: 520px; margin: 0; }
.spread { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.sp { aspect-ratio: 3 / 4; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.sp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp:nth-child(1) { background: linear-gradient(160deg, #EADCFB, #C9B3F2); }
.sp:nth-child(2) { background: linear-gradient(160deg, #F4ECFD, #DCC9F6); transform: translateY(-24px); }
.sp:nth-child(3) { background: linear-gradient(160deg, #E7DBFA, #B79AEC); }
.sp:nth-child(4) { background: linear-gradient(160deg, #F1E8FC, #D2BEF3); transform: translateY(-24px); }
@media (max-width: 880px) {
  .spread { grid-template-columns: repeat(2, 1fr); }
  .sp { transform: none !important; }
}

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 620px; margin: 0 0 56px; }
.section-head p { font-size: 18px; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 12px; color: var(--purple-deep); margin-bottom: 14px;
}

/* steps — bordered grid */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); padding: 44px 36px; }
.step-num {
  font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 40px;
  color: var(--purple-soft); -webkit-text-stroke: 1px var(--purple); margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }

/* features — bordered row */
.feature-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
}
@media (max-width: 880px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
.feature { text-align: center; padding: 40px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature:nth-child(4n) { border-right: 0; }
.feature .icon { font-size: 30px; margin-bottom: 10px; }
.feature .label { font-weight: 600; color: var(--ink); font-size: 15px; }

/* cta — dark bar */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--ink); color: #fff; border-radius: 28px; padding: 56px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0; }
.cta-strip p { color: rgba(255, 255, 255, 0.70); margin: 10px 0 0; font-size: 17px; }
.cta-strip .store-badges { margin: 0; }

/* footer */
footer { padding: 48px 0 36px; border-top: 1px solid var(--border); background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links a { margin-left: 24px; color: var(--mute); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.copyright { color: var(--mute); font-size: 13px; }

/* legal pages */
/* Only set vertical padding — these share the element with .container,
   whose horizontal padding (32px / 20px mobile) must show through. A
   shorthand here would zero it and the text would hit the screen edges. */
.legal { padding-top: 80px; padding-bottom: 96px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: 12px; line-height: 1.05; }
.legal .updated { color: var(--mute); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 1.6rem; margin-top: 44px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--mute); font-size: 16px; line-height: 1.75; }
.legal li { margin-bottom: 6px; }

/* contact form */
.contact { padding-top: 80px; padding-bottom: 96px; max-width: 560px; margin: 0 auto; }
.contact h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--paper); font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12); }
textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; display: none; }
.form-status.ok { background: #DCFCE7; color: #065F46; display: block; }
.form-status.err { background: #FEE2E2; color: #991B1B; display: block; }

/* ---- responsive: tablet & phone ---------------------------------------
   The component grids (.spread/.steps/.feature-row) already collapse at
   880px. These blocks fix the bits that had no mobile treatment: the nav
   (which overflowed), oversized section/hero/cta padding, and centering. */
@media (max-width: 720px) {
  .container { padding: 0 20px; }

  /* Nav: the inline links overflow a phone width, so collapse them into a
     hamburger that toggles a dropdown panel (JS adds .open). */
  .nav-inner { padding: 14px 0; position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0; background: var(--paper);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 24px; font-size: 16px; }
  .nav-links a.btn {
    margin: 8px 24px 6px; padding: 13px 20px; font-size: 15px;
    justify-content: center;
  }

  .hero { padding: 56px 0 48px; }
  .hero-foot { gap: 24px; margin-top: 28px; }
  .hero-sub { font-size: 17px; }
  .spread { margin-top: 40px; gap: 14px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }

  .cta-strip { padding: 36px 24px; text-align: center; justify-content: center; }
  .cta-strip .store-badges { justify-content: center; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-links a { margin: 0 12px; }

  .legal, .contact { padding-top: 56px; padding-bottom: 64px; }
}

@media (max-width: 460px) {
  /* The hero h1 has forced <br> breaks; the clamp floor (3rem) can overflow
     "photobooks," on a ~360px screen, so step it down a touch. */
  .hero h1 { font-size: 2.6rem; }
  .hero-sub { font-size: 16px; }
  .store-badges { width: 100%; justify-content: center; }
  .step { padding: 32px 24px; }
  .cta-strip { padding: 32px 20px; }
}
