/* NineToFlow, 24 Nov 2026: "What we've built" and the savings slider (plan: top of PLAN.md). Loaded after lower.css.
   The cards take x.ai/bot's structure, measured there on 24 Nov: two per row, a title naming one thing the software
   does, one sentence, then the software doing it, cut off by the card's bottom edge. Round 2 (his call, 24 Nov, "i like
   groks version way better"): each app plays whole, not cropped, in a window with the three dots, on its own
   colourful backdrop, so the light apps never butt against the dark card. The backdrop: flat colour with the site's
   dot screen, one colour per card (his pick, 24 Nov, "2, dotted colour", over the silk cloth). Round 3 (24 Nov, "some
   dont need the colour backgrounds"): colour on the two diagonal cards only. The quote desk is a still tile (Dan's
   message at reading size), and the CRM is a dark window straight on the dark card, as Grok's Sales Bot card is. */

/* ---------------------------------------------------------------- What we've built */
.mk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:clamp(44px,5vw,72px)}
.mk-card{display:flex;flex-direction:column;min-width:0;height:clamp(460px,30vw + 40px,500px);overflow:hidden;border-radius:18px;background:#101012;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.mk-text{padding:28px 28px 0}
.mk-card h3{margin-top:12px;font-family:var(--font-display);font-size:clamp(19px,16px + .4vw,22px);font-weight:700;line-height:1.12;letter-spacing:-.025em;color:#fff}
.mk-card .mk-say{max-width:30em;margin-top:10px;font-size:15.5px;line-height:1.5;color:var(--ink-2)}
/* The backdrop: a colour panel inset in the card, its top corners round, its foot cut off by the card's edge. */
.mk-stage{position:relative;flex:1 0 auto;margin:24px 22px 0;padding:26px 26px 0;overflow:hidden;border-radius:12px 12px 0 0;background:radial-gradient(circle,rgba(255,255,255,.26) .9px,transparent 1.45px) 0 0/7px 7px,var(--tone,#2f62ff)}
.mk-stage[data-tone="blue"]{--tone:#2f62ff}
.mk-stage[data-tone="coral"]{--tone:#e0457b}
.mk-stage[data-tone="green"]{--tone:#14a37a}
.mk-stage[data-tone="amber"]{--tone:#f39a1e}
/* The window: a light macOS frame for light apps. One soft shadow lifts it off the colour. */
.mk-win{position:relative;overflow:hidden;border-radius:10px 10px 0 0;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.16),0 26px 50px -22px rgba(8,10,30,.55)}
.mk-bar{position:relative;display:flex;align-items:center;gap:7px;height:30px;padding:0 12px;background:#ececef;border-bottom:1px solid rgba(0,0,0,.09)}
.mk-bar i{width:11px;height:11px;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.2)}
.mk-bar i:nth-child(2){background:#febc2e}
.mk-bar i:nth-child(3){background:#28c840}
.mk-bar span{position:absolute;inset:0;font:500 12px/30px var(--font-body);color:#5d636c;text-align:center;pointer-events:none}
.mk-view{aspect-ratio:1180/738;background:#e8ebee}
.mk-view video,.mk-view img{display:block;width:100%;height:100%;object-fit:cover}
/* No colour panel: the window sits on the card itself. A dark app gets a dark frame, its hairline doing the lifting. */
.mk-stage.is-plain{padding:0;background:none}
.mk-win.is-dark{background:#0f1012;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 26px 50px -22px rgba(0,0,0,.7)}
.mk-win.is-dark .mk-bar{background:#1b1c20;border-bottom-color:rgba(255,255,255,.07)}
.mk-win.is-dark .mk-bar span{color:#9a9ca6}
.mk-win.is-dark .mk-view{background:#0f1012}
/* A still of part of an app, at reading size: a tile, its top corners round, its foot cut off by the card's edge. */
.mk-tile{flex:1 0 auto;margin:24px 22px 0;overflow:hidden;border-radius:12px 12px 0 0;background:#eef1f5;box-shadow:0 0 0 1px rgba(255,255,255,.1)}
.mk-tile img,.mk-tile video{display:block;width:100%;height:auto;aspect-ratio:1280/800}

/* ---------------------------------------------------------------- Savings, version 3, "A sentence you fill in"
   (his pick, 26 Nov 2026; it replaced the 24 Nov sliders). Every rule is scoped under #savings, class prefix sf-.
   Desktop takes the FAQ's grid just below (1 : 1.15, same gap, one column from 1100 px), so the sentence starts on the
   same vertical line as the questions. The sentence is grey type; the three things you can change are white, in
   rounded pills with a blue underline and a small chevron. The answer finishes it underneath in white, money once. */

#savings .sf{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(40px,6vw,96px);align-items:start}
#savings .sf-body{min-width:0}
/* On a narrow phone the approved heading wraps; balanced, it breaks "See the hours / come back." instead of leaving
   "back." alone on a line. */
#savings .d2 .ln{text-wrap:balance}

/* The sentence. Leading is set by the pill, so a line with a pill and a line without one sit the same distance apart. */
#savings .sf-q{font-family:var(--font-display);font-size:clamp(24px,20px + .6vw,29px);font-weight:500;line-height:max(50px,1.6em);letter-spacing:-.024em;color:var(--ink-3);text-wrap:pretty}
#savings .sf-nb{white-space:nowrap}

/* A pill: the visible value, a chevron, and the real native select laid over the whole pill, so a tap anywhere on it
   opens the phone's own picker and the keyboard works as it does on any select. */
#savings .sf-pick{position:relative;display:inline-flex;align-items:center;gap:.2em;height:max(44px,1.34em);margin:0 .03em;padding:0 .4em 0 .48em;border-radius:999px;background:rgba(255,255,255,.075);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);color:#fff;white-space:nowrap;vertical-align:baseline;transition:background-color .15s var(--ease-out),box-shadow .15s var(--ease-out)}
#savings .sf-val{font-weight:600;letter-spacing:-.02em;text-decoration:underline;text-decoration-color:var(--dot);text-decoration-thickness:max(2px,.07em);text-underline-offset:.2em;text-decoration-skip-ink:none}
#savings .sf-chev{flex:none;width:.52em;height:.52em;margin-top:.08em;fill:none;stroke:var(--ink-3);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:stroke .15s var(--ease-out)}
#savings .sf-pick select{margin:0;padding:0;border:0;border-radius:inherit;background:transparent;color:#fff;font:inherit;font-weight:600;cursor:pointer;-webkit-appearance:none;appearance:none}
.js #savings .sf-pick select{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;-webkit-tap-highlight-color:transparent}
/* While its picker is open (and after, until you tap elsewhere) the pill you are changing stays lit. 16 px on the
   select keeps iPhone from zooming in when it opens. */
#savings .sf-pick{-webkit-tap-highlight-color:transparent}
#savings .sf-pick:focus-within{background:rgba(255,255,255,.13);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
#savings .sf-pick select option{color:#f4f4f5;background:#141417}
/* Without script the select itself shows (so what you pick is what you see), and the copy of its value steps aside.
   The page also drops .js when its scripts take over 2.5 s, so this state is reachable on a slow phone: the chevron
   keeps its place after the value, and the select hugs the picked option where the browser can (review, 26 Nov). */
html:not(.js) #savings .sf-val{display:none}
html:not(.js) #savings .sf-chev{order:1}
html:not(.js) #savings .sf-pick select{field-sizing:content}
#savings .sf-pick:has(select:focus-visible){outline:2px solid #7d9bff;outline-offset:3px}
@media (hover:hover) and (pointer:fine){
  #savings .sf-pick:hover{background:rgba(255,255,255,.13);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
  #savings .sf-pick:hover .sf-chev{stroke:#fff}
}

/* The answer: the end of the sentence, in white, a size up. */
#savings .sf-a{margin-top:clamp(18px,2.4vw,30px);font-family:var(--font-display);font-size:clamp(30px,21px + 1.9vw,48px);font-weight:600;line-height:1.1;letter-spacing:-.034em;color:#fff;text-wrap:balance;font-variant-numeric:tabular-nums}
#savings .sf-a b{font-weight:inherit;white-space:nowrap}

/* The working and the honest note, under a hairline. */
#savings .sf-note{max-width:34em;margin-top:clamp(26px,3vw,40px);padding-top:18px;border-top:1px solid rgba(255,255,255,.1);font-size:15px;line-height:1.55;color:var(--ink-4)}
#savings .sf-note b{font-weight:500;color:#fff;font-variant-numeric:tabular-nums}

@media (max-width:1100px){
  #savings .sf{grid-template-columns:minmax(0,1fr);gap:clamp(26px,4vw,40px)}
  #savings .sf-body{max-width:660px}
}
@media (prefers-reduced-motion:reduce){
  #savings .sf-pick,#savings .sf-chev{transition:none}
}

/* ---------------------------------------------------------------- The Why caption on phones (audit, 24 Nov): white
   text sat over the brightest dots; a dark backing keeps it readable whatever the field does under it. */
@media (max-width:700px){
  .lp-cap{left:16px;right:16px;bottom:16px;max-width:none;padding:12px 14px;border-radius:12px;background:rgba(5,5,6,.78)}
}

@media (max-width:1100px){
  .mk-grid{grid-template-columns:minmax(0,1fr)}
  .mk-card{height:auto}
  .mk-stage{flex:none;height:clamp(300px,52vw,520px)}
}
@media (max-width:700px){
  .mk-text{padding:22px 20px 0}
  /* On a phone the window keeps a readable size and runs off the panel's right edge, as a big window would. */
  .mk-stage{margin:20px 14px 0;padding:18px 0 0 18px;height:300px}
  .mk-win{width:170%;border-radius:10px 0 0 0}
  /* Its title centres on the part you can see (the window is 1.7 panels wide): centred on the whole bar it ran past
     the phone's edge ("Flight Studio" at 450 px on a 320 px screen) or was cut ("Halden Workspac"); phone audit 25 Nov. */
  .mk-bar span{right:auto;width:calc(100% / 1.7);white-space:nowrap}
  /* A card with a phone clip (made.js adds .has-phone): the app's phone screen, full width, no window bar, corners
     rounded like a phone's, cut off by the card's bottom edge like the laptop windows are. */
  .mk-card.has-phone .mk-stage{height:auto;margin:22px 16px 0;padding:0;background:none}
  .mk-card.has-phone .mk-win{width:100%;border-radius:26px 26px 0 0;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
  .mk-card.has-phone .mk-bar{display:none}
  .mk-card.has-phone .mk-view{aspect-ratio:1080/1680;max-height:560px}
  /* The quote desk's tile takes the same phone screen: full width, phone corners, cut off by the card's foot. */
  .mk-card.has-phone .mk-tile{margin:22px 16px 0;border-radius:26px 26px 0 0;background:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
  .mk-card.has-phone .mk-tile video{height:auto;max-height:560px;aspect-ratio:1080/1680;object-fit:cover;object-position:top}
}

/* ---------------------------------------------------------------- Intro (24 Nov 2026): Grok's breathing space between
   the hero and the cards. A big two-line statement, one sentence in near-white (his pick, 25 Nov: the second
   sentence repeated the Why section), and a row of tools we connect.
   The row is his pick of three (25 Nov 2026, "3"): each tool's real logo in its own colours with no tile, at different
   heights and turns, floating slowly. The first version (brand-colour tiles, white marks) read as a copy of Grok's bots.
   Phones get two even rows of four: one wrapped row fell into an uneven cluster. */
.ni-head{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(32px,6vw,96px);align-items:start}
.ni-h{font-family:var(--font-display);font-size:clamp(34px,2.7vw + 18px,62px);text-wrap:balance;font-weight:600;line-height:1.02;letter-spacing:-.04em;color:#fff}
.ni-h .ln{display:block}
.ni-h .ln.b{color:var(--ink-3)}
.ni-say{display:grid;gap:16px;max-width:31em;padding-top:8px}
.ni-say p{font-size:clamp(16px,.3vw + 15px,18.5px);line-height:1.55;color:#e4e4e7}
.ni-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:clamp(80px,9vw,150px) 0 0;padding:0;list-style:none}
.ni-t{display:grid;place-items:center;flex:none;width:clamp(52px,5vw,84px);aspect-ratio:1;translate:0 var(--y);rotate:var(--r);animation:ni-float 6s ease-in-out calc(var(--i) * -.8s) infinite}
.ni-t img{width:100%;height:100%;object-fit:contain}
.ni-wide{width:clamp(80px,7.6vw,124px)}                    /* MYOB is a wordmark */
@keyframes ni-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.js .ni-t{opacity:0;scale:.82}
.js .ni-row.in .ni-t{opacity:1;scale:1;transition:opacity .5s var(--ease-out) calc(var(--i) * 70ms),scale .7s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 70ms)}
@media (max-width:900px){.ni-head{grid-template-columns:minmax(0,1fr)}}
@media (max-width:600px){
  .ni-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-items:center;gap:34px 12px}
  .ni-t{width:clamp(44px,12vw,64px);translate:0 calc(var(--y) * .5)}
  .ni-wide{width:clamp(70px,19vw,104px)}
}
@media (prefers-reduced-motion:reduce){.ni-t{animation:none}.js .ni-t{opacity:1;scale:1}}
