/* Warm Engineering — landing page
   Palette (from brand kit): butter #F6C453 · coral #FF8A65 · paper #F8F5EF
   charcoal #2B2A26 · amber (glow only) #F2A65A */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunitosans.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --butter: #f6c453;
  --butter-soft: #fbf0d6;
  --coral: #ff8a65;
  --coral-deep: #f4744b;
  --paper: #f8f5ef;
  --cream: #fffdf8;
  --charcoal: #2b2a26;
  --ink-soft: #635f55;
  --amber: #f2a65a;
  --radius: 28px;
  --display: "Fredoka", "Avenir Next Rounded", system-ui, sans-serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  overflow-x: clip;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.28rem; margin-bottom: 0.45rem; }

a { color: inherit; }
.center { text-align: center; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-butter { background: var(--butter-soft); }

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.lede.strong { color: var(--charcoal); font-weight: 700; }

/* ---------- buttons: lit-from-within, like the device's button ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #47231a;
  background: radial-gradient(120% 150% at 50% 28%, #ffc48c 0%, #ffa478 34%, #ff8a65 64%, #f0703f 100%);
  border: none;
  border-radius: 999px;
  padding: 0.85em 1.7em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -7px 12px rgba(196, 66, 22, 0.22),
    0 4px 14px rgba(244, 116, 75, 0.3),
    0 0 22px rgba(242, 166, 90, 0.32);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
/* liquid-glass specular highlight */
.btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06) 45%, transparent 62%);
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -7px 12px rgba(196, 66, 22, 0.2),
    0 6px 18px rgba(244, 116, 75, 0.36),
    0 0 34px rgba(242, 166, 90, 0.5);
}
.btn:active { transform: translateY(0) scale(0.985); }

/* soft bloom where you tap, fades in and out */
.tap-glow {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 205, 0.95) 0%, rgba(255, 196, 130, 0.5) 52%, transparent 74%);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  animation: tap-bloom 0.7s ease-out forwards;
}
@keyframes tap-bloom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(15); }
}

/* the main CTAs breathe gently, like the device at dusk */
.btn-big { animation: btn-breathe 4.5s ease-in-out infinite; }
@keyframes btn-breathe {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(242, 166, 90, 0.18)); }
  50% { filter: drop-shadow(0 0 16px rgba(242, 166, 90, 0.5)); }
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
}
.btn-big { font-size: 1.14rem; padding: 0.95em 2em; }
.btn-small {
  font-size: 0.95rem;
  padding: 0.6em 1.3em;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(196, 66, 22, 0.2),
    0 2px 8px rgba(244, 116, 75, 0.28),
    0 0 10px rgba(242, 166, 90, 0.2);
}
.btn-ghost {
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--butter);
  padding-bottom: 2px;
}
.btn-ghost:hover { border-color: var(--coral); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 44px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.88rem;
  text-transform: uppercase;
}
.nav-brand img { width: 24px; height: auto; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 24px clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.1rem);
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
/* hand-drawn coral squiggle under "You're just quiet." */
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.14em;
  height: 0.24em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 24" preserveAspectRatio="none"><path d="M4 14 C 40 4, 75 20, 110 12 S 180 4, 215 13 S 275 18, 296 9" fill="none" stroke="%23FF8A65" stroke-width="7" stroke-linecap="round"/></svg>') no-repeat center / 100% 100%;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 1.8rem;
}
.hero-cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-trust li::before { content: "●"; color: var(--butter); margin-right: 0.5em; font-size: 0.7em; vertical-align: 0.15em; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  position: relative;
  width: min(78%, 330px);
  filter: drop-shadow(0 24px 32px rgba(43, 42, 38, 0.18));
}

/* ---------- the glow (signature) ---------- */
.glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 166, 90, 0.55) 0%, rgba(242, 166, 90, 0.22) 42%, transparent 68%);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ---------- the moment: spoken dinner-table dialogue, not a chat app ---------- */
.dialogue {
  text-align: center;
  font-family: var(--display);
  margin-bottom: 2.6rem;
}
.dialogue-dad {
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.dialogue-kid {
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--charcoal);
  line-height: 1;
}
.moment h2, .moment .lede { text-align: center; }

/* ---------- how it works ---------- */
.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 3rem;
}
.beat {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: 0 2px 14px rgba(43, 42, 38, 0.06);
}
.beat p { color: var(--ink-soft); font-size: 0.99rem; }
.beat-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.6rem, 3.5vw, 3rem);
  margin-top: 3rem;
}
.feature h3 { font-size: 1.12rem; }
.feature h3::before { content: ""; display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--butter); margin-bottom: 0.8rem; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }

.lifestyle {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 3.5rem;
}
.lifestyle img {
  width: min(44%, 330px);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(43, 42, 38, 0.12);
}
.lifestyle img:first-child { transform: rotate(-1.6deg); }
.lifestyle img:last-child { transform: rotate(1.4deg); }

/* ---------- privacy band ---------- */
.privacy {
  background: var(--charcoal);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 6rem) 0;
}
.privacy h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
.privacy p { color: rgba(248, 245, 239, 0.75); max-width: 36em; margin: 0 auto; font-size: 1.1rem; }

/* ---------- version cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: 3rem;
}
.card {
  position: relative;
  background: var(--cream);
  border-radius: 34px;
  padding: 2.4rem 2.1rem 2.1rem;
  box-shadow: 0 2px 16px rgba(43, 42, 38, 0.07);
  display: flex;
  flex-direction: column;
}
.card-featured {
  background: var(--butter);
  box-shadow: 0 10px 34px rgba(246, 196, 83, 0.5);
}
.card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.4em 1.1em;
  border-radius: 999px;
  white-space: nowrap;
}
.card h3 { font-size: 1.45rem; }
.price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  margin: 0.3rem 0 0.2rem;
}
.price-plus {
  font-size: 1.35rem;
  white-space: nowrap;
}
.price-sub {
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.35rem;
}
.card-tag { color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; margin-bottom: 1.2rem; }
.card-featured .card-tag { color: rgba(43, 42, 38, 0.72); }
.card ul { list-style: none; margin-bottom: 1.8rem; flex-grow: 1; }
.card li { padding-left: 1.6em; position: relative; margin-bottom: 0.7em; font-size: 0.98rem; }
.card li::before { content: "✓"; position: absolute; left: 0; font-family: var(--display); font-weight: 600; color: var(--coral-deep); }
.card-featured li::before { color: var(--charcoal); }
.card-btn { width: 100%; text-align: center; font-size: 1.08rem; }
.card-featured .card-btn {
  background: radial-gradient(120% 150% at 50% 25%, #4a4841 0%, #35332e 55%, #23221e 100%);
  color: var(--paper);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -6px 10px rgba(0, 0, 0, 0.3),
    0 4px 14px rgba(43, 42, 38, 0.35),
    0 0 20px rgba(242, 166, 90, 0.18);
}
.card-featured .card-btn:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -6px 10px rgba(0, 0, 0, 0.28),
    0 6px 18px rgba(43, 42, 38, 0.4),
    0 0 30px rgba(242, 166, 90, 0.35);
}
.card-featured .card-btn::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 45%, transparent 62%);
}
.card-featured .tap-glow {
  background: radial-gradient(circle, rgba(255, 214, 150, 0.85) 0%, rgba(242, 166, 90, 0.4) 52%, transparent 74%);
}
.cards-note { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin-top: 2rem; }

/* ---------- FAQ ---------- */
#faq details {
  background: var(--cream);
  border-radius: 20px;
  padding: 1.1rem 1.5rem;
  margin-top: 0.9rem;
  box-shadow: 0 1px 8px rgba(43, 42, 38, 0.05);
}
#faq details:first-of-type { margin-top: 2.6rem; }
#faq summary {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--coral-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { padding: 0.8rem 0 0.4rem; color: var(--ink-soft); }

/* ---------- reserve ---------- */
.reserve {
  position: relative;
  background: var(--butter);
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  overflow: hidden;
}
.reserve .container { position: relative; }
.glow-small {
  width: 560px;
  height: 560px;
  inset: auto;
  left: 50%;
  top: -280px;
  transform: translateX(-50%);
  opacity: 0.5;
}
.reserve h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.reserve .lede { color: rgba(43, 42, 38, 0.75); max-width: 30em; margin: 0 auto 2.2rem; }

.sku-toggle {
  display: inline-flex;
  background: rgba(43, 42, 38, 0.08);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 1.4rem;
}
.sku-toggle label { cursor: pointer; }
.sku-toggle input { position: absolute; opacity: 0; }
.sku-toggle span {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.55em 1.4em;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sku-toggle input:checked + span {
  background: var(--cream);
  box-shadow: 0 2px 8px rgba(43, 42, 38, 0.14);
}
.sku-toggle input:focus-visible + span { outline: 3px solid var(--charcoal); outline-offset: 2px; }

.form-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.form-row input[type="email"] {
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 0.9em 1.3em;
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--cream);
  color: var(--charcoal);
  width: min(100%, 340px);
}
.form-row input[type="email"]::placeholder { color: #a39d8f; }
.form-row input[type="email"]:focus { outline: none; border-color: var(--coral); }
#nickname { position: absolute; left: -9999px; height: 0; width: 0; border: 0; }
.form-note { font-size: 0.88rem; color: rgba(43, 42, 38, 0.6); margin-top: 1.1rem; }
.form-error { margin-top: 1rem; font-weight: 700; color: #a13c1e; }

.form-success {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(43, 42, 38, 0.12);
}
.success-title { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-soft); }
.form-success .success-hint { margin-top: 1rem; color: var(--charcoal); }

/* ---------- footer ---------- */
.footer {
  background: var(--paper);
  padding: 3.2rem 0 2.4rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.9rem;
}
.footer a { color: var(--charcoal); }
.footer-fine { margin-top: 0.5rem; font-size: 0.85rem; color: #938d7d; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(43, 42, 38, 0.1);
  text-align: center;
}
.sticky-cta .btn { width: 100%; max-width: 440px; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .beats, .features { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: minmax(0, 460px); }
}
@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1.6rem;
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 0; }
  .hero-visual img { width: min(52%, 220px); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
}
@media (max-width: 560px) {
  .nav-brand { gap: 7px; font-size: 0.78rem; letter-spacing: 0.13em; }
  .nav-brand img { width: 20px; }
  .btn-small { font-size: 0.88rem; padding: 0.55em 1.1em; }
  .hero h1 { font-size: clamp(1.9rem, 9.4vw, 2.4rem); }
  .hero-sub { font-size: 1.1rem; }
  .beats, .features { grid-template-columns: 1fr; }
  .beat { padding: 1.6rem 1.4rem; }
  .lifestyle { flex-direction: column; align-items: center; }
  .lifestyle img { width: min(88%, 330px); }
  .form-row .btn { width: min(100%, 340px); }
}
