/* Mochi's product page. Its own look, the app's (ADR 0012 in the app repo): matcha, the Washi ground, Figtree, and
   Mochi the bunny. Nothing here is shared with the personal site's site.css. */

@font-face { font-family: Figtree; src: url(figtree-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(figtree-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url(figtree-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(figtree-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* The app's day palette. */
  --ground: #EEEEE6;
  --surface: #FAFAF5;
  --line: #D8DACB;
  --ink: #262A22;
  --ink2: #62685A;
  --leaf: #4A7036;       /* Accent: links and actions */
  --matcha: #93B86A;     /* Brand */
  --matcha-soft: #DFEBC8;
  --matcha-ink: #3D5E2B;
  --feed: #F5DCCB; --feed-ink: #7A3F20;
  --diaper: #F3E6B3; --diaper-ink: #6A5410;
  --sleep: #E2DCEF; --sleep-ink: #473A78;
  --pump: #DCE6EE; --pump-ink: #2B4A5F;
  /* The night palette, for the night section. */
  --night: #121511;
  --night-surface: #1B1F19;
  --night-ink: #D9E3C8;
  --night-ink2: #97A486;
  --night-matcha: #A3C47F;
  --radius: 28px;
  --wrap: 1120px;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  font: 400 18px/1.55 var(--sans);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

/* The app's wash: matcha, lavender and peach, very soft. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(191, 214, 174, .75) 0%, rgba(191, 214, 174, 0) 70%),
    radial-gradient(55% 40% at 0% 45%, rgba(211, 201, 236, .55) 0%, rgba(211, 201, 236, 0) 70%),
    radial-gradient(60% 40% at 25% 100%, rgba(242, 205, 180, .55) 0%, rgba(242, 205, 180, 0) 70%),
    linear-gradient(180deg, #E8EEDF 0%, #F2EDE3 100%);
}

img, video { max-width: 100%; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--matcha-ink); }
:focus-visible { outline: 3px solid var(--matcha); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.top .brand img { height: 40px; width: auto; }
.top nav { display: flex; gap: 22px; align-items: center; font-weight: 500; font-size: 16px; }
.top nav a { color: var(--ink2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top nav .opt { display: none; } }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--leaf); color: #FAFAF5; text-decoration: none;
  font-weight: 600; font-size: 17px;
  box-shadow: 0 10px 30px rgba(74, 112, 54, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { color: #FAFAF5; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(74, 112, 54, .32); }
.button.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.button.ghost:hover { color: var(--ink); }
.button svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 36px 64px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lede { font-size: 20px; color: var(--ink2); max-width: 34em; margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .meta { margin-top: 18px; font-size: 15px; color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.c-feed { background: var(--feed); color: var(--feed-ink); }
.c-sleep { background: var(--sleep); color: var(--sleep-ink); }
.c-diaper { background: var(--diaper); color: var(--diaper-ink); }
.c-pump { background: var(--pump); color: var(--pump-ink); }
.c-brand { background: var(--matcha-soft); color: var(--matcha-ink); }
.hero .phones { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 420 / 520; }
.hero .phones .phone { position: absolute; width: 62%; }
.hero .phones .phone:first-child { left: 0; top: 6%; transform: rotate(-4deg); }
.hero .phones .phone:last-child { right: 0; top: 0; transform: rotate(4deg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 12px 40px; }
  .hero .phones { width: min(100%, 360px); }
}

/* A phone frame around a real screen */
.phone { border-radius: 34px; padding: 9px; background: #1A1C18; box-shadow: 0 30px 60px rgba(38, 42, 34, .22), 0 8px 18px rgba(38, 42, 34, .14); }
.phone img { border-radius: 26px; width: 100%; height: auto; aspect-ratio: 1080 / 2424; object-fit: cover; }

/* Sections */
section { padding-block: 64px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 8px; }
.section-lede { font-size: 19px; color: var(--ink2); max-width: 40em; margin: 0 0 36px; }

/* The film */
.film { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.film video { width: min(100%, 360px); border-radius: 30px; background: #1A1C18; box-shadow: 0 30px 60px rgba(38, 42, 34, .22); justify-self: center; }
@media (max-width: 860px) { .film { grid-template-columns: 1fr; gap: 24px; } .film video { order: 2; } }

/* Feature rows: text beside a real screen */
.feature { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .phone { order: -1; }
.feature ul { padding-left: 0; list-style: none; margin: 14px 0 0; display: grid; gap: 10px; }
.feature li { padding-left: 28px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--matcha)); }
.feature .phone { width: 100%; max-width: 300px; justify-self: center; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .phone { order: 0; }
  .feature .phone { max-width: 260px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: rgba(250, 250, 245, .82); border: 1.5px solid rgba(216, 218, 203, .8); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--ink2); font-size: 17px; }
.card .badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.card .badge svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* The night band */
.night { background: var(--night); color: var(--night-ink); border-radius: 40px; padding: 56px; display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.night h2 { color: var(--night-ink); }
.night .kicker { color: var(--night-matcha); }
.night p, .night li { color: var(--night-ink2); }
.night .phone { background: #000; max-width: 300px; justify-self: center; }
.night li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--night-matcha); }
.night ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.night li { padding-left: 28px; position: relative; }
@media (max-width: 860px) { .night { grid-template-columns: 1fr; padding: 32px 22px; border-radius: 28px; } }

/* Free and Premium */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border-radius: var(--radius); padding: 28px; background: rgba(250, 250, 245, .9); border: 1.5px solid var(--line); }
.plan.premium { background: linear-gradient(160deg, #FBF3DC, #F6E8BE); border-color: #E8D49A; }
.plan .tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; background: var(--matcha-soft); color: var(--matcha-ink); margin-bottom: 12px; }
.plan.premium .tag { background: #F3D98A; color: #6B4E0A; }
.plan ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: rgba(250, 250, 245, .9); border: 1.5px solid var(--line); border-radius: 20px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--leaf); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink2); }

/* Maker */
.maker { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.maker .stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.maker .stack span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink2); }
@media (max-width: 860px) { .maker { grid-template-columns: 1fr; gap: 20px; } }

/* Closing call */
.closing { text-align: center; padding-block: 72px 56px; }
.closing img { width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; animation: hop 3.2s ease-in-out infinite; }
@keyframes hop { 0%, 82%, 100% { transform: translateY(0); } 88% { transform: translateY(-10px); } 94% { transform: translateY(0); } }
.closing .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 15px; color: var(--ink2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink2); }

/* Grid children may shrink below their images' intrinsic width, so nothing pushes the page sideways on a phone. */
.hero > *, .film > *, .feature > *, .night > *, .maker > *, .plans > *, .cards > * { min-width: 0; }
body { overflow-x: hidden; }
