/* ============================================
   BEYOND BANGLES · FRUIT TURTLES
   Shared stylesheet
   ============================================ */

:root {
  --ink: #2a1f3d;
  --ink-soft: #5a4d75;
  --paper: #fdfaf6;
  --paper-warm: #f9f3ea;
  --line: #ebe3d7;
  --gold: #d4a574;

  /* Per-turtle accent injected via .theme-* on <body> */
  --accent: #f8a5c2;
  --accent-deep: #d96e95;
  --accent-soft: #ffe4ee;
  --fruit-leaf: #8fc987;

  --shadow-sm: 0 2px 8px rgba(42, 31, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 31, 61, 0.08);
  --shadow-lg: 0 16px 48px rgba(42, 31, 61, 0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
}

/* THEME PALETTES — soft, deliberate, not garish */
body.theme-pink    { --accent: #f598b4; --accent-deep: #c75880; --accent-soft: #ffe6ee; --fruit-leaf: #7fc788; }
body.theme-green   { --accent: #8fc987; --accent-deep: #5a9b56; --accent-soft: #e6f4e4; --fruit-leaf: #d4a574; }
body.theme-red     { --accent: #e87171; --accent-deep: #b54545; --accent-soft: #ffe2e2; --fruit-leaf: #7fc788; }
body.theme-yellow  { --accent: #f0c14a; --accent-deep: #b08820; --accent-soft: #fff4d6; --fruit-leaf: #7fc788; }
body.theme-purple  { --accent: #b08fd0; --accent-deep: #7a5599; --accent-soft: #ede4f7; --fruit-leaf: #7fc788; }
body.theme-orange  { --accent: #f0a060; --accent-deep: #c47030; --accent-soft: #ffe9d4; --fruit-leaf: #7fc788; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: "ss01", "ss02";
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* Decorative paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }

/* TYPOGRAPHY */
.eyebrow {
  font-family: 'Inter', -apple-system, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--accent-deep);
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sans {
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: 0;
}

/* LAYOUT */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* TOP BAR */
.topbar {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.topbar-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.topbar-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.topbar-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* HERO */
.hero {
  padding: 48px 0 24px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s ease forwards;
}
.hero-turtle {
  margin: 0 auto 32px;
  width: 220px;
  height: 220px;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s 0.25s ease forwards;
}
.hero-turtle svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(42, 31, 61, 0.15));
}
.hero-greeting {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--accent-deep);
  opacity: 0;
  animation: fadeUp 0.9s 0.4s ease forwards;
}
.hero-greeting em {
  font-style: normal;
  color: var(--ink);
}
.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s ease forwards;
}
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s ease forwards;
}
.hero-role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-deep);
}

/* SECTIONS */
section {
  padding: 56px 0;
}
section.tight { padding: 32px 0; }

.section-title {
  font-size: clamp(28px, 4.5vw, 38px);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-family: 'Inter', sans-serif;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* CARDS */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card-accent {
  background: linear-gradient(160deg, var(--accent-soft), #fff);
  border-color: var(--accent);
}

/* PROGRAM SUGGESTION */
.program-card {
  text-align: center;
  padding: 36px 28px;
}
.program-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.program-title {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--accent-deep);
}
.program-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
}

/* STEPS */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
}
.step-content {
  padding-top: 4px;
}
.step-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}
.step-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.step-body a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
}
.step-body code {
  font-family: ui-monospace, "SF Mono", Monaco, monospace;
  background: var(--paper-warm);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent-deep);
}

/* WARN BANNER */
.warn {
  background: #fff7e6;
  border: 1px solid #f0d590;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #7a5a20;
}
.warn-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

/* COMING SOON */
.coming-soon {
  background: linear-gradient(160deg, var(--accent-soft), var(--paper-warm));
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.coming-soon::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.08;
}
.coming-soon-badge {
  display: inline-block;
  background: var(--accent-deep);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.coming-soon h2 {
  font-size: clamp(28px, 5vw, 36px);
  margin-bottom: 16px;
  position: relative;
}
.coming-soon-desc {
  font-family: 'Inter', sans-serif;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
  position: relative;
}
.signup-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
}
.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.signup-form input:focus {
  border-color: var(--accent-deep);
}
.signup-form button {
  padding: 14px 26px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.signup-form button:hover { background: var(--accent-deep); }
.signup-form button:active { transform: scale(0.97); }

.signup-thanks {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--accent-deep);
  margin-top: 12px;
  font-weight: 600;
}

/* COLLECTION STRIP */
.collection {
  padding: 56px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 32px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.collection-item {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.collection-item:hover { transform: translateY(-4px); }
.collection-item.current { border-color: var(--accent-deep); }
.collection-item svg {
  width: 70%;
  height: 70%;
}

/* FOOTER */
footer {
  padding: 56px 24px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 24px;
}
.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  display: inline-block;
  transition: background 0.2s ease;
}
.footer-link:hover { background: var(--accent-deep); }
.footer-legal {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 32px;
  opacity: 0.6;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-turtle svg { animation: bob 4s ease-in-out infinite; }

/* RESPONSIVE */
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 32px 0 16px; }
  .hero-turtle { width: 180px; height: 180px; }
  section { padding: 40px 0; }
  .card { padding: 22px; }
  .program-card { padding: 28px 20px; }
  .coming-soon { padding: 36px 24px; }
  .collection-grid { gap: 6px; }
}

/* PRINT (parents may screenshot/print instructions) */
@media print {
  body::before { display: none; }
  .topbar, .coming-soon, .collection, footer { display: none; }
}
