/* Mebae website — storybook look of the App Store header art: cream sky, sprout green,
   rounded type. Light only on purpose (it's an illustrated scene). */
:root {
  color-scheme: light;
  --cream: #FBF6EA;
  --paper: #FFFDF7;
  --ink: #2B2A1F;
  --body: #5C5A48;
  --mute: #8A8772;
  --line: #EAE2CF;
  --green: #4FA62C;
  --deep: #2F7A12;
  --leaf: #7CC448;
  --pink: #FF8FA3;
  --sun: #FFC94D;
  --sky: #8FC7F0;
  --blue: #3D8BE8;
  /* part-of-speech underlines, as the app draws them (JapaneseWordClass.underlineColor) */
  --noun: rgb(217 184 41); --verb: rgb(92 191 97); --adj: rgb(242 153 66); --adv: rgb(186 140 230); --function: rgb(77 194 212);
  --round: "Nunito", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "PingFang SC", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(60, 70, 30, .06), 0 14px 34px -14px rgba(60, 80, 30, .28);
}
:lang(zh) { --round: "Nunito", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
[lang="ja"] { --round: "Nunito", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 17px/1.6 var(--round); -webkit-font-smoothing: antialiased; }
/* clip, not hidden: iOS Safari still lets a hidden-overflow body pan sideways, and clip keeps the sticky nav working. */
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
.title { text-align: center; font-size: clamp(30px, 4.4vw, 48px); }
.eyebrow { display: inline-flex; align-self: flex-start; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--deep); background: rgba(93, 178, 52, .14); padding: 7px 16px; border-radius: 99px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.nav::before { content: ""; position: absolute; inset: 0 auto; left: 50%; width: 100vw; margin-left: -50vw; background: rgba(251, 246, 234, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); opacity: 0; transition: opacity .3s; z-index: -1; border-bottom: 1px solid rgba(234, 226, 207, .8); }
.scrolled .nav::before, body:not(.home) .nav::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 6px rgba(60, 80, 30, .2); }
.brand .name { font-size: 21px; font-weight: 900; letter-spacing: -.01em; }
.brand .kana { font-family: "Zen Maru Gothic", sans-serif; font-size: 13px; font-weight: 700; color: var(--green); }
.links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 700; }
.links > a:not(.cta) { text-decoration: none; color: var(--body); }
.links > a:not(.cta):hover { color: var(--ink); }
.langs { display: flex; gap: 2px; background: rgba(255, 255, 255, .6); border-radius: 99px; padding: 3px; }
.langs a { white-space: nowrap; text-decoration: none; padding: 4px 10px; border-radius: 99px; font-size: 13.5px; color: var(--body); }
.langs a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(60, 70, 30, .15); }
.cta { white-space: nowrap; text-decoration: none; background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 99px; font-weight: 800; transition: transform .2s; }
.cta:hover { transform: translateY(-1px); }

/* ---------- hero ---------- */
.home .nav { margin-bottom: -76px; }
.hero { position: relative; padding: 116px 0 170px; overflow: hidden; background: linear-gradient(var(--cream), #FBF3E1 55%, #EEF6DC); }
/* The top edge is plain cream (theme-color) so Safari's bars, tinted from it, blend into the page. */
.hero::after { content: ""; position: absolute; z-index: 0; inset: 0 0 auto; height: 200px; background: linear-gradient(var(--cream) 30%, rgba(251, 246, 234, 0)); pointer-events: none; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; }
.sky::before { width: 760px; height: 760px; left: -260px; top: -240px; background: radial-gradient(closest-side, #FFE1CF, rgba(255, 225, 207, 0)); opacity: .7; }
.sky::after { width: 820px; height: 820px; right: -280px; top: -180px; background: radial-gradient(closest-side, #DDF1D2, rgba(221, 241, 210, 0)); opacity: .9; }
.rays { position: absolute; left: 72%; top: 52%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 196, .55) 0 6.4deg, transparent 6.4deg 12.8deg);
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 100%); mask: radial-gradient(closest-side, #000 25%, transparent 100%);
  animation: spin 120s linear infinite; }
.cloud { position: absolute; fill: #fff; opacity: .92; animation: drift 46s ease-in-out infinite alternate; }
.cloud.c1 { left: 3%; top: 15%; }
.cloud.c2 { left: 38%; top: 9%; opacity: .75; animation-duration: 58s; }
.cloud.c3 { right: 2%; top: 22%; animation-duration: 52s; animation-direction: alternate-reverse; }
.cloud.c4 { left: 46%; top: 58%; opacity: .6; animation-duration: 40s; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.intro { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -.035em; }
:lang(ja) .hero h1, :lang(zh) .hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.14; letter-spacing: -.02em; }
.hero h1 em { color: var(--green); background: linear-gradient(transparent 68%, rgba(255, 201, 77, .5) 68% 92%, transparent 92%); padding: 0 .06em; }
.sub { font-size: 19px; line-height: 1.65; color: var(--body); max-width: 31em; }
.get { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.badge img { height: 54px; width: auto; transition: transform .2s; }
.badge:hover img { transform: translateY(-2px); }
.meta { font-size: 14px; font-weight: 700; color: var(--mute); }

.stage-hero { position: relative; display: flex; justify-content: center; min-height: 600px; }
.hero-phone { position: relative; z-index: 2; width: 450px; max-width: none; height: auto; margin: -60px -60px -70px; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.buddy { position: absolute; z-index: 3; left: -6%; bottom: -34px; width: 230px; animation: bob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.buddy .waves path { animation: pulse 1.8s ease-in-out infinite; }
.buddy .waves path:nth-child(3n+2) { animation-delay: .2s; } .buddy .waves path:nth-child(3n) { animation-delay: .4s; }
.sprout .leaves { transform-origin: 1920px 690px; animation: sway 4.5s ease-in-out infinite; }
.bubble { position: absolute; z-index: 1; display: grid; place-items: center; font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; font-weight: 900; border-radius: 22px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.bubble::after { content: ""; position: absolute; bottom: -10px; left: 30%; width: 18px; height: 18px; background: inherit; border-radius: 3px; transform: rotate(45deg) skew(8deg, 8deg); z-index: -1; }
.bubble ruby { ruby-position: over; } .bubble rt { font-size: .32em; font-weight: 700; }
.b1 { left: 2%; top: 6%; width: 86px; height: 78px; font-size: 48px; background: #fff; color: var(--green); --r: -8deg; }
.b2 { right: 0; top: 2%; width: 92px; height: 92px; font-size: 48px; background: #FFE3E9; color: #D9536E; --r: 7deg; animation-delay: -2s; }
.b3 { right: -2%; top: 44%; width: 82px; height: 64px; font-family: var(--round); font-size: 30px; background: #E4F0FF; color: var(--blue); --r: 6deg; animation-delay: -4s; }
.b4 { left: 0; top: 40%; width: 62px; height: 62px; font-size: 32px; border-radius: 50%; background: #FFF3C9; color: #E09A1A; --r: -9deg; animation-delay: -1s; }
.b5 { right: 8%; bottom: 14%; width: 54px; height: 54px; font-size: 28px; border-radius: 16px; background: #E9F7DC; color: var(--green); --r: 10deg; animation-delay: -3s; }
.b5::after, .b6::after { display: none; }
.b6 { left: 10%; top: -4%; width: 50px; height: 50px; font-size: 26px; border-radius: 15px; background: #F1E9FF; color: #8A63D2; --r: -9deg; animation-delay: -5s; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; pointer-events: none; }
.ground .hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.ground::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: linear-gradient(transparent, var(--cream)); }
.daisy { position: absolute; z-index: 1; animation: sway 5s ease-in-out infinite; }

/* ---------- steps ---------- */
.steps { padding-block: 70px 40px; }
.step-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.step-list::before { content: ""; position: absolute; left: 16%; right: 16%; top: 66px; border-top: 3px dashed #CFE3B4; z-index: 0; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 10px; }
.stage { width: 132px; height: 132px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); display: grid; place-items: center; padding: 10px; }
.num { margin-top: -26px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--cream); }
.step h3 { font-size: 22px; margin-top: 6px; }
.step p { color: var(--body); font-size: 16px; max-width: 20em; }

/* ---------- interactive transcript ---------- */
.reader-sec { padding-block: 90px; scroll-margin-top: 60px; }
.reader-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.reader-copy { display: flex; flex-direction: column; gap: 20px; }
.reader-copy h2 { font-size: clamp(34px, 4.6vw, 54px); }
.reader-copy p { color: var(--body); font-size: 17.5px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { font: 800 14.5px/1 var(--round); border: 2px solid var(--line); background: #fff; color: var(--mute); border-radius: 99px; padding: 10px 16px 10px 34px; cursor: pointer; position: relative; transition: all .2s; }
.toggle::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid #D5CDB8; transition: all .2s; }
.toggle[aria-pressed="true"] { border-color: var(--green); color: var(--deep); background: #F2FAEA; }
.toggle[aria-pressed="true"]::before { background: var(--green) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="M3.5 7.2 6 9.5l4.5-5" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/12px no-repeat; border-color: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; font-weight: 700; color: var(--body); }
.lg::before { content: ""; display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--c); }
.lg.noun { --c: var(--noun); } .lg.verb { --c: var(--verb); } .lg.adj { --c: var(--adj); } .lg.adv { --c: var(--adv); } .lg.function { --c: var(--function); }

.reader-card { position: relative; background: var(--paper); border-radius: 30px; box-shadow: 0 2px 4px rgba(60, 70, 30, .05), 0 30px 60px -24px rgba(60, 80, 30, .35); padding: 22px 26px 18px; border: 1px solid #F0E8D4; }
.reader-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.art { width: 46px; height: 46px; flex: none; border-radius: 10px; color: #fff; font: 900 9.5px/1.15 "Zen Maru Gothic", var(--round); padding: 5px; display: flex; align-items: flex-end; }
.ep { font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.show { font-size: 13px; color: var(--mute); font-weight: 700; }
.play { margin-left: auto; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(61, 139, 232, .6); transition: transform .15s; }
.play:active { transform: scale(.94); }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .i-pause, .playing .play .i-play { display: none; } .playing .play .i-pause { display: inline; }
.reader { position: relative; height: 430px; overflow-y: auto; scroll-behavior: smooth; padding: 14px 4px 120px; -webkit-mask: linear-gradient(transparent, #000 6%, #000 80%, transparent); mask: linear-gradient(transparent, #000 6%, #000 80%, transparent); scrollbar-width: none; }
.reader::-webkit-scrollbar { display: none; }
.line { padding: 12px 10px; border-radius: 16px; cursor: pointer; transition: background .3s; }
.line + .line { margin-top: 4px; }
.line .t { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 9px; row-gap: 8px; font-size: 22px; line-height: 1.25; color: var(--ink); opacity: .45; transition: opacity .3s; }
.line.on .t { opacity: 1; }
.line .tr { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--mute); padding-left: 2px; }
.line.on .tr { color: var(--body); }
.pb { display: flex; align-items: flex-end; border-radius: 9px; padding: 3px 4px 4px; transition: background .3s; }
.line.on .pb { background: rgba(43, 42, 31, .055); }
.w { position: relative; display: inline-flex; flex-direction: column; align-items: center; border-radius: 6px; padding: 0 1px 4px; cursor: pointer; transition: background .15s, color .15s; }
.w ruby { ruby-position: over; ruby-align: center; }
.w rt { font-size: 11px; line-height: 1.3; font-weight: 700; color: var(--mute); letter-spacing: .02em; }
.w .s { white-space: pre; }
.w::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 3px; border-radius: 2px; background: var(--c, transparent); opacity: 0; transition: opacity .3s; }
.line.on .w::after { opacity: .8; }
.w.noun { --c: var(--noun); } .w.verb { --c: var(--verb); } .w.adj { --c: var(--adj); } .w.adv { --c: var(--adv); } .w.function { --c: var(--function); }
.line.on .w.up { opacity: .55; }
.w.now { background: rgba(61, 139, 232, .14); color: var(--blue); }
.w.now rt { color: var(--blue); }
.w:hover { background: rgba(61, 139, 232, .1); }
[lang="en"] .line .t { column-gap: 0; font-size: 21px; }
[lang="en"] .line.on .pb { background: none; }
.no-furigana .w rt { display: none; }
.no-boxes .line.on .pb { background: none; }
.no-boxes .line .t { column-gap: 7px; }
.no-colors .w::after { display: none; }
.no-translation .tr { display: none; }
.hint { position: absolute; right: 22px; bottom: 16px; font-size: 13px; font-weight: 800; color: var(--deep); background: #E9F7DC; padding: 6px 12px; border-radius: 99px; pointer-events: none; transition: opacity .4s; }
.hint .tap { display: inline-block; animation: tap 1.6s ease-in-out infinite; }
.reader-card.used .hint { opacity: 0; }
.pop { position: absolute; z-index: 10; width: min(300px, calc(100% - 24px)); background: #fff; border-radius: 20px; box-shadow: 0 2px 6px rgba(40, 50, 20, .1), 0 24px 50px -16px rgba(40, 60, 20, .45); padding: 16px 18px 14px; animation: pop .22s cubic-bezier(.2, .9, .3, 1.3) both; }
.pop .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-right: 28px; }
.pop .word { font-size: 24px; font-weight: 900; }
.pop .read { font-size: 14px; color: var(--mute); font-weight: 700; }
.pop .kind { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; color: #fff; background: var(--c, var(--mute)); }
.pop .mean { margin-top: 8px; font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.pop .more { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--body); line-height: 1.5; }
.pop .x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #F2EEE2; color: var(--body); font-size: 16px; cursor: pointer; line-height: 1; }

/* ---------- peek ---------- */
.peek { padding-block: 60px 30px; }
.peek-row { display: flex; gap: 0; justify-content: center; padding: 40px 28px 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.peek-row::-webkit-scrollbar { display: none; }
.peek-item { margin: 0 -40px; flex: none; width: 320px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.peek-item:nth-child(odd) { transform: translateY(24px); }
.peek-item:hover { transform: translateY(-6px); }
.peek-item img { width: 100%; height: auto; }
.peek-item figcaption { position: relative; font-size: 15px; font-weight: 800; color: var(--deep); background: #E9F7DC; padding: 5px 14px; border-radius: 99px; margin-top: -58px; }

/* ---------- features ---------- */
.grow { padding-block: 80px; }
.grow .cards { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border-radius: 26px; padding: 22px 24px 26px; border: 1px solid #F0E8D4; box-shadow: 0 1px 2px rgba(60, 70, 30, .04); display: flex; flex-direction: column; gap: 8px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pic { height: 132px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px; }
.pic svg { height: 104px; width: auto; }
.pic.shadow { background: #EEF5FF; } .pic.loop { background: #FFF6DE; } .pic.notes { background: #FFEFF2; }
.pic.queue { background: #EFF8E6; } .pic.web { background: #F3EEFF; } .pic.sync { background: #E8F4FC; }
.card h3 { font-size: 21px; }
.card p { color: var(--body); font-size: 15.5px; }

/* ---------- languages ---------- */
.tongues { padding-block: 40px 70px; text-align: center; }
.tongues h2 { font-size: clamp(28px, 3.8vw, 40px); }
.tongues p { color: var(--body); margin-top: 10px; }
.marquee { margin-top: 30px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.track span { font-size: 18px; font-weight: 800; padding: 10px 20px; border-radius: 99px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.track span:nth-child(4n+1) { background: #E9F7DC; } .track span:nth-child(4n+2) { background: #FFF3C9; } .track span:nth-child(4n+3) { background: #FFE3E9; } .track span:nth-child(4n) { background: #E4F0FF; }

/* ---------- privacy band ---------- */
.band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: radial-gradient(120% 140% at 0% 0%, #3B6B22, #20381A 60%); color: #F4F1E4; border-radius: 36px; padding: 56px; }
.band-leaf { position: absolute; width: 260px; fill: #5DB234; opacity: .22; }
.band-leaf.l1 { right: -60px; top: -30px; transform: rotate(150deg); }
.band-leaf.l2 { left: -70px; bottom: -40px; transform: rotate(-30deg); width: 220px; }
.say { position: relative; display: flex; flex-direction: column; gap: 16px; }
.say h2 { font-size: clamp(30px, 3.8vw, 44px); }
.say p { color: #CFD8C0; }
.say a { color: #C8F08F; font-weight: 800; text-decoration: none; }
.points { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.point { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 18px; }
.point h3 { font-size: 16.5px; color: #fff; letter-spacing: -.01em; }
.point p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #C3CEB2; }

/* ---------- plans ---------- */
.plans { padding-block: 90px 40px; }
.plans .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 44px auto 0; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 28px 30px; }
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--body); }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: #E9F7DC url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M5 9.4 7.8 12 13 6.4" fill="none" stroke="%234FA62C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/14px no-repeat; }
.plan.premium { border: 2px solid var(--leaf); background: linear-gradient(160deg, #F7FCEF, var(--paper)); }
.pill { font-size: 12px; font-weight: 800; background: var(--green); color: #fff; padding: 4px 10px; border-radius: 99px; letter-spacing: .01em; }

/* ---------- ending ---------- */
.end { position: relative; padding: 70px 0 200px; text-align: center; overflow: hidden; }
.end::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(closest-side, #FFF1C9, transparent); }
.end-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.end-buddy { width: 220px; animation: bob 3.6s ease-in-out infinite; }
.end h2 { font-size: clamp(32px, 4.6vw, 52px); }
.end p { color: var(--body); font-size: 18px; margin-bottom: 8px; }
.end .ground { height: 150px; }
.end .ground::after { display: none; }

/* ---------- footer ---------- */
.foot { background: #9FD465; color: #23401A; padding-block: 8px 30px; font-size: 14px; font-weight: 700; }
body:not(.home) .foot { background: transparent; color: var(--body); border-top: 1px solid var(--line); padding-top: 26px; }
.foot .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 26px; height: 26px; border-radius: 7px; }
.flinks { display: flex; gap: 18px; flex-wrap: wrap; }
.flinks a { text-decoration: none; }
.flinks a:hover { text-decoration: underline; }

/* ---------- privacy policy ---------- */
.doc-head { display: flex; flex-direction: column; gap: 14px; padding-block: 48px 16px; }
.doc-head h1 { font-size: clamp(34px, 5vw, 52px); }
.doc-head .sub { max-width: 40em; }
.eyebrow.plain { background: none; padding: 0; color: var(--mute); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-block: 32px 70px; }
.toc { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; font-weight: 700; align-self: start; position: sticky; top: 90px; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover, .toc a.first { color: var(--ink); }
.policy { display: flex; flex-direction: column; gap: 44px; max-width: 46em; min-width: 0; }
.policy section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.policy section.box { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px 30px; }
.policy h2 { font-size: 26px; }
.policy p, .policy ul { margin: 0; font-size: 16.5px; line-height: 1.75; color: #45432F; }
.policy ul { padding-left: 20px; }
.policy a { color: var(--deep); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; min-width: 560px; }
th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #DCD6C3; background: #F4F0E3; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #45432F; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -.4)); } }
@keyframes bob { 0%, 100% { transform: translateY(0) scaleY(1); } 45% { transform: translateY(-8px) scaleY(1.02); } 55% { transform: translateY(-8px) scaleY(1.02); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes pulse { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes marquee { to { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero-grid, .reader-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .intro { align-items: flex-start; }
  .stage-hero { min-height: 0; margin-top: 10px; }
  .grow .cards { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 40px 30px; }
  .peek-row { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .hide-s { display: none; }
  .links { gap: 10px; }
  .brand .kana { display: none; }
  .cta { display: none; }
  .brand .name { font-size: 19px; }
  .langs a { padding: 4px 7px; }
  .home .nav { margin-bottom: -70px; }
  .hero { padding-bottom: 130px; }
  .sub { font-size: 17px; }
  /* A spinning 1600px layer costs phones a lot of memory (Safari reloads the tab when it runs out). */
  .rays { width: 900px; height: 900px; margin: -450px 0 0 -450px; animation: none; }
  .hero-phone { width: 340px; margin: -46px -46px -52px; }
  .buddy { width: 150px; left: 0; bottom: -20px; }
  .b1 { width: 64px; height: 58px; font-size: 34px; } .b2 { width: 70px; height: 70px; font-size: 36px; }
  .b3 { width: 62px; height: 50px; font-size: 22px; } .b4 { width: 48px; height: 48px; font-size: 24px; }
  .b6 { display: none; }
  .step-list { grid-template-columns: 1fr; gap: 34px; }
  .step-list::before { left: 50%; right: auto; top: 40px; bottom: 40px; border-top: 0; border-left: 3px dashed #CFE3B4; }
  .reader-sec { padding-block: 60px; }
  .reader-card { padding: 18px 14px 14px; border-radius: 24px; }
  .reader { height: 400px; }
  .line .t { font-size: 19px; column-gap: 6px; }
  .grow .cards, .plans .cards, .points { grid-template-columns: 1fr; }
  .peek-item { width: 270px; margin: 0 -34px; }
  .band { padding: 34px 22px; border-radius: 28px; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { display: none; }
  .policy section.box { padding: 22px 20px; }
}
@media (max-width: 380px) { .langs { display: none; } }
