/* site.css v0.4.1 · thealgo.com's own patterns on Kevin's kit (the skin pass; the fold's deck patterns, the launch, then the five fixes at the end) · tokens only, never a hex */
.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; }
.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, .algo, .eod, .spy, .contact { padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.feat .ficon { width: 56px; height: 56px; object-fit: contain; }
.soft { color: var(--ink-2); }
.spy .who { display: flex; gap: 12px; align-items: center; } .spy .who small { display: block; }
.spy .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.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; }
.perf { max-width: 760px; margin: 0 auto; width: 100%; }
.register { padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.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 { 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; }
.tool { padding: 24px; }
.form { padding: 16px; min-height: 700px; }
.foot { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 48px 0 64px; margin-top: 64px; border-top: 1px solid var(--hair); }
.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: 12px; color: var(--ink-3); line-height: 1.55; } .foot .disclaim a { color: var(--accent); }
@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 fold (site.css v0.2.0): Kevin's deck patterns, copied from his presentation.html; his typed colours become tokens
   (the phone's bezel --brand-navy, its ring --hair-strong, the shadows --ambient, the pair's text --ink-inv) */
html:has(.tour) { scroll-snap-type: y proximity; }
.tour .slide { min-height: 100dvh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 56px; margin-top: 0; }
.tour .slide h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; max-width: 18ch; }
.tour .slide .lede, .band .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 44rem; line-height: 1.6; margin-top: 18px; }
.tour h1.display { max-width: 14ch; }
.tour .g { display: grid; gap: 16px; margin-top: 44px; }
.tour .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tour .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle .core { padding: 28px; }
.principle .pi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--accent-wash); color: var(--accent); margin-bottom: 22px; }
.principle h3 { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 600; }
.principle p { color: var(--ink-2); margin-top: 8px; line-height: 1.55; font-size: 14px; }
.screen { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.tour .screen h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.notes { margin-top: 22px; display: grid; gap: 14px; }
.notes div { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.notes i { font-size: 18px; color: var(--accent); margin-top: 1px; } .notes b { color: var(--ink-1); font-weight: 600; }
.route { display: inline-flex; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.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; }
.open { display: inline-flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; align-items: center; }
.hint { font-size: 13px; color: var(--ink-3); }
.pair { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.pair i { flex: 1; height: 54px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-inv); font-style: normal; font-weight: 600; font-size: 14px; }
.pair i.up { background: var(--up); } .pair i.down { background: var(--down); }
.verdict { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 500; }
.alone { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; } .alone .delta { font-size: 18px; }
.theme-shot { padding: 20px; } .theme-shot h4 { font-size: 1.3rem; letter-spacing: -0.03em; font-weight: 600; margin: 8px 0 16px; } .theme-shot .devices { padding-bottom: 0; }
.cap { margin-top: 10px; text-align: right; }
.band { margin-top: 72px; }
/* 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); }
.what .core { padding: 32px; } .what .lede { color: var(--ink-1); font-size: 1.12rem; line-height: 1.6; margin-top: 14px; }
.what .humble { margin-top: 18px; color: var(--ink-3); } .what .humble + .soft { margin-top: 4px; }
.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; }
.tfrows { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.tfrows dt { color: var(--ink-3); } .tfrows dd { color: var(--ink-1); font-weight: 500; }
.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) { .tour .g-3 { grid-template-columns: 1fr; } .screen { grid-template-columns: 1fr; gap: 28px; } .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) { html:has(.tour) { scroll-snap-type: none; } .tour .slide { min-height: auto; padding: 72px 0 40px; }
  .tour .g-2 { grid-template-columns: 1fr; } .desk { display: none; } .theme-shot .desk { display: block; }
  .devices { padding: 0; display: flex; justify-content: center; } .phone { position: relative; right: auto; bottom: auto; width: min(320px, 82vw); } }
/* 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; }
