/* Moodaboo landing page: a warm storybook look (cream paper, sky, grass, ink outlines) shared with the Studio's
   sign-in screen. Light only; Fredoka for display type (bundled in /web/fonts, OFL). */
@font-face { font-family: Fredoka; font-weight: 500; font-display: swap; src: url(/web/fonts/fredoka-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/web/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/web/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }

:root {
  --cream: #fbf6ec;
  --cream-2: #f5eddd;
  --paper: #ffffff;
  --ink: #221c15;
  --ink-2: #574d42;
  --ink-3: #7d7366;
  --line: #e8dcc8;
  --teal: #0d9488;
  --teal-ink: #0b6b62;
  --teal-soft: #ddf3ee;
  --sun: #f8bd3a;
  --sun-soft: #fff0c7;
  --coral: #ef6a57;
  --coral-soft: #ffe2da;
  --sky: #cfe9f6;
  --sky-2: #e9f6fb;
  --grass: #8fcf62;
  --grass-2: #67b347;
  --display: Fredoka, "Avenir Next Rounded", ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, sans-serif;
  --r: 22px;
  --r-sm: 14px;
  --edge: 2px solid var(--ink);
  --lift: 4px 4px 0 var(--ink);
  --lift-sm: 3px 3px 0 var(--ink);
  color-scheme: light;
  accent-color: var(--teal);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--paper); padding: 8px 14px; border: var(--edge); border-radius: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: var(--edge);
  font: 600 17px/1 var(--display); color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--paper); box-shadow: var(--lift-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.sun { background: var(--sun); }
.btn.sun:hover { background: #ffc94f; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand .lockup { width: auto; height: 40px; display: block; }
footer .brand .lockup { height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { background: var(--cream-2); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: 16px; right: 16px; flex-direction: column; align-items: stretch;
         background: var(--paper); border: var(--edge); border-radius: var(--r); box-shadow: var(--lift); padding: 10px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; }
  .nav .btn { margin: 6px 0 0; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 140px;
        background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 52%, var(--cream) 100%); }
.hero::after {             /* rolling hills at the bottom edge */
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -1px; height: 120px;
  background:
    radial-gradient(120% 140px at 20% 140px, var(--grass) 60%, transparent 61%),
    radial-gradient(90% 120px at 85% 130px, var(--grass-2) 60%, transparent 61%);
  opacity: .55;
}
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; pointer-events: none; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 999px; }
.cloud.c1 { width: 150px; height: 44px; top: 70px; left: 4%; }
.cloud.c1::before { width: 70px; height: 70px; left: 26px; top: -34px; }
.cloud.c1::after { width: 54px; height: 54px; left: 74px; top: -22px; }
.cloud.c2 { width: 120px; height: 36px; top: 140px; right: 6%; }
.cloud.c2::before { width: 56px; height: 56px; left: 20px; top: -28px; }
.cloud.c2::after { width: 44px; height: 44px; left: 60px; top: -18px; }
@media (prefers-reduced-motion: no-preference) {
  .cloud.c1 { animation: drift 38s ease-in-out infinite alternate; }
  .cloud.c2 { animation: drift 46s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { to { transform: translateX(60px); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--display); letter-spacing: .02em;
           background: var(--paper); border: var(--edge); border-radius: 999px; padding: 8px 14px; box-shadow: var(--lift-sm); }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); margin: 22px 0 20px; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -6px; bottom: .06em; height: .36em;
               background: var(--sun); border-radius: 8px; transform: rotate(-1.5deg); }
/* the hero's highlight is a whole phrase, so it may wrap: drawn per line instead of as one bar */
.hero h1 .mark { white-space: normal; padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
                 background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); }
.hero h1 .mark::after { content: none; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.reassure { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }
.reassure a { font-weight: 600; color: var(--teal-ink); }

/* invite-only waitlist form */
.waitlist-box { margin-top: 26px; max-width: 520px; }
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.waitlist-form[hidden] { display: none; }
.waitlist-form input[type="email"] {
  flex: 1 1 240px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: var(--edge);
  background: var(--paper); color: var(--ink); font: 500 16px/1 var(--body); box-shadow: var(--lift-sm);
}
.waitlist-form input[type="email"]::placeholder { color: var(--ink-3); }
.waitlist-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.waitlist-msg { margin-top: 12px; font-size: 15px; color: var(--coral); font-weight: 600; }
.waitlist-done {
  margin-top: 14px; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: var(--paper); color: var(--ink); border: var(--edge); border-radius: var(--r-sm);
  box-shadow: var(--lift-sm); padding: 14px 16px;
}
.waitlist-done[hidden] { display: none; }
.waitlist-done img { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; }
.waitlist-done strong { font-family: var(--display); font-size: 17px; display: block; margin-bottom: 2px; }
.waitlist-done p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.waitlist-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.waitlist-picks .chip { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.closing-card .waitlist-box { margin: 0 auto; }
.closing-card .waitlist-msg { color: var(--sun-soft); }
.closing-card .reassure { color: #d5f5ef; }
.closing-card .reassure a { color: var(--sun); }

.screen { position: relative; border: var(--edge); border-radius: var(--r); background: var(--ink); box-shadow: 8px 8px 0 var(--ink);
          overflow: hidden; aspect-ratio: 16 / 9; transform: rotate(1deg); }
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; }
.sound-btn { position: absolute; right: 12px; bottom: 12px; min-height: 40px; padding: 0 14px; font-size: 14px; }
.sticker { position: absolute; z-index: 2; font: 700 15px/1.15 var(--display); background: var(--coral); color: #fff;
           border: var(--edge); border-radius: 16px; padding: 10px 14px; box-shadow: var(--lift-sm); }
.sticker.s1 { left: -18px; top: -20px; transform: rotate(-6deg); }
.sticker.s2 { right: -12px; bottom: -26px; background: var(--sun); color: var(--ink); transform: rotate(4deg); }
.credit { margin-top: 40px; font-size: 13px; color: var(--ink-3); text-align: right; }

/* sections */
section { padding: 96px 0; }
section[id] { scroll-margin-top: 64px; }
.kicker { font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 12px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 18.5px; }
.center { text-align: center; margin-inline: auto; }

/* the idea on the hero clip */
.prompt-card { position: absolute; z-index: 2; left: -26px; bottom: -64px; width: min(330px, 78%); background: var(--paper);
               border: var(--edge); border-radius: 18px; box-shadow: var(--lift); padding: 14px 16px; transform: rotate(-1.5deg); }
.prompt-label { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--display); color: var(--teal-ink);
                text-transform: uppercase; letter-spacing: .06em; }
.prompt-label svg { width: 16px; height: 16px; }
.prompt-card p { margin: 8px 0; font: 600 16px/1.35 var(--display); color: var(--ink); }
.prompt-steps { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* what AI does */
.ai { background: var(--ink); color: var(--cream); border-block: 2px solid var(--ink); }
.ai .kicker { color: var(--sun); }
.ai .section-head p { color: #d9cfbf; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card { background: #2e271f; border: 2px solid #4a4034; border-radius: var(--r); padding: 24px; }
.ai-card.big { grid-column: 1 / -1; background: var(--teal); border-color: var(--cream); box-shadow: 6px 6px 0 var(--sun);
               display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; padding: 28px; }
.ai-card.big h3 { font-size: clamp(28px, 3vw, 36px); }
.ai-card.big p { color: #e7fbf7; font-size: 17.5px; }
.ai-card h3 { font-size: 22px; margin: 12px 0 8px; color: #fff; }
.ai-card p { color: #d9cfbf; font-size: 16px; }
/* real screens on the AI cards */
.ai-shot { display: block; width: 100%; height: auto; max-height: 230px; object-fit: cover; object-position: top left;
           border-radius: 14px; border: 2px solid #4a4034; background: #fff; margin-bottom: 18px; }
.ai-card.big .ai-shot { max-height: none; margin: 0; border-color: var(--cream); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.ai-tag { display: inline-block; font: 700 12.5px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
          background: var(--sun); border-radius: 999px; padding: 6px 10px; align-self: flex-start; }
.ai-note { margin-top: 26px; color: #d9cfbf; font-size: 15px; text-align: center; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: var(--paper); border: var(--edge); border-radius: var(--r); box-shadow: var(--lift); padding: 26px; display: grid; gap: 14px; align-content: start; }
.step h3 { font-size: 25px; }
.step p { color: var(--ink-2); }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 20px/1 var(--display);
             border: var(--edge); background: var(--sun-soft); }
.step:nth-child(2) .num { background: var(--teal-soft); }
.step:nth-child(3) .num { background: var(--coral-soft); }
.snippet { font: 13.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--cream); border: 1.5px solid var(--line);
           border-radius: var(--r-sm); padding: 12px 14px; color: var(--ink-2); overflow-x: auto; white-space: pre; }
.snippet b { color: var(--teal-ink); font-weight: 600; }
.snippet i { color: var(--coral); font-style: normal; }
.step-img { border-radius: var(--r-sm); border: 1.5px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* playground */
.play { background: var(--cream-2); border-block: 2px solid var(--ink); }
.play-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: 48px; align-items: center; }
.controls { display: grid; gap: 22px; margin-top: 28px; }
.control-label { font: 600 15px/1 var(--display); color: var(--ink-2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 15px/1 var(--display); min-height: 40px; padding: 0 16px; border-radius: 999px; border: var(--edge); background: var(--paper);
        color: var(--ink); cursor: pointer; transition: background .15s, transform .15s; }
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--teal); color: #fff; }
.stage { border: var(--edge); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; background: var(--sky); }
.stage svg { width: 100%; height: auto; }
.cast-names { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--ink-3); font-size: 14.5px; }

/* the studio (screenshots) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { font: 600 15.5px/1 var(--display); min-height: 44px; padding: 0 18px; border-radius: 999px; border: var(--edge);
       background: var(--paper); color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.window { border: var(--edge); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: var(--paper); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--cream-2); }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.window-bar span:nth-child(1) { background: var(--coral); } .window-bar span:nth-child(2) { background: var(--sun); } .window-bar span:nth-child(3) { background: var(--grass); }
.window-bar em { margin-left: 10px; font: 600 14px/1 var(--display); font-style: normal; color: var(--ink-2); }
/* the Studio tour video */
.tour { position: relative; background: var(--cream-2); }
.tour video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; cursor: pointer; }
.tour-toggle { position: absolute; right: 14px; bottom: 18px; min-height: 36px; padding: 0 14px; font-size: 14px; }
.tour-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(34, 28, 21, .12); }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--sun); }
.panel { display: none; }
.panel.active { display: block; }
.panel img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.panel-caption { padding: 16px 20px; border-top: 2px solid var(--ink); color: var(--ink-2); font-size: 16px; }
.panel-caption strong { color: var(--ink); font-family: var(--display); font-weight: 600; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--paper); border: var(--edge); border-radius: var(--r); padding: 24px; box-shadow: var(--lift-sm); }
.feature .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; border: var(--edge); margin-bottom: 16px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature:nth-child(3n+1) .ic { background: var(--sun-soft); }
.feature:nth-child(3n+2) .ic { background: var(--teal-soft); }
.feature:nth-child(3n+3) .ic { background: var(--coral-soft); }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 16px; }

/* channels */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.channel { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; background: var(--paper);
           border: var(--edge); border-radius: var(--r); padding: 20px; box-shadow: var(--lift); }
.channel img { border-radius: var(--r-sm); border: 1.5px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; }
.channel.vertical img { aspect-ratio: 9 / 16; width: 110px; justify-self: center; object-position: center; }
.channel h3 { font-size: 24px; margin-bottom: 6px; }
.channel p { color: var(--ink-2); font-size: 16px; }
.tag { display: inline-block; margin-top: 12px; font: 600 13px/1 var(--display); padding: 7px 11px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--cream); }

/* questions */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); border: var(--edge); border-radius: var(--r-sm); box-shadow: var(--lift-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 600 19px/1.3 var(--display); display: flex; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 26px; line-height: 1; color: var(--teal-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* closing call */
.closing { padding: 40px 0 110px; }
.closing-card { position: relative; overflow: hidden; text-align: center; background: var(--teal); color: #fff; border: var(--edge);
                border-radius: 30px; box-shadow: 8px 8px 0 var(--ink); padding: 64px 24px; }
.closing-card h2 { font-size: clamp(34px, 4.6vw, 56px); }
.closing-card p { margin: 16px auto 30px; max-width: 34em; color: #e7fbf7; font-size: 18.5px; }
.closing-card .btn { color: var(--ink); }

footer { border-top: 2px solid var(--ink); padding: 30px 0 40px; background: var(--cream-2); font-size: 14.5px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--ink); }

/* reveal on scroll (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .hero-grid, .play-grid { grid-template-columns: 1fr; gap: 44px; }
  .screen { transform: none; }
  .steps, .features, .ai-grid { grid-template-columns: 1fr 1fr; }
  .ai-card.big { grid-template-columns: 1fr; gap: 22px; }
  .channels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 36px 0 96px; }
  .steps, .features, .ai-grid { grid-template-columns: 1fr; }
  .ai-card.big { padding: 20px; }
  .prompt-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 52px; transform: none; }
  .channel { grid-template-columns: 1fr; }
  .channel.vertical img { width: 120px; }
  .sticker.s1 { left: 8px; top: -16px; }
  .sticker.s2 { right: 8px; bottom: -48px; }
  .hero .credit { margin-top: 64px; }
  .cta-row .btn { flex: 1 1 100%; }
}
