/* =========================================================
   FIRST CHAPTER STUDIO — stylesheet
   Design system: "chapters of a story" — a family tech studio
   Display: Fraunces  ·  Body: Inter  ·  Mono/eyebrow: JetBrains Mono
   ========================================================= */

:root{
  /* --- color tokens --- */
  --cream:        #FBF3E6;
  --cream-deep:   #F5E9D8;
  --paper:        #FFFCF6;
  --ink:          #2C2116;
  --ink-soft:     #5B4C3D;
  --ink-faint:    #9C8B76;
  --line:         #E7D9C3;

  --coral:        #E1614A;
  --coral-dark:   #C24C38;
  --coral-tint:   #FBE1D9;

  --teal:         #2C8783;
  --teal-dark:    #1F6662;
  --teal-tint:    #DCEEEA;

  --sky:          #3F7FB0;
  --sky-dark:     #2E6390;
  --sky-tint:     #DDE9F3;

  --purple:       #7C5F9E;
  --purple-dark:  #614A7D;
  --purple-tint:  #E9E1F1;

  --mustard:      #E0A233;
  --mustard-dark: #B87F1F;
  --mustard-tint: #FAEACB;

  --sage:         #7FA06A;
  --sage-tint:    #E5EEDD;

  --pink:         #EFACA1;

  /* --- type --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* --- shape / motion --- */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22,.9,.32,1);
  --shadow-soft: 0 20px 45px -22px rgba(44,33,22,.35);
  --shadow-tiny: 0 8px 20px -12px rgba(44,33,22,.3);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font: inherit; cursor:pointer; }
h1,h2,h3,h4,p{ margin:0; }

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section{ position: relative; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 500;
}
.eyebrow.on-dark{ color: var(--mustard); }
.eyebrow.teal{ color: var(--teal-dark); }
.eyebrow.purple{ color: var(--purple-dark); }
.eyebrow.sky{ color: var(--sky-dark); }

h1, .h1{
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}
.lede{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 46ch;
}
.italic{ font-style: italic; }
.accent-underline{
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 8px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--coral);
  color: var(--paper);
  box-shadow: var(--shadow-tiny);
}
.btn-primary:hover{ background: var(--coral-dark); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-outline-light{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,252,246,.5);
  color: var(--paper);
}
.btn-outline-light:hover{ background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-sm{ padding: 10px 20px; font-size: .88rem; }

.btn svg{ width: 16px; height: 16px; }

/* =========================================================
   WELCOME GATE — splash screen shown before entering the site
   ========================================================= */
#welcome-screen{
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, var(--coral-tint) 0%, var(--cream) 68%);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
#welcome-screen.exit{
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
body.welcome-active{ overflow: hidden; height: 100%; }

.welcome-doodles{ position: absolute; top:0; right:0; bottom:0; left:0; overflow: hidden; pointer-events: none; }

.welcome-inner{
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  animation: welcomeIn 1s var(--ease) both;
}
@keyframes welcomeIn{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}

.welcome-mark-card{
  display: inline-flex;
  margin: 0 auto 20px;
  padding: 14px;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.welcome-mark-img{
  display: block;
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
}

.welcome-brand-label{
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 500;
  margin-bottom: 18px;
}

.welcome-title{
  margin: 8px 0 16px;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1.08;
}
.welcome-inner .lede{ margin: 0 auto 36px; max-width: 42ch; text-align: center; }

.welcome-signature{
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-soft);
}

.welcome-apps-row{
  margin-top: 34px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.welcome-apps-row i{ opacity: .5; font-style: normal; }

#welcome-enter{ position: relative; }
#welcome-enter svg{
  width: 15px; height: 15px;
  transition: transform .3s var(--ease);
}
#welcome-enter:hover svg{ transform: translateX(4px); }

@media (max-width: 560px){
  .welcome-apps-row{ font-size: .66rem; gap: 8px; }
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,243,230,.86);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-nav.scrolled{ border-bottom-color: var(--line); }

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 2px 6px rgba(44,33,22,.18);
}
.brand-word b{ font-weight: 650; }
.brand-word span{ display:block; font-family: var(--font-mono); font-size: .55rem; letter-spacing:.18em; color: var(--ink-faint); text-transform: uppercase; font-weight: 500; margin-top:-2px;}

.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a{
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after{
  content:"";
  position: absolute;
  left:0; right:0; bottom:0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after{ transform: scaleX(1); transform-origin: left; }
.nav-links a.active{ color: var(--ink); }

.nav-cta{ display:flex; align-items:center; gap:14px; }

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.nav-toggle.open span{ background: transparent; }
.nav-toggle.open span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after{ transform: translateY(-6px) rotate(-45deg); }

.mobile-panel{
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-panel.open{ display: flex; }
.mobile-panel a{
  padding: 13px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.mobile-panel .btn{ margin-top: 14px; align-self: flex-start; }

@media (max-width: 880px){
  .nav-links{ display: none; }
  .nav-cta .btn{ display: none; }
  .nav-toggle{ display: flex; }
}

/* =========================================================
   DECORATIVE DOODLES (SVG, floating)
   ========================================================= */
.doodles{ position: absolute; top:0; right:0; bottom:0; left:0; pointer-events: none; overflow: hidden; }
.doodle{
  position: absolute;
  opacity: .9;
  animation: float 7s ease-in-out infinite;
}
.doodle.slow{ animation-duration: 10s; }
.doodle.rev{ animation-direction: alternate-reverse; }
.doodle.twinkle{ animation: float 7s ease-in-out infinite, twinkle 2.4s ease-in-out infinite; }
.doodle.fly{ animation: flyPath 9s ease-in-out infinite; }
@keyframes float{
  0%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-14px) rotate(6deg); }
  100%{ transform: translateY(0) rotate(0deg); }
}
@keyframes twinkle{
  0%, 100%{ opacity: .55; transform: scale(.85); }
  50%{ opacity: 1; transform: scale(1.15); }
}
@keyframes flyPath{
  0%{ transform: translate(0, 0) rotate(-6deg); opacity: .9; }
  25%{ transform: translate(16px, -18px) rotate(4deg); }
  50%{ transform: translate(30px, 2px) rotate(-4deg); }
  75%{ transform: translate(12px, 16px) rotate(6deg); }
  100%{ transform: translate(0, 0) rotate(-6deg); opacity: .9; }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow{ margin-bottom: 22px; }
.hero-copy h1{ margin-bottom: 22px; }
.hero-copy .lede{ margin-bottom: 34px; max-width: 42ch; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; align-items:center; }
.hero-note{
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.hero-note .dot-chip{
  display:flex; align-items:center; gap:8px;
  padding: 7px 14px 7px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing:.03em;
  color: var(--ink-soft);
}
.dot-chip i{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}

.hero-visual{ position: relative; min-height: 480px; }

.hero-buddy{
  position: absolute;
  z-index: 4;
}

.hero-photo{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: rotate(1deg);
  transition: transform .6s var(--ease);
}
.hero-photo:hover{ transform: rotate(0deg) translateY(-4px); }
.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* phone mockup */
.phone{
  position: relative;
  width: 280px;
  margin: 0 auto;
  border-radius: 42px;
  background: var(--ink);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transform: rotate(2.5deg);
  transition: transform .6s var(--ease);
}
.phone:hover{ transform: rotate(0deg) translateY(-4px); }
.phone-notch{
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen{
  position: relative;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.phone-topbar{
  background: var(--coral-tint);
  padding: 34px 20px 18px;
}
.phone-topbar .app-word{
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--coral-dark);
}
.phone-topbar .greet{ margin-top: 10px; font-size: .82rem; color: var(--ink-soft); }
.phone-topbar .greet b{ color: var(--ink); font-size: .95rem; display:block; margin-top:2px; }

.phone-body{ padding: 16px 18px; display:flex; flex-direction:column; gap:12px; flex:1; }
.kid-chip-row{ display:flex; gap:8px; }
.kid-chip{
  flex:1;
  background: var(--cream-deep);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: .72rem;
  color: var(--ink-soft);
}
.kid-chip b{ display:block; color: var(--ink); font-size: .85rem; margin-bottom:1px; }

.reminder-card{
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .78rem;
  color: var(--teal-dark);
}
.reminder-card b{ display:block; color: var(--ink); font-size: .86rem; }

.task-row{
  display:flex; align-items:center; gap:10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .8rem;
}
.task-row .box{ width:16px; height:16px; border-radius:5px; border:1.6px solid var(--ink-faint); flex:none; }
.task-row.done{ opacity: .55; }
.task-row.done span{ text-decoration: line-through; }
.task-row.done .box{ background: var(--sage); border-color: var(--sage); position:relative; }

.phone-tabbar{
  margin-top: auto;
  display:flex; justify-content: space-around;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
}
.phone-tabbar i{ width: 20px; height: 20px; border-radius: 6px; background: var(--line); }
.phone-tabbar i.active{ background: var(--coral); }

.float-card{
  position: absolute;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 6.5s ease-in-out infinite;
}
.float-card .icon-chip{
  width: 34px; height: 34px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  flex: none;
}
.float-card .fc-title{ font-size: .78rem; font-weight: 650; color: var(--ink); }
.float-card .fc-sub{ font-size: .68rem; color: var(--ink-faint); }

.fc-memories{ top: 6%; left: -8%; animation-delay: .3s; }
.fc-streak{ bottom: 8%; right: -10%; animation-delay: 1s; animation-direction: alternate-reverse; }

/* =========================================================
   SECTION helpers
   ========================================================= */
.section{ padding: 108px 0; }
.section-tight{ padding: 84px 0; }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow{ margin-bottom: 18px; }
.section-head h2{ margin-bottom: 18px; }

.bg-paper{ background: var(--paper); }
.bg-deep{ background: var(--cream-deep); }
.bg-ink{ background: var(--ink); color: var(--cream); }
.bg-ink .ink-soft{ color: #C9BCAB; }

.divider{
  display:flex; align-items:center; gap: 16px;
  color: var(--ink-faint);
}
.divider .line{ flex:1; height:1px; background: var(--line); }

/* =========================================================
   MISSION STRIP
   ========================================================= */
.pillars{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.pillar:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.pillar .picon{
  width: 44px; height: 44px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
  transition: transform .35s var(--ease);
}
.pillar:hover .picon{ transform: scale(1.1) rotate(-6deg); }
.pillar h4{ font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.pillar p{ font-size: .88rem; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 980px){
  .pillars{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .pillars{ grid-template-columns: 1fr; }
}

/* =========================================================
   MINIMEMO STORY SECTION
   ========================================================= */
.story-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-block + .story-block{ margin-top: 100px; }
.story-block.reverse .story-visual{ order: 2; }
.story-block.reverse .story-copy{ order: 1; }

.chat-mock{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.bubble{
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .88rem;
  margin-bottom: 12px;
  line-height: 1.45;
}
.bubble.a{ background: var(--coral-tint); color: var(--coral-dark); border-bottom-left-radius: 4px; }
.bubble.b{ background: var(--sky-tint); color: var(--sky-dark); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-resolved{
  margin-top: 18px;
  display:flex; align-items:center; gap:10px;
  padding: 12px 14px;
  background: var(--sage-tint);
  border-radius: 12px;
  font-size: .82rem;
  color: #40532F;
}
.chat-resolved .check{
  width: 20px; height:20px; border-radius:50%;
  background: var(--sage); flex:none;
  display:flex; align-items:center; justify-content:center;
}

.photo-jumble{ position: relative; height: 340px; }
.jumble-frame{
  position: absolute;
  width: 108px; height: 132px;
  background: var(--paper);
  border: 6px solid var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow-tiny);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.jumble-frame:hover{ transform: scale(1.06) rotate(0deg) !important; z-index: 9; box-shadow: var(--shadow-soft); }
.jumble-frame img{ width:100%; height:100%; object-fit:cover; border-radius: 2px; display:block; }
.jf-1{ top: 2%; left: 4%; transform: rotate(-9deg); }
.jf-2{ top: 16%; left: 34%; transform: rotate(5deg); z-index:2; }
.jf-3{ top: 4%; right: 2%; transform: rotate(11deg); }
.jf-4{ bottom: 10%; left: 16%; transform: rotate(-6deg); z-index:3; }
.jf-5{ bottom: 4%; right: 8%; transform: rotate(8deg); z-index:2; }
.jf-6{ bottom: 9%; left: -2%; transform: rotate(-13deg); z-index:1; }
.jumble-solved{
  position:absolute; right:0; bottom:0; left:0;
  margin: 0 auto;
  width: fit-content;
  z-index: 6;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: .78rem;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  display:flex; align-items:center; gap:8px;
}

.story-copy .eyebrow{ margin-bottom: 16px; }
.story-copy h3{ margin-bottom: 16px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.story-copy p{ color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.story-line{
  margin-top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  border-left: 3px solid var(--coral);
  padding-left: 16px;
}

@media (max-width: 900px){
  .story-block, .story-block.reverse{ grid-template-columns: 1fr; }
  .story-block.reverse .story-visual, .story-block.reverse .story-copy{ order: initial; }
  .story-block + .story-block{ margin-top: 64px; }
}

/* feature grid (minimemo) */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 60px;
}
.feature-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.feature-card .ficon{
  width: 42px; height: 42px; border-radius: 11px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
  transition: transform .35s var(--ease);
}
.feature-card:hover .ficon{ transform: scale(1.1) rotate(-6deg); }
.feature-card h4{ font-size: 1rem; font-weight: 650; font-family: var(--font-display); margin-bottom: 6px; }
.feature-card p{ font-size: .85rem; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 900px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-grid{ grid-template-columns: 1fr; } }

.store-row{ display:flex; gap:14px; margin-top: 34px; flex-wrap: wrap; align-items:center; }
.store-btn{
  display:flex; align-items:center; gap:10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 11px 20px 11px 16px;
  opacity: .55;
  cursor: default;
  position: relative;
}
.store-btn .glyph{ width:22px; height:22px; flex:none; }
.store-btn .txt{ line-height: 1.15; }
.store-btn .txt small{ display:block; font-size: .62rem; letter-spacing:.04em; text-transform:uppercase; opacity:.75; }
.store-btn .txt strong{ font-size: .92rem; font-weight: 600; font-family: var(--font-body); }
.store-soon{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* =========================================================
   CHAPTER / APP CARDS  (signature element)
   ========================================================= */
.chapters{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.chapter-card{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display:flex; flex-direction:column;
  min-height: 460px;
}
.chapter-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-soft); }

/* page-fold corner — the signature interaction */
.chapter-card::before{
  content:"";
  position: absolute;
  top: 0; right: 0;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, transparent 50%, var(--cream-deep) 50.5%);
  transition: width .4s var(--ease), height .4s var(--ease);
}
.chapter-card:hover::before{ width: 68px; height: 68px; }

.chapter-num{
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--line);
  z-index: 0;
  line-height: 1;
}
.chapter-status{
  align-self: flex-start;
  display:inline-flex; align-items:center; gap:7px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.chapter-status i{ width:6px; height:6px; border-radius:50%; }
.status-live{ background: var(--sage-tint); color: #3E5A2C; }
.status-live i{ background: var(--sage); }
.status-dev{ background: var(--mustard-tint); color: var(--mustard-dark); }
.status-dev i{ background: var(--mustard); }

.chapter-icon{
  width: 58px; height: 58px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.chapter-icon img{ width:100%; height:100%; object-fit:cover; display:block; }
.chapter-card:hover .chapter-icon{ transform: translateY(-4px) scale(1.05); }
.chapter-card h3{ margin-bottom: 10px; }
.chapter-card .ch-tag{
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 12px;
  display:block;
}
.chapter-card p{ color: var(--ink-soft); font-size: .9rem; line-height: 1.6; flex:1; }
.chapter-card .ch-link{
  margin-top: 20px;
  display:inline-flex; align-items:center; gap:8px;
  font-weight: 650; font-size: .88rem;
}
.chapter-card .ch-link svg{ width:15px; height:15px; transition: transform .3s var(--ease); }
.chapter-card:hover .ch-link svg{ transform: translateX(4px); }

.chapter-card.c-minimemo .ch-tag{ color: var(--coral-dark); }
.chapter-card.c-minimemo .chapter-icon{ background: var(--coral-tint); }
.chapter-card.c-minimemo .ch-link{ color: var(--coral-dark); }

.chapter-card.c-monster .ch-tag{ color: var(--sky-dark); }
.chapter-card.c-monster .chapter-icon{ background: var(--sky-tint); }
.chapter-card.c-monster .ch-link{ color: var(--sky-dark); }

.chapter-card.c-kidbiz .ch-tag{ color: var(--purple-dark); }
.chapter-card.c-kidbiz .chapter-icon{ background: var(--purple-tint); }
.chapter-card.c-kidbiz .ch-link{ color: var(--purple-dark); }

.chapter-card.c-next{
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}
.chapter-card.c-next::before{ display:none; }
.chapter-card.c-next .plus{
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.6px dashed var(--ink-faint);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink-faint);
}

@media (max-width: 980px){ .chapters{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .chapters{ grid-template-columns: 1fr; } }

/* =========================================================
   APP LOGO CARDS — real brand artwork, simple & clean
   ========================================================= */
.app-logo-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-tiny);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.app-logo-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.app-logo-card img{
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 20px;
  display: block;
}
.app-logo-badge{
  width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.app-logo-badge img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   KIDBIZ icon cluster
   ========================================================= */
/* (KidBiz now uses the real logo artwork — see .app-logo-card) */

/* =========================================================
   PULL QUOTE / STORY (Our Story section)
   ========================================================= */
.story-hero{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.quote-card{
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: relative;
}
.quote-card .mark{
  font-family: var(--font-display);
  font-size: 3.6rem;
  color: var(--mustard);
  line-height: .6;
  display:block;
  margin-bottom: 14px;
}
.quote-card blockquote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  margin: 0 0 20px;
}
.quote-card cite{
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C9BCAB;
}
.our-story-copy p{ color: var(--ink-soft); margin-bottom: 16px; line-height: 1.75; }
.our-story-copy h2{ margin-bottom: 22px; }

@media (max-width: 900px){
  .story-hero{ grid-template-columns: 1fr; }
}

/* =========================================================
   FINAL CTA BAND
   ========================================================= */
.cta-band{
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2{ color: var(--paper); margin-bottom: 16px; }
.cta-band p{ color: #C9BCAB; max-width: 46ch; margin: 0 auto 34px; font-size: 1.05rem; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

@media (max-width: 640px){
  .cta-band{ padding: 52px 26px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding: 64px 0 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p{ color: var(--ink-soft); font-size: .9rem; margin-top: 14px; max-width: 32ch; line-height: 1.6; }
.footer-col h5{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-col a{
  display:block;
  font-size: .9rem;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--coral-dark); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links{ display:flex; gap:20px; }
.footer-bottom a:hover{ color: var(--coral-dark); }

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px){
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================================
   PAGE HERO (apps / legal pages)
   ========================================================= */
.page-hero{
  padding: 64px 0 40px;
  text-align: left;
}
.page-hero .eyebrow{ margin-bottom: 18px; }
.page-hero h1{ font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 18px; }
.page-hero .lede{ max-width: 56ch; }

/* app detail section */
.app-detail{
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.app-detail-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.app-detail-visual{ position: sticky; top: 110px; }
.app-detail .eyebrow{ margin-bottom: 16px; }
.app-detail h2{ margin-bottom: 18px; }
.app-detail .lede{ margin-bottom: 30px; max-width: 60ch; }
.trait-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 34px; }
.trait{
  display:flex; align-items:flex-start; gap:10px;
  font-size: .88rem; color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.trait .tick{ width:18px; height:18px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-top:1px; }

@media (max-width: 900px){
  .app-detail-grid{ grid-template-columns: 1fr; }
  .app-detail-visual{ position: static; margin-bottom: 20px; }
  .trait-list{ grid-template-columns: 1fr; }
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-body{
  max-width: 760px;
  padding: 20px 0 100px;
}
.legal-body h2{ font-size: 1.5rem; margin: 44px 0 14px; }
.legal-body h2:first-child{ margin-top: 0; }
.legal-body p, .legal-body li{ color: var(--ink-soft); font-size: .96rem; line-height: 1.75; margin-bottom: 14px; }
.legal-body ul{ list-style: disc; padding-left: 22px; }
.legal-body ul li{ margin-bottom: 8px; }
.legal-updated{
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-faint);
  margin-bottom: 30px;
  display:block;
}

/* =========================================================
   RESPONSIVE — hero & general
   ========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ min-height: 420px; order: -1; }
  .section{ padding: 76px 0; }
  .feature-grid{ margin-top: 40px; }
}
@media (max-width: 560px){
  .hero{ padding: 48px 0 40px; }
  .section{ padding: 60px 0; }
  .phone{ width: 240px; }
  .phone-screen{ min-height: 480px; }
  .float-card{ display: none; }
  .doodles{ display: none; }
  .cta-band{ border-radius: var(--radius-md); }
}
