/* Kelo website v2: what designs A and B share (structure, components, the scroll thread, the text pages). Each design's own file
   (a.css, b.css) sets the tokens and the look. Served as /assets/v2/base.css with the mascot animations appended (website.py). */

@font-face { font-family: "Familjen Grotesk"; src: url("/assets/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap;
             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; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/ibm-plex-mono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
             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; }

/* an element the scripts hide (the install tabs' other line, ...) stays hidden whatever display its class sets */
[hidden] { display: none !important; }

:root {
  --font: "Familjen Grotesk", "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "D2Coding", monospace;
  --nav-h: 64px; --wrap: 1200px; --gut: clamp(16px, 4vw, 40px);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sec: clamp(72px, 10vw, 136px);   /* space between sections: the rhythm stays the same down the page */
  /* the design files set these */
  --bg: #fff; --ink: #111; --muted: #555; --line: rgba(0,0,0,.12); --line-2: rgba(0,0,0,.2); --card: #fff; --raised: #f4f4f4;
  --accent: #0272b0; --on-accent: #fff; --btn: #111; --on-btn: #fff; --shot-line: rgba(0,0,0,.12); --shadow: 0 12px 32px -12px rgba(0,0,0,.25);
  --tone-0: var(--bg); --tone-1: var(--bg); --tone-2: var(--bg); --tone-3: var(--bg); --tone-4: var(--bg); --tone-5: var(--bg);
  --tone-6: var(--bg); --tone-7: var(--bg); --tone-8: var(--bg);
}
html { --ground: var(--tone-0); }

/* ------------------------------------------------------------------------------------------------ reset and type */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font: 400 17px/1.6 var(--font); color: var(--ink); background-color: var(--ground); min-height: 100vh; overflow-x: clip;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color 900ms var(--ease); }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
:lang(ko) :is(h1, h2, h3) { letter-spacing: -0.01em; line-height: 1.22; }
p { text-wrap: pretty; }
code { font-family: var(--mono); font-size: .92em; }
strong, b { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* the page's ground: one surface that shifts as the reader moves through the page (site.js sets html[data-tone] from the section
   in the middle of the screen). Sections have no ground of their own, so there is no hard edge between them. */
html[data-tone="1"] { --ground: var(--tone-1); }
html[data-tone="2"] { --ground: var(--tone-2); }
html[data-tone="3"] { --ground: var(--tone-3); }
html[data-tone="4"] { --ground: var(--tone-4); }
html[data-tone="5"] { --ground: var(--tone-5); }
html[data-tone="6"] { --ground: var(--tone-6); }
html[data-tone="7"] { --ground: var(--tone-7); }
html[data-tone="8"] { --ground: var(--tone-8); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
main > section, .sheet > section { padding: var(--sec) 0 0; position: relative; }

/* focus: one ring everywhere, never under the bar */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--on-btn); padding: 10px 14px; border-radius: var(--r-sm);
             text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 10px; }

/* ------------------------------------------------------------------------------------------------ buttons and links */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
       font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center;
       transition: transform 160ms var(--ease), background-color 160ms, border-color 160ms, color 160ms; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--btn); color: var(--on-btn); }
.btn--primary:hover { background: color-mix(in srgb, var(--btn) 86%, var(--accent)); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.i-arrow { width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease); }
a:hover > .i-arrow { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
        text-underline-offset: 4px; text-decoration-color: var(--line-2); min-height: 44px; }
.link:hover { text-decoration-color: currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.note { font-size: 15px; color: var(--muted); }
.note a, .sec-intro a, .muted a, .dl-note a, .tip a:not(.link) { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------------------------------------ the top bar */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); border-bottom: 1px solid transparent;
       background-color: color-mix(in srgb, var(--ground) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
       transition: background-color 900ms var(--ease), border-color 300ms; }
html.scrolled .nav { border-bottom-color: var(--line); }
/* the bar's backdrop-filter makes it the containing block of position:fixed children, which squeezed the open mobile menu into the
   64px bar: drop the filter while the menu is open so the menu spans the screen below the bar */
html.nav-open .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--ground); }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; min-height: 44px; flex: none; }
.nav__moods { position: relative; width: 34px; height: 34px; flex: none; }
.nav__moods .mood { position: absolute; inset: 0; opacity: 0; transform: scale(.7) translateY(4px); transition: opacity 260ms, transform 360ms var(--ease); }
.nav__moods .mascot { width: 100%; height: 100%; }
.nav__moods[data-mood="idle"] [data-mood="idle"], .nav__moods[data-mood="listening"] [data-mood="listening"],
.nav__moods[data-mood="thinking"] [data-mood="thinking"], .nav__moods[data-mood="reading"] [data-mood="reading"],
.nav__moods[data-mood="browser"] [data-mood="browser"], .nav__moods[data-mood="working"] [data-mood="working"],
.nav__moods[data-mood="approval"] [data-mood="approval"], .nav__moods[data-mood="done"] [data-mood="done"],
.nav__moods[data-mood="sleeping"] [data-mood="sleeping"] { opacity: 1; transform: none; }
.nav__status { font-size: 13px; font-weight: 500; color: var(--muted); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
               white-space: nowrap; transition: opacity 200ms; }
.nav__status.is-swap { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__lang { font-size: 14px; font-weight: 500; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); }
.nav__lang:hover { color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
               align-items: center; justify-content: center; }
.nav__burger, .nav__burger::before, .nav__burger::after { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px;
                                                          transition: transform 220ms var(--ease), opacity 160ms; }
.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -5px; } .nav__burger::after { top: 5px; }
html.nav-open .nav__burger { background: transparent; }
html.nav-open .nav__burger::before { transform: translateY(5px) rotate(45deg); }
html.nav-open .nav__burger::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1179px) { .nav__status { display: none; } }
@media (max-width: 1023px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; }
  html.js.nav-open .nav__links { display: flex; position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; flex-direction: column; align-items: stretch;
                                 gap: 0; padding: 12px var(--gut) 40px; background: var(--ground); overflow-y: auto; margin: 0; }
  html.js.nav-open .nav__links a { font-size: 22px; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  html:not(.js) .nav__links { display: flex; flex-wrap: wrap; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 639px) {
  .nav__actions .btn { display: none; }
  .nav__status { display: inline-block; }
}
@media (max-width: 379px) { .nav__status { display: none; } }

/* ------------------------------------------------------------------------------------------------ section heads */
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 14px; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 54px); }
.sec-intro { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }

/* ------------------------------------------------------------------------------------------------ app screens */
.phone { margin: 0; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--shot-line); box-shadow: var(--shadow); }
.phone img { width: 100%; }
.shotcard { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--shot-line); box-shadow: var(--shadow); }
.shotcard img { width: 100%; }
.photo { width: 100%; height: 100%; object-fit: cover; }
.photo-frame { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--raised); }
.photo-frame--short { aspect-ratio: 16 / 10; }
.photo-frame .photo { transition: transform 700ms var(--ease); }
.photo-frame:hover .photo { transform: scale(1.025); }

/* drawings (site/art, inline): Kelo's own style instead of photographs of hardware. They sit on a cream or night panel. */
.art-frame { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6% 6% 2%;
             background: radial-gradient(120% 90% at 50% 100%, #fff3d6, #fdf7ea 70%); border: 1px solid var(--line); }
.art-frame--cloud { aspect-ratio: 16 / 10; background: radial-gradient(120% 100% at 50% 100%, #e1f5fe, #f4fbff 70%); }
.art { width: 100%; height: auto; overflow: visible; }
@media (prefers-color-scheme: dark) {
  .art-frame { background: radial-gradient(120% 90% at 50% 100%, #2a2f3a, #1b1f27 70%); }
  .art-frame--cloud { background: radial-gradient(120% 100% at 50% 100%, #1f2c38, #161d25 70%); }
}
@media (prefers-reduced-motion: no-preference) {
  .art-led { animation: art-led 2.6s ease-in-out infinite; }
  .art-led--2 { animation-delay: 1.1s; }
  .art-pulse { animation: art-pulse 2.4s var(--ease) infinite; }
  .art-star { animation: art-star 3.4s ease-in-out infinite; }
  .art-star--2 { animation-delay: 1.6s; }
  @keyframes art-led { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  @keyframes art-pulse { 0%, 100% { transform: translateX(-26px); } 50% { transform: translateX(26px); } }
  @keyframes art-star { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
}

/* the character sits on the app's cream disc (the launcher icon's ground, #fff8e1 to #ffe8b0; the app's header badge #fff3d6),
   light in both themes like a sticker, so its sky blue reads as it does in the app instead of glowing on a dark page */
.nav__moods, .foot__logo .mascot, .closing__art .mascot, .doc-hero-art .mascot, .pair-card .mascot {
  border-radius: 50%; background: linear-gradient(#fff8e1, #ffe8b0); box-shadow: 0 0 0 1px rgba(26, 26, 26, .08), 0 6px 16px -8px rgba(40, 30, 10, .35); }
.nav__moods .mood { inset: 3px 3px 1px; }
.foot__logo .mascot { padding: 3px 3px 1px; }
.closing__art .mascot, .doc-hero-art .mascot { padding: 12% 12% 6%; }
.pair-card .mascot { padding: 10px 10px 4px; }

/* ------------------------------------------------------------------------------------------------ the request walk-through: the
   steps scroll past a pinned phone whose screen changes with them (site.js marks the step in the middle of the screen) */
.flow__body { display: grid; gap: 32px; }
.flow__steps { display: grid; gap: 56px; }
.flow__step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; align-content: start; }
.flow__n { font: 500 14px/1 var(--mono); color: var(--accent); padding-top: 8px; }
.flow__text h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.flow__text p { color: var(--muted); max-width: 520px; }
.flow__inline { grid-column: 1 / -1; width: min(280px, 78%); margin: 12px auto 0; aspect-ratio: 540 / 900; }
.flow__inline img { height: 100%; object-fit: cover; object-position: top; }
.flow__stage { display: none; }
@media (min-width: 1024px) {
  .flow__body { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 72px; }
  .flow__steps { gap: 0; padding-bottom: 12vh; }
  .flow__step { min-height: 64vh; align-content: center; }
  .flow__inline { display: none; }
  html.js .flow__step { opacity: .3; transition: opacity 500ms var(--ease); }
  html.js .flow__step.is-on { opacity: 1; }
  .flow__stage { display: grid; justify-items: center; gap: 20px; position: sticky; align-self: start;
                 top: max(calc(var(--nav-h) + 24px), calc(50vh + var(--nav-h) / 2 - 360px)); }
  .phone--stage { position: relative; width: min(310px, calc((100vh - var(--nav-h) - 120px) * .45)); aspect-ratio: 540 / 1200; }
  .flow__frame { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity 450ms, transform 600ms var(--ease); }
  .flow__frame.is-on { opacity: 1; transform: none; }
  .flow__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .flow__dots { display: flex; gap: 8px; }
  .flow__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width 300ms var(--ease), background-color 300ms; }
  .flow__dot.is-on { width: 28px; background: var(--accent); }
}

/* ------------------------------------------------------------------------------------------------ small parts */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--card) 70%, transparent); }
.ticks { display: grid; gap: 8px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
                    transform: rotate(-45deg); }
.logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.logos li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
            font-weight: 600; font-size: 15px; transition: transform 200ms var(--ease), border-color 200ms; }
.logos li:hover { transform: translateY(-2px); border-color: var(--line-2); }
.logos img { width: 28px; height: 28px; border-radius: 7px; }

/* connectors, people, reach: shared structure */
.split { display: grid; gap: 40px; align-items: center; }
.split__copy > p { max-width: 560px; }
.split__media { display: flex; justify-content: center; }
.phone--solo { width: min(300px, 80%); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }

.dg { margin: 8px 0 0; display: grid; gap: 0; justify-items: center; }
.dg__machine { position: relative; padding: 14px 22px; border-radius: var(--r-md); background: var(--btn); color: var(--on-btn); font-weight: 600; text-align: center; }
.dg__copies { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; padding-top: 40px; }
.dg__copies::before { content: ""; position: absolute; top: 0; left: 50%; width: 1.5px; height: 20px; background: var(--line-2); }
.dg__copies::after { content: ""; position: absolute; top: 20px; left: calc(100% / 6); right: calc(100% / 6); height: 1.5px; background: var(--line-2); }
.dg__copy { position: relative; display: grid; gap: 4px; padding: 14px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--card); text-align: center; }
.dg__copy::before { content: ""; position: absolute; top: -21px; left: 50%; width: 1.5px; height: 20px; background: var(--line-2); }
.dg__name { font-weight: 600; font-size: 15px; }
.dg__phones { font-size: 13px; color: var(--muted); }
.people__list { display: grid; gap: 0; }
.people__list li { padding: 22px 0; border-top: 1px solid var(--line); }
.people__list h3 { font-size: 20px; margin-bottom: 6px; }
.people__list p { color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 16px; font-weight: 700; color: var(--ink); }
.compare tbody th { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.compare td { color: var(--ink); }
@media (max-width: 719px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 6px 16px; }
  .compare tbody th { color: var(--ink); font-size: 16px; padding-top: 10px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}

.pv__rows { display: grid; }
.pv__row { padding: 16px 0; border-top: 1px solid var(--line); }
.pv__row dt { font-weight: 700; margin-bottom: 4px; }
.pv__row dd { color: var(--muted); }

.steps-row { display: grid; gap: 0; counter-reset: s; margin-bottom: 28px; }
.steps-row li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps-row li::before { content: counter(s); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
                        display: grid; place-items: center; font: 500 13px/1 var(--mono); }
.steps-row b { font-size: 18px; }
.steps-row span { color: var(--muted); }
.install__grid, .free__grid, .faq__grid, .getapp__grid { display: grid; gap: 48px; }
.install__side { display: grid; gap: 14px; align-content: start; }
.install__side h3 { font-size: 20px; margin-top: 8px; }
@media (min-width: 960px) {
  .install__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; }
  .free__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  .getapp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}
.free__h { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 24px; }

.term { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); overflow: hidden; margin-bottom: 12px; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; min-height: 48px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.term-tabs { display: flex; gap: 2px; min-width: 0; }
.term-tabs button { min-height: 44px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.term-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.term:not(.tabs-on) .term-tabs { display: none; }
.soon { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--raised); }
.term-line { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; font-family: var(--mono); }
.term:not(.tabs-on) .term-line + .term-line { border-top: 1px solid var(--line); }
.term-line .pr { color: var(--muted); flex: none; }
.term-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; padding: 4px 0; scrollbar-width: none; }
@media (max-width: 639px) { .term-line { align-items: flex-start; } .term-line code { white-space: normal; overflow: visible; overflow-wrap: anywhere; word-break: break-all; } }
.copy { flex: none; min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; }
.copy:hover { border-color: var(--ink); }
.copy.done { color: #2e9d57; }

.reqs { display: grid; gap: 8px; }
.reqs li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); font-weight: 600; }
.reqs__k { min-width: 80px; color: var(--muted); font-weight: 500; }

.tip { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); }
.tip .tag { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; letter-spacing: .02em; }
.tip h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.tip > p { margin-bottom: 14px; }
.tip ul { display: grid; gap: 8px; margin: 0 0 8px; padding-left: 1.2em; list-style: disc; color: var(--muted); font-size: 15px; }

.dl-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl-list { display: grid; gap: 14px; align-content: start; }
.dl-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card);
           transition: transform 220ms var(--ease), border-color 220ms; }
.dl-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.dl-card .ic { width: auto; height: 32px; justify-self: start; margin-top: 4px; }
.dl-kind { font-size: 13px; font-weight: 600; color: var(--muted); }
.dl-card h3 { font-size: 22px; margin: 2px 0 14px; }
.dl-btn { width: 100%; min-height: 44px; font-size: 15px; }
.dl-btn + .dl-meta + .dl-btn { margin-top: 10px; }
.dl-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.dl-off { font-size: 14px; color: var(--muted); padding: 10px 14px; border-radius: var(--r-sm); background: var(--raised); }
.dl-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (prefers-color-scheme: dark) { .ic-ink { filter: invert(1); } }

.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; min-height: 44px; cursor: pointer; list-style: none;
              font-weight: 600; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa .i-plus { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 260ms var(--ease); }
.qa[open] .i-plus { transform: rotate(45deg); }
.qa p { padding: 0 40px 22px 0; color: var(--muted); max-width: 680px; }
.qa summary:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------------------------------------ closing band and footer */
.closing { padding: var(--sec) 0 calc(var(--sec) * .7); }
.closing__in { display: grid; gap: 32px; align-items: center; }
.closing h2 { font-size: clamp(34px, 5vw, 64px); max-width: 15ch; margin-bottom: 16px; }
.closing p { color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.closing__art { justify-self: center; width: min(240px, 60vw); }
.closing__art .mascot { width: 100%; height: auto; }
@media (min-width: 900px) { .closing__in { grid-template-columns: minmax(0, 1fr) auto; } }

.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 15px; }
.foot__grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot__brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; max-width: 360px; }
.foot__brand p { color: var(--muted); }
.foot__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; text-decoration: none; min-height: 44px; }
.foot__logo .mascot { width: 34px; height: 34px; }
.foot__lang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.foot__lang span { color: var(--muted); margin-right: 6px; }
.foot__lang a { padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.foot__lang a[aria-current] { border-color: var(--ink); font-weight: 600; }
.foot__col h3 { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; }
.foot__col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .foot__brand { grid-column: auto; }
}

/* ------------------------------------------------------------------------------------------------ pairing panel (#pair= links) */
.pair { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 14, .6); }
.pair[hidden] { display: none; }
.pair-card { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border: 1px solid var(--line-2);
             border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 12px; }
.pair-card .mascot { width: 104px; height: 104px; margin: 0 auto; }
.pair-card h2 { font-size: 26px; }
.pair-card > p, .pair-card ol { color: var(--muted); }
.pair-card ol { text-align: left; padding-left: 1.3em; list-style: decimal; }
.pair-card .btn { width: 100%; }
.pair-card .close { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; }
.pair-copied { min-height: 1.5em; font-size: 15px; color: #2e9d57; }

/* ------------------------------------------------------------------------------------------------ text pages (install, privacy) */
.doc-hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.doc-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.doc-hero h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 16px; }
.doc-hero .lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 56ch; margin-bottom: 24px; }
.doc-hero .term { max-width: 640px; }
.doc-hero .kicker { display: flex; align-items: center; gap: 10px; }
.kicker .num { font-family: var(--mono); font-weight: 400; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; color: var(--muted); }
.doc-hero-art { display: none; }
@media (min-width: 900px) { .doc-hero-in { grid-template-columns: minmax(0, 1fr) 200px; gap: 56px; } .doc-hero-art { display: block; } .doc-hero-art .mascot { width: 100%; height: auto; } }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 40px; }
.toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--card); }
.toc-k { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 0; min-height: 32px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 400 13px/1.6 var(--mono); flex: none; }
.toc a:hover { color: var(--ink); }
@media (min-width: 960px) {
  .doc-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  .toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; border: 0; padding: 0; background: none; }
}
.prose { min-width: 0; max-width: 820px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: .3em 0; }
.prose :is(p, li) code { overflow-wrap: anywhere; }   /* long paths (kelo.chat/download/latest.json) wrap at 320px */
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: currentColor; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 2em 0 .6em; padding-top: 1em; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose pre { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 1em;
             overflow-x: auto; white-space: pre; line-height: 1.6; max-width: 100%; }
.prose pre.has-copy { padding-right: 88px; }
.prose pre .copy { position: absolute; right: 8px; top: 6px; }
.prose .summary { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); margin-bottom: 2em; }
.prose .summary h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose .summary ul { list-style: none; padding: 0; }
.prose .summary li { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.specs { display: grid; gap: 8px; margin: 0 0 14px; }
.spec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.spec.rec { border-color: var(--ink); }
.spec-k { font-size: 14px; font-weight: 500; color: var(--muted); min-width: 92px; }
.spec p { margin: 0; font-weight: 600; }
.prose .ticks { padding: 0; list-style: none; }
.prose .ticks li::before { border-color: var(--muted); }
.steps { list-style: none !important; padding: 0 !important; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 20px 52px; margin: 0; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center;
                      border-radius: 50%; border: 1px solid var(--line-2); font: 500 14px/1 var(--mono); }
.steps > li > h3 { margin-top: 0; }
.callout { border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 1.4em; background: var(--raised); }
.callout > :last-child { margin-bottom: 0; }
.prose .table-wrap { margin: 0 0 1.2em; border-radius: var(--r-md); }
.prose th { font-size: 14px; font-weight: 600; color: var(--muted); background: var(--raised); }
.prose td:first-child { font-weight: 600; }
.prose th, .prose td { padding: 12px 14px; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 4px 14px; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}
table.stack td code { overflow-wrap: anywhere; word-break: break-all; }
.credit-list { list-style: none !important; padding: 0 !important; }
.credit-list li { padding: 8px 0; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------------------------------------ scroll-linked motion: only where
   the browser ties it to the scroll position itself (no script); elements only drift and brighten a little, nothing starts hidden */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rise { from { transform: translateY(36px); opacity: .35; } to { transform: none; opacity: 1; } }
  }
}

/* ------------------------------------------------------------------------------------------------ reduced motion: everything rests */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* store badges: official badges are used as they are (never stretched), one fixed height, a tap target of at least 44 px */
.store-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; grid-column: 1 / -1; margin-bottom: 4px; }
.store-line { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 2px 0; border-radius: 8px; }
.store-badge img { display: block; height: 40px; width: auto; max-width: 100%; }
.store-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.dl-or { font-size: 13px; color: var(--muted); margin: 10px 0 2px; }
@media (min-width: 1024px) { .store-badge img { height: 48px; } .store-badge { min-height: 52px; } }

/* mascot animations (from apps/android/design/character) */
.m-idle .kelo-breathe { animation: idle-breathe 2.4s ease-in-out infinite; transform-origin: 60px 95px; }
.m-idle .kelo-eyes { animation: idle-blink 3.6s infinite; transform-origin: 60px 58px; }
.m-idle .kelo-leaf { animation: idle-leaf-sway 2.4s ease-in-out infinite; transform-origin: 60px 28px; }
    @keyframes idle-breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-2px) scale(1.02, 0.98); } }
    @keyframes idle-blink { 0%, 44%, 48%, 92%, 96%, 100% { transform: scaleY(1); } 46%, 94% { transform: scaleY(0.1); } }
    @keyframes idle-leaf-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }
.m-working .pose-front { opacity: 0; animation: working-toggle-front 4.5s infinite; transform-origin: 50px 65px; }
.m-working .pose-back { opacity: 1; animation: working-toggle-back 4.5s infinite; transform-origin: 50px 65px; }
.m-working .writing-wing { animation: working-write-move 0.3s ease-in-out infinite alternate; transform-origin: 68px 68px; }
.m-working .scribble-lines { animation: working-scribble-float 0.6s ease-in-out infinite; }
.m-working .body-bob { animation: working-work-bob 0.3s ease-in-out infinite alternate; transform-origin: 48px 90px; }
    @keyframes working-toggle-front { 0%, 20% { opacity: 1; transform: scaleX(1); } 24%, 92% { opacity: 0; transform: scaleX(0.15); } 96%, 100% { opacity: 1; transform: scaleX(1); } }
    @keyframes working-toggle-back { 0%, 21% { opacity: 0; transform: scaleX(0.15); } 25%, 91% { opacity: 1; transform: scaleX(1); } 95%, 100% { opacity: 0; transform: scaleX(0.15); } }
    @keyframes working-write-move { 0% { transform: rotate(-8deg) translate(0px, 0px); } 100% { transform: rotate(10deg) translate(3px, -2px); } }
    @keyframes working-work-bob { 0% { transform: translateY(0px); } 100% { transform: translateY(1.5px); } }
    @keyframes working-scribble-float { 0%, 100% { opacity: 0.35; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-2px); } }
.m-browser .pose-front { opacity: 0; animation: browser-toggle-front 4.5s infinite; transform-origin: 50px 65px; }
.m-browser .pose-back { opacity: 1; animation: browser-toggle-back 4.5s infinite; transform-origin: 50px 65px; }
.m-browser .typing-wing { animation: browser-type-keys 0.22s ease-in-out infinite alternate; transform-origin: 62px 70px; }
.m-browser .screen-glow { animation: browser-monitor-pulse 0.8s ease-in-out infinite alternate; }
.m-browser .click-spark { animation: browser-spark-pop 0.6s ease-out infinite; transform-origin: 96px 40px; }
    @keyframes browser-toggle-front { 0%, 20% { opacity: 1; transform: scaleX(1); } 24%, 92% { opacity: 0; transform: scaleX(0.15); } 96%, 100% { opacity: 1; transform: scaleX(1); } }
    @keyframes browser-toggle-back { 0%, 21% { opacity: 0; transform: scaleX(0.15); } 25%, 91% { opacity: 1; transform: scaleX(1); } 95%, 100% { opacity: 0; transform: scaleX(0.15); } }
    @keyframes browser-type-keys { 0% { transform: rotate(-6deg) translateY(0px); } 100% { transform: rotate(8deg) translateY(3px); } }
    @keyframes browser-monitor-pulse { 0% { fill: #E1F5FE; } 100% { fill: #B3E5FC; } }
    @keyframes browser-spark-pop { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.m-approval .kelo-hop { animation: approval-hop 1s ease-in-out infinite; transform-origin: 55px 95px; }
.m-approval .sign-wave { animation: approval-wave 0.6s ease-in-out infinite alternate; transform-origin: 82px 70px; }
    @keyframes approval-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
    @keyframes approval-wave { 0% { transform: rotate(-10deg); } 100% { transform: rotate(12deg); } }
.m-done .kelo-jump { animation: done-jump 0.8s ease-in-out infinite; transform-origin: 60px 95px; }
.m-done .sparkle { animation: done-pop-star 0.8s ease-in-out infinite; transform-origin: center; }
    @keyframes done-jump { 0%, 100% { transform: translateY(0) scale(1.03, 0.97); } 45% { transform: translateY(-9px) scale(0.98, 1.03); } }
    @keyframes done-pop-star { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 45% { transform: scale(1.15); opacity: 1; } }
.m-sleeping .sleep-breathe { animation: sleeping-sleep-bob 3.2s ease-in-out infinite; transform-origin: 56px 96px; }
.m-sleeping .zzz1 { animation: sleeping-float-z 2.6s ease-out infinite 0s; }
.m-sleeping .zzz2 { animation: sleeping-float-z 2.6s ease-out infinite 0.9s; }
    @keyframes sleeping-sleep-bob { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97) translateY(1px); } }
    @keyframes sleeping-float-z { 0% { opacity: 0; transform: translate(0, 6px) scale(0.8); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -10px) scale(1.1); } }
.m-reading .scan-eyes { animation: reading-read-scan 1.4s ease-in-out infinite alternate; }
.m-reading .book-bob { animation: reading-book-move 1.4s ease-in-out infinite alternate; transform-origin: 60px 82px; }
    @keyframes reading-read-scan { 0% { transform: translateX(-2.5px); } 100% { transform: translateX(2.5px); } }
    @keyframes reading-book-move { 0% { transform: translateY(0); } 100% { transform: translateY(-1.5px); } }
.m-thinking .kelo-tilt { animation: thinking-tilt 2.6s ease-in-out infinite; transform-origin: 60px 90px; }
.m-thinking .dot1 { animation: thinking-dot-pop 1.5s infinite 0s; }
.m-thinking .dot2 { animation: thinking-dot-pop 1.5s infinite 0.3s; }
.m-thinking .dot3 { animation: thinking-dot-pop 1.5s infinite 0.6s; }
    @keyframes thinking-tilt { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
    @keyframes thinking-dot-pop { 0%, 20%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.m-listening .ear-lean { animation: listening-lean 1.2s ease-in-out infinite alternate; transform-origin: 54px 95px; }
.m-listening .wave1 { animation: listening-wave-pulse 1.2s infinite 0s; }
.m-listening .wave2 { animation: listening-wave-pulse 1.2s infinite 0.35s; }
    @keyframes listening-lean { 0% { transform: rotate(0deg); } 100% { transform: rotate(4deg); } }
    @keyframes listening-wave-pulse { 0%, 100% { opacity: 0.25; transform: translateX(0); } 50% { opacity: 1; transform: translateX(2px); } }
