/* site.css v0.8.0 · 2026-11-29 · stoop's S18 seat: the footer's Terms at the end of the disclaimer's second line, 16 px under the footer (his l.184) · v0.7.0 · 2026-11-28 · the B14 seat: the footer tighter (his l.112) and its disclaimer 11 px (his l.105) · v0.6.0 · 2026-11-28 · the B11 seat: the legal text one calm column (his l.100), .terms' grid kept off it · v0.5.0 · thealgo.com's own patterns on Kevin's kit (the skin pass; the frames' patterns, the launch, then the five fixes at the end) · tokens only, never a hex · v0.5.0 (B8, 2026-11-28): the tour's and /v1's patterns gone with their pages; the bar's links row one pixel taller, so the logo sits on a whole pixel */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nav { display: flex; align-items: center; gap: 18px; padding: 14px 18px; margin: 12px -18px 0; position: sticky; top: 12px; z-index: 20;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--hair); border-radius: 999px; }
.nav .home { display: inline-flex; }
.nav .links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
/* B8 (his "The logo also looks pixelated when it's at full screen", l.47 (8)): the bar's links row takes the learn list's .links padding
   (14 px), so the bar was 107 px tall and the logo, centred in it, sat at y 110.5: on a screen of one pixel per pixel it is drawn across two
   rows, soft. One more pixel under the row makes the bar 108 and every item in it land on a whole pixel (the logo at 111, measured) */
.nav .links { padding-bottom: 15px; }
.nav .links a, .nav summary { color: var(--ink-2); text-decoration: none; font-size: 14px; cursor: pointer; }
.nav .links a:hover, .nav summary:hover { color: var(--ink-1); }
.nav details { position: relative; } .nav summary { list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.nav summary::-webkit-details-marker { display: none; }
.nav .menu { position: absolute; top: 30px; left: -12px; display: grid; gap: 10px; padding: 14px 16px; min-width: 170px;
  background: var(--glass); backdrop-filter: blur(24px); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: var(--ambient); }
.hero { padding: 72px 0 36px; text-align: center; }
.hero .lede { max-width: 660px; margin: 22px auto 0; font-size: 17px; color: var(--ink-2); }
.video { aspect-ratio: 16 / 9; overflow: hidden; padding: 0; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
section { margin-top: 56px; }
.sec-head { text-align: center; margin-bottom: 22px; } .sec-head .soft { color: var(--ink-2); margin-top: 8px; }
.feat, .spy, .contact { padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.soft { color: var(--ink-2); }
.spy .who { display: flex; gap: 12px; align-items: center; } .spy .who small { display: block; }
.spy .slack, .pic img, .algo img { width: 100%; height: auto; border-radius: calc(var(--r-xl) - var(--bezel-pad) - 8px); display: block; }
.pic { padding: 8px; }
.center { text-align: center; margin-top: 18px; }
.fine { color: var(--ink-3); font-size: 12px; text-align: center; margin-top: 18px; }
.fine a, .contact a, .legal a, .v3-write a { color: var(--accent); }
.legal { padding: 32px clamp(20px, 4vw, 48px); line-height: 1.65; color: var(--ink-2); }
.legal h1, .legal h2, .legal h3, .legal h4 { color: var(--ink-1); letter-spacing: -0.01em; margin: 1.4em 0 0.5em; }
.legal h2 { font-size: 1.25rem; } .legal h3, .legal h4 { font-size: 1rem; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal .w-richtext { display: block; max-width: 760px; margin: 0 auto; padding: 0; }   /* B11 (his l.100): one calm column; Webflow's "terms" class had caught .terms, the glossary's grid */
.legal p { margin: 0 0 1em; } .legal li { margin: 0 0 .4em; }
.legal { container-type: inline-size; } .legal .container-2 .paragraph { text-align: center; text-wrap: balance; }   /* B11 (his l.119): the notice centred, on one line where the card has room (624 px of type); narrower, Webflow's own break */
@container (min-width: 680px) { .legal .container-2 .paragraph br { display: none; } }
.legal .container-2 .paragraph br { display: none; }   /* site-look · his card TERMS-NOTICE-WRAPS-2026-11-30 (RULINGS.jsonl l.57): the notice wraps on a phone in even lines (its glued spaces are ordinary ones now: notice_wraps), so Webflow's fixed break goes at every width; still one line where the card has room (his l.119, the line above, kept) */
.tool { padding: 24px; }
.foot { display: grid; grid-template-columns: 1fr auto auto; gap: 14px 24px; align-items: center; padding: 28px 0 16px; margin-top: 40px; border-top: 1px solid var(--hair); }   /* B14 (his l.112, "Tighten up the white space in the footer"): was 24 px between rows, 48 px over and 64 px under it, 64 px above the rule · S18 (his l.184, "less white space or padding at the bottom"): 32 to 16 px under it, at every width */
.main.page:has(> .wrap > .foot:last-child) { padding-bottom: 0; }   /* B14 (l.112): the page added 48 px of its own under the footer; the footer's own 16 px (S18; 32 before) is the end of the page now */
.foot .flinks { display: flex; gap: 18px; align-items: center; } .foot .flinks a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot .ask { display: flex; gap: 12px; align-items: center; }
.foot .disclaim { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); line-height: 1.5; } .foot .disclaim a { color: var(--accent); }   /* B14 (his l.105, "we'll make it a little bit small"): one step down, 12 to 11 px, its two lines and Terms, the same ink */
/* site-look (a bench copy, 2026-11-30, his walk row 17, "move copyright to beside logo"): the footer's first block, the logo and "© 2026",
   on one line, centred on each other, 12 px apart, on every page at every width; the line may wrap only if the column is narrower than both */
.foot > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.foot > div:first-child > [data-brand] { display: inline-flex; }   /* the logo's box the height of its picture, so the centring is the picture's */
.foot > div:first-child > .label { margin: 0; }
@media (max-width: 900px) { .nav .links { display: none; } .nav { margin: 8px 0 0; padding: 10px 12px; gap: 10px; }
  .nav .home { margin-right: auto; } .nav .brand-logo img { height: 18px; } .nav .btn { padding-left: 14px; }
  .foot { grid-template-columns: 1fr; } .wrap { padding: 0 16px; } }
/* the frames (site.css v0.2.0): Kevin's deck patterns for a framed screen, copied from his presentation.html; his typed colours become
   tokens (the phone's bezel --brand-navy, its ring --hair-strong, the shadows --ambient); the tour's own went with /tour (v0.5.0) */
.devices { position: relative; padding-bottom: 40px; }
.desk { position: relative; width: 100%; aspect-ratio: 1440 / 900; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--shell-ring), var(--ambient); background: var(--bg); }
.desk iframe, .phone iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: var(--bg); }
.desk iframe { width: 1440px; height: 900px; }
.phone { position: absolute; right: -14px; bottom: -6px; width: 236px; aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 7px var(--brand-navy), 0 0 0 8px var(--hair-strong), var(--ambient); background: var(--bg); }
.phone iframe { width: 390px; height: 844px; }
.cap { margin-top: 10px; text-align: right; }
/* the launch (site.css v0.3.0): the problem, what it is, inside the app, the timeframes, words we use, learn, questions; tokens only */
.shot { width: 100%; height: auto; display: block; border-radius: calc(var(--r-xl) - var(--bezel-pad) - 8px); }
.shot-dark { display: none; } :root[data-theme="dark"] .shot-dark { display: block; } :root[data-theme="dark"] .shot-light { display: none; }
.ficon-i { font-size: 28px; color: var(--accent); }
.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stage { padding: 18px; border-radius: var(--r-lg); background: var(--core); box-shadow: var(--core-hi), inset 0 0 0 1px var(--hair); }
.stage i { font-size: 22px; color: var(--accent); } .stage h3 { font-size: 1rem; font-weight: 600; margin: 10px 0 6px; } .stage p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.hedge { margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 13px; color: var(--ink-3); }
.hero-shot { padding: 8px; } .card-shot { padding: 10px; } .card-shot h3 { font-size: 1.1rem; font-weight: 600; margin: 14px 8px 4px; } .card-shot p { color: var(--ink-2); margin: 0 8px 8px; font-size: 14px; }
.inside .bento { margin-top: 16px; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 10px; }
.term dt { font-weight: 600; } .term dd { color: var(--ink-2); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.links { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 14px; }
.links a { display: block; padding: 14px 16px; border-radius: var(--r-md); background: var(--core-2); color: var(--ink-1); text-decoration: none; font-weight: 500; }
.links a:hover { color: var(--accent); }
.q { padding: 14px 18px; border-bottom: 1px solid var(--hair); } .q:last-child { border-bottom: 0; }
.q summary { cursor: pointer; font-weight: 600; } .q p { color: var(--ink-2); margin-top: 8px; font-size: 14px; }
@media (max-width: 1100px) { .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .desk { display: none; }
  .devices { padding: 0; display: flex; justify-content: center; } .phone { position: relative; right: auto; bottom: auto; width: min(320px, 82vw); } }
/* B15 · the demo (his l.145, l.146), on the home and on /demo: the desk the full width of the page, then the phone on its own row, the
   space beside it left empty on purpose; under 768 px the phone alone (the desk is hidden there, as every frame's is) */
.v3-demo.devices { padding: 0; display: grid; gap: 28px; justify-items: start; margin-top: 16px; }
.v3-demo .desk { width: 100%; }
.v3-demo .phone { position: relative; right: auto; bottom: auto; width: min(320px, 82vw); }
@media (max-width: 767px) { .v3-demo.devices { justify-items: center; } }
/* /demo's controls: one pill per room and one for the report, the one showing in the kit's primary button colours */
.v3-rooms-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.v3-rooms-pick button { font: inherit; font-size: 15px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hair-strong); background: var(--core); color: var(--ink-1); cursor: pointer; }
.v3-rooms-pick button[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); }
.v3-rooms-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.v3-demo-page .cap { margin-top: 16px; text-align: center; }   /* site-look · his walk row 30 ("http://localhost:4763/demo/ move to centre"): on /demo the phone stands alone in the middle, so its caption sits under it, centred; the home's caption stays at the right, under its desk and phone */ /* was: margin only */
/* site-look (a bench copy, 2026-11-30, his request 3): on /demo the phone is centred under the desk at every width (the home keeps its own, site-v3.css) */
.v3-demo-page .v3-demo.devices { justify-items: center; }
/* site-look (his request 4): under 768 px the eleven controls are one row that scrolls sideways, not five wrapped rows: the row runs to the
   screen's edges, the last 32 px fade out (a mask, so nothing is drawn over a pill, and a spacer at the end lets the last one clear the
   fade), each pill 44 px tall to tap and snapped to its start; the buttons, their order, aria-pressed and the group's label are the build's
   own, unchanged; a focused pill is scrolled into view by the browser, the pressed one by KEEP_JS (/demo#report, a room opened in a frame) */
@media (max-width: 767px) {
  .v3-demo-page .v3-rooms-pick { flex-wrap: nowrap; gap: 6px; margin: 16px -32px 0; padding: 4px 32px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: 32px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, var(--ink-1) 16px, var(--ink-1) calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, transparent, var(--ink-1) 16px, var(--ink-1) calc(100% - 32px), transparent); }
  .v3-demo-page .v3-rooms-pick::-webkit-scrollbar { display: none; }
  .v3-demo-page .v3-rooms-pick::after { content: ""; flex: 0 0 16px; }
  .v3-demo-page .v3-rooms-pick button { flex: none; min-height: 44px; padding: 8px 15px; white-space: nowrap; scroll-snap-align: start; }
}
/* the five fixes (site.css v0.4.0, his CMS-CARE-2-ALL-FIVE-FAULTS-ONE-SHIP-2026-11-26); tokens only */
/* fix 1, the phone menu (his CMS-MENU-1, as drawn): a round button, three bars closed and a cross open, drawn in currentColor; one panel
   under the bar, its full width, in the manner of .nav .menu; above 900 px neither shows */
.nav .phone-menu { display: none; position: static; }
.nav .phone-menu > summary { display: grid; place-items: center; gap: 0; font-size: 18px; color: var(--ink-2); }
.nav .phone-menu[open] > summary { color: var(--ink-1); }
.phone-menu-icon, .phone-menu-icon::before, .phone-menu-icon::after { display: block; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform var(--t-fast) var(--spring), background-color var(--t-fast) var(--spring); }
.phone-menu-icon { position: relative; }
.phone-menu-icon::before, .phone-menu-icon::after { content: ""; position: absolute; left: 0; }
.phone-menu-icon::before { top: -5px; } .phone-menu-icon::after { top: 5px; }
.phone-menu[open] .phone-menu-icon { background: transparent; }
.phone-menu[open] .phone-menu-icon::before { transform: translateY(5px) rotate(45deg); }
.phone-menu[open] .phone-menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
.phone-menu-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 6px; padding: 10px;
  background: var(--core); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: var(--ambient); }
.phone-menu-panel a { display: block; padding: 12px 14px; border-radius: calc(var(--r-md) - 4px); background: var(--core-2); color: var(--ink-1); text-decoration: none; font-size: 15px; font-weight: 500; }
.phone-menu-panel a:hover { color: var(--accent); }
@media (max-width: 900px) { .nav .phone-menu { display: block; } }
/* the bar holds one more round button on a phone (v0.4.1, after tether's pane look, measured: the bar's inner width is 285 px at 375
   and 270 at 360): the two round buttons and Login never shrink; at 420 px and under the gaps tighten, the logo is 16 px high and
   Login drops its arrow chip and keeps its word (as drawn), so the row needs about 113 + 38 + 38 + 61 + 3 x 6 = 268; below that the
   logo is the one thing that gives way */
.nav > .icon-btn, .nav > .phone-menu, .nav > .btn { flex-shrink: 0; }
.nav .home, .nav .brand-logo { min-width: 0; flex-shrink: 1; }
.nav .brand-logo img { min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 420px) { .nav { gap: 6px; } .nav .brand-logo img { height: 16px; } .nav .btn { padding: 10px 12px; gap: 6px; } .nav .btn .ico { display: none; } }
/* fix 7, the pictures from 768 to 1,100 px: Kevin's rule (kit/tokens.css, at 1,100 px and under) sends .c-4 to .c-8 to full width; on
   the site's own pages (main.page) they keep their desktop spans, by specificity, whatever the order; under 768 px nothing changes */
@media (min-width: 768px) and (max-width: 1100px) {
  .main.page .c-4 { grid-column: span 4; } .main.page .c-5 { grid-column: span 5; } .main.page .c-6 { grid-column: span 6; }
  .main.page .c-7 { grid-column: span 7; } .main.page .c-8 { grid-column: span 8; } }
/* fix 5, the calculator's title in dark: the embed's card is its own fixed white, so its h1 takes the one near-black name that stays
   dark in both themes; light is left as it is */
:root[data-theme="dark"] .tool #ci-widget h1 { color: var(--brand-navy); }
/* fix 6, the calculator's hover box: hidden and floating over the chart until the embed's own script shows it (an inline display, its
   own left and top, inside .chart-wrap, which is position: relative) */
.tool #ci-widget .tooltip { position: absolute; display: none; pointer-events: none; }
