/* Crescos pages: the homepage, /how-it-works/, /design-system/ (with its own ds.css for layout), the text pages. Revision 5 of the design system (navy #12253C, Schibsted Grotesk,
   the c mark). Colours, type, space and motion come from tokens.css; this file uses its tokens only. The device mock-ups
   in "A day with Crescos" imitate other vendors' apps and keep their own colours inline.

   The page is set like a document: one ground, paper; sections divided by a hairline and space, never by a band of colour.
   One section per page may be navy, and it is simply the dark theme on that section (data-theme="dark"). Yellow is the
   one call to action, the mark, the underline on the current page and the marker on the step to look at. */

/* Fonts are self-hosted (SIL Open Font License, see fonts/): no request leaves for a third party. */
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:400 900;font-display:swap;src:url(/fonts/schibsted-grotesk-latin-variable.woff2) format('woff2')}
@font-face{font-family:'Funnel Display';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/funnel-display-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2')}

/* ---- Base ------------------------------------------------------------------------------------------------------------- */

:root{
  --bar-h:var(--bar-height);
  --gutter-page:var(--gutter);
}
@media (max-width: 480px){:root{--gutter-page:var(--space-16)}}
html{scroll-padding-top:var(--bar-h);-webkit-text-size-adjust:100%}
*{box-sizing:border-box}
body{margin:0;background:var(--color-bg);color:var(--color-text);font-family:var(--font-sans);font-size:var(--text-body);line-height:var(--leading-body);-webkit-font-smoothing:antialiased}
img{max-width:100%}
a{color:inherit;transition:color var(--duration-fast) ease}
a:hover{color:var(--color-warning)}
input,button{font-family:inherit}
:focus-visible{outline:var(--focus-width) solid var(--color-focus);outline-offset:var(--focus-offset)}
.skip{position:absolute;left:16px;top:-64px;z-index:var(--z-skip);background:var(--color-brand);color:var(--color-on-brand);padding:10px 16px;border-radius:var(--radius-md);font-weight:var(--weight-medium);text-decoration:none}
.skip:focus{top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (prefers-reduced-motion: reduce){*{transition-duration:0ms !important;animation-duration:0ms !important}}

.page{min-height:100%}
.wrap{max-width:var(--content-max);margin:0 auto;padding-inline:var(--gutter-page)}
/* The one navy section: the dark theme on a section. */
[data-theme="dark"]{background:var(--color-bg);color:var(--color-text)}

/* Section heads: a label, a heading, a lead. The heading never wraps past the lead's measure. */
.sec-head{display:flex;flex-direction:column;gap:var(--space-12);max-width:720px}
.sec-head h2,.sec-h{margin:0 0 4px;font-size:var(--text-heading);line-height:var(--leading-heading);font-weight:var(--weight-medium);letter-spacing:var(--tracking-heading);text-wrap:balance}
.sec-head p:not(.kicker){margin:0;max-width:var(--measure);color:var(--color-text-secondary);font-size:var(--text-lead);line-height:var(--leading-lead);text-wrap:pretty}
.kicker,.label{margin:0;font-size:var(--text-label);line-height:var(--leading-label);font-weight:var(--weight-medium);color:var(--color-text-muted)}
@media (max-width: 699px){.sec-head h2,.sec-h{font-size:2rem}}

/* Sections: 128px apart, the hairline in the middle of the space, as wide as the content (not the gutters). */
.story-wrap,.time-wrap,.start-wrap,.foot{background:linear-gradient(var(--color-border),var(--color-border)) no-repeat var(--gutter-page) 0 / calc(100% - 2 * var(--gutter-page)) 1px}
.sec{padding-block:var(--space-64)}
.sec + .sec > .wrap > .sec-rule,.sec-rule{border-top:1px solid var(--color-border);padding-top:var(--space-64)}

/* Buttons: 44px, 6px corners. Primary yellow, secondary navy, quiet as an underlined link. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:var(--control-height);padding:0 20px;border:0;border-radius:var(--radius-md);font-size:var(--text-ui);font-weight:var(--weight-medium);line-height:1;text-decoration:none;cursor:pointer;transition:background-color var(--duration-fast) ease,color var(--duration-fast) ease}
.btn-brand{background:var(--color-brand);color:var(--color-on-brand)}
.btn-brand:hover{background:color-mix(in srgb, var(--color-brand) 86%, var(--color-text));color:var(--color-on-brand)}
.btn-ink,.btn-navy{background:var(--color-text);color:var(--color-bg)}
.btn-ink:hover,.btn-navy:hover{background:color-mix(in srgb, var(--color-text) 86%, var(--color-bg));color:var(--color-bg)}
.btn-lg{min-height:var(--control-height);padding:0 20px;font-size:var(--text-ui)}
.btn-quiet{display:inline-flex;align-items:center;min-height:var(--control-height);font-size:var(--text-ui);font-weight:var(--weight-medium);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

/* ---- The top bar: paper, a hairline under it; on phones the links fold behind a button --------------------------------- */

.bar{position:sticky;top:0;z-index:var(--z-bar);background:color-mix(in srgb, var(--color-bg) 94%, transparent);backdrop-filter:saturate(1.2) blur(8px);-webkit-backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--color-border)}
.bar-row{position:relative;max-width:var(--content-max);margin:0 auto;min-height:var(--bar-height);padding:0 var(--gutter-page);display:flex;flex-wrap:wrap;gap:var(--space-16);align-items:center;justify-content:space-between}
.wordmark{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:var(--weight-wordmark);font-size:1.375rem;line-height:1;letter-spacing:-0.02em;text-decoration:none;padding:var(--space-8) 0}
.wordmark svg{flex:none;width:24px;height:24px}
/* The mark is one file in both themes: its tile stays navy, so on a navy ground only the yellow c shows. */
.wordmark svg path{fill:var(--color-brand)}
.wordmark:hover{color:inherit}
.nav-links{display:flex;flex-wrap:wrap;gap:var(--space-8) 28px;align-items:center;font-size:var(--text-ui);font-weight:var(--weight-medium)}
.nav-links a:not(.btn){text-decoration:none;padding:10px 0;border-bottom:2px solid transparent}
.nav-links a:not(.btn):hover{color:var(--color-text);border-bottom-color:var(--color-border-control)}
.nav-links a[aria-current="page"]{border-bottom-color:var(--color-brand)}
.nav-links .btn{min-height:40px;padding:0 16px;font-size:var(--text-small);margin-left:var(--space-8)}
/* The theme switch: one icon button that cycles System, Light, Dark (site.js). Between the links and the yellow button;
   on a phone it leaves the folded menu and sits beside the menu button. */
.theme-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);cursor:pointer;transition:color var(--duration-fast) ease}
.theme-btn:hover{color:var(--color-text)}
.theme-btn svg{width:18px;height:18px}
.theme-btn-bar{display:none;margin-left:auto}
.nav-toggle{display:none;width:44px;height:44px;align-items:center;justify-content:center;padding:0;border:1px solid var(--color-border-control);border-radius:var(--radius-md);background:transparent;color:var(--color-text);cursor:pointer}
@media (max-width: 860px){
  .nav-js .nav-toggle{display:flex}
  .nav-js .nav-links{display:none}
  .nav-js .theme-btn-bar{display:inline-flex}
  .nav-js .nav-links .theme-btn{display:none}
  .nav-js.nav-open .nav-links{display:flex;position:absolute;top:100%;left:0;right:0;background:var(--color-bg);flex-direction:column;align-items:flex-start;gap:var(--space-8);padding:var(--space-8) var(--gutter-page) var(--space-24);border-bottom:1px solid var(--color-border)}
  .nav-js.nav-open .nav-links .btn{margin:var(--space-8) 0 0}
}

/* ---- Hero: what Crescos is, and the product as a figure ---------------------------------------------------------------- */

.hero{padding-block:var(--space-96) var(--space-64)}
.hero-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:var(--space-48) var(--space-64);align-items:center}
.hero-text{display:flex;flex-direction:column;gap:var(--space-24);max-width:560px}
.hero-h1{margin:0;font-size:var(--text-display);line-height:var(--leading-display);font-weight:var(--weight-medium);letter-spacing:var(--tracking-display);text-wrap:balance}
.hero-lede{margin:0;font-size:var(--text-lead);line-height:var(--leading-lead);color:var(--color-text-secondary);text-wrap:pretty}
.hero-people{margin:0;color:var(--color-text-muted);text-wrap:pretty}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-16) 28px;padding-top:var(--space-8)}
.hero-out{display:flex;flex-direction:column;gap:var(--space-16);width:100%;max-width:540px;justify-self:end}
.hero-case{order:2;display:flex;flex-direction:column;gap:2px;margin:0;font-size:var(--text-small);line-height:var(--leading-small);color:var(--color-text-muted)}
.hero-case .kicker{color:var(--color-text-muted)}
.hero-case strong{font-weight:var(--weight-medium);color:var(--color-text)}
.hero-case span{max-width:52ch}
@media (max-width: 699px){
  .hero{padding-block:var(--space-48) var(--space-48)}
  .hero-h1{font-size:2.5rem}
  .hero-out{justify-self:stretch}
}

/* The window: the product, white on paper, a hairline, one radius, no shadow. */
.tablet{order:1}
.tablet-screen{display:flex;flex-direction:column;background:var(--color-bg-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:var(--radius-lg)}

/* The manufacturer's order-to-delivery screen. */
.mf{flex:1;display:flex;flex-direction:column;padding:20px 24px;font-size:var(--text-ui);line-height:var(--leading-ui)}
.mf-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-16);padding-bottom:var(--space-12);font-size:var(--text-label);font-weight:var(--weight-medium)}
.mf-head span:last-child{font-family:var(--font-mono);font-size:var(--text-mono);font-weight:var(--weight-regular);color:var(--color-text-muted)}
.mf-rows{margin:0;padding:0;list-style:none}
.mf-rows li{display:grid;grid-template-columns:minmax(0,1fr) 108px 64px;gap:var(--space-16);align-items:center;min-height:40px;padding:6px 0;border-top:1px solid var(--color-border-row)}
.mf-time{justify-self:end;font-family:var(--font-mono);font-size:var(--text-mono);color:var(--color-text-secondary);white-space:nowrap}
.mf-slow{color:var(--color-danger);font-weight:var(--weight-medium)}
.mf-ai{display:flex;flex-wrap:wrap;gap:var(--space-12) var(--space-16);align-items:center;justify-content:space-between;margin:var(--space-12) -8px 0;padding:var(--space-12);border-radius:var(--radius-sm);background:var(--color-bg-subtle);font-size:var(--text-small);line-height:var(--leading-small)}
.mf-ai > span:first-child{flex:1 1 240px}
.mf-ai .pill{display:none}
.mf-ai .fake-btn{flex:none}
@media (max-width: 480px){.mf{padding:var(--space-16)}.mf-rows li{grid-template-columns:minmax(0,1fr) 92px 56px;gap:var(--space-8)}.mf-head span:last-child{display:none}}

/* Who does a step: a dot or an initial, and a word. No capsule. A tag is two or three words in red. */
.pill{flex:none;display:inline-flex;gap:var(--space-8);align-items:center;font-size:inherit;font-weight:var(--weight-regular);line-height:1.3;white-space:nowrap;color:var(--color-text)}
.pill-sw::before,.pill-ai::before{content:'';flex:none;width:8px;height:8px;border-radius:var(--radius-pill);background:var(--color-text-muted)}
.pill-ai::before{background:var(--color-info)}
.pill img{flex:none;width:20px;height:20px;border-radius:var(--radius-pill);object-fit:cover;background:var(--color-border)}
.pill-bad{font-size:var(--text-label);font-weight:var(--weight-medium);color:var(--color-danger)}
.pill-ini{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--radius-pill);background:var(--color-text);color:var(--color-bg);font-size:11px;font-weight:var(--weight-medium);line-height:1}
.pill-ini.ini-lg{width:22px;height:22px}
.fake-btn{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:var(--radius-md);background:var(--color-text);color:var(--color-bg);font-size:var(--text-small);font-weight:var(--weight-medium);white-space:nowrap}

/* ---- Why Crescos: four pictures of the same company, one per row ------------------------------------------------------- */

.story{padding-block:var(--space-64) var(--space-64)}
.story-wrap{display:flex;flex-direction:column;gap:var(--space-48);padding-top:var(--space-64)}
.steps{display:flex;flex-direction:column;gap:var(--space-96);margin:0;padding:0;list-style:none}
.step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);grid-template-areas:'num ui' 'h ui' 'p ui' '. ui';grid-template-rows:auto auto auto 1fr;column-gap:var(--space-64);row-gap:var(--space-12);align-items:start}
.step-num{grid-area:num;font-size:var(--text-label);line-height:var(--leading-label);font-weight:var(--weight-medium);color:var(--color-text-muted)}
.step h3{grid-area:h;margin:0 0 4px;max-width:480px;font-size:var(--text-card);line-height:var(--leading-card);font-weight:var(--weight-medium);letter-spacing:var(--tracking-card);text-wrap:balance}
.step p{grid-area:p;margin:0;max-width:480px;color:var(--color-text-secondary);text-wrap:pretty}
.step .ui{grid-area:ui}
@media (max-width: 899px){
  .steps{gap:var(--space-64)}
  .step{grid-template-columns:minmax(0,1fr);grid-template-areas:'num' 'h' 'p' 'ui';grid-template-rows:none}
  .step .ui{margin-top:var(--space-12);max-width:560px}
}

/* The small window under each step: what is moving, who has it, and the one thing that comes next. */
.ui{display:flex;flex-direction:column;padding:20px 24px;background:var(--color-bg-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:var(--radius-lg);font-size:var(--text-ui);line-height:var(--leading-ui)}
.ui-title{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-16);padding-bottom:var(--space-12);font-size:var(--text-label);font-weight:var(--weight-medium)}
.ui-title > span:last-child{flex:none;font-family:var(--font-mono);font-size:var(--text-mono);font-weight:var(--weight-regular);color:var(--color-text-muted)}
.ui-row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-16);min-height:40px;padding:6px 0;border-top:1px solid var(--color-border-row)}
.ui-row > span:first-child{min-width:0}
.ui-row small{display:block;color:var(--color-text-muted);font-size:var(--text-label)}
.ui-next,.ui-focus{margin:var(--space-12) -8px 0;padding:var(--space-12);border:0;border-radius:var(--radius-sm);background:var(--color-bg-subtle);font-size:var(--text-small);line-height:var(--leading-small)}
.ui-next b,.ui-focus b{font-weight:var(--weight-medium)}
/* The step to look at carries the yellow marker. */
.ui-focus{box-shadow:inset 3px 0 0 var(--color-brand)}
.ui-split{margin-top:var(--space-8)}

/* 02: the company's parts with their heads, and Support's two processes with their owners. */
.tree,.tree ul{margin:0;padding:0;list-style:none}
.tree{display:flex;flex-direction:column}
.tree > li{border-top:1px solid var(--color-border-row)}
.tree ul{position:relative;margin:0 0 var(--space-8) 6px;padding-left:18px}
.tree ul::before{content:'';position:absolute;left:0;top:0;bottom:20px;width:1px;background:var(--color-border-control)}
.tree ul li{position:relative}
.tree ul li::before{content:'';position:absolute;left:-18px;top:20px;width:12px;height:1px;background:var(--color-border-control)}
.tree-row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-16);min-height:40px}
.tree-row > span:first-child{min-width:0}
.tree-top > span:first-child{font-weight:var(--weight-medium)}
.tree-open{margin-inline:-8px;padding-inline:8px;border-radius:var(--radius-sm);background:var(--color-bg-subtle)}
.tree-open > span:first-child{font-weight:var(--weight-medium)}

/* 03: inside one sub-process, its steps in order, each with the kind of help that does it. */
.ui-crumb{font-weight:var(--weight-regular);color:var(--color-text-secondary)}
.ui-crumb b{font-weight:var(--weight-medium);color:var(--color-text)}
.flow{margin:0;padding:0;list-style:none;counter-reset:flow;display:flex;flex-direction:column}
.flow li{counter-increment:flow;display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:var(--space-12);align-items:center;min-height:40px;padding:6px 0;border-top:1px solid var(--color-border-row)}
.flow li::before{content:counter(flow);font-family:var(--font-mono);font-size:var(--text-mono);color:var(--color-text-muted)}
.flow .flow-now{margin-inline:-8px;padding-inline:8px;border-radius:var(--radius-sm);background:var(--color-bg-subtle);box-shadow:inset 3px 0 0 var(--color-brand)}
.flow-now > span:first-child{font-weight:var(--weight-medium)}
.flow small{display:block;color:var(--color-warning);font-size:var(--text-label);font-weight:var(--weight-medium)}

/* 04: one measure drifting past its target, with its owner. */
.sig{display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-12) 0;border-top:1px solid var(--color-border-row)}
.sig-head{display:flex;justify-content:space-between;align-items:center;gap:var(--space-16);font-weight:var(--weight-medium)}
.sig-num{display:flex;align-items:baseline;gap:var(--space-12)}
.sig-num strong{font-size:2.5rem;line-height:1;font-weight:var(--weight-medium);letter-spacing:-0.02em;color:var(--color-text)}
.sig-num span{font-size:var(--text-small);color:var(--color-text-muted)}
.sig-chart{display:block;width:100%;height:auto;max-height:120px;overflow:visible}
.sig-target{stroke:var(--color-border-control);stroke-width:1;stroke-dasharray:4 4;fill:none;vector-effect:non-scaling-stroke}
.sig-label{font-family:var(--font-mono);font-size:5px;fill:var(--color-text-muted)}
.sig-line{fill:none;stroke:#C98E00;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sig-dot{fill:var(--color-danger);stroke:var(--color-bg-surface);stroke-width:2;vector-effect:non-scaling-stroke}

/* ---- More time for what matters: Maria's week, whose Thursday "A day with Crescos" opens -------------------------------- */

.time{padding-block:var(--space-64)}
.time-wrap{display:flex;flex-direction:column;gap:var(--space-48);padding-top:var(--space-64)}

.week{display:flex;flex-direction:column;gap:var(--space-16);padding:20px 24px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg)}
.week-top{display:flex;justify-content:space-between;align-items:center;gap:var(--space-12);font-size:var(--text-label);font-weight:var(--weight-medium)}
.week-top strong{display:flex;gap:var(--space-8);align-items:center;font-weight:var(--weight-medium);font-size:var(--text-ui)}
.week-top strong img{width:24px;height:24px;border-radius:var(--radius-pill);object-fit:cover;background:var(--color-border)}
.week-top span{font-family:var(--font-mono);font-size:var(--text-mono);font-weight:var(--weight-regular);color:var(--color-text-muted)}
.wk{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--space-8);margin:0;padding:0;list-style:none}
.wk > li{display:flex;flex-direction:column;gap:6px;min-width:0}
.wk-day{font-size:var(--text-label);font-weight:var(--weight-medium);color:var(--color-text-muted)}
.wk-b{min-height:calc(var(--h,48px) * .72);padding:8px 10px;border-radius:var(--radius-sm);font-size:var(--text-label);line-height:1.35;overflow-wrap:anywhere}
.wk-b strong{display:block;font-weight:var(--weight-medium)}
.wk-auto{background:var(--color-bg-subtle);color:var(--color-text-secondary)}
.wk-meet{background:var(--color-bg-surface);border:1px solid var(--color-border)}
.wk-gone{border:1px dashed var(--color-border-control);color:var(--color-text-muted);text-decoration:line-through}
.wk-free{background:var(--color-bg);color:var(--color-text-muted);border:1px solid var(--color-border-row)}
/* Thursday is a link down to "A day with Crescos": the yellow marker on its edge, the times of its moments. */
.wk-goal{flex:1;display:flex;flex-direction:column;gap:var(--space-8);min-height:151px;background:var(--color-bg-subtle);color:var(--color-text);box-shadow:inset 3px 0 0 var(--color-brand);text-decoration:none}
.wk-goal:hover{color:var(--color-text);background:color-mix(in srgb, var(--color-bg-subtle) 70%, var(--color-border))}
.wk-meet-in{display:block;padding:6px 8px;border-radius:var(--radius-sm);background:var(--color-bg-surface);border:1px solid var(--color-border)}
.wk-times{display:flex;flex-direction:column;gap:2px;font-family:var(--font-mono);font-size:11px;color:var(--color-text-secondary)}
.wk-go{margin-top:auto;font-weight:var(--weight-medium);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.wk-thu .wk-day{color:var(--color-text)}
@media (max-width: 760px){
  .week{padding:var(--space-16)}
  .wk{grid-template-columns:minmax(0,1fr);gap:6px}
  .wk > li{display:grid;grid-template-columns:2.75rem minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:stretch}
  .wk-day{align-self:center}
  .wk-b{min-height:0}
  .wk-off .wk-b,.wk-thu .wk-b{grid-column:2 / -1}
  .wk-goal{min-height:0}
  .wk-times{flex-direction:row;flex-wrap:wrap;gap:4px 10px}
}

/* What you gain: the headline and its line on the left, for you and for the company on the right. */
.gain{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto 1fr;align-items:start;gap:var(--space-12) var(--space-64)}
.gain h3{grid-column:1;margin:0;font-size:var(--text-card);line-height:var(--leading-card);font-weight:var(--weight-medium);letter-spacing:var(--tracking-card);text-wrap:balance}
.gain > p{grid-column:1;margin:0;color:var(--color-text-secondary);text-wrap:pretty}
.gain-cols{grid-column:2;grid-row:1 / span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-24) var(--space-48)}
.gain h4{margin:0 0 var(--space-8);padding-bottom:var(--space-8);border-bottom:1px solid var(--color-border);font-size:var(--text-label);font-weight:var(--weight-medium);color:var(--color-text-muted)}
.gain ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.gain li{padding:var(--space-8) 0;border-bottom:1px solid var(--color-border-row);text-wrap:pretty}
@media (max-width: 1099px){
  .gain{grid-template-columns:minmax(0,1fr)}
  .gain-cols{grid-column:1;grid-row:auto;margin-top:var(--space-12)}
}
@media (max-width: 699px){.gain-cols{grid-template-columns:minmax(0,1fr)}}

/* ---- A day with Crescos: the one navy section; six moments, one at a time (site.js, setupDay) --------------------------- */

.day{padding-block:var(--space-96)}
.day-wrap{display:flex;flex-direction:column;gap:var(--space-48)}
.day-body{display:grid;grid-template-columns:200px minmax(0,1fr);gap:var(--space-48);align-items:start}

/* The controls: up, the times, down. Hidden without the script, where the moments stay a list. */
.day-nav{display:none}
.day-js .day-nav{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-12);position:sticky;top:calc(var(--bar-h) + var(--space-24))}
.day-arrow{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--color-border-control);border-radius:var(--radius-md);background:transparent;color:var(--color-text);cursor:pointer;transition:background-color var(--duration-fast) ease}
.day-arrow svg{stroke-width:1.5}
.day-arrow:hover:not(:disabled){background:var(--color-bg-subtle)}
.day-arrow:disabled{opacity:.35;cursor:default}
.day-index{position:relative;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}
.day-index::before{content:'';position:absolute;left:21px;top:20px;bottom:20px;width:1px;background:var(--color-border)}
.day-index button{position:relative;display:flex;align-items:center;gap:var(--space-16);width:100%;min-height:48px;padding:6px 8px 6px 16px;border:0;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);text-align:left;cursor:pointer;transition:color var(--duration-fast) ease,background-color var(--duration-fast) ease}
.day-index button::before{content:'';flex:none;width:11px;height:11px;border-radius:var(--radius-pill);background:var(--color-bg);box-shadow:inset 0 0 0 1.5px var(--color-text-muted)}
.day-index button:hover{color:var(--color-text);background:var(--color-bg-surface)}
.day-index button[aria-current]{color:var(--color-text)}
.day-index button[aria-current]::before{background:var(--color-brand);box-shadow:none}
.day-index-text{display:flex;flex-direction:column;line-height:1.25}
.day-index-time{font-family:var(--font-mono);font-size:var(--text-mono)}
.day-index-label{font-size:var(--text-ui)}
.day-index button[aria-current] .day-index-label{font-weight:var(--weight-medium)}
.day-count{margin:0;padding-left:4px;font-family:var(--font-mono);font-size:var(--text-mono);color:var(--color-text-muted)}

/* The stage: all the moments in one place, one shown, crossfaded. The stage keeps the tallest one's height. The others are
   only transparent, never visibility:hidden or display:none, so they stay in the accessibility tree (site.js takes their
   links out of the tab order). */
.day-stage{display:flex;flex-direction:column;gap:72px;min-width:0}
.day-js .day-stage{display:grid}
.day-js .day-m{grid-area:1 / 1;opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out)}
.day-js .day-m.is-on{opacity:1;pointer-events:auto}
.day-m{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);grid-template-rows:auto 1fr;grid-template-areas:'copy photo' 'device photo';gap:var(--space-24) var(--space-48);align-items:start;align-content:start}
.day-copy{grid-area:copy;display:flex;flex-direction:column;gap:var(--space-12)}
.day-when{margin:0;font-family:var(--font-mono);font-size:var(--text-mono);color:var(--color-text-muted)}
.day-when::first-letter{color:inherit}
.day-m h3{margin:0 0 4px;font-size:var(--text-heading);line-height:var(--leading-heading);font-weight:var(--weight-medium);letter-spacing:var(--tracking-heading);text-wrap:balance}
.day-says{margin:0;max-width:44ch;font-size:var(--text-lead);line-height:var(--leading-lead);color:var(--color-text-secondary);text-wrap:pretty}
.day-device{grid-area:device;min-width:0;max-width:520px}
.day-where{display:block;margin-bottom:var(--space-8);font-size:var(--text-label);font-weight:var(--weight-medium);color:var(--color-text-muted)}
.day-photo{grid-area:photo;margin:0}
.day-photo img{display:block;width:100%;aspect-ratio:4 / 5;object-fit:cover;border-radius:var(--radius-lg)}
.day-photo figcaption{margin-top:var(--space-8);text-align:right}
/* The 13:00 calendar entry: what Crescos has ready for the meeting. */
.day-cal{max-width:360px;display:flex;flex-direction:column;gap:var(--space-8);padding:16px 20px;border-radius:var(--radius-lg);background:#FFFFFF;color:#12253C;font-size:var(--text-small);box-shadow:inset 3px 0 0 var(--color-brand)}
.day-cal-head{display:flex;justify-content:space-between;gap:var(--space-8);font-family:var(--font-mono);font-size:11px;color:#5B646E}
.day-cal-title{font-size:var(--text-body);font-weight:var(--weight-medium)}
.day-cal-label{margin:4px 0 0;font-size:var(--text-label);font-weight:var(--weight-medium);color:#5B646E}
.day-cal-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.day-cal-list li::before{content:"✓ ";color:#5B646E}
.day-cal-free{margin:4px 0 0;padding-top:var(--space-8);border-top:1px solid #E3E7EA;color:#3E4954}
@media (max-width: 1199px){
  .day-m{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:'copy' 'device'}
  .day-photo{display:none}
}
/* Phones: the times run across the top between the two arrows, and the moment follows under them. */
@media (max-width: 899px){
  .day{padding-block:var(--space-64)}
  .day-body{grid-template-columns:minmax(0,1fr);gap:var(--space-24)}
  .day-js .day-nav{position:static;flex-direction:row;align-items:center;gap:4px;flex-wrap:wrap}
  .day-index{flex:1;flex-direction:row;gap:4px;min-width:0}
  .day-index::before{left:12px;right:12px;top:auto;bottom:9px;width:auto;height:1px}
  .day-index li{flex:1;min-width:0}
  .day-index button{flex-direction:column-reverse;gap:6px;min-height:52px;padding:6px 0 4px;justify-content:flex-end;text-align:center}
  .day-index-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .day-index-time{font-size:11px}
  .day-arrow{width:40px;height:40px}
  .day-arrow svg{transform:rotate(-90deg)}
  .day-count{flex-basis:100%;text-align:center;padding:0}
  .day-m h3{font-size:2rem}
  .day-says{font-size:var(--text-body)}
}

/* ---- Integrations: Crescos in the middle of what you already run -------------------------------------------------------- */

.intg-sec{padding-block:var(--space-96) var(--space-64)}
.intg-wrap{display:flex;flex-direction:column;gap:var(--space-48)}
.intg{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,240px) minmax(0,1fr);grid-template-areas:'top top top' 'left hub right' 'bottom bottom bottom';align-items:center}
.intg-top{grid-area:top}.intg-left{grid-area:left}.intg-right{grid-area:right}.intg-bottom{grid-area:bottom}.intg-hub{grid-area:hub}
.intg-top,.intg-bottom{display:flex;flex-direction:column;align-items:center}
.intg-top .intg-card,.intg-bottom .intg-card{width:min(100%,640px)}
.intg-lr{display:flex;align-items:center;min-width:0}
.intg-card{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-12);padding:20px 24px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg)}
.intg-label{display:flex;align-items:center;gap:var(--space-8);font-size:var(--text-label);font-weight:var(--weight-medium);color:var(--color-text-muted)}
.intg-label svg{flex:none;width:20px;height:20px;color:var(--color-text)}
/* The names, as a plain list with a middle dot: not chips, not links. */
.chips{display:flex;flex-wrap:wrap;gap:2px 0;font-size:var(--text-ui);line-height:1.6}
.chips span{white-space:nowrap}
.chips span:not(:last-child)::after{content:'·';padding:0 10px;color:var(--color-text-muted)}
.intg-hub{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);padding:var(--space-24) 20px;border-radius:var(--radius-lg);background:var(--color-text);color:var(--color-bg);text-align:center}
.intg-hub svg{width:40px;height:40px}
.intg-hub strong{font-family:var(--font-display);font-weight:var(--weight-wordmark);font-size:1.5rem;letter-spacing:-0.02em;line-height:1}
.intg-hub span{font-size:var(--text-small);line-height:var(--leading-small);color:color-mix(in srgb, var(--color-bg) 82%, var(--color-text))}
.intg-v{display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px 0}
.intg-v i{display:block;width:1px;height:16px;background:var(--color-border-control)}
.intg-h{flex:0 0 132px;display:flex;flex-direction:column;align-items:center;gap:4px}
.intg-h i{display:block;align-self:stretch;height:1px;background:var(--color-border-control)}
.intg-v span,.intg-h span{font-family:var(--font-mono);font-size:11px;color:var(--color-text-muted);text-align:center;padding:0 var(--space-8)}
.intg-note{margin:0;color:var(--color-text-muted);font-size:var(--text-small)}
@media (max-width: 1099px){
  .intg{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'hub hub' 'top top' 'left right' 'bottom bottom';gap:var(--space-12)}
  .intg-h,.intg-v{display:none}
  .intg-top .intg-card,.intg-bottom .intg-card{width:100%}
  .intg-lr{align-items:stretch;height:100%}
  .intg-hub{flex-direction:row;justify-content:center;gap:var(--space-16);text-align:left}
}
@media (max-width: 699px){
  .intg{grid-template-columns:minmax(0,1fr);grid-template-areas:'hub' 'top' 'left' 'right' 'bottom'}
}

/* ---- Early access: the form as a window ---------------------------------------------------------------------------------- */

.start{padding-block:var(--space-64) var(--space-128)}
.start-wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:var(--space-48) var(--space-64);align-items:start;padding-top:var(--space-64)}
.start-text{display:flex;flex-direction:column;gap:var(--space-16)}
.start-text h2{margin:0 0 4px;font-size:var(--text-heading);line-height:var(--leading-heading);font-weight:var(--weight-medium);letter-spacing:var(--tracking-heading)}
.start-text p:not(.kicker){margin:0;max-width:44ch;font-size:var(--text-lead);line-height:var(--leading-lead);color:var(--color-text-secondary)}
.start-text p.start-by{font-size:var(--text-small);line-height:var(--leading-small);color:var(--color-text-muted)}
/* The form writes a mail in the reader's own email app (site.js, setupStart()); the line above it says so. A required field
   left empty says what is missing under it, and the status line under the button says what happened. */
.start-form{display:flex;flex-direction:column;gap:var(--space-16);padding:var(--space-24);background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg)}
.start-how{margin:0;font-size:var(--text-ui);color:var(--color-text-secondary)}
.start-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:var(--space-16);min-width:0;border:0;margin:0;padding:0}
.start-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.start-need,.start-err,.start-status{margin:0;font-size:var(--text-small);line-height:var(--leading-small)}
.start-need{color:var(--color-text-muted)}
.start-err{color:var(--color-danger)}
.start-status{color:var(--color-text)}
.start-status:empty{display:none}
.start-form input[aria-invalid="true"]{border-color:var(--color-danger)}
.start-form label{display:flex;flex-direction:column;gap:6px;font-size:var(--text-label);font-weight:var(--weight-medium)}
.start-form .wide{grid-column:1 / -1}
.start-form input[type="email"],.start-form input[type="text"]{height:var(--control-height);border:1px solid var(--color-border-control);border-radius:var(--radius-md);padding:0 12px;font-size:var(--text-ui);font-weight:var(--weight-regular);background:var(--color-bg-surface);color:var(--color-text)}
.start-form input::placeholder{color:var(--color-text-muted);opacity:1}
.start-fields fieldset{grid-column:1 / -1;border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--space-8) var(--space-24)}
.start-form legend{font-size:var(--text-label);font-weight:var(--weight-medium);margin-bottom:var(--space-8)}
.start-form .check{flex-direction:row;gap:var(--space-8);align-items:center;font-size:var(--text-ui);font-weight:var(--weight-regular);min-height:var(--space-24)}
.start-form .check input{width:16px;height:16px;margin:0;flex:none;accent-color:var(--color-text)}
.start-form .check-top{align-items:flex-start;font-size:var(--text-small);color:var(--color-text-secondary)}
.start-form .check-top input{margin-top:2px}
.start-form button{grid-column:1 / -1;justify-self:start}
.start-form button:disabled{opacity:.35;cursor:default}
.start-form .start-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media (max-width: 699px){.start{padding-block:var(--space-48) var(--space-96)}.start-text h2{font-size:2rem}.foot span{grid-column:1 / -1}}

/* Photo credits: small and quiet. */
.photo-credit{margin:0;font-size:12px;line-height:1.3;color:var(--color-text-muted)}
.photo-credit a{color:inherit;text-decoration:none}
.photo-credit a:hover,.photo-credit a:focus-visible{color:var(--color-text);text-decoration:underline}

/* ---- Footer ------------------------------------------------------------------------------------------------------------ */

.foot{max-width:var(--content-max);margin:0 auto;padding:var(--space-24) var(--gutter-page) var(--space-48);display:grid;grid-template-columns:minmax(0,1fr) repeat(5,auto);gap:var(--space-8) var(--space-24);align-items:center;font-size:var(--text-small);line-height:var(--leading-small);color:var(--color-text-muted)}
.foot p{grid-column:1 / -1;margin:0 0 var(--space-8);max-width:90ch}
.foot a{color:var(--color-text-muted)}
.foot a:hover{color:var(--color-text)}
.foot-btn{padding:0;border:0;background:none;font:inherit;color:var(--color-text-muted);text-decoration:underline;cursor:pointer;justify-self:start}
.foot-btn:hover{color:var(--color-text)}
/* On a phone the links sit in rows of three under the text; after the rule above, so it takes. */
@media (max-width: 699px){.foot{grid-template-columns:repeat(3,auto);justify-content:start}}

/* ---- Cookie notice (analytics.js): a band above the top bar, in the page's flow, until the visitor chooses -------------- */
.consent{background:var(--color-bg-subtle);border-bottom:1px solid var(--color-border);font-size:var(--text-small);line-height:var(--leading-small)}
.consent-row{max-width:var(--content-max);margin:0 auto;padding:var(--space-12) var(--gutter-page);display:flex;flex-wrap:wrap;gap:var(--space-12) var(--space-24);align-items:center;justify-content:space-between}
.consent-text{flex:1 1 32ch;max-width:72ch}
.consent-text p{margin:0}
.consent-text .consent-details{margin-top:var(--space-8);color:var(--color-text-secondary)}
.consent-more{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.consent-actions{display:flex;flex-wrap:wrap;gap:var(--space-8)}
.consent-actions .btn{min-height:40px;padding:0 16px;font-size:var(--text-small)}
.btn-line{background:transparent;color:var(--color-text);box-shadow:inset 0 0 0 1px var(--color-border-control)}
.btn-line:hover{background:var(--color-bg-surface);color:var(--color-text)}

/* ---- Text pages: /privacy/, /brief/ and the notes to come -------------------------------------------------------------- */
.prose{max-width:68ch;padding-block:var(--space-48) var(--space-128)}
.prose h2{margin:var(--space-48) 0 var(--space-8);font-size:var(--text-card);line-height:var(--leading-card);font-weight:var(--weight-medium);letter-spacing:var(--tracking-card)}
.prose p{margin:0 0 var(--space-16);text-wrap:pretty}
.prose .prose-lede{margin-top:var(--space-16);color:var(--color-text-secondary);font-size:var(--text-lead);line-height:var(--leading-lead)}
/* A page's updated line, the last in its <main>, set as a kicker; scripts/jsonld.mjs writes its date from dcterms.modified. */
.prose .updated{margin-top:var(--space-48)}
.prose ul{margin:0 0 var(--space-16);padding-left:1.25em}
.prose li{margin:0 0 var(--space-8)}
.updated.wrap{margin-inline:auto}

/* A closing row on the sub-pages: back to the form on the homepage. Paper, a hairline, the yellow button. */
.cta-band{padding-block:var(--space-48);border-top:1px solid var(--color-border)}
.cta-band-row{display:flex;flex-wrap:wrap;gap:var(--space-16) var(--space-24);align-items:center;justify-content:space-between}
.cta-band-text{margin:0;font-size:var(--text-card);line-height:var(--leading-card);font-weight:var(--weight-medium);letter-spacing:var(--tracking-card);max-width:36ch}

/* ---- How it works: the tray of twenty-one pieces, the panel that explains one, the example as the app shows it --------- */

.how{padding-block:var(--space-64) var(--space-96)}
.how-wrap{display:flex;flex-direction:column;gap:var(--space-48)}
.how-head{display:flex;flex-direction:column;gap:var(--space-16);max-width:720px}
.how-head .hero-h1{max-width:16ch}
.how-frame{margin:0;max-width:var(--measure);font-size:var(--text-body);color:var(--color-text-secondary);text-wrap:pretty}
.how-frame strong{color:var(--color-text);font-weight:var(--weight-medium)}

/* The five families' colours: a small disc beside each family's name, nowhere else */
.fam-direction{--fam:var(--color-brand)}
.fam-structure{--fam:var(--color-text)}
.fam-work{--fam:var(--color-text-muted)}
.fam-help{--fam:var(--color-info)}
.fam-control{--fam:var(--color-danger)}

.kit{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--space-48);align-items:start}
.kit-tray{display:flex;flex-direction:column;gap:var(--space-24)}
.kit-hint{margin:0;display:flex;gap:var(--space-8);align-items:center;font-size:var(--text-small);line-height:var(--leading-small);color:var(--color-text-secondary)}
.kit-hint svg{flex:none;color:var(--color-text-muted)}
.kit-fams{display:flex;flex-direction:column;gap:var(--space-16)}
.kit-fam{display:flex;flex-direction:column;gap:var(--space-8)}
.kit-fam h2{margin:0;display:flex;gap:var(--space-8);align-items:center;font-size:var(--text-label);line-height:var(--leading-label);font-weight:var(--weight-medium);color:var(--color-text-muted)}
.kit-fam h2::before,.bgroup-head h3::before{content:'';flex:none;width:8px;height:8px;border-radius:var(--radius-pill);background:var(--fam);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--color-text) 20%, transparent)}
.kit-pieces{display:flex;flex-wrap:wrap;gap:6px}
.kit-p{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px 0 8px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg-surface);color:var(--color-text);font:inherit;font-size:var(--text-small);line-height:1.2;cursor:pointer;transition:background-color var(--duration-fast) ease,color var(--duration-fast) ease,border-color var(--duration-fast) ease}
.kit-p svg{flex:none;color:var(--color-text-muted)}
.kit-p:hover{border-color:var(--color-border-control)}
.kit-p[aria-pressed="true"]{background:var(--color-text);border-color:var(--color-text);color:var(--color-bg)}
.kit-p[aria-pressed="true"] svg{color:inherit}

.kit-panel{position:sticky;top:calc(var(--bar-h) + var(--space-24));display:flex;flex-direction:column;gap:var(--space-8);padding:20px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg)}
.kit-panel h3{margin:0;font-size:var(--text-card);line-height:var(--leading-card);letter-spacing:var(--tracking-card);font-weight:var(--weight-medium)}
.kit-panel-text{margin:0 0 var(--space-8);color:var(--color-text-secondary);text-wrap:pretty}
.kit-asm .kit-panel{position:static;margin:var(--space-8) 0}

/* A scene: one piece pictured, rows on paper inside the panel */
.sc[hidden]{display:none}
.scene{height:300px;overflow:hidden;display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg);font-size:13px;line-height:1.4}
.s-lab{font-size:12px;line-height:1.3;font-weight:var(--weight-medium);color:var(--color-text-muted)}
.scene > .s-lab:not(:first-child){padding-top:4px}
.s-mono{font-family:var(--font-mono);font-size:12px;color:var(--color-text-muted);white-space:nowrap}
.s-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:34px;padding:6px 10px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm)}
.s-row > span:first-child{min-width:0}
.s-col{flex-direction:column;align-items:stretch;gap:3px}
.s-line{display:flex;justify-content:space-between;align-items:center;gap:10px}
.s-start{justify-content:flex-start;align-items:baseline}
.s-r{display:inline-flex;align-items:center;gap:8px;flex:none}
.s-dash{background:transparent;border-style:dashed;border-color:var(--color-border-control)}
.s-open{background:var(--color-bg-subtle)}
.s-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;font-weight:var(--weight-medium)}
.s-sub{color:var(--color-text-muted)}
.s-b{font-weight:var(--weight-medium)}
.s-bad{color:var(--color-danger)}
.s-big{font-size:20px;font-weight:var(--weight-medium);letter-spacing:-0.01em;margin-right:var(--space-8)}
.s-num{display:inline-block;min-width:16px;font-family:var(--font-mono);font-size:12px;color:var(--color-text-muted)}
.s-tree{display:flex;flex-direction:column;gap:6px;margin-left:8px;padding-left:12px;border-left:1px solid var(--color-border-control)}
.s-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.s-note{margin:0;color:var(--color-text-secondary)}
.s-quiet{color:var(--color-text-muted)}
.s-with{display:flex;gap:var(--space-8);align-items:center}
.s-ask{padding:8px 10px;border-radius:var(--radius-sm);background:var(--color-bg-subtle);box-shadow:inset 3px 0 0 var(--color-brand)}
.s-trig{font-family:var(--font-mono);font-size:11px;padding:1px 6px;border:1px dashed var(--color-border-control);border-radius:var(--radius-sm);color:var(--color-text-secondary)}
.s-wrap,.s-checks{display:flex;flex-wrap:wrap;gap:6px 14px}
.s-checks .tg{display:inline-flex;align-items:center;gap:4px}
.s-spark{width:100%;height:30px;overflow:visible}
.s-target{stroke:var(--color-border-control);stroke-dasharray:3 3;fill:none}
.s-line-ok{stroke:var(--color-text-secondary);stroke-width:1.5;fill:none;vector-effect:non-scaling-stroke}
.s-dot-ok{fill:var(--color-success)}
.s-bars{width:100%;height:56px}
.s-bars .b{fill:var(--color-text-secondary)}
.s-bars .b-hot{fill:var(--color-danger)}
.s-prog{display:flex;gap:3px}
.s-prog span{height:8px;border-radius:var(--radius-sm)}
.p-done{flex:2;background:var(--color-text)}
.p-now{flex:1;background:var(--color-text-muted)}
.p-left{flex:2;box-shadow:inset 0 0 0 1px var(--color-border-control)}
.s-scale{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding-top:2px;font-size:11px;text-align:center}
.s-scale span{padding:5px 2px;border-radius:var(--radius-sm);background:var(--color-bg-subtle);color:var(--color-text-muted)}
.s-scale .is-on{background:var(--color-text);color:var(--color-bg)}
.s-time{display:grid;grid-template-columns:44px auto minmax(0,1fr);gap:8px 10px;align-items:center}
.s-cr svg{width:16px;height:16px}
.s-msg{display:flex;flex-direction:column;gap:4px}
.s-msg p{margin:0;padding-left:26px}
.s-by{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:var(--weight-medium)}
.s-by svg{flex:none}
.s-mine p{align-self:flex-start;margin-left:26px;padding:4px 10px;border-radius:var(--radius-md);background:var(--color-bg-subtle)}
.s-att{display:flex;flex-wrap:wrap;gap:4px;padding-left:26px}
.s-att span{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border:1px solid var(--color-border);border-radius:var(--radius-sm);font-size:12px;color:var(--color-text-secondary)}
.scene svg rect[rx="20"] + path,.app-wm svg path{fill:var(--color-brand)}

/* Who and Tag, as the homepage's windows say them */
.av{flex:none;width:20px;height:20px;border-radius:var(--radius-pill);object-fit:cover;background:var(--color-border)}
.tg{font-size:12px;font-weight:var(--weight-medium);white-space:nowrap}
.tg-bad{color:var(--color-danger)}
.tg-ok{color:var(--color-success)}
.tg-n{color:var(--color-text-muted)}
.pill-ok::before{background:var(--color-success)}

/* The example: a window with the app's bar, its navigation and the refunds map */
.kit-app{background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);overflow:hidden;font-size:var(--text-small);line-height:1.4}
.app-top{display:flex;align-items:center;justify-content:space-between;gap:var(--space-16);padding:10px 16px;border-bottom:1px solid var(--color-border)}
.app-top-l{display:flex;align-items:center;gap:var(--space-16);min-width:0}
.app-wm{flex:none;display:inline-flex;align-items:center;gap:6px;font-family:var(--font-display);font-weight:var(--weight-wordmark);font-size:16px;letter-spacing:-0.02em;line-height:1}
.app-crumb{font-size:13px;color:var(--color-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-crumb i{font-style:normal;color:var(--color-border-control);padding:0 6px}
.app-crumb b{font-weight:var(--weight-medium);color:var(--color-text)}
.app-top-r{display:flex;align-items:center;gap:var(--space-12)}
.app-top-r .av{width:24px;height:24px}
.app-search{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-text-muted);font-size:13px;white-space:nowrap}
.app-body{display:grid;grid-template-columns:168px minmax(0,1fr)}
.app-nav{display:flex;flex-direction:column;gap:2px;padding:12px 8px;background:var(--color-bg);border-right:1px solid var(--color-border)}
.app-nav span{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:var(--radius-sm);color:var(--color-text-secondary)}
.app-nav svg{flex:none;color:var(--color-text-muted)}
.app-nav .is-cur{background:var(--color-bg-subtle);color:var(--color-text);font-weight:var(--weight-medium)}
.app-nav .n{margin-left:auto;font-family:var(--font-mono);font-size:12px;font-weight:var(--weight-regular);color:var(--color-text-muted)}
.app-main{padding:16px 20px 20px;display:flex;flex-direction:column;gap:var(--space-16);min-width:0}
.app-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-8) var(--space-16)}
.app-title-l{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-16)}
.app-title h3{margin:0;font-size:20px;line-height:1.2;font-weight:var(--weight-medium);letter-spacing:-0.01em}
.app-owner{display:inline-flex;align-items:center;gap:6px;color:var(--color-text-muted)}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.badge::before{content:'';width:8px;height:8px;border-radius:var(--radius-pill);background:var(--color-text-muted)}
.badge-ok::before{background:var(--color-success)}
.app-tabs{display:flex;gap:var(--space-16);font-size:13px}
.app-tabs span{padding:4px 0;border-bottom:2px solid transparent;color:var(--color-text-muted)}
.app-tabs .is-cur{color:var(--color-text);border-bottom-color:var(--color-text);font-weight:var(--weight-medium)}

.kit-asm{display:flex;flex-direction:column;gap:6px;--ind:20px}
.asm-g{display:flex;flex-direction:column;gap:4px;margin-left:calc(var(--lv) * var(--ind))}
.asm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;padding:6px 10px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);font:inherit;color:inherit;text-align:left;cursor:pointer;transition:opacity var(--duration-fast) ease,border-color var(--duration-fast) ease}
.asm-l{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.asm-l > svg{flex:none;color:var(--color-text-muted)}
.asm-n{flex:none;width:16px;text-align:center;font-family:var(--font-mono);font-size:12px;color:var(--color-text-muted)}
.asm-k{font-size:12px;color:var(--color-text-muted)}
.asm-t{font-weight:var(--weight-medium)}
.asm-r{display:flex;align-items:center;gap:8px;flex:none;font-size:12px;color:var(--color-text-muted)}
.asm-chips{display:flex;flex-wrap:wrap;gap:4px 6px;padding-left:24px}
.asm-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 8px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:transparent;font:inherit;font-size:12px;color:var(--color-text-secondary);cursor:pointer;transition:opacity var(--duration-fast) ease,border-color var(--duration-fast) ease}
.asm-chip svg{flex:none;color:var(--color-text-muted)}
.asm-chip .av{width:16px;height:16px}
.asm-row:hover,.asm-chip:hover{border-color:var(--color-border-control)}
.has-on .kit-asm [data-piece]:not(.is-on){opacity:.35}
.kit-asm .is-on{border-color:var(--color-text);box-shadow:0 0 0 1px var(--color-text)}

/* A person in the loop: the page's one navy section, the dark theme on it */
.loop{background:var(--color-bg);color:var(--color-text);padding-block:var(--space-64)}
.loop-row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--space-16) var(--space-48);align-items:baseline}
.loop h2{margin:0;font-size:var(--text-heading);line-height:var(--leading-heading);letter-spacing:var(--tracking-heading);font-weight:var(--weight-medium);text-wrap:balance}
.loop p{margin:0;max-width:48ch;font-size:var(--text-lead);line-height:var(--leading-lead);color:var(--color-text-secondary)}

/* The building blocks: the pieces in plain words, in their five families */
.blocks{padding-block:var(--space-96) var(--space-128)}
.blocks-wrap{display:flex;flex-direction:column;gap:var(--space-48)}
.bgroup{display:grid;grid-template-columns:minmax(0,15rem) minmax(0,1fr);gap:var(--space-24) var(--space-48);padding-top:var(--space-24);border-top:1px solid var(--color-border)}
.bgroup-head{display:flex;flex-direction:column;gap:var(--space-8)}
.bgroup-head h3{margin:0;display:flex;gap:10px;align-items:center;font-size:var(--text-card);line-height:var(--leading-card);font-weight:var(--weight-medium);letter-spacing:var(--tracking-card)}
.bgroup-head p{margin:0;color:var(--color-text-secondary);font-size:var(--text-small);line-height:var(--leading-small)}
.bgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--space-16)}
.block{display:flex;flex-direction:column;gap:6px;padding:20px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg)}
.block h4{margin:0;font-size:var(--text-body);line-height:var(--leading-card);font-weight:var(--weight-medium)}
.block p{margin:0;color:var(--color-text-secondary);font-size:var(--text-small);line-height:var(--leading-small);text-wrap:pretty}

@media (max-width: 1100px){.app-body{grid-template-columns:minmax(0,1fr)}.app-nav{display:none}}
@media (max-width: 960px){
  .kit{grid-template-columns:minmax(0,1fr);gap:var(--space-24)}
  .kit-app{order:-1}
  .kit-panel{position:static}
  .kit-asm{--ind:12px}
}
@media (max-width: 899px){.bgroup,.loop-row{grid-template-columns:minmax(0,1fr)}}
@media (max-width: 640px){
  .app-search,.app-crumb{display:none}
  .asm-chips{padding-left:0}
  .how{padding-block:var(--space-48) var(--space-64)}
  .blocks{padding-block:var(--space-64) var(--space-96)}
  .scene{height:auto;min-height:260px}
}
