/* MindLog landing — the app's design system on the web.
   Cream + amber, Bricolage Grotesque (display) + Inter (body). */

:root {
  --bg: #F7EFE3;
  --surface: #FFFAF3;
  --surface-alt: #F0E5D5;
  --ink: #1C1814;
  --ink-soft: #6E6458;
  --ink-faint: #B9AD9C;
  --line: #E5D8C5;
  --accent: #FFBE3D;
  --accent-soft: #FFE7B3;
  --leaf: #5F8F4E;
  --leaf-soft: #DCE9CF;
  --sky: #4F8FC0;
  --sky-soft: #D9E9F5;
  --lilac: #8A73C9;
  --lilac-soft: #E6DFF6;
  --coral: #E0654F;
  --glow: #FFD877;
  --night: #141B33;
  --night-2: #2A3560;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 1px 0 rgba(28, 24, 20, .04), 0 18px 40px -18px rgba(28, 24, 20, .22);
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 750; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 .08em; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
section { position: relative; }

/* ---------- small pieces ---------- */
.eyebrow { display: inline-block; font: 600 14px/1 var(--body); color: var(--ink-soft); letter-spacing: .02em; margin-bottom: 14px; }
.eyebrow--light { color: rgba(247, 239, 227, .7); }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 14px/1 var(--body); color: var(--ink-soft); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.tag { display: inline-block; font: 700 11px/1 var(--body); padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); vertical-align: 2px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font: 700 16px/1 var(--body); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(224, 150, 20, .7); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--block { width: 100%; }
.store img { height: 54px; width: auto; transition: transform .2s; }
.store:hover img { transform: translateY(-2px); }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235F8F4E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-head p { color: var(--ink-soft); font-size: 18px; margin-top: 16px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner { width: min(var(--wrap), 100% - 40px); margin: auto; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.sky { position: absolute; inset: -80px 0 0; background: radial-gradient(1200px 600px at 75% 30%, #FFE3B8 0%, rgba(255, 227, 184, 0) 60%), linear-gradient(#FBE6CF, var(--bg) 70%); z-index: -1; }
.cloud { position: absolute; background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); border-radius: 50%; animation: drift 60s linear infinite; }
.c1 { width: 360px; height: 120px; top: 70px; left: -10%; }
.c2 { width: 460px; height: 140px; top: 170px; left: 30%; animation-duration: 85s; animation-delay: -30s; opacity: .7; }
.c3 { width: 320px; height: 110px; top: 40px; left: 60%; animation-duration: 70s; animation-delay: -12s; }
@keyframes drift { from { transform: translateX(-20vw); } to { transform: translateX(120vw); } }

.hero__grid { display: grid; grid-template-columns: .95fr 1.1fr; gap: 40px; align-items: center; min-height: min(78vh, 760px); }
.hero__copy h1 { margin: 22px 0 22px; }
.hero__cta { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin-top: 32px; }
.proof { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.proof li::before { content: "✓"; color: var(--leaf); margin-right: 7px; font-weight: 800; }

.hero__art { position: relative; aspect-ratio: 1; transform: scale(1.12); transform-origin: center; }
.glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 119, .55), rgba(255, 216, 119, 0) 68%); filter: blur(8px); }
.island { position: absolute; inset: 0; }
.scene { animation: float 7s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.island__base { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(60, 40, 20, .18)); }
/* things standing on the island's lawn: --x/--y = foot position, --h = height (shares of the frame) */
.on-lawn { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); height: calc(var(--h) * 100%); width: auto; transform: translate(-50%, -96%); }
.noodle-bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, -96%); } 50% { transform: translate(-50%, -100%); } }

.butterflies { position: absolute; width: 13%; pointer-events: none; }
.b1 { left: 64%; top: 6%; animation: flutter1 14s ease-in-out infinite; }
.b2 { left: 12%; top: 22%; width: 10%; animation: flutter2 17s ease-in-out infinite; }
@keyframes flutter1 {
  0% { translate: 0 0; rotate: -4deg; } 25% { translate: -40px 26px; rotate: 5deg; }
  50% { translate: -10px 60px; rotate: -3deg; } 75% { translate: 30px 20px; rotate: 6deg; } 100% { translate: 0 0; rotate: -4deg; }
}
@keyframes flutter2 {
  0% { translate: 0 0; } 33% { translate: 40px -30px; } 66% { translate: 70px 10px; } 100% { translate: 0 0; }
}
.butterflies { animation-name: flutter1; }
.butterflies { transform-origin: center; }

.motes { position: absolute; inset: 0; pointer-events: none; }
.mote { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 216, 119, .8); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translateY(-180px); } }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: rgba(255, 250, 243, .9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.float-card b { display: block; font: 750 18px/1.1 var(--display); }
.float-card small { color: var(--ink-soft); font-size: 13px; }
.fc1 { left: -4%; bottom: 14%; animation: float 6s ease-in-out infinite reverse; }
.fc2 { right: -2%; top: 12%; animation: float 8s ease-in-out infinite; }
.fc2 img { width: 40px; height: 44px; object-fit: contain; }
.ring { --p: .6; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1turn), var(--surface-alt) 0); position: relative; }
.ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }

/* ---------- island ribbon ---------- */
.ribbon { overflow: hidden; padding: 30px 0 70px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon__track { display: flex; gap: 34px; width: max-content; animation: marquee 70s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon figure { margin: 0; width: 170px; text-align: center; }
.ribbon img { width: 170px; height: 170px; object-fit: contain; transition: transform .4s; }
.ribbon figure:hover img { transform: translateY(-8px) scale(1.04); }
.ribbon figcaption { font: 700 15px/1.2 var(--display); margin-top: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- how ---------- */
.how { padding: 70px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow); }
.step h3 { margin: 22px 0 8px; display: flex; align-items: center; gap: 10px; }
.step h3 i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 800 15px/1 var(--body); }
.step p { color: var(--ink-soft); }
.step__art { height: 190px; border-radius: var(--r-lg); background: linear-gradient(#FCEAD2, #F6E7D2); display: grid; place-items: center; position: relative; overflow: hidden; }
.step__art .big { height: 160px; width: auto; }
.step__art--ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.step__art--ring .track { fill: none; stroke: rgba(28, 24, 20, .08); stroke-width: 6; }
.step__art--ring .arc { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; animation: ring 6s ease-in-out infinite; }
@keyframes ring { 0% { stroke-dashoffset: 327; } 70%, 100% { stroke-dashoffset: 0; } }
.step__art--ring span { position: absolute; font: 800 30px/1 var(--display); }
.step__art--grow { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 22px; }
.step__art--grow img { width: auto; }
.step__art--grow img:nth-child(1) { height: 40px; }
.step__art--grow img:nth-child(2) { height: 80px; }
.step__art--grow img:nth-child(3) { height: 120px; }
.step__art--grow img:nth-child(4) { height: 150px; }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 110px 0 30px; }
.feature--flip .feature__copy { order: 2; }
.feature__copy p { color: var(--ink-soft); font-size: 18px; margin-top: 18px; }
.feature__media { position: relative; height: 600px; }
.phone { position: absolute; margin: 0; width: 280px; aspect-ratio: 590 / 1278; border-radius: 44px; padding: 10px; background: #1C1814; box-shadow: 0 40px 60px -30px rgba(28, 24, 20, .45), inset 0 0 0 2px #3a332c; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 999px; background: #1C1814; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.phone { left: 8%; top: 0; }
.phone.small { width: 230px; left: auto; right: 4%; top: 120px; }
.tilt-l { rotate: -4deg; }
.tilt-r { rotate: 4deg; }
.feature__media .phone { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.feature__media:hover .phone:not(.small) { transform: translateY(-8px); }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 100px 0 40px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.mini .ic { font-size: 26px; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); }
.mini h3 { margin: 16px 0 6px; font-size: 20px; }
.mini p { color: var(--ink-soft); font-size: 16px; }

/* ---------- garden (night) ---------- */
.garden { margin-top: 90px; padding: 110px 0 90px; color: var(--bg); background: radial-gradient(900px 520px at 72% 42%, rgba(255, 190, 61, .26) 0%, rgba(255, 190, 61, 0) 70%), linear-gradient(#2A221B, #1C1814); border-radius: 48px; width: min(1320px, 100% - 24px); margin-inline: auto; overflow: hidden; }
.garden__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.garden p { color: rgba(247, 239, 227, .72); font-size: 18px; margin-top: 18px; }
.stage-ctl { margin-top: 34px; background: rgba(247, 239, 227, .06); border: 1px solid rgba(247, 239, 227, .12); border-radius: var(--r-lg); padding: 22px; }
.stage-ctl label { font-weight: 600; font-size: 14px; color: rgba(247, 239, 227, .7); }
.stage-ctl input { width: 100%; margin: 14px 0 10px; accent-color: var(--accent); height: 28px; }
.stage-meta { display: flex; justify-content: space-between; align-items: baseline; }
.stage-meta b { font: 750 26px/1 var(--display); }
.stage-meta span { color: rgba(247, 239, 227, .6); font-size: 14px; }
.grow { position: relative; height: 480px; display: grid; place-items: end center; }
.grow__halo { position: absolute; width: 460px; height: 460px; border-radius: 50%; top: 4%; left: 50%; translate: -50% 0; background: radial-gradient(circle, rgba(255, 216, 119, .4), rgba(255, 216, 119, 0) 65%); }
.grow img { position: relative; z-index: 1; max-height: 430px; width: auto; margin-bottom: 18px; transition: opacity .25s, transform .4s cubic-bezier(.3, 1.4, .5, 1); transform-origin: bottom center; }
.grow img.pop { transform: scale(.94); opacity: .4; }
.grow__ground { position: absolute; bottom: 0; width: 80%; height: 36px; border-radius: 50%; background: radial-gradient(rgba(255, 190, 61, .35), rgba(255, 190, 61, 0) 70%); }
.species { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 70px; }
.species figure { margin: 0; text-align: center; }
.species img { height: 150px; width: auto; margin: auto; transition: transform .4s; }
.species figure:hover img { transform: translateY(-6px); }
.species figcaption { font: 700 16px/1.3 var(--display); margin-top: 10px; }
.species small { display: block; font: 500 13px var(--body); color: rgba(247, 239, 227, .55); }

/* ---------- islands ---------- */
.islands { padding: 130px 0 40px; }
.island-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.isle { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 10px 16px; text-align: center; transition: transform .35s, box-shadow .35s; }
.isle:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.isle img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 12px; }
.isle h3 { font-size: 16px; margin-top: 4px; }
.isle .tag { position: absolute; top: 10px; right: 10px; }
.isle .tag.free { background: var(--leaf-soft); color: var(--leaf); }
.decor-row { display: flex; justify-content: center; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-top: 46px; }
.decor-row img { height: 74px; width: auto; transition: transform .3s; }
.decor-row img:hover { transform: translateY(-6px) rotate(-3deg); }

/* ---------- noodle ---------- */
.noodle { padding: 130px 0 40px; }
.noodle__hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.noodle__hero p { color: var(--ink-soft); font-size: 18px; margin-top: 18px; }
.noodle__big { width: 100%; max-width: 380px; margin: auto; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(60, 40, 20, .15)); }
.poses { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 50px; }
.poses img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; transition: transform .3s; }
.poses img:hover { transform: translateY(-6px) rotate(-2deg); }
.badges { margin-top: 60px; text-align: center; }
.badges__row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.badges__row img { width: 118px; height: 118px; object-fit: contain; transition: transform .35s; filter: drop-shadow(0 10px 14px rgba(60, 40, 20, .15)); }
.badges__row img:hover { transform: translateY(-8px) scale(1.06); }

/* ---------- ipad ---------- */
.ipad { padding: 130px 0 40px; }
.tablet { margin: 0 auto; max-width: 1000px; border-radius: 36px; padding: 16px; background: #1C1814; box-shadow: 0 50px 80px -40px rgba(28, 24, 20, .5); }
.tablet img { border-radius: 22px; width: 100%; }

/* ---------- pricing ---------- */
.pricing { padding: 130px 0 40px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px; display: flex; flex-direction: column; }
.plan .ticks { flex: 1; margin-bottom: 28px; }
.plan .price { font: 800 48px/1 var(--display); margin-top: 12px; }
.plan .price small { font: 600 16px var(--body); color: var(--ink-soft); }
.plan--pro { background: linear-gradient(160deg, #FFF3D6, var(--surface) 55%); border: 2px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(28, 24, 20, .35); }
.plan__noodle { position: absolute; right: 22px; top: -46px; width: 104px; animation: bob2 3.5s ease-in-out infinite; }
@keyframes bob2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.ribbon-tag { position: absolute; top: 18px; left: 34px; translate: 0 -100%; margin-top: -14px; }
.ribbon-tag { background: var(--ink); color: var(--bg); font: 700 12px/1 var(--body); padding: 7px 12px; border-radius: 999px; }

/* ---------- faq ---------- */
.faq { padding: 130px 0 90px; }
.faq__list { max-width: 760px; margin: auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 24px; }
summary { cursor: pointer; list-style: none; font: 700 19px/1.3 var(--display); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 26px/1 var(--body); color: var(--ink-soft); transition: rotate .3s; }
details[open] summary::after { rotate: 45deg; }
details p { color: var(--ink-soft); padding-bottom: 20px; }

/* ---------- night cta ---------- */
.night { color: var(--bg); background: radial-gradient(800px 400px at 75% 50%, rgba(138, 115, 201, .35), rgba(138, 115, 201, 0) 70%), linear-gradient(var(--night), var(--night-2)); padding: 100px 0; overflow: hidden; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent), radial-gradient(1px 1px at 80% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 92% 25%, #fff, transparent), radial-gradient(1px 1px at 45% 85%, #fff, transparent), radial-gradient(1.4px 1.4px at 20% 50%, #fff, transparent), radial-gradient(1px 1px at 68% 88%, #fff, transparent); opacity: .7; animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .35; } }
.night__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; }
.night h2 { font-size: clamp(38px, 5vw, 64px); }
.night p { color: rgba(247, 239, 227, .7); font-size: 19px; margin: 18px 0 28px; }
.night__art { position: relative; }
.island-float { width: 100%; max-width: 520px; margin: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(138, 115, 201, .35)); }
.night__noodle { position: absolute; width: 18%; left: 46%; top: 22%; animation: float 7s ease-in-out infinite; }

/* ---------- footer ---------- */
.foot { padding: 50px 0 30px; border-top: 1px solid var(--line); }
.foot__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot__grid p { color: var(--ink-soft); margin-top: 12px; font-size: 15px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.foot nav a:hover { color: var(--ink); }
.foot__small { width: min(var(--wrap), 100% - 40px); margin: 30px auto 0; color: var(--ink-faint); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__art { transform: none; }
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
  .hero__grid, .feature, .garden__grid, .noodle__hero, .night__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; width: 100%; margin: 10px auto 0; }
  .feature { gap: 40px; padding-top: 80px; }
  .feature--flip .feature__copy { order: 0; }
  .feature__media { height: 560px; max-width: 520px; width: 100%; margin: auto; }
  .steps, .mini-grid { grid-template-columns: 1fr; }
  .island-grid { grid-template-columns: repeat(3, 1fr); }
  .species { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .poses { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .garden { border-radius: 32px; }
  .grow { height: 400px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 30px; }
  .feature__media { height: 470px; }
  .phone { width: 230px; border-radius: 38px; }
  .phone img { border-radius: 30px; }
  .phone.small { width: 180px; top: 100px; }
  .island-grid { grid-template-columns: repeat(2, 1fr); }
  .fc1 { left: 2%; bottom: 6%; } .fc2 { right: 2%; top: 2%; }
  .badges__row img { width: 84px; height: 84px; }
}

@media (max-width: 760px) {
  .hero .wrap.hero__grid { width: min(1480px, 100% - 40px); }
  .float-card { gap: 8px; padding: 7px 11px 7px 8px; border-radius: 14px; }
  .float-card b { font-size: 13px; }
  .float-card small { font-size: 10.5px; }
  .fc2 img { width: 26px; height: 28px; }
  .ring { width: 26px; height: 26px; }
  .ring::after { inset: 4px; }
  .fc1 { left: 2%; bottom: 6%; }
  .fc2 { right: 2%; top: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ---------- distraction vs focus + how it works (dark green) ---------- */
.slip, .how { color: var(--ink); background: radial-gradient(900px 480px at 50% 8%, rgba(255, 190, 61, .28) 0%, rgba(255, 190, 61, 0) 70%), linear-gradient(var(--bg), #FCE9C8 55%, var(--bg)); padding: 110px 0; }
.how { background: radial-gradient(1000px 600px at 50% 80%, rgba(255, 190, 61, .22) 0%, rgba(255, 190, 61, 0) 70%), linear-gradient(var(--bg), #FBE6C2 60%, var(--bg)); padding-top: 60px; }
.sec-head--light p { color: var(--ink-soft); }
.slip .eyebrow--light, .how .eyebrow--light { color: var(--ink-soft); }
.h2-sm { font-size: clamp(28px, 3.2vw, 40px); }
.slip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.slip__card { text-align: center; padding: 10px 20px 0; }
.slip__card h3 { margin: 18px 0 10px; font-size: 22px; }
.slip__card p { color: var(--ink-soft); max-width: 26em; margin: auto; }
.slip__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 22px 30px; box-shadow: var(--shadow); }
.slip__card .x { color: var(--coral); margin-right: 6px; }
.slip__card .ok { color: var(--leaf); margin-right: 6px; }
.slip__art { height: 230px; display: grid; place-items: center; position: relative; }
.slip__art img { height: 190px; width: auto; position: relative; z-index: 1; }
.slip__art--sad::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(28, 24, 20, .07) 0 2px, transparent 2px 14px); animation: spin 18s linear infinite; }
.slip__art--sad img { filter: saturate(.8); animation: droop 4s ease-in-out infinite; }
.slip__art--happy::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 119, .45), rgba(255, 216, 119, 0) 65%); }
.slip__art--happy img { animation: bob2 3s ease-in-out infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes droop { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 4px; rotate: -3deg; } }
.decline { margin: 70px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 10px; text-align: center; }
.decline img { width: 100%; max-width: 120px; margin: auto; }
.decline img:nth-child(4) { opacity: .85; } .decline img:nth-child(5) { opacity: .75; }
.decline p { grid-column: 1 / -1; color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.how .steps { max-width: 1000px; margin: 0 auto; }
.how .step { background: transparent; border: 0; box-shadow: none; text-align: center; padding: 10px; }
.how .step h3 { justify-content: center; color: var(--bg); margin: 20px 0 8px; }
.how .step p { color: rgba(247, 239, 227, .7); }
.bowl { width: 170px; height: 170px; margin: auto; border-radius: 50%; background: #E9E2A8; position: relative; overflow: hidden; display: grid; place-items: end center; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.bowl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: #7A4E2B; border-top: 6px solid #5C3A1F; }
.bowl img { position: relative; z-index: 1; height: 116px; width: auto; margin-bottom: 52px; }
.bowl img.wilt { height: 104px; filter: saturate(.75); margin-bottom: 50px; }
.gardens { position: relative; height: 760px; max-width: 1100px; margin: 60px auto 0; }
.gardens .g { position: absolute; width: 46%; filter: drop-shadow(0 30px 40px rgba(90, 60, 20, .22)); transition: transform .5s; }
.gardens .g:hover { transform: translateY(-8px) scale(1.02); }
.g1 { left: 2%; top: 22%; } .g2 { left: 27%; top: -4%; z-index: 1; } .g3 { right: 2%; top: 22%; } .g4 { left: 28%; top: 34%; z-index: 2; width: 44%; }
.gardens .g1 { animation: float 9s ease-in-out infinite; } .gardens .g3 { animation: float 8s ease-in-out infinite reverse; }
@media (max-width: 980px) {

}

.sec-head--wide { max-width: 980px; }

/* MindLog-style steps (cream cards with app art) */
.steps--ml { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1060px; margin: 0 auto; }
.mlstep { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px 18px 26px; box-shadow: var(--shadow); }
.mlstep h3 { display: flex; align-items: center; gap: 10px; margin: 20px 6px 8px; }
.mlstep h3 i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 800 15px/1 var(--body); }
.mlstep p { color: var(--ink-soft); margin: 0 6px; }
.mlstep__art { position: relative; height: 220px; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 45%, #FFF3D6, #F6E7D2 70%); display: grid; place-items: center; overflow: hidden; }
.mlstep__art--dim { background: radial-gradient(circle at 50% 45%, #EFE6DA, #E6DCCD 70%); }
.mlring { position: absolute; width: 176px; height: 176px; transform: rotate(-90deg); }
.mlring .track { fill: none; stroke: rgba(28, 24, 20, .08); stroke-width: 4; }
.mlring .arc { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; animation: ring 7s ease-in-out infinite; }
.mlring .arc--stuck { stroke: var(--ink-faint); animation: none; stroke-dashoffset: 220; }
.mlstep__sprout { height: 92px; width: auto; position: relative; top: 8px; }
.mlstep__noodle { height: 110px; width: auto; position: relative; filter: saturate(.8); animation: droop 4s ease-in-out infinite; }
.chip { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; background: var(--ink); color: var(--bg); font: 700 13px/1 var(--body); padding: 7px 12px; border-radius: 999px; }
.chip--coral { background: var(--coral); }
.chip--leaf { background: var(--leaf); }
.mini-isle { position: relative; width: 170px; margin-top: 70px; animation: float 6s ease-in-out infinite; }
.mini-isle img:first-child { width: 100%; }
.mini-isle__tree { position: absolute; height: 50%; left: 47%; top: 36%; transform: translate(-50%, -96%); }
@media (max-width: 980px) { .steps--ml { grid-template-columns: 1fr; max-width: 460px; } }

/* "Free forever" line above the hero title: plain text, amber hand-drawn underline */
.kicker { font: 500 17px/1.4 var(--body); color: var(--ink-soft); margin: 0; }
.kicker__mark { font: 750 19px/1 var(--display); color: var(--ink); letter-spacing: -.01em; padding-bottom: 6px; margin-right: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 30 2, 60 2, 118 6' fill='none' stroke='%23FFBE3D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 9px no-repeat; }

/* Hero uses more of big screens than the 1180 px content column */
.hero .wrap.hero__grid { width: min(1480px, 100% - 64px); min-height: min(86vh, 900px); gap: 3vw; }
.hero h1 { font-size: clamp(32px, 3.6vw, 68px); text-wrap: balance; }
@media (max-width: 980px) {
  .hero h1 { font-size: clamp(24px, 6.6vw, 50px); }
}
@media (min-width: 1300px) {
  .hero h1 { font-size: clamp(48px, 3.7vw, 68px); }
  .hero .lead { font-size: 20px; }
}
/* Enlarge the hero island only where there's room for its floating cards. */
@media (min-width: 1600px) { .hero__art { transform: scale(1.16); } }
@media (min-width: 981px) and (max-width: 1599px) { .hero__art { transform: scale(1.04); } }
.nav__inner { width: min(1480px, 100% - 64px); }

/* ---------- footer v2 ---------- */
.foot { padding: 0; border-top: 0; margin-top: 0; }
.foot__scene { position: relative; height: 150px; max-width: 1180px; margin: 0 auto; }
.foot__scene::after { content: ""; position: absolute; left: -40vw; right: -40vw; bottom: -1px; height: 46px; background: #A9C97F;
  clip-path: polygon(0 60%, 6% 40%, 12% 55%, 20% 35%, 28% 52%, 36% 38%, 44% 56%, 52% 36%, 60% 50%, 68% 34%, 76% 52%, 84% 38%, 92% 55%, 100% 42%, 100% 100%, 0 100%); }
.fs { position: absolute; bottom: 30px; width: auto; z-index: 1; }
.fs1 { left: 4%; height: 120px; } .fs2 { left: 16%; height: 70px; } .fs3 { left: 46%; height: 84px; animation: bob2 3s ease-in-out infinite; }
.fs4 { right: 8%; height: 130px; } .fs5 { right: 22%; height: 44px; } .fs6 { left: 30%; height: 38px; }
.foot__body { background: linear-gradient(#A9C97F 0, #A9C97F 0) top / 100% 0 no-repeat, linear-gradient(#FFF1D6, #FCE3B6); border-top: 10px solid #88AE62; padding: 56px 0 26px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot__brand p { color: var(--ink-soft); margin: 14px 0 18px; max-width: 30em; font-size: 15px; }
.foot__brand .store img { height: 46px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col h4 { margin: 4px 0 6px; font: 750 16px/1 var(--display); }
.foot__col a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 15px; width: fit-content; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .25s, color .2s; }
.foot__col a:hover { color: var(--ink); background-size: 100% 2px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(28, 24, 20, .1); }
.foot__bottom p { color: var(--ink-soft); font-size: 13px; }
@media (max-width: 760px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .fs2, .fs6 { display: none; }
}

/* ---------- warm ending: finale + footer as one piece ---------- */
.finale { padding: 120px 0 60px; background: radial-gradient(900px 520px at 72% 55%, rgba(255, 190, 61, .32), rgba(255, 190, 61, 0) 70%), linear-gradient(var(--bg), #FCE6C0); }
.finale__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.finale h2 { font-size: clamp(38px, 4.6vw, 62px); }
.finale p { color: var(--ink-soft); font-size: 19px; margin: 18px 0 28px; max-width: 26em; }
.finale__art { position: relative; display: grid; place-items: center; }
.finale__glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 119, .55), rgba(255, 216, 119, 0) 65%); }
.finale__island { position: relative; width: 100%; max-width: 560px; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(120, 80, 20, .22)); }
.foot__body { background: #FCE6C0; border-top: 0; padding: 40px 0 26px; }
.foot__brandrow { display: flex; align-items: flex-end; gap: 14px; }
.foot__noodle { height: 54px; width: auto; animation: bob2 3s ease-in-out infinite; }
.foot__bottom { border-top-color: rgba(28, 24, 20, .12); }
@media (max-width: 980px) { .finale__grid { grid-template-columns: 1fr; } }

/* ---------- night ending: CTA and footer share one sky ---------- */
.night { padding: 120px 0 80px; background: radial-gradient(800px 420px at 74% 50%, rgba(138, 115, 201, .35), rgba(138, 115, 201, 0) 70%), linear-gradient(#141B33, #1E2852); }
.foot--night { position: relative; background: linear-gradient(#1E2852, #141B33); color: var(--bg); overflow: hidden; }
.foot--night::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 8% 30%, #fff, transparent), radial-gradient(1px 1px at 22% 70%, #fff, transparent), radial-gradient(1.4px 1.4px at 40% 20%, #fff, transparent), radial-gradient(1px 1px at 63% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 81% 35%, #fff, transparent), radial-gradient(1px 1px at 93% 75%, #fff, transparent); opacity: .5; pointer-events: none; }
.foot--night .foot__body { background: transparent; padding-top: 30px; border-top: 1px solid rgba(247, 239, 227, .08); }
.foot--night .brand { color: var(--bg); }
.foot--night .foot__brand p, .foot--night .foot__bottom p { color: rgba(247, 239, 227, .6); }
.foot--night .foot__col h4 { color: var(--bg); }
.foot--night .foot__col a { color: rgba(247, 239, 227, .7); }
.foot--night .foot__col a:hover { color: var(--accent); }
.foot--night .foot__bottom { border-top-color: rgba(247, 239, 227, .1); }
.night { border-radius: 56px 56px 0 0; }

/* Google Play badge: its image has built-in padding, so it's drawn larger
   and pulled in to sit level with the App Store badge. */
.store--play, .dl__store--play { position: relative; }
.store--play img { height: 80px; width: auto; margin: -13px -10px; }
.store--play::after, .dl__store--play::after {
  content: "Coming soon";
  position: absolute;
  top: -5px;
  right: -2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font: 800 9px/1.2 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(28, 24, 20, .2);
  pointer-events: none;
  z-index: 2;
}
.stores { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }

/* ---------- navbar v2: floats over the hero sky, frosted once scrolled ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.nav__inner { height: 76px; }
.brand span { font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.nav__links { gap: 30px; }
.nav__links a { position: relative; font: 600 16px/1 var(--display); letter-spacing: -.005em; color: var(--ink); opacity: .78; padding: 6px 0; transition: opacity .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav .btn--sm { font: 700 16px/1 var(--display); letter-spacing: -.005em; height: 44px; padding: 0 22px; }
/* the hero now starts under the floating nav */
.hero { padding-top: 140px; }
.sky { inset: 0; }
@media (max-width: 560px) { .hero { padding-top: 104px; } .nav__inner { height: 64px; } }
html { scroll-padding-top: 90px; }

/* ---------- download dialog ---------- */
.dl { border: 0; padding: 30px 34px 34px; width: min(460px, 100% - 32px); border-radius: 32px; background: linear-gradient(170deg, #FFF3D6, var(--surface) 55%); color: var(--ink); text-align: center; box-shadow: 0 40px 80px -30px rgba(28, 24, 20, .45); overflow: visible; }
.dl::backdrop { background: rgba(28, 24, 20, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dl[open] { animation: dlIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes dlIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.dl__noodle { width: 120px; height: auto; margin: -86px auto 6px; animation: bob2 3s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(60, 40, 20, .2)); }
.dl h2 { font-size: 34px; }
.dl p { color: var(--ink-soft); margin: 10px auto 24px; max-width: 22em; }
.dl__stores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl__store { display: grid; justify-items: center; gap: 8px; padding: 16px 10px 12px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--surface); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.dl__store:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.dl__store img { height: 48px; width: auto; }
.dl__store--play img { height: 70px; margin: -11px -8px; }
.dl__store small { font: 600 13px/1 var(--body); color: var(--ink-soft); }
.dl__store.is-yours { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dl__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-alt); color: var(--ink); font-size: 15px; cursor: pointer; }
.dl__close:hover { background: var(--line); }
@media (max-width: 420px) { .dl__stores { grid-template-columns: 1fr; } }

/* ---------- navbar links v3: frosted pill + scroll-aware highlight ---------- */
.nav__links { gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255, 250, 243, .55); border: 1px solid rgba(229, 216, 197, .9); box-shadow: 0 8px 24px -16px rgba(28, 24, 20, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__links a { padding: 10px 16px; border-radius: 999px; opacity: 1; color: var(--ink-soft); font: 600 15px/1 var(--display); transition: background .25s, color .25s; }
.nav__links a::after { display: none; }
.nav__links a:hover { background: var(--accent-soft); color: var(--ink); }
.nav__links a.is-current { background: var(--ink); color: var(--bg); }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--accent); color: var(--ink); text-decoration: none; font: 700 16px/1 var(--display); box-shadow: 0 10px 22px -10px rgba(224, 150, 20, .75), inset 0 -2px 0 rgba(28, 24, 20, .12); transition: transform .2s, box-shadow .2s; }
.nav__cta svg { width: 18px; height: 18px; }
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(224, 150, 20, .85), inset 0 -2px 0 rgba(28, 24, 20, .12); }
.nav__inner .nav__cta { margin-left: 8px; }
@media (max-width: 980px) { .nav__inner .nav__cta { margin-left: auto; } }
.dl__close:focus-visible, .dl__store:focus-visible, .nav__cta:focus-visible, .nav__links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dl__close:focus:not(:focus-visible) { outline: none; }

/* Dialog: badges stand on their own (no card around them) */
.dl__stores { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: nowrap; }
.dl__store { display: block; padding: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: none; }
.dl__store:hover { transform: translateY(-3px); border-color: transparent; box-shadow: none; }
.dl__store img { height: 54px; }
.dl__store--play img { height: 80px; margin: -13px -10px; }
.dl__store.is-yours { box-shadow: none; filter: drop-shadow(0 8px 14px rgba(224, 150, 20, .45)); }

/* The island collage keeps its overlapping layout on every screen: it scales
   with the width instead of turning into a 2x2 grid on phones. */
.gardens { height: auto; aspect-ratio: 1100 / 760; width: 100%; }
@media (max-width: 760px) {
  .gardens { aspect-ratio: 1 / 0.82; margin-top: 30px; }
  .gardens .g { width: 54%; }
  .g1 { left: -4%; top: 24%; } .g3 { right: -4%; top: 24%; } .g2 { left: 23%; top: -2%; } .g4 { left: 23%; top: 40%; width: 54%; }
}

/* Step 3 card: the whole island (nothing clipped), badge in the corner */
.mlstep__garden { width: 250px; max-width: none; height: auto; margin-top: 4px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(90, 60, 20, .2)); }
.chip--top { top: 12px; bottom: auto; left: auto; right: 12px; translate: none; }

/* Distraction vs focus: always side by side, compact on phones */
.slip__grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .slip__grid { gap: 12px; }
  .slip__card { padding: 16px 12px 18px; border-radius: 22px; }
  .slip__art { height: 118px; }
  .slip__art img { height: 98px; }
  .slip__art--sad::before, .slip__art--happy::before { width: 120px; height: 120px; }
  .slip__card h3 { font-size: 15px; margin: 10px 0 6px; }
  .slip__card p { font-size: 12.5px; line-height: 1.5; }
  .slip { padding: 70px 0; }
  .decline { margin-top: 40px; gap: 4px; }
}

/* Island gallery on phones: one swipeable row instead of a long grid */
@media (max-width: 760px) {
  .island-grid { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -20px; padding: 6px 20px 22px; scrollbar-width: none; }
  .island-grid::-webkit-scrollbar { display: none; }
  .island-grid .isle { flex: 0 0 62%; max-width: 240px; }
}

/* Meet Noodle: smaller picture on phones */
@media (max-width: 760px) {
  .noodle { padding-top: 90px; }
  .noodle__hero { gap: 18px; text-align: center; }
  .noodle__big { max-width: 210px; }
}

/* Night section: an uneven, magical blue-purple field with grass on top (no curve) */
.night { border-radius: 0; overflow: visible; margin-top: 70px; }
.night::before { content: ""; position: absolute; left: 0; right: 0; top: -95px; height: 96px; pointer-events: none; z-index: 2;
  background: url("../img/night-grass.svg") repeat-x center bottom / 1200px 96px; }
@media (max-width: 760px) { .night { margin-top: 56px; } .night::before { background-size: 800px 64px; height: 64px; top: -63px; } }

/* Night sky: two layers of stars that twinkle out of step */
.night .stars { background: url("../img/stars-a.svg") repeat 0 0 / 1000px 760px; opacity: .85; animation: twinkle 5s ease-in-out infinite alternate; }
.night .stars--b { background: url("../img/stars-b.svg") repeat 140px 90px / 1000px 760px; opacity: 1; animation: twinkle 3.2s ease-in-out infinite alternate-reverse; }
.foot--night::before { background-image: url("../img/stars-a.svg"); background-size: 1000px 760px; opacity: .55; }
/* Store badges: same black style, with a soft light edge on the night sky */
.night .store img, .night .store--play img { filter: drop-shadow(0 0 0 transparent); }
.night .store img:not([alt*="Google"]) { border-radius: 9px; box-shadow: 0 0 0 1px rgba(247, 239, 227, .28); }

/* "Study hours slipping away": starts with a sunny meadow edge, no hard line */
.slip { position: relative; margin-top: 70px; background: linear-gradient(#FBE9C6, #FCE9C8 55%, var(--bg)); }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -95px; height: 96px; pointer-events: none; z-index: 2;
  background: url("../img/field-grass.svg") repeat-x center bottom / 1200px 96px; }
@media (max-width: 760px) { .slip { margin-top: 56px; } .slip::before { background-size: 800px 64px; height: 64px; top: -63px; } }

/* Butterflies: fly across the whole hero section and land on the island */
.bflies { position: absolute; inset: 0; pointer-events: none; z-index: 12; overflow: hidden; }
.bf { position: absolute; left: 0; top: 0; will-change: transform; }
.bf svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 3px 4px rgba(60, 40, 20, .2)); }
.bf__wing { transform-origin: 32px 29px; will-change: transform; }

/* Prevent dragging / long-press saving of artwork assets */
img, picture, svg, canvas { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; user-select: none; }

/* Keep App Store & Google Play badges on one line on every screen width */
@media (max-width: 560px) {
  .hero__cta, .stores, .dl__stores { gap: 10px; }
  .store img, .dl__store img { height: clamp(36px, 10.5vw, 50px); }
  .store--play img, .dl__store--play img { height: clamp(54px, 15.6vw, 74px); margin: -9px -7px; }
  .store--play::after, .dl__store--play::after { font-size: 8px; padding: 2px 5px; top: -4px; right: 0; }
}

/* Island strip is interactive: pick the hero island */
.island__base { transition: opacity .25s ease, transform .25s ease; }
.island__base.is-swapping { opacity: 0; transform: scale(.985); }
.ribbon figure { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ribbon figcaption { display: inline-block; padding: 5px 12px; border-radius: 999px; transition: background .25s, color .25s; }
.ribbon figure:hover figcaption { background: var(--accent-soft); }
.ribbon figure.is-selected figcaption { background: var(--accent); color: var(--ink); }
.ribbon figure.is-selected img { transform: translateY(-8px) scale(1.06); filter: drop-shadow(0 12px 14px rgba(224, 150, 20, .4)); }
.ribbon figure:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 20px; }

/* "Noodle" in the hero line: shimmering, clickable, with a tooltip */
.noodle-link { position: relative; display: inline-block; text-decoration: none; padding: 0 .18em; margin: 0 -.04em; border-radius: 8px; color: var(--ink); cursor: pointer;
  background: linear-gradient(transparent 58%, rgba(255, 190, 61, .55) 58%); transition: background .25s, transform .25s; }
.noodle-link span { font-weight: 700; background: linear-gradient(110deg, #1C1814 38%, #E8920C 50%, #1C1814 62%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: noodleShine 3.4s ease-in-out infinite; }
@keyframes noodleShine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.noodle-link::before { content: ""; position: absolute; left: 50%; top: -14px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 216, 119, .95); opacity: 0; animation: noodleGlint 3.4s ease-in-out infinite; }
@keyframes noodleGlint { 0%, 38% { opacity: 0; transform: translate(-30px, 6px) scale(.4); } 50% { opacity: 1; transform: translate(0, 0) scale(1); } 62%, 100% { opacity: 0; transform: translate(30px, -4px) scale(.4); } }
.noodle-link::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 6px; white-space: nowrap; padding: 9px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font: 700 14px/1 var(--display); letter-spacing: 0; box-shadow: 0 14px 24px -12px rgba(28, 24, 20, .5); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.noodle-link:hover, .noodle-link:focus-visible { background: linear-gradient(transparent 20%, rgba(255, 190, 61, .8) 20%); transform: translateY(-1px); }
.noodle-link:hover::after, .noodle-link:focus-visible::after { opacity: 1; translate: -50% 0; }
.noodle-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .noodle-link span { animation: none; -webkit-text-fill-color: var(--ink); background: none; } .noodle-link::before { display: none; } }
