/* lanibo.com — one stylesheet for every page. Colours are the app icon's: the dark
   ground, the teal roof, the coral heart and the family's four pastels. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The brand (same in both themes). */
  --ground: #111827;
  --ground-2: #1b2539;
  --roof: #5eead4;
  --heart: #fb7185;
  --dad: #93c5fd;
  --mum: #f9a8d4;
  --kid1: #86efac;
  --kid2: #fde68a;

  /* Light theme. */
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --text: #111827;
  --muted: #4b5563;
  --line: #e9e2d6;
  --link: #0f766e;
  --btn-bg: #111827;
  --btn-text: #ffffff;
  --shadow: 0 1px 2px rgb(17 24 39 / 6%), 0 8px 24px rgb(17 24 39 / 6%);

  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #141c2f;
    --surface-2: #101828;
    --text: #f3f4f6;
    --muted: #a8b3c7;
    --line: #243049;
    --link: #5eead4;
    --btn-bg: #5eead4;
    --btn-text: #0b1120;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--roof); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn-light { background: #ffffff; color: var(--ground); }

/* Header: sticky, on the dark ground like the hero. */
.top { position: sticky; top: 0; z-index: 50; background: rgb(17 24 39 / 88%); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgb(255 255 255 / 6%); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand svg { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.top nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: #cbd5e1; text-decoration: none; font-weight: 700; font-size: 0.97rem; }
.top nav a:hover { color: #ffffff; }
.top nav .btn { color: var(--ground); background: var(--roof); }
@media (max-width: 760px) {
  .top nav a:not(.btn):not([hreflang]):not(.nav-docs) { display: none; }
}
/* The phone menu: ☰ in the header opens a side panel with every link (and the docs'
   menu on a docs page); the header itself keeps only ☰, the logo and the main button. */
.menu-btn { display: none; }
.drawer { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / 45%); }
.drawer-panel {
  position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw); overflow: auto; background: var(--bg); color: var(--text);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(32px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 0 40px rgb(0 0 0 / 35%); animation: drawer-in 0.2s ease;
}
@keyframes drawer-in { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-head .brand { color: var(--text); }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-links a { display: block; padding: 12px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.08rem; }
.drawer-links a:hover, .drawer-links a:focus-visible { background: var(--surface-2); }
.drawer-cta { display: flex; margin-top: 16px; background: var(--roof); color: var(--ground); }
.drawer-extra { margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .menu-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px;
    background: rgb(255 255 255 / 8%); color: #ffffff; font-size: 1.3rem; cursor: pointer;
  }
  .top-row { justify-content: flex-start; gap: 12px; }
  .top-row > .brand { margin-right: auto; }
  .top nav .nav-docs, .top nav .btn { display: none; }
  .top nav { gap: 8px; flex-wrap: nowrap; }
}

/* Hero */
/* clip, not hidden: a hidden box is still a scroll box, and the #get link ("Get Lanibo")
   scrolled the hero inside itself, with no way to scroll it back. */
.hero {
  position: relative; overflow: hidden; overflow: clip;
  background: radial-gradient(1200px 500px at 85% -10%, rgb(94 234 212 / 14%), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgb(249 168 212 / 12%), transparent 60%), var(--ground);
  color: #ffffff;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--roof); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.04; }
.hero h1 .hl { display: block; background: linear-gradient(90deg, var(--roof), var(--dad) 55%, var(--mum)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: clamp(1.1rem, 2vw, 1.25rem); color: #cbd5e1; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; min-height: 58px; padding: 8px 20px; border-radius: 16px; background: #ffffff; color: var(--ground); line-height: 1.2; }
/* A store button that is a link looks like the others: no underline; it lifts a little instead. */
a.store { text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / 25%); }
a.store:focus-visible { outline: 3px solid var(--accent, #5eead4); outline-offset: 3px; }
.store small { font-size: 0.75rem; font-weight: 700; color: #4b5563; }
.store strong { font-size: 1.15rem; font-weight: 900; }
.hero-note { margin-top: 16px; color: #94a3b8; font-size: 0.95rem; }

/* The phone mock-ups: the app's own screens, drawn in CSS. */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; min-height: 520px; }
.phone {
  width: min(250px, 46vw); aspect-ratio: 9 / 19;
  border-radius: 42px; padding: 10px; background: #0b1120;
  box-shadow: 0 0 0 2px #2b3650, 0 30px 60px rgb(0 0 0 / 45%);
  flex: none;
}
.phone-a { transform: rotate(-4deg); z-index: 2; }
/* The real screenshot inside the frame (the top of the screen, cut at the bottom). */
.screen-img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; display: block; }
.phone-b { transform: rotate(5deg) translate(-26px, 56px); z-index: 1; }
@media (max-width: 520px) { .phones { min-height: 0; } .phone-b { display: none; } .phone-a { transform: none; width: min(280px, 80vw); } }
.screen { height: 100%; border-radius: 33px; background: #f8f6f2; color: #111827; padding: 14px 14px 16px; overflow: hidden; font-size: 13px; line-height: 1.35; display: flex; flex-direction: column; gap: 8px; }
.sb { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: #111827; padding: 2px 6px 6px; letter-spacing: 0.02em; }
.s-date { color: #6b7280; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.s-title { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
.s-tasks, .s-shop { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.s-tasks li, .s-shop li { display: flex; align-items: center; gap: 8px; background: #ffffff; border-radius: 14px; padding: 9px 10px; box-shadow: 0 1px 2px rgb(17 24 39 / 6%); }
.s-t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-m { font-size: 11px; color: #6b7280; font-weight: 700; white-space: nowrap; }
.av { width: 24px; height: 24px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #111827; flex: none; }
.tick, .box { width: 20px; height: 20px; border-radius: 7px; border: 2px solid #d1d5db; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #ffffff; flex: none; }
li.done .tick, li.done .box { background: #10b981; border-color: #10b981; }
li.done .s-t { color: #9ca3af; text-decoration: line-through; }
.s-points { margin-top: auto; background: var(--ground); color: var(--kid2); border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 12px; text-align: center; }
.s-add { background: #ffffff; border: 2px solid var(--roof); border-radius: 14px; padding: 9px 10px; color: #6b7280; font-weight: 700; }
.s-by { font-size: 10px; font-weight: 800; color: #0f766e; background: #ccfbf1; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.s-live { margin-top: auto; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; color: #0f766e; background: #ccfbf1; border-radius: 14px; padding: 9px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgb(16 185 129 / 20%); flex: none; }

/* Strip under the hero */
.strip { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.strip-row { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding-block: 18px; font-weight: 800; color: var(--muted); font-size: 0.98rem; }
.strip-row li::before { content: '✓'; color: var(--link); margin-right: 8px; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-lead { margin-top: 12px; color: var(--muted); font-size: 1.15rem; max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--muted); }
.bubble { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--c) 35%, transparent); }

.more-title { margin-top: 48px; color: var(--muted); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
/* A chip that opens its docs page: the whole chip is the link. */
.chips li:has(> a) { padding: 0; }
.chips li > a { display: block; padding: 8px 16px; color: inherit; text-decoration: none; border-radius: 999px; }
.chips li > a:hover { color: var(--link); }
.chips li:has(> a:hover) { border-color: var(--link); }
/* A feature card that opens its docs page. */
.card-link { color: inherit; text-decoration: none; position: relative; transition: transform 0.15s ease, border-color 0.15s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--link); }
.card-more { position: absolute; right: 22px; top: 22px; font-weight: 900; color: var(--link); font-size: 1.2rem; transition: transform 0.15s ease; }
.card-link:hover .card-more { transform: translateX(3px); }
/* The home page's help: search the docs, the topics, then write to us. */
.help-search { margin-top: 20px; }
.help-search input {
  width: 100%; height: 54px; padding: 0 18px 0 50px; border-radius: 16px; border: 1px solid var(--line); font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='m14 14 4.5 4.5'/%3E%3C/svg%3E") no-repeat 18px center;
  box-shadow: var(--shadow);
}
.help-search input:focus { outline: 2px solid var(--link); outline-offset: 2px; }
.help-topics { margin-top: 18px; }
.help-write { margin-top: 22px; color: var(--muted); }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 700px) { .who { grid-template-columns: 1fr; } }
.who-col { border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.who-col.parents { --c: var(--dad); }
.who-col.kids { --c: var(--kid1); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: '✓'; color: var(--link); font-weight: 900; flex: none; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); color: var(--roof); font-weight: 900; font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

.conv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 900px) { .conv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .conv { grid-template-columns: 1fr; } }
.conv div { display: flex; flex-direction: column; gap: 8px; }
.conv h3 { font-size: 1.1rem; }
.conv p { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding-block: 4px; }
details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-weight: 800; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--link); transition: transform 0.2s ease; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 18px; color: var(--muted); max-width: 46em; }

.cta { padding-block: 0 clamp(56px, 8vw, 96px); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ground); color: #ffffff; border-radius: 28px; padding: clamp(28px, 5vw, 48px); background-image: radial-gradient(600px 300px at 100% 0%, rgb(94 234 212 / 18%), transparent 60%); }
.cta-box > div { min-width: 0; flex: 1 1 320px; }
.cta-box p { color: #cbd5e1; margin-top: 10px; max-width: 34em; }

/* Documents (privacy) */
.doc { padding-block: 48px 72px; max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; margin: 32px 0 8px; }
.doc h1:first-child { margin-top: 0; }
.doc h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.doc p { margin-top: 10px; color: var(--muted); }

/* Footer */
.foot { background: var(--ground); color: #94a3b8; padding-block: 40px; }

/* Chinese, Japanese and Korean: Nunito has no such letters, so the system's own font
   draws them (Latin letters stay in Nunito). */
html:lang(ja) body { font-family: 'Nunito', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, system-ui, sans-serif; }
html:lang(zh-Hans) body { font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; }
html:lang(ko) body { font-family: 'Nunito', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(ko) h1, html:lang(ko) h2 { letter-spacing: 0; }

/* The language menu in the header: a plain <details>, so it works without JavaScript.
   (Undoes the FAQ's <details> look.) */
.langs { position: relative; border: 0; padding: 0; margin: 0; }
.langs:first-of-type { margin-top: 0; border-top: 0; }
.langs summary { padding-block: 6px; font-weight: 700; font-size: 0.97rem; color: #cbd5e1; gap: 6px; white-space: nowrap; }
.langs summary:hover { color: #ffffff; }
.langs summary::after { content: '▾'; font-size: 0.8rem; color: inherit; transition: none; }
.langs[open] summary::after { transform: rotate(180deg); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  margin: 0; padding: 6px; list-style: none; min-width: 210px; max-height: min(70vh, 560px); overflow: auto;
  background: var(--ground); border: 1px solid rgb(255 255 255 / 12%); border-radius: 14px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 40%);
}
.langs li a { display: block; padding: 9px 12px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-weight: 700; }
.langs li a:hover, .langs li a:focus-visible { background: rgb(255 255 255 / 8%); color: #ffffff; }
.langs li a[aria-current] { color: var(--roof); }


/* Feature pages (scripts/website-features.mjs): one column, the hero smaller. */
.feature-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.feature-hero .stores { align-items: stretch; }
.feature-hero .btn { background: var(--roof); color: var(--ground); }
.feature-body h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 40px; text-wrap: balance; }
.feature-body h2:first-child { margin-top: 0; }
.feature-body p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.feature-body .ticks { margin-top: 16px; }
.related { padding-block: 0 clamp(56px, 8vw, 96px); }
.related .chips a { color: inherit; text-decoration: none; font-weight: 700; }
.related .chips a:hover { color: var(--link); }

/* ---------------------------------------------------------------------------
   Docs (lanibo.com/docs, scripts/website-docs.mjs): menu left, page in the middle,
   "On this page" right; on a phone the menu folds into one button at the top. */
.docs-body { background: var(--bg); }
.docs-shell {
  max-width: 1320px; margin-inline: auto; padding-inline: 20px;
  display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 48px; align-items: start;
}
.docs-side, .docs-toc { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding-block: 32px; }
.docs-main { min-width: 0; padding-block: 32px 72px; max-width: 760px; }

.docs-search { position: relative; margin-bottom: 20px; }
.docs-search input {
  width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 13px center;
  color: var(--text); font: inherit; font-size: 0.97rem;
}
.docs-search input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.docs-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto;
}
.docs-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.docs-results a:hover, .docs-results a:focus-visible { background: var(--surface-2); }
.docs-results strong { display: block; font-weight: 800; font-size: 0.95rem; }
.docs-results span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.docs-results .none { padding: 10px 12px; color: var(--muted); }

.docs-group { margin-bottom: 22px; }
.docs-group-title { font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.docs-nav a:hover { background: var(--surface-2); }
.docs-nav a[aria-current] { background: var(--surface); color: var(--link); font-weight: 800; box-shadow: inset 3px 0 0 var(--link); }

.docs-toc p { font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.docs-toc a { display: block; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.on { color: var(--link); border-left-color: var(--link); }

.crumbs { font-size: 0.9rem; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.docs-main h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 900; letter-spacing: -0.025em; display: flex; align-items: center; gap: 14px; }
.h1-icon { font-size: 0.9em; }
.docs-main .lead { color: var(--muted); margin-top: 14px; font-size: 1.15rem; max-width: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge { font-size: 0.8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge-parents { background: #dbeafe; color: #1e3a8a; border-color: #bfdbfe; }
.badge-kids { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.badge-soon { background: #fef3c7; color: #78350f; border-color: #fde68a; }
@media (prefers-color-scheme: dark) {
  .badge-parents { background: #1e3a8a; color: #dbeafe; border-color: #1e40af; }
  .badge-kids { background: #14532d; color: #dcfce7; border-color: #166534; }
  .badge-soon { background: #78350f; color: #fef3c7; border-color: #92400e; }
}

.doc-body { margin-top: 28px; font-size: 1.05rem; line-height: 1.7; }
.doc-body > * + * { margin-top: 14px; }
.doc-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); font-weight: 900; margin-top: 44px; scroll-margin-top: 84px; position: relative; }
.doc-body h3 { font-size: 1.15rem; font-weight: 800; margin-top: 28px; scroll-margin-top: 84px; position: relative; }
.doc-body .anchor { position: absolute; left: -1em; width: 1em; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
.doc-body h2:hover .anchor, .doc-body h3:hover .anchor { opacity: 1; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li + li { margin-top: 6px; }
.doc-body code { font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.doc-body strong { font-weight: 800; }
/* Numbered steps: the number in a circle. */
.doc-steps { list-style: none; padding-left: 0 !important; counter-reset: step; }
.doc-steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 30px; }
.doc-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ground); color: var(--roof); font-weight: 900; font-size: 0.9rem;
}

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }
.callout-icon { font-size: 1.2rem; line-height: 1.6; }
.callout-tip { border-left: 4px solid var(--link); }
.callout-warn { border-left: 4px solid var(--heart); }
.callout-soon { border-left: 4px solid #f59e0b; }

/* Screenshots, laid out four ways (scripts/website-docs.mjs picks): a whole screen in a
   phone frame on a soft panel in the group's colour (--tint); the first one leans a
   little; the next ones sit beside the text on wide screens; a close-up is a card. */
.shot { margin: 28px 0; }
.shot-imgs {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; padding: 28px 20px;
  border-radius: 24px; background: color-mix(in srgb, var(--tint, #5eead4) 26%, transparent);
}
.shot img { height: auto; background: var(--surface); }
.shot-hero img, .shot-left img, .shot-right img, .shot-pair img {
  width: min(250px, 100%); border-radius: 26px; border: 5px solid var(--ground); box-shadow: var(--shadow);
}
.shot-hero .shot-imgs { padding-block: 36px; overflow: hidden; }
.shot-hero img { transform: rotate(-2.5deg); }
.shot-pair img { width: min(225px, 100%); }
.shot-pair img:first-child { transform: rotate(-1.5deg); }
.shot-pair img:last-child { transform: rotate(1.5deg) translateY(14px); }
.shot-detail .shot-imgs { padding: 22px; }
.shot-detail img { width: min(440px, 100%); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
@media (min-width: 1000px) {
  .shot-right, .shot-left { width: 300px; margin-top: 6px; margin-bottom: 18px; }
  .shot-right { float: right; margin-left: 32px; }
  .shot-left { float: left; margin-right: 32px; }
  .shot-right .shot-imgs, .shot-left .shot-imgs { padding: 22px; }
  .shot-right img, .shot-left img { width: 100%; }
  .doc-body h2, .doc-body .table, .docs-pager { clear: both; }
}

.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 800; }
.table tr:last-child td { border-bottom: 0; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.docs-pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 800; background: var(--surface); }
.docs-pager a:hover { border-color: var(--link); }
.docs-pager small { display: block; color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.pager-next { text-align: right; grid-column: 2; }
.docs-help { margin-top: 32px; color: var(--muted); font-size: 0.95rem; }

/* The docs' start page: groups of cards. */
.docs-cards-group { margin-top: 40px; }
.docs-cards-group h2 { font-size: 1.3rem; font-weight: 900; }
.docs-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.docs-cards a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease;
}
.docs-cards a:hover { border-color: var(--link); transform: translateY(-2px); }
.card-icon { font-size: 1.6rem; }
.docs-cards strong { font-weight: 900; font-size: 1.05rem; }
.docs-cards span:last-child { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 820px) {
  .docs-shell { display: block; }
  .docs-side { display: none; }
  .docs-main { padding-top: 20px; }
  .doc-body .anchor { display: none; }
}

/* 🔍 in the header: the whole site's search, over the page. */
.search-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgb(255 255 255 / 8%); color: #cbd5e1;
}
.search-btn:hover { color: #ffffff; }
.search-overlay { position: fixed; inset: 0; z-index: 110; background: rgb(0 0 0 / 45%); padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px; }
.search-box {
  max-width: 640px; margin: min(10vh, 80px) auto 0; background: var(--bg); color: var(--text); border-radius: 20px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 40%); overflow: hidden; animation: search-in 0.15s ease;
}
@keyframes search-in { from { transform: translateY(-8px); opacity: 0; } }
.search-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-row input::-webkit-search-cancel-button { display: none; }
.search-row input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.1rem; outline: none; }
.search-row button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: min(60vh, 520px); overflow: auto; }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); }
.search-results strong { display: block; font-weight: 800; }
.search-results span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.search-results .none { padding: 14px; color: var(--muted); }

/* The footer: the brand and the store buttons, titled columns, then ©. */
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px 28px; }
.foot-grid-3 { grid-template-columns: 1.4fr repeat(3, 1fr); }
.foot-brand p { margin-top: 12px; font-size: 0.95rem; color: #94a3b8; }
.foot-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.foot-stores .store { min-width: 0; min-height: 46px; padding: 6px 14px; border-radius: 12px; }
.foot-stores .store strong { font-size: 0.98rem; }
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.foot-title { font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-bottom: 4px; }
.foot-col a { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.foot-col a:hover { color: #ffffff; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 8%); font-size: 0.9rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } .foot-brand { grid-column: 1 / -1; } }

/* ─── Motion ──────────────────────────────────────────────────────────────────
   Live notifications around the hero's phones, a slow aurora behind them, things
   rising into view as you scroll (scroll-driven animations: Chrome, Edge, Safari 26),
   a light that follows the pointer over cards (site.js) and a soft fade between
   pages. All of it only without "reduce motion"; the page is whole without it. */
.toast {
  position: absolute; z-index: 3; margin: 0; max-width: 92%; padding: 10px 14px; border-radius: 16px;
  background: rgb(255 255 255 / 94%); color: #111827; font-weight: 800; font-size: 0.88rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 14px 34px rgb(0 0 0 / 38%);
}
.toast-1 { top: 10%; left: -2%; }
.toast-2 { top: 44%; right: -4%; }
.toast-3 { bottom: 6%; left: 4%; }
@media (max-width: 520px) { .toast-1 { left: 0; } .toast-2 { right: 0; } .toast-3 { left: 2%; } }
.hero > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* The hero arrives: the words one after another, then the phones, which then float. */
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .phone-a { animation: phone-in 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both, float 6s 1.1s ease-in-out infinite; }
  .phone-b { animation: phone-in 0.9s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both, float 7s 1.3s ease-in-out infinite reverse; }
  @keyframes rise { from { opacity: 0; translate: 0 18px; } }
  @keyframes phone-in { from { opacity: 0; translate: 0 70px; scale: 0.94; } }
  @keyframes float { 50% { translate: 0 -12px; } }

  /* The family at work: one notification at a time, round and round. */
  .toast { opacity: 0; animation: toast 9s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both; }
  .toast-1 { animation-delay: 1.2s; }
  .toast-2 { animation-delay: 4.2s; }
  .toast-3 { animation-delay: 7.2s; }
  @keyframes toast {
    0% { opacity: 0; translate: 0 14px; scale: 0.9; }
    5%, 28% { opacity: 1; translate: 0 0; scale: 1; }
    34%, 100% { opacity: 0; translate: 0 -10px; scale: 0.96; }
  }

  /* A slow aurora behind the hero. */
  .hero::before {
    content: ''; position: absolute; inset: -45%; pointer-events: none;
    background:
      radial-gradient(closest-side, rgb(94 234 212 / 16%), transparent) 22% 30% / 46% 46% no-repeat,
      radial-gradient(closest-side, rgb(249 168 212 / 14%), transparent) 78% 68% / 42% 42% no-repeat,
      radial-gradient(closest-side, rgb(147 197 253 / 12%), transparent) 62% 20% / 38% 38% no-repeat;
    animation: aurora 30s linear infinite;
  }
  @keyframes aurora { to { rotate: 360deg; } }

  /* Between pages (Chrome, Edge, Safari 18.2+): the header stays, the rest fades. */
  @view-transition { navigation: auto; }
  .top { view-transition-name: top; }
  ::view-transition-old(root) { animation: vt-out 0.16s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.24s ease both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 10px; } }

  @supports (animation-timeline: view()) {
    /* Rising into view as you scroll; a row of cards one after another. */
    .section h2, .section-lead, .card, .steps li, .who-col, .chips, .cta-box, .shot, .docs-cards li, .docs-cards-group h2 {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    .cards > :nth-child(3n + 2), .steps > :nth-child(2), .who > :nth-child(2) { animation-range: entry 8% entry 78%; }
    .cards > :nth-child(3n), .steps > :nth-child(3) { animation-range: entry 16% entry 86%; }
    @keyframes reveal { from { opacity: 0; translate: 0 36px; scale: 0.97; } }

    /* The phones drift down slower than the page as you scroll away from them. */
    .phones { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes drift { to { translate: 0 90px; } }

    /* The header gains a shadow once the page moves; the docs show how far you've read. */
    .top { animation: header-lift linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    @keyframes header-lift { to { box-shadow: 0 10px 30px rgb(0 0 0 / 28%); } }
    .docs-body .top::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: 0 50%;
      background: linear-gradient(90deg, var(--roof), var(--dad), var(--mum));
      animation: read linear both; animation-timeline: scroll(root);
    }
    @keyframes read { from { scale: 0 1; } }
  }
}

/* A light that follows the pointer over cards (mouse only; site.js sets --mx / --my). */
@media (hover: hover) and (pointer: fine) {
  .card, .steps li, .who-col, .docs-cards a {
    background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgb(94 234 212 / 11%), transparent 42%);
  }
}

/* "Plus a lot more": four rows of pills, every other one gliding the opposite way, faded at the edges; they
   stop under the mouse. With "reduce motion" the copies go and the pills just wrap. */
.more-title { text-transform: none; letter-spacing: -0.01em; font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 900; color: var(--text); }
.more-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); padding-block: 8px 20px; margin-block: -2px -14px; }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; }
.marquee-track li > a, .marquee-track li > span {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); font-weight: 800; text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.marquee-track li > a:hover { transform: translateY(-3px); border-color: var(--link); box-shadow: 0 10px 26px rgb(15 118 110 / 18%); }
.pill-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; background: color-mix(in srgb, var(--c) 35%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 46s linear infinite; }
  .marquee.reverse .marquee-track { animation-direction: reverse; }
  /* A little out of step, so the rows don't move as one block. */
  .marquee:nth-child(1) .marquee-track { animation-duration: 38s; }
  .marquee:nth-child(2) .marquee-track { animation-duration: 44s; }
  .marquee:nth-child(3) .marquee-track { animation-duration: 34s; }
  .marquee:nth-child(4) .marquee-track { animation-duration: 41s; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
  /* The track holds the pills twice: half its width is one full loop. */
  @keyframes marquee { to { translate: calc(-50% - 6px) 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee-track .copy { display: none; }
}

/* Press kit (/press/) */
.press .facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin-top: 12px; }
.press .facts dt { font-weight: 800; }
.press .facts dd { margin: 0; color: var(--muted); }
.press-logo { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.press-logo img { border-radius: 26px; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 16px; }
.press-shots figure { margin: 0; }
.press-shots img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); }
.press-shots figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 480px) { .press .facts { grid-template-columns: 1fr; gap: 2px; } .press .facts dd { margin-bottom: 8px; } }

/* "Get Lanibo": the store buttons swell one after the other once they're in view (site.js). */
@media (prefers-reduced-motion: no-preference) {
  .stores.nudge .store { animation: store-nudge 0.5s ease both; }
  .stores.nudge .store:nth-child(2) { animation-delay: 0.18s; }
  @keyframes store-nudge {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.09); box-shadow: 0 14px 34px rgb(94 234 212 / 40%); }
  }
}
