/* HeyPebble! website: mostly white, warm orange accent, fun rounded fonts.
   Image-led layout: full-width renders, alternating rows, no icon-card grids. */
:root {
  --orange: #FF8A1F;
  --orange-dark: #E8730A;
  --orange-soft: #FFF2E5;
  --ink: #1F1B16;
  --muted: #6B645C;
  --line: #EFE9E2;
  --white: #FFFFFF;
  --tint: #FFFAF5;
  --screen: #141210;
  --radius: 24px;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .logo, .btn, summary, dt { font-family: var(--head); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange); color: var(--white);
  border: 0; border-radius: 999px;
  padding: 0.85em 1.6em;
  font-size: 1.05rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--orange-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-dark); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: 0 0 0 2px var(--line) inset, 0 6px 0 var(--line); }
.btn-ghost:hover { box-shadow: 0 0 0 2px var(--orange) inset, 0 8px 0 var(--line); }
.btn-small { padding: 0.55em 1.1em; font-size: 0.95rem; box-shadow: 0 4px 0 var(--orange-dark); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.bang { color: var(--orange); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: 38px; height: 30px; border-radius: 12px 12px 14px 14px; background: var(--screen);
}
.logo-mark span { width: 7px; height: 11px; border-radius: 4px; background: var(--orange); animation: blink 6s infinite; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 26px); }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- Sections ---------- */
.section, .hero { scroll-margin-top: 72px; }
.section { padding: clamp(64px, 9vw, 112px) clamp(16px, 5vw, 64px); }
.section-tint { background: var(--tint); }
.intro { max-width: 680px; margin: 0 auto 2.4em; text-align: center; }
.intro p { color: var(--muted); font-size: 1.1rem; }
.link { color: var(--orange-dark); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.aside { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--orange); padding-left: 14px; }
.small-print { color: var(--muted); font-size: 0.95rem; max-width: 620px; margin: 1.6em auto 0; }

/* Images with an honest "concept render" tag */
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.shot img { width: 100%; }
.shot.dark { background: #111; }
.tag {
  position: absolute; right: 12px; top: 12px;
  background: rgba(255, 255, 255, 0.85); color: var(--muted);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px;
}
.wide { max-width: var(--page); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--page); margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(16px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.hl { color: var(--orange); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 16px; }
.note { color: var(--muted); font-size: 0.95rem; max-width: 460px; }
.hero-img { box-shadow: 0 30px 60px -20px rgba(31, 27, 22, 0.25); transform: rotate(1.5deg); }

/* ---------- Place / Read / Load / Talk ---------- */
.steps-inline {
  list-style: none; counter-reset: step;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  max-width: var(--page); margin: 28px auto 0; padding: 0;
  color: var(--muted);
}
.steps-inline li { counter-increment: step; }
.steps-inline li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-right: 8px; border-radius: 50%;
  background: var(--orange); color: var(--white); font: 700 0.85rem var(--head);
}
.steps-inline strong { color: var(--ink); }

/* ---------- The cast ---------- */
.cast-list {
  max-width: 900px; margin: 34px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px;
}
.cast-list div { padding: 14px 0; border-top: 2px solid var(--line); }
.cast-list dt { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.cast-list dd { margin: 0; color: var(--muted); }
.cast-list div:last-child { grid-column: 1 / -1; }

/* ---------- Alternating rows ---------- */
.rows { display: grid; gap: clamp(64px, 9vw, 110px); }
.row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--page); margin: 0 auto; width: 100%;
}
.row-flip .shot { order: 2; }
.row-text p { color: var(--muted); }
.row-text p.aside { color: var(--muted); }

/* ---------- Specs list ---------- */
.specs { list-style: none; padding: 0; margin: 0 0 1.4em; }
.specs li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs span { flex: 0 0 76px; font-family: var(--head); font-weight: 600; color: var(--orange-dark); }

/* ---------- Shapes ---------- */
.shapes { max-width: var(--page); margin: clamp(72px, 10vw, 120px) auto 0; }
.shape-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shape-pair .shot { aspect-ratio: 1; }
.shape-pair img { height: 100%; object-fit: cover; }
.shape-pair figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--white); padding: 5px 12px; border-radius: 999px;
  font: 600 0.95rem var(--head);
}

/* ---------- Who ---------- */
.who { max-width: 640px; margin: 0 auto; text-align: center; }
.who p { color: var(--muted); font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 2em auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-size: 1.2rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.7rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

/* ---------- Waitlist ---------- */
.waitlist { padding-top: 32px; }
.waitlist-card {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: var(--orange-soft); border-radius: 32px;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px);
}
.mini-pebble {
  width: 74px; height: 58px; margin: 0 auto 18px;
  background: var(--screen); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 0 0 6px var(--white);
}
.mini-pebble span { width: 13px; height: 20px; border-radius: 7px; background: var(--orange); animation: blink 3.5s infinite; }
.waitlist-card > p { color: var(--muted); }
.waitlist-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 10px; max-width: 640px; }
.waitlist-form input, .waitlist-form select {
  flex: 1 1 200px; font: inherit; color: var(--ink);
  padding: 0.85em 1.1em; border: 2px solid var(--white); border-radius: 999px;
  background: var(--white); outline: none;
}
.waitlist-form input:focus, .waitlist-form select:focus { border-color: var(--orange); }
.form-msg { min-height: 1.6em; font-weight: 700; margin: 6px 0; }
.form-msg.ok { color: #1A8F5E; }
.form-msg.err { color: #C2410C; }
.fineprint { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 56px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); }
.logo-footer { justify-content: center; margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 18px 0; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--orange-dark); }
.copyright { font-size: 0.85rem; }

/* ---------- Privacy page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) 20px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }

@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .row { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .lead, .note { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-img { transform: none; }
  .row-flip .shot { order: 0; }
}
@media (max-width: 680px) {
  .nav-links a:not(.btn) { display: none; }
  .logo { font-size: 1.25rem; }
  .cast-list { grid-template-columns: 1fr; }
  .shape-pair { grid-template-columns: 1fr; }
  .steps-inline { flex-direction: column; align-items: flex-start; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
