/* Donut product page styles. Self-contained (doesn't depend on the shared
   site stylesheet) so changes to the main Criers site can never break this
   page, and vice versa. Mirrors the app's own design tokens 1:1 (see
   donut/Design/Theme.swift): warm off-white canvas, cornflower brand blue,
   coral + gold accents, 18px card radii. */

:root {
  color-scheme: light dark;
  --canvas: #f8f2ec;
  --surface: #fffcf8;
  --text: #2c2823;
  --text2: rgba(44, 40, 35, 0.62);
  --text3: rgba(44, 40, 35, 0.4);
  --hairline: rgba(44, 40, 35, 0.1);
  --brand: #5b7fe8;
  --brand-tint: rgba(91, 127, 232, 0.12);
  --coral: #ff9271;
  --coral-tint: rgba(255, 146, 113, 0.14);
  --gold: #ffb74d;
  --gold-tint: rgba(255, 183, 77, 0.16);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1e1a16;
    --surface: #2a2420;
    --text: #f3ece3;
    --text2: rgba(243, 236, 227, 0.66);
    --text3: rgba(243, 236, 227, 0.42);
    --hairline: rgba(243, 236, 227, 0.12);
    --brand: #8fa3f5;
    --coral: #ffa184;
    --gold: #ffc373;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--brand) 0%, #4a68c4 100%);
  color: #fff;
  padding: 64px 24px 56px;
  text-align: center;
}

.hero .icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  margin-bottom: 20px;
  cursor: pointer;
  animation: heroIn 0.6s ease both, iconBob 3.2s ease-in-out 0.6s infinite;
}

.hero .icon.wiggle { animation: iconWiggle 0.5s ease; }

.hero h1 { animation: heroIn 0.6s ease 0.08s both; }
.hero .tagline { animation: heroIn 0.6s ease 0.16s both; }
.badge-row { animation: heroIn 0.6s ease 0.24s both; }

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.hero .tagline {
  font-size: 18px;
  font-weight: 500;
  max-width: 480px;
  margin: 0 auto 28px;
  opacity: 0.96;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: badgePulse 2.6s ease-in-out infinite;
}

.coming-soon .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(11deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.24); }
  50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}

/* Sections */

main { padding: 56px 0 40px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 8px;
}

.section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 12px;
}

.section p.lead {
  color: var(--text2);
  font-size: 16px;
  max-width: 580px;
}

.section { margin-bottom: 56px; }

.section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible { opacity: 1; transform: translateY(0); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.feature-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.feature-card.brand .dot { background: var(--brand); }
.feature-card.coral .dot { background: var(--coral); }
.feature-card.gold .dot { background: var(--gold); }

.feature-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.feature-card p { font-size: 14px; color: var(--text2); margin: 0; }

.plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.plan-pill {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.plan-pill:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--brand);
  color: #fff;
}

.callout {
  background: var(--brand-tint);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text);
}

.callout strong { color: var(--brand); }

/* Donut Box flavor showcase */

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.flavor-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 10px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flavor-card:hover {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.flavor-card img { width: 56px; height: 56px; display: block; margin: 0 auto 8px; }
.flavor-card span { font-size: 12px; font-weight: 600; color: var(--text2); }

/* FAQ */

.faq-item {
  border-bottom: 0.5px solid var(--hairline);
  padding: 18px 0;
}

.faq-item:first-child { border-top: 0.5px solid var(--hairline); }

.faq-item summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 12px 0 0;
  color: var(--text2);
  font-size: 14px;
  max-width: 600px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}

.site-footer .row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.site-footer a { color: var(--text2); font-weight: 500; }

/* Document pages (privacy, terms) */

.doc { max-width: 640px; margin: 0 auto; padding: 48px 24px 80px; }

.doc .home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 40px;
}

.doc .home img { width: 28px; height: auto; border-radius: 7px; }

.doc h1 { font-size: 30px; font-weight: 700; letter-spacing: 0.2px; margin: 0 0 4px; }

.doc .updated { font-size: 13px; color: var(--text3); margin: 0 0 12px; }

.doc h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 36px 0 8px;
  padding-top: 20px;
  border-top: 0.5px solid var(--hairline);
}

.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--text2); }

.doc footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 0.5px solid var(--hairline);
  font-size: 13px;
  color: var(--text3);
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .section { opacity: 1 !important; transform: none !important; }
}
