/* computing.ninja public pages: the planwell.digital language (site.css tokens), one accent, bordered panels, quiet buttons. */
:root {
  --bg: #FAF6EC; --panel: #FFFFFF; --ink: #21201B; --muted: #6B6960; --faint: #9A978C;
  --line: #E4DED0; --line-strong: #CFC8B6; --teal: #0E6E56; --teal-dark: #0B5A46; --teal-soft: #E3F0EA;
  --sans: "Bricolage Grotesque", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --grey: #ECE6D6; --red: #C9463B; --amber: #D9A441; --amber-soft: #F6EBD2; --code: #1E2422; --code-ink: #DCE6E1;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
code, pre { font-family: var(--mono); }

/* Header: the sign-in path is the one filled control in the bar */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
/* top and bottom only, so .wrap's side gutter stays on narrow screens (25 Oct 2026), as .hero */
.top-in { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.wordmark { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1; display: inline-flex; align-items: center; gap: 9px; }
.wordmark i { width: 26px; height: 26px; display: inline-grid; place-items: center; }
.wordmark i svg { width: 23px; height: 26px; fill: var(--teal); } /* the green ninja (D, 19 Oct 2026) */
.wordmark:hover { text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a.on { color: var(--ink); }
.top nav a.signin { color: #fff; background: var(--ink); border-radius: 8px; padding: 7px 14px; margin-left: 6px; font-weight: 600; }
.top nav a.signin:hover { background: #000; }
/* The second row (D, 25 Oct 2026): the first row is the same on every page (Home, Python, Infinite, Games, Sign in);
   under it, right-aligned, a hero page lists its own sections. The page scrolls a section to just under both rows. */
.top .sub { border-top: 1px solid var(--line); }
.top .sub nav { justify-content: flex-end; gap: 4px 22px; padding: 10px 0; font-size: 14px; }
html:has(.top .sub) { scroll-padding-top: 120px; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--teal); color: #fff; border-radius: 10px; padding: 13px 20px; font-weight: 600; font-size: 16px; line-height: 1; transition: transform 500ms var(--ease), background 300ms; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.quiet:hover { background: var(--panel); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
/* top and bottom only, so .wrap's side gutter stays and the hero lines up with the bands on narrow screens (25 Oct 2026) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { font-weight: 600; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; margin: 0 0 24px; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.35em); animation: rise 900ms var(--ease) forwards; }
.hero h1 .w:nth-child(2) { animation-delay: 110ms; }
.hero h1 .w:nth-child(3) { animation-delay: 220ms; }
.hero h1 .w:nth-child(4) { animation-delay: 330ms; }
.hero h1 .stop { color: var(--teal); }
.hero .lede { font-size: 20px; line-height: 1.5; margin: 0 0 28px; opacity: 0; animation: rise 900ms var(--ease) 420ms forwards; max-width: 24em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; opacity: 0; animation: rise 900ms var(--ease) 640ms forwards; }
.signed { margin: 18px 0 0; font-size: 15px; color: var(--muted); opacity: 0; animation: rise 900ms var(--ease) 760ms forwards; }
.signed a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
@keyframes rise { to { opacity: 1; transform: none; } }
.scene { width: 100%; opacity: 0; animation: rise 900ms var(--ease) 300ms forwards; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; } }

/* Sections */
.band { border-top: 1px solid var(--line); padding: 64px 0; }
.band h2 { font-weight: 600; font-size: 30px; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; }
.band .intro { color: var(--muted); font-size: 17px; max-width: 46em; margin: 0 0 36px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.on { opacity: 1; transform: none; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; min-width: 0; }
.panel.tint { background: var(--teal-soft); border-color: transparent; }
.panel h3 { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.2; }
.panel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { font-size: 14.5px; line-height: 1.5; padding: 6px 0; border-top: 1px solid rgba(33,32,27,.08); }
.panel li:first-child { border-top: 0; padding-top: 0; }
.go { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; }
.go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 400ms var(--ease); }
a.panel:hover { text-decoration: none; border-color: var(--line-strong); }
a.panel:hover .go svg { transform: translateX(3px); }
a.panel { color: var(--ink); display: flex; flex-direction: column; transition: transform 500ms var(--ease), border-color 300ms; }
a.panel:hover { transform: translateY(-2px); }

/* The code window used in scenes: dark, as the editor is */
.ed { background: var(--code); color: var(--code-ink); border-radius: 10px; padding: 12px 14px; font: 13px/1.6 var(--mono); overflow: hidden; white-space: pre; }
.ed .ln { display: block; opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); transition-delay: var(--d, 0ms); }
.play .ed .ln { opacity: 1; transform: none; }
.ed .k { color: #8FD3BD; } .ed .s { color: #E9C98A; } .ed .f { color: #9FC4F0; } .ed .c { color: #8A948F; }
.out { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: 13px/1.6 var(--mono); color: var(--ink); white-space: pre; }
.out .ln { display: block; opacity: 0; transition: opacity 400ms var(--ease); transition-delay: var(--d, 0ms); }
.play .out .ln { opacity: 1; }

/* Ticks and states, the grid's signs: tick fully correct, cross did not run, words for the rest */
.tick { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); position: relative; flex: none; display: inline-block; vertical-align: -3px; }
.tick::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tick.grey { background: var(--grey); } .tick.grey::after { display: none; }
.tick.red { background: var(--red); } .tick.red::after { content: "×"; border: 0; transform: none; left: 0; top: -2px; width: 16px; text-align: center; color: #fff; font-weight: 700; font-size: 13px; line-height: 1.4; }

/* Activity kinds grid: 12 kinds, 4 across, each with a small motif */
.kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kind { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.kind .m { height: 54px; display: flex; align-items: flex-end; gap: 4px; }
.kind h3 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
.kind p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.kind .t { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.k-bar { display: block; height: 7px; border-radius: 3px; background: var(--grey); }
.k-bar.t { background: var(--teal); }
.k-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-family: var(--mono); }
.k-chip.hole { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--faint); min-width: 28px; text-align: center; }
.k-box { width: 22px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.k-box.on { background: var(--teal); border-color: var(--teal); }
.k-line { display: block; height: 7px; border-radius: 3px; background: var(--grey); width: 100%; }
@media (max-width: 860px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kinds { grid-template-columns: 1fr; } }

/* Entry: each kind and each stage rises on its own, 60ms apart, then its motif draws in */
.kinds .kind, .stages .stage { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.on .kind, .reveal.on .stage { opacity: 1; transform: none; }
.kind .k-bar, .kind .k-line { transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 350ms); }
.reveal.on .kind .k-bar, .reveal.on .kind .k-line { transform: none; }
.kind .k-box.on { background: transparent; border-color: var(--line-strong); transition: background 400ms, border-color 400ms; transition-delay: calc(var(--i, 0) * 60ms + 500ms); }
.reveal.on .kind .k-box.on { background: var(--teal); border-color: var(--teal); }
.kind .k-chip, .kind .m .ln { opacity: 0; transition: opacity 500ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 450ms); }
.reveal.on .kind .k-chip, .reveal.on .kind .m .ln { opacity: 1; }
.stage .demo div { opacity: 0; transform: translateX(-6px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 400ms + var(--j, 0) * 120ms); }
.reveal.on .stage .demo div { opacity: 1; transform: none; }

/* Marking: three stages in a row */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.stage .lvl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.stage h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.stage p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.stage .demo { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; }
.stage .demo div { display: flex; align-items: center; gap: 8px; }
.stage .demo .mk { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.stage .demo .mk.a { background: var(--amber-soft); color: #7A5614; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; } }

/* Levels: demo, free, full */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.level { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.level.full { background: var(--teal-soft); border-color: transparent; }
.level h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.level .who { color: var(--muted); font-size: 14.5px; margin: 0; }
.level ul { margin: 6px 0 0; padding: 0; list-style: none; }
.level li { font-size: 14.5px; line-height: 1.5; padding: 6px 0; border-top: 1px solid rgba(33,32,27,.08); }
.level li:first-child { border-top: 0; }
.level .btn { margin-top: auto; align-self: flex-start; }
.level .pricebig { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin: 4px 0 0; }
.level .pricebig small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr; } }

/* Sign in page */
.signin-page { max-width: 460px; margin: 0 auto; padding: 72px 24px 80px; }
.signin-page h1 { font-weight: 600; font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 22px; }
.ms { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: center; padding: 15px 20px; font-size: 17px; }
.ms svg { width: 18px; height: 18px; }
.lands { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lands li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lands li span:first-child { color: var(--muted); }
.signin-page .alt { margin: 26px 0 0; font-size: 15px; color: var(--muted); }

/* Credits strip on pricing */
.credits { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.credits .big { font-weight: 600; font-size: 26px; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 14px; }
.credits ul { margin: 0; padding: 0; list-style: none; }
.credits li { font-size: 16px; line-height: 1.5; padding: 9px 0; border-top: 1px solid var(--line); }
.credits li:first-child { border-top: 0; padding-top: 0; }
.quote { background: var(--teal-soft); border-radius: 16px; padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.quote h3 { font-weight: 600; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.quote p { margin: 0 0 6px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .credits { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .foot-in { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: baseline; }
footer a { color: var(--muted); }
footer .right { margin-left: auto; }

/* Prototype switcher, not part of the design */
.proto { position: fixed; right: 14px; bottom: 14px; z-index: 20; display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px; font-size: 12px; }
.proto a { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.proto a.on { background: var(--ink); color: #fff; }
.proto a:hover { text-decoration: none; color: var(--ink); }
.proto a.on:hover { color: #fff; }

