/* KinDojo public site, redesign 2026-10-20.
   Light only, on purpose: the app is dark because it is a game at night on a phone; the site is paper.
   Tokens: washi paper from the Dojo's shoji screens, charcoal ink, one dojo-red accent, slate for links,
   and the app's own belt ladder as the single lively element (thin bands, never backgrounds). */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --paper: #f5efe0; --paper-2: #efe6d2; --card: #fcf9f2; --line: #dfd4bf; --line-2: #cdbfa3;
  --ink: #2b2a26; --muted: #6f675a; --wood: #b7906b;
  --accent: #c8553d; --accent-ink: #a8432e; --slate: #2f4f6f;
  --b-white: #f2f2f2; --b-yellow: #ffd93d; --b-orange: #ff9f1c; --b-green: #2ec4b6; --b-blue: #4d96ff; --b-purple: #9b5de5; --b-brown: #8b5e34; --b-black: #2b2b2b;
  --display: 'Bricolage Grotesque', 'Segoe UI', Helvetica, Arial, sans-serif;
  --body: 'Nunito Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 1080px; --gutter: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; font-size: 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* belt band: the app's rank ladder, white to black */
.belt { display: flex; height: 6px; }
.belt i { flex: 1; }
.belt i:nth-child(1) { background: var(--b-white); } .belt i:nth-child(2) { background: var(--b-yellow); } .belt i:nth-child(3) { background: var(--b-orange); }
.belt i:nth-child(4) { background: var(--b-green); } .belt i:nth-child(5) { background: var(--b-blue); } .belt i:nth-child(6) { background: var(--b-purple); }
.belt i:nth-child(7) { background: var(--b-brown); } .belt i:nth-child(8) { background: var(--b-black); }

/* header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(245, 239, 224, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.wm { font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.wm span { font-weight: 600; } .wm b { font-weight: 800; color: var(--accent); }
nav.top { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; font-weight: 600; }
nav.top a { color: var(--muted); text-decoration: none; padding: 6px 0; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
nav.top a.cta { color: var(--ink); }
@media (max-width: 719px) { nav.top a.sec { display: none; } }

/* buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2; padding: 13px 20px; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* type */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(36px, 5.6vw, 58px); }
h2 { font-weight: 700; font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; max-width: 54ch; color: var(--ink); }
.muted { color: var(--muted); }
.eyebrow { font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pill { display: inline-block; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; background: var(--card); }
section.block { padding-block: 64px 24px; }
section.block + section.block { border-top: 1px solid var(--line); }
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { padding-block: 64px 48px; }

/* hero */
.hero { padding-block: 56px 32px; display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.15fr 1fr; padding-block: 80px 48px; } }
.hero .note { font-size: 15px; color: var(--muted); margin-top: 18px; max-width: 48ch; }

/* The Parent Center, drawn in CSS until the demo family's screenshots exist. */
.phone { width: min(360px, 100%); margin: 0 auto; background: #0a0a0a; border: 6px solid #2b2b2b; border-radius: 30px; padding: 14px; box-shadow: 0 24px 50px rgba(43, 42, 38, .22); color: #e6e6e6; font-size: 14px; }
.phone .top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; color: #aaa; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.phone .top b { color: #ffcc00; }
.pc { background: #171717; border: 1px solid #333; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.pc .t { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 10px; }
.wk { display: grid; grid-template-columns: 1fr repeat(7, 16px); gap: 6px 5px; align-items: center; font-size: 13px; }
.wk .n { color: #ddd; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 6px; }
.wk .h { color: #777; font-size: 10px; text-align: center; }
.wk i { display: block; width: 14px; height: 14px; border-radius: 4px; background: #262626; border: 1px solid #333; justify-self: center; }
.wk i.y { background: #00ff66; border-color: #00ff66; } .wk i.m { background: #ff3333; border-color: #ff3333; opacity: .85; } .wk i.o { background: transparent; border-style: dashed; }
.req { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req .who { color: #ddd; } .req .who small { display: block; color: #9a9a9a; font-size: 12px; }
.req .ok { font-size: 12px; font-weight: 700; color: #0a0a0a; background: #00ff66; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.stat { display: flex; justify-content: space-between; padding: 4px 0; color: #ddd; }
.stat b { color: #ffcc00; font-variant-numeric: tabular-nums; }
.cap { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* cards and lists */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 12px; min-width: 0; }
.card .n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--accent); margin-bottom: 10px; letter-spacing: 0; }
.card p { color: var(--muted); font-size: 16px; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .feat { grid-template-columns: 1fr 1fr; } }
.feat li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 16px; color: var(--muted); min-width: 0; }
.feat li b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 4px; letter-spacing: -.01em; }
.feat.not li { border-left: 4px solid var(--accent); }
.feat.one { grid-template-columns: 1fr; }

/* science */
.sci { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .sci { grid-template-columns: repeat(3, 1fr); } }
.sci .card { padding-bottom: 18px; }
.sci .finding { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.sci .apply { color: var(--ink); font-size: 16px; margin: 0 0 12px; }
.sci .apply b { color: var(--accent-ink); }
.sci cite { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 14px; }
@media (min-width: 680px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 15px; }
.cat i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.cat b { display: block; font-family: var(--display); font-weight: 700; } .cat small { color: var(--muted); font-size: 13px; }

/* about with Kinji */
.about { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .about { grid-template-columns: 220px 1fr; } .about.flip { grid-template-columns: 1fr 200px; } }
.about img { width: min(220px, 60%); display: block; margin: 0 auto; }
@media (min-width: 760px) { .about img { width: 100%; margin: 0; } }
.disclosure { border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 16px 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.disclosure strong { color: var(--ink); }

/* footer */
footer.site { margin-top: 64px; border-top: 1px solid var(--line); background: var(--paper-2); padding-block: 32px 44px; color: var(--muted); font-size: 15px; }
footer.site .cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { footer.site .cols { grid-template-columns: 1.3fr 1fr 1fr; } }
footer.site h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; font-family: var(--body); font-weight: 700; }
footer.site ul { list-style: none; margin: 0; padding: 0; } footer.site li { margin: 4px 0; }
footer.site .legal { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; }

/* legal pages */
main.legal .wrap { max-width: 820px; }
main.legal h1 { margin-top: 44px; font-size: clamp(30px, 4.4vw, 40px); }
main.legal .meta { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
main.legal h2 { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 24px; }
main.legal h3 { font-family: var(--body); font-weight: 700; font-size: 17px; margin-top: 24px; }
main.legal ul, main.legal ol { padding-left: 24px; } main.legal li { margin: 6px 0; }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 18px 0 8px; }
.summary ul { margin: 6px 0 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px 12px 34px; columns: 1; font-size: 15px; }
@media (min-width: 640px) { .toc { columns: 2; column-gap: 28px; } }
.toc li { break-inside: avoid; }
table.prov { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 18px; }
table.prov th, table.prov td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.prov th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 600px) {
  table.prov thead { display: none; }
  table.prov tr { display: block; border-bottom: 2px solid var(--line); padding: 8px 0; }
  table.prov td { display: block; border: 0; padding: 3px 0; }
  table.prov td::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
}
.quote { border-left: 4px solid var(--accent); padding: 8px 14px; margin: 12px 0; background: var(--card); }
address { font-style: normal; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { header.site, footer.site, .btn, .skip { display: none; } body { background: #fff; } }
