/* cuttl.io site styles: tokens, layout and components. Product UI mocks are styled in mocks.css.
   The rules for using these live in site/DESIGN-SYSTEM.md and on the design-system page (tools/design-system-v2/, local only). */

/* ---------- Tokens ---------- */
:root {
  /* Canvas */
  --paper: #FAF8F4;
  --sand: #F2EEE6;
  --sand-2: #E9E3D7;
  --line: #E4DFD5;
  --line-2: #D3CCBF;
  --white: #FFFFFF;

  /* Ink */
  --ink: #141312;
  --ink-2: #2B2926;
  --graphite: #57544E;   /* body copy, 7.3:1 on paper */
  --fog: #68655E;        /* meta text: 5.5:1 on paper, 5.0 on sand and ember wash, 4.55 on sand-2 */
  --mute: #84807A;       /* second tone of display headlines only (large text: 3.7:1 on paper, 3.4 on sand) */

  /* Brand colours */
  --ember: #FF7A30;
  --ember-2: #F2661B;
  --ember-wash: #FFE9DC;
  --ember-ink: #7A2E05;
  --sky: #CFE8EF;
  --sky-wash: #EAF5F8;
  --sky-ink: #0F4150;
  --butter: #F7E7A8;
  --butter-wash: #FBF4DA;
  --butter-ink: #5A4A0A;
  --iris: #2F8BFF;
  --iris-ink: #0069E0;
  --up: #1F8A5B;
  --down: #D6453D;

  /* Accent (switchable on the design-system page) */
  --accent: var(--ember);
  --accent-hover: var(--ember-2);
  --accent-wash: var(--ember-wash);
  --on-accent: var(--ink);

  /* Ink band */
  --on-ink: #F4F1EA;
  --on-ink-2: #B9B4AA;
  --ink-line: rgba(255, 255, 255, .12);

  /* Type */
  --f-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --dw: 600;
  --dls: -0.035em;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-btn: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-win: 0 1px 2px rgba(20, 19, 18, .06), 0 16px 40px -16px rgba(20, 19, 18, .22);
  --shadow-pop: 0 1px 2px rgba(20, 19, 18, .08), 0 10px 24px -8px rgba(20, 19, 18, .2);

  /* Spacing scale: 4px base, 8px rhythm. Every gap, margin and padding uses one of these steps.
     Rules and examples: the Spacing section of the design-system page. */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Spacing roles. Each grows smoothly from a 375px phone to a 1440px screen and ends on the scale.
     Each role is clearly bigger than the one before it, so related things read as a group. */
  --space-text: var(--space-s);                          /* label → heading, heading → its text, paragraph → paragraph */
  --space-group: clamp(24px, 21.18px + .751vw, 32px);    /* text → buttons, card padding, gaps between cards */
  --space-head: clamp(48px, 42.37px + 1.502vw, 64px);    /* section head → its content */
  --space-visual: clamp(48px, 31.10px + 4.507vw, 96px); /* hero text → the hero picture or film */
  --space-hero: clamp(48px, 31.10px + 4.507vw, 96px);   /* below the nav, above the page title */
  --space-block: clamp(64px, 41.46px + 6.009vw, 128px); /* between big blocks inside one section */
  --space-section: clamp(64px, 41.46px + 6.009vw, 128px); /* top and bottom of every section */
  --space-inset: clamp(24px, 15.55px + 2.254vw, 48px);   /* inside colour panels and bands */
  --space-inset-s: clamp(12px, 4.96px + 1.878vw, 32px);  /* inside panels that frame a large product view */

  /* Layout */
  --wrap: 1200px;
  --gutter: var(--space-m);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 340px) { :root { --gutter: var(--space-s); } }
@media (min-width: 768px) { :root { --gutter: var(--space-l); } }
@media (min-width: 1200px) { :root { --gutter: var(--space-xl); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-wash); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
/* Sections: one --space-section between any two blocks of content.
   A section on the same background as the one before drops its top padding, so the gap is one
   --space-section, not two; the section head's hairline marks the change. A colour band keeps its
   padding on both sides, so its content sits --space-section from each colour edge. */
.sec { padding: var(--space-section) 0; }
.sec[id] { scroll-margin-top: max(0px, calc(var(--nav-h) + var(--space-m) - var(--space-section))); }   /* a jump to a section keeps its first line clear of the sticky nav where the section's padding is shorter than the nav */
.sec:not([class*="band-"]) + .sec:not([class*="band-"]),
.band-sand + .band-sand, .band-ink + .band-ink, .band-sky + .band-sky, .band-ember + .band-ember, .band-butter + .band-butter,
.hero + .sec:not([class*="band-"]) { padding-top: 0; }
.hero.band-ink + .sec { padding-top: var(--space-section); }   /* a dark hero is a band: the next section keeps its padding */
.sec-tight { padding: var(--space-head) 0; }
.band-sand { background: var(--sand); }
.band-sky { background: var(--sky); }
.band-ember { background: var(--ember-wash); }
.band-butter { background: var(--butter-wash); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .t-lead, .band-ink p { color: var(--on-ink-2); }
.band-ink .m p { color: inherit; }   /* product mocks keep their own ink text on a dark band */
.band-accent { background: var(--accent); color: var(--on-accent); }

.grid { display: grid; gap: var(--space-group); }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .g2, .g4 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.center { text-align: center; }
.mw-s { max-width: 460px; margin-inline: auto; }
.mw-m { max-width: 680px; margin-inline: auto; }
.center .row { justify-content: center; }

/* ---------- Type ---------- */
.t-d1, .t-d2, .t-d3, .t-h4 { font-family: var(--f-display); font-weight: var(--dw); text-wrap: balance; }
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.t-d1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.02; letter-spacing: var(--dls); }
.t-d2 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.06; letter-spacing: calc(var(--dls) * .9); }
.t-d3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.t-h4 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.t-lead { font-size: 19px; line-height: 1.55; color: var(--graphite); max-width: 60ch; text-wrap: pretty; }
@media (max-width: 767px) { .t-lead { font-size: 17px; } }
.t-body { font-size: 16px; line-height: 1.6; color: var(--graphite); }
.t-small { font-size: 14px; line-height: 1.5; color: var(--fog); }
.t-label { font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.t-num { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mute { color: var(--mute); }
.band-ink .mute { color: #8E897F; }

/* ---------- Text lockups ----------
   .stack spaces a label, heading, text and buttons the same way on every page:
   label → heading and heading → text use --space-text; a big display heading gets --space-m below it;
   buttons sit --space-l below the text (they are a separate group). */
.stack > * + * { margin-top: var(--s, var(--space-text)); }
.stack > .t-d1 + * { margin-top: var(--space-m); }
.stack > .row, .stack > .more, .stack > .ticks { margin-top: var(--space-l); }
.stack > .more { margin-top: var(--space-m); }
.stack-tight { --s: var(--space-xs); }

/* Kicker: serif italic by default; the design-system page can switch it to mono caps */
.kicker { display: inline-flex; align-items: center; gap: var(--space-2xs); font: italic 400 22px/1 var(--f-serif); color: var(--ink); }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: none; }
.band-ink .kicker { color: var(--on-ink); }
.hero .kicker { align-items: flex-start; }   /* a hero kicker can wrap on phones: the square stays on the first line */
.hero .kicker::before { margin-top: .3em; }
.kicker.sm { font-size: clamp(18px, 4.8vw, 19px); }   /* a smaller line above a big H1 (home); one line on phones */
.kicker.sm::before { width: 8px; height: 8px; }
html[data-kicker="mono"] .kicker { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
html[data-kicker="mono"] .band-ink .kicker { color: var(--on-ink-2); }

/* Section head: hairline rule, kicker on the left, heading on the right */
.sh { display: grid; gap: var(--space-text); border-top: 1px solid var(--line); padding-top: var(--space-xl); margin-bottom: var(--space-head); }
.sh > div > * + * { margin-top: var(--space-text); }
.sh .more { margin-top: var(--space-xs); }
.band-ink .sh { border-color: var(--ink-line); }
@media (min-width: 960px) {
  .sh { grid-template-columns: 3fr 9fr; gap: var(--space-l); align-items: baseline; } /* the kicker sits on the heading's first line */
}
.sh.solo { grid-template-columns: 1fr; }
.sh.flush { margin-bottom: 0; }

/* ---------- Buttons + links ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: var(--h); padding: 0 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  font: 500 15px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--sand); }
.btn.is-off { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 19, 18, .05); }
.btn-lg { --h: 52px; padding: 0 var(--space-m); font-size: 16px; }
.btn-sm { --h: 36px; padding: 0 var(--space-xs); font-size: 14px; }
@media (max-width: 639px) { .row > .btn { max-width: 100%; padding-block: 10px; white-space: normal; text-align: center; line-height: 1.25; } }   /* a long label wraps on a phone instead of running off the screen */
.band-ink .btn-secondary { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .25); }
.band-ink .btn-secondary:hover { background: rgba(255, 255, 255, .06); }
.band-accent .btn-secondary, .cta-band .btn-secondary { background: transparent; border-color: rgba(20, 19, 18, .35); color: var(--on-accent); }
.band-accent .btn-secondary:hover, .cta-band .btn-secondary:hover { background: rgba(20, 19, 18, .06); }

.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }
button.link { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 500; color: inherit; cursor: pointer; }   /* Cookie settings: a button that looks like a link */
.more { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 500; font-size: 15px; text-decoration: none; min-height: 44px; }
.more::after { content: "→"; transition: transform .2s var(--ease); }
.more:hover::after { transform: translateX(3px); }

/* ---------- Tags (product-line colour coding) ---------- */
.tag { display: inline-flex; align-items: center; gap: var(--space-2xs); height: 28px; padding: 0 var(--space-xs); border-radius: var(--r-xs); font: 500 13px/1 var(--f-body); background: var(--sand); color: var(--graphite); white-space: nowrap; }
.tag-ji { background: var(--sky); color: var(--sky-ink); }
.tag-we { background: var(--ember-wash); color: var(--ember-ink); }
.tag-ai { background: var(--butter); color: var(--butter-ink); }
.tag-line { background: transparent; border: 1px solid var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Icons: Lucide (ISC), one line weight everywhere ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-box { width: 40px; height: 40px; border-radius: var(--r-btn); display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); flex: none; }
/* Product-line marker: a small square, the only place line colours appear outside tags and panels */
.lm { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--line-2); flex: none; }
.lm.ji { background: #5FA9BF; }
.lm.we { background: var(--ember); }
.lm.pf, .lm.ai { background: #D9B530; }

/* ---------- Cards + panels ---------- */
.card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--space-group); text-decoration: none; color: inherit; }
a.card { transition: border-color .15s var(--ease); }
a.card:hover { border-color: var(--line-2); }
.card > * + * { margin-top: var(--space-xs); }
.card .t-h4 + .t-body { margin-top: var(--space-2xs); }
.panel { position: relative; border-radius: var(--r-xl); padding: var(--space-inset); background: var(--sand); overflow: hidden; }
.panel-s { padding: var(--space-inset-s); }
.panel.bleed { padding-bottom: 0; }
.panel.bleed [data-mock] { border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: var(--shadow-win); }
.panel-sky { background: var(--sky); }
.panel-ember { background: var(--ember-wash); }
.panel-butter { background: var(--butter-wash); }
.panel-white { background: var(--white); border: 1px solid var(--line); }

/* Feature row: copy beside a product panel */
.frow { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 960px) { .frow { grid-template-columns: 5fr 7fr; gap: var(--space-2xl); } .frow.flip { grid-template-columns: 7fr 5fr; } .frow.flip > :first-child { order: 2; } }
.frow + .frow { margin-top: var(--space-block); }
.frow.top { align-items: start; }
.frow:has(> .sh) { row-gap: var(--space-head); } /* a head beside its content keeps the head gap when stacked */
.ticks { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: var(--space-xs); }
.ticks + .more { margin-top: var(--space-m); }
.ticks li { position: relative; padding-left: calc(16px + var(--space-xs)); color: var(--graphite); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 4px; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23141312' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Bento with hairline dividers */
.bento { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr; }
.bento > * { background: var(--paper); padding: var(--space-group); }
.bento > * > * + * { margin-top: var(--space-2xs); }
@media (min-width: 720px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .w2 { grid-column: span 2; } }
.bento + .more { margin-top: var(--space-s); }
.bento.c3 p { text-wrap: pretty; }
@media (max-width: 999px) {   /* three cells below 1000px: one column, the icon beside the title, the line full width below */
  .bento.c3 { grid-template-columns: 1fr; }
  .bento.c3 > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-s); align-items: start; }
  .bento.c3 > div > p { grid-column: 1 / -1; }
  .bento.c3 > div > h3 { margin-top: 0; min-height: 40px; display: flex; align-items: center; }
}
.band-sand .bento > * { background: var(--sand); }

/* Old way / Cuttl way */
.compare { display: grid; gap: var(--space-group); }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { border-radius: var(--r-lg); padding: var(--space-group); }
.compare .old { border: 1px dashed var(--line-2); color: var(--graphite); }
.compare .new { background: var(--white); border: 1px solid var(--line); }
.compare ul { list-style: none; margin: var(--space-m) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.compare li { position: relative; padding-left: calc(16px + var(--space-xs)); }
.compare .old li::before { content: "–"; position: absolute; left: 4px; color: var(--mute); }
.compare .new li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); }
.compare .new li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23141312' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* The problem: three cards, each a problem on top (grey, dashed) and the Cuttl fix below it (Spot, Test, Ship). A small picture and one line per half. */
.fixes { display: grid; gap: var(--space-group); }
@media (min-width: 980px) { .fixes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fix { position: relative; display: grid; grid-template-rows: auto auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fix-was, .fix-now { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-group); }
.fix-was { background: var(--paper); border-bottom: 1px dashed var(--line-2); }
.fix p { margin: 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.fix-was p { color: var(--graphite); }
.fix-now p { color: var(--ink); font-weight: 500; }
.fix-now .tag { align-self: flex-start; }
.fix-now { position: relative; }
.fix-arrow { position: absolute; z-index: 1; left: 50%; top: 0; transform: translate(-50%, -50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-2); color: var(--graphite); }
.fix-arrow .ic { width: 16px; height: 16px; }
@media (min-width: 640px) and (max-width: 979px) {
  .fix { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .fix-was { border-bottom: 0; border-right: 1px dashed var(--line-2); }
  .fix-arrow { left: 0; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
}

/* Small pictures (aria-hidden): grey for the problem, Cuttl screens for the fix */
.fx { position: relative; height: 132px; border-radius: 12px; overflow: hidden; font: 500 11.5px/1.2 var(--f-body); }
.fix-was .fx { background: var(--white); border: 1px dashed var(--line-2); color: var(--fog); }
.fix-now .fx { background: var(--white); border: 1px solid var(--line); color: var(--graphite); }
.fx-mono { font: 500 11px/1 var(--f-mono); color: var(--fog); }
.fx-pill { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font: 500 12px/1 var(--f-body); color: var(--graphite); white-space: nowrap; }
.fx-q { border-style: dashed; border-color: var(--line-2); }
.fx-dot { width: 7px; height: 7px; border-radius: 50%; background: #E0A100; }

/* 1 · problem: a funnel that drops, and no reason */
.fx-drop .fx-mono { position: absolute; left: 12px; top: 12px; }
.fx-bars { position: absolute; left: 12px; right: 12px; bottom: 12px; top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.fx-bars i { display: block; height: var(--h); border-radius: 5px 5px 2px 2px; background: #E6E1D8; }
.fx-drop .fx-q { left: 38%; top: 40px; }
/* 1 · fix: the product page as a heatmap, rage clicks on the shipping note */
.fx-pg { position: absolute; inset: 12px; display: grid; grid-template-columns: 34% 1fr; gap: 12px; }
.fx-pg .img { border-radius: 8px; background: var(--sand); }
.fx-pg .col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fx-pg b { display: block; height: 8px; border-radius: 4px; background: #ECE7DF; }
.fx-pg b.t { width: 80%; height: 10px; background: #DDD8CF; }
.fx-pg b.s { width: 45%; }
.fx-pg .btn-m { height: 22px; border-radius: 6px; background: var(--ink); }
.fx-pg .btn-m.b { margin-top: 0; }
.fx-pg .note { position: relative; align-self: flex-start; padding: 3px 6px; border-radius: 5px; background: #F4F1EB; font: 500 10.5px/1.2 var(--f-body); color: var(--graphite); white-space: nowrap; }
.fx-heat .blob { position: absolute; left: 50%; top: 50%; width: 96px; height: 70px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 60, 40, .6), rgba(255, 170, 0, .42) 45%, rgba(80, 220, 120, .2) 75%, transparent); pointer-events: none; }
.fx-heat .ring { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; translate: -50% -50%; border-radius: 50%; border: 1.5px solid #E5484D; }
.fx-heat .ring.r2 { width: 30px; height: 30px; opacity: .55; }
.fx-heat .fx-pill { right: 10px; bottom: 10px; }
.fx-heat .fx-pill b { color: #C9302C; font-weight: 600; }

/* 2 · problem: tickets waiting in a queue */
.fx-tk { position: absolute; left: 14px; right: 14px; display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.fx-tk.back { top: 12px; left: 26px; right: 2px; opacity: .6; }
.fx-tk.front { top: 40px; }
.fx-tk strong { font: 500 13px/1.2 var(--f-body); color: var(--graphite); }
.fx-tk .wait { display: inline-flex; align-items: center; gap: 6px; color: #7A4A00; }
/* 2 · fix: the visual editor, version B, the note moved under the button */
.fx-ed .bar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.fx-ed .bar .ic { width: 14px; height: 14px; color: var(--graphite); }
.fx-ab { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 7px; background: var(--sand); }
.fx-ab span { padding: 3px 8px; border-radius: 5px; font: 500 11px/1 var(--f-mono); color: var(--fog); }
.fx-ab span.on { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.fx-ed .fx-pg { top: 40px; }
.fx-ed .note { margin-top: 13px; outline: 1.5px solid #2F8BFF; outline-offset: 2px; }
.fx-ed .note::after { content: "Moved"; position: absolute; left: -3.5px; top: -19px; height: 15px; padding: 0 5px; border-radius: 3px 3px 3px 0; background: #2F8BFF; color: #fff; font: 500 9.5px/15px var(--f-mono); }

/* 3 · problem: a change ships and the line just wobbles */
.fx-line { position: absolute; left: 12px; right: 12px; top: 34px; bottom: 14px; width: calc(100% - 24px); height: calc(100% - 48px); }
.fx-line path { fill: none; stroke: #CFC9BE; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fx-line line { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.fx-ship .fx-mono { position: absolute; left: 12px; top: 12px; }
.fx-ship .fx-q { right: 10px; top: 8px; }
/* 3 · fix: B wins, roll it out */
.fx-win { display: flex; flex-direction: column; gap: 9px; padding: 14px 12px 12px; }
.fx-row { display: grid; grid-template-columns: 16px 1fr 38px; align-items: center; gap: 8px; }
.fx-row > span:first-child { font: 500 11px/1 var(--f-mono); color: var(--fog); }
.fx-row i { display: block; height: 12px; border-radius: 4px; background: #E6E1D8; width: var(--w); }
.fx-row.b i { background: var(--up); }
.fx-row em { font: 500 11.5px/1 var(--f-mono); font-style: normal; text-align: right; color: var(--graphite); }
.fx-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.fx-up { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; background: #E3F2EA; color: #14613F; font: 500 12px/1 var(--f-body); white-space: nowrap; }
.fx-go { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 8px; background: var(--ink); color: var(--white); font: 500 12px/1 var(--f-body); white-space: nowrap; }

/* On reveal the fix arrives a beat after its problem */
.js .fix .fix-now > :not(.fix-arrow) { opacity: 0; translate: 0 8px; transition: opacity .5s var(--ease), translate .5s var(--ease); }
.js .fix.in .fix-now > :not(.fix-arrow) { opacity: 1; translate: 0 0; transition-delay: .35s; }
.fixes .fix:nth-child(2) { transition-delay: .08s; }
.fixes .fix:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .js .fix .fix-now > :not(.fix-arrow) { opacity: 1; translate: none; transition: none; } }

/* Segmented switcher with a sliding pill */
.seg { position: relative; display: inline-flex; gap: var(--space-3xs); padding: var(--space-3xs); background: var(--sand); border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.pr-sec.band-sand .seg { background: var(--sand-2); }   /* on a sand band the track goes one step darker, so the switch keeps its outline */
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 40px; padding: 0 var(--space-s); border: 0; background: none; border-radius: 9px; font: 500 14px/1 var(--f-body); color: var(--graphite); cursor: pointer; white-space: nowrap; transition: color .2s var(--ease); }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; background: var(--white); border-radius: 9px; box-shadow: 0 1px 2px rgba(20, 19, 18, .1); transition: left .3s var(--ease), width .3s var(--ease); }

/* Product tour tabs (top-rule tabs) */
.tour-tabs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(150px, 1fr)); gap: 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); margin-bottom: var(--space-l); }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { position: relative; text-align: left; border: 0; background: none; padding: var(--space-s) var(--space-m) 0 0; cursor: pointer; color: var(--fog); }
.tour-tabs button::before { content: ""; position: absolute; left: 0; right: 16px; top: -1px; height: 2px; background: transparent; transition: background .2s; }
.tour-tabs button[aria-selected="true"] { color: var(--ink); }
.tour-tabs button[aria-selected="true"]::before { background: var(--ink); }
.tour-tabs b { display: block; font: 600 16px/1.3 var(--f-display); letter-spacing: -0.01em; }
.tour-tabs span { display: block; font-size: 14px; line-height: 1.45; margin-top: var(--space-3xs); }
[hidden] { display: none !important; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-m); min-height: 44px; padding: var(--space-m) 0; cursor: pointer; font: 600 18px/1.35 var(--f-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-right: 3px; background: linear-gradient(var(--ink), var(--ink)) center/14px 1.6px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.6px 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 var(--space-m); color: var(--graphite); max-width: 68ch; }

/* Changelog */
.log { border-left: 1px solid var(--line); margin-left: var(--space-3xs); padding-left: var(--space-l); }
.log-item { position: relative; padding-bottom: var(--space-l); }
.log-item:last-child { padding-bottom: 0; }
.log-item::before { content: ""; position: absolute; left: calc(-1 * var(--space-l) - 6px); top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.band-sand .log-item::before { background: var(--sand); }
.log-item .t-h4 { margin: var(--space-2xs) 0; }

/* Facts (ink band) */
.facts { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--ink); padding: var(--space-group); }
.fact b { display: block; font: 500 34px/1.1 var(--f-mono); letter-spacing: -0.03em; color: var(--on-ink); margin-bottom: var(--space-2xs); }
.fact span { color: var(--on-ink-2); font-size: 15px; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: var(--r-xl); padding: var(--space-head) var(--space-inset); display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.cta-band p { color: inherit; opacity: .82; }
.cta-band .stack > .row { margin-top: var(--space-m); }

/* Use-case cards */
.uc { display: flex; flex-direction: column; gap: var(--space-xs); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--space-group); text-decoration: none; color: inherit; transition: border-color .15s var(--ease); }
.uc:hover { border-color: var(--line-2); }
.uc .uses { margin-top: auto; padding-top: var(--space-xs); border-top: 1px solid var(--line); font-size: 13px; color: var(--fog); }
.filters { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-bottom: var(--space-l); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 40px; padding: 0 var(--space-s); border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--white); font: 500 14px/1 var(--f-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Blog */
/* Post card: its own white card with the cover inset, so neighbouring covers never run together.
   The cover takes the product line's colour (.ji / .we / .ai); the screen sits inside with colour on three sides. */
.post-card { display: grid; align-content: start; gap: var(--space-s); padding: var(--space-2xs); text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.post-card:hover { border-color: var(--line-2); box-shadow: 0 1px 2px rgba(20, 19, 18, .05), 0 14px 32px -18px rgba(20, 19, 18, .25); transform: translateY(-2px); }
.post-card:hover .t-h4 { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.post-body { display: grid; gap: var(--space-2xs); padding: 0 var(--space-xs) var(--space-xs); }
.post-cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.post-cover.ji { background: var(--sky); }
.post-cover.we { background: var(--ember-wash); }
.post-cover.ai { background: var(--butter); }
/* Cover photos (DESIGN-SYSTEM.md §7) fill the frame; the line colour shows while they load */
.post-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } .post-card:hover { transform: none; } }
.post-meta { display: flex; gap: var(--space-2xs); align-items: center; font-size: 13px; color: var(--fog); }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 680px; }
/* Long-form text: space above a heading is 3× the space below it, so each heading sits with its own text */
.prose h2 { font: var(--dw) 30px/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--ink); margin: var(--space-xl) 0 var(--space-s); }
.prose h3 { font: 600 22px/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--ink); margin: var(--space-l) 0 var(--space-xs); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 var(--space-m); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 var(--space-m); }
.prose li + li { margin-top: var(--space-2xs); }
.prose blockquote { margin: var(--space-l) 0; padding: 0 0 0 var(--space-m); border-left: 3px solid var(--accent); font: italic 400 26px/1.35 var(--f-serif); color: var(--ink); }
.prose code { font: 500 .85em var(--f-mono); background: var(--sand); padding: 2px 6px; border-radius: 5px; }
.prose :not(pre) > code { overflow-wrap: anywhere; }   /* long file paths wrap on phones */
.prose figure { margin: var(--space-xl) 0; }
.prose figcaption { font-size: 14px; color: var(--fog); margin-top: var(--space-xs); }
.post-layout { display: grid; gap: var(--space-xl); }
.post-layout > * { min-width: 0; }   /* the article column never grows to fit a wide mock; mocks scale to it */
@media (min-width: 1080px) { .post-layout { grid-template-columns: 200px minmax(0, 680px); justify-content: center; column-gap: var(--space-3xl); } }
/* Headings that contents links jump to land clear of the sticky nav. */
h2[id], h3[id] { scroll-margin-top: calc(var(--nav-h) + var(--space-l)); }
.toc { position: sticky; top: calc(var(--nav-h) + var(--space-l)); align-self: start; font-size: 14px; }
.toc .t-label { display: block; margin-bottom: var(--space-xs); }
.toc a { display: block; padding: var(--space-2xs) 0 var(--space-2xs) var(--space-xs); border-left: 1px solid var(--line); color: var(--fog); text-decoration: none; }
.toc a.on { border-color: var(--ink); color: var(--ink); }
@media (max-width: 1079px) { .toc { display: none; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled, .nav.menu-open { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: var(--space-l); height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; height: 44px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: var(--space-3xs); list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-links > li > button { display: inline-flex; align-items: center; gap: var(--space-3xs); height: 40px; padding: 0 var(--space-xs); border: 0; border-radius: 8px; background: none; font: 500 15px/1 var(--f-body); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > button[aria-expanded="true"] { background: var(--sand); }
.nav-links .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-links button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-right { margin-left: auto; display: flex; gap: var(--space-2xs); align-items: center; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.burger:hover { background: var(--sand); }
@media (max-width: 1000px) { .nav-links, .nav-right .hide-m, .mega { display: none; } .burger { display: inline-flex; } .nav-right .btn { min-height: 44px; } }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 28px 48px -32px rgba(20, 19, 18, .35); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s; }
.mega.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.nav::after { content: ""; position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: -1; background: rgba(20, 19, 18, .14); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), visibility 0s linear .2s; }
.nav.menu-open::after { opacity: 1; visibility: visible; transition: opacity .2s var(--ease); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-l); padding: var(--space-m) 0 var(--space-s); }
.mega-col { min-width: 0; }
.mega-col.span2 { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-l); align-content: start; }
.mega-col.span2 .mega-head { grid-column: 1 / -1; }
.mega-head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-2xs); row-gap: 0; padding: var(--space-2xs) var(--space-xs) var(--space-xs); margin-bottom: var(--space-2xs); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mega-head b { grid-column: 2; font: 600 15px/1.3 var(--f-display); letter-spacing: -0.01em; }
.mega-head > b:first-child { grid-column: 1 / -1; }
.mega-head > span:not(.lm) { grid-column: 2; font-size: 13px; color: var(--fog); }
a.mega-head:hover b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.mega-item { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--r-btn); text-decoration: none; color: inherit; transition: background-color .12s var(--ease); }
.mega-item:hover { background: var(--paper); }
.mi-ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); display: grid; place-items: center; flex: none; transition: border-color .12s var(--ease); }
.mi-ic .ic { width: 17px; height: 17px; }
.mega-item:hover .mi-ic { border-color: var(--line-2); }
.mi-tx b { display: block; font: 600 14px/1.3 var(--f-body); }
.mi-tx span { display: block; font-size: 13px; line-height: 1.35; color: var(--fog); }
.mega-card { display: flex; flex-direction: column; gap: var(--space-3xs); margin: var(--space-xs) var(--space-xs) 0; padding: var(--space-s); border-radius: 12px; background: var(--sand); text-decoration: none; color: inherit; transition: background-color .12s var(--ease); }
.mega-grid > .mega-card { margin: 0; align-self: start; }
.mega-card:hover { background: var(--sand-2); }
.mega-card b { font: 600 15px/1.35 var(--f-display); letter-spacing: -0.01em; }
.mega-card > span:last-child { font-size: 13px; line-height: 1.45; color: var(--fog); }
.mega-foot { display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-l); padding: var(--space-xs) var(--space-xs) var(--space-s); border-top: 1px solid var(--line); }
.mega-foot a { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 36px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.mega-foot a .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.mega-foot a:hover .ic { transform: translateX(3px); }
.mega-foot .end { margin-left: auto; }

.mnav { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; display: flex; flex-direction: column; background: var(--paper); overflow-y: auto; padding: var(--space-3xs) var(--gutter) var(--space-m); border-top: 1px solid var(--line); }
.mnav details { border-bottom: 1px solid var(--line); }
.mnav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 60px; font: 600 20px/1 var(--f-display); letter-spacing: -0.01em; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .ic { transition: transform .2s var(--ease); }
.mnav details[open] summary .ic { transform: rotate(180deg); }
.mgroup { padding: 0 0 var(--space-s); }
.mgroup .t-label { display: flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) 0 var(--space-3xs); }
.mnav a.mlink { display: flex; align-items: center; gap: var(--space-xs); min-height: 48px; text-decoration: none; color: var(--ink-2); font-size: 16px; }
.mnav a.mlink .ic { color: var(--fog); }
.mnav .solo { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); font: 600 20px/1 var(--f-display); letter-spacing: -0.01em; text-decoration: none; }
.mnav-cta { margin-top: auto; padding-top: var(--space-l); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-2); padding: var(--space-section) 0 var(--space-xl); font-size: 15px; }
.foot-grid { display: grid; gap: var(--space-xl) var(--space-l); grid-template-columns: 1fr 1fr; }
.foot-grid { grid-auto-flow: row dense; }
@media (max-width: 719px) { .foot-grid .foot-wide { grid-column: 1 / -1; } }   /* "Cuttl vs …" links keep to one line on phones */
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: minmax(0, 1fr) repeat(5, auto); } }   /* each column as wide as its longest link */
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 1100px) { .foot-brand { grid-column: auto; } }
.foot .t-label { color: #8E897F; display: block; margin-bottom: var(--space-xs); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.foot a, .foot button.link { color: var(--on-ink); font-weight: inherit; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.foot a:hover, .foot button.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-tag { font: italic 400 26px/1.2 var(--f-serif); color: var(--on-ink); margin: var(--space-s) 0 0; }
.foot-base { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: space-between; border-top: 1px solid var(--ink-line); margin-top: var(--space-2xl); padding-top: var(--space-m); font-size: 13px; }
.foot-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.foot-badge img { display: block; height: 32px; width: auto; }   /* LaunchNest badge, home page only: small, beside the copyright */

/* ---------- Product frames (UI mocks sit inside these) ---------- */
.win { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-win); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: var(--space-2xs); height: 38px; padding: 0 var(--space-xs); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fog); background: var(--white); }
.win-url { flex: 1; max-width: 300px; margin: 0 auto; height: 22px; border-radius: 6px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--fog); }
.pop { position: absolute; z-index: 3; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: var(--space-xs) var(--space-s); font-size: 13px; line-height: 1.4; }
.pop .t-label { font-size: 10.5px; }
/* Insight card: a floating finding pinned over a product picture. A quiet white card; the colour lives in the
   small icon tile and the number, so it draws the eye without shouting: icon + name, one number, then one
   picture of the finding (the element people tapped, or how sure the test is). */
.insight { display: grid; gap: var(--space-xs); padding: 14px var(--space-s); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(20, 19, 18, .06), 0 14px 32px -12px rgba(20, 19, 18, .28); font-size: 13px; }
.in-h { display: flex; align-items: center; gap: var(--space-2xs); }
.in-h b { font: 600 13px/1 var(--f-display); }
.in-ic { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; }
.in-ic .ic { width: 13px; height: 13px; }
.in-ic.hot { background: var(--ember); color: var(--ink); }
.in-ic.up { background: var(--up); color: #fff; }
.in-n { display: flex; align-items: baseline; gap: 6px; color: var(--fog); }
.in-n b { font: 700 24px/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); }
.in-n b.up { color: var(--up); }
/* The tapped element, drawn as the heatmap marks it. */
.in-el { justify-self: start; padding: 4px 8px; border: 1.5px dashed rgba(214, 69, 61, .7); border-radius: 7px; background: rgba(214, 69, 61, .05); font: 500 12px/1.2 var(--f-body); }
/* How sure the test is: a filled bar with the share written beside it. */
.in-bar { display: flex; align-items: center; gap: var(--space-xs); font-size: 12px; color: var(--fog); }
.in-bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.in-bar i::before { content: ""; display: block; width: var(--p, 50%); height: 100%; border-radius: inherit; background: var(--up); }


/* ---------- Page hero: one pattern for every page ----------
   --space-hero below the nav; --space-section below, like any section.
   A text-only hero (.hero.lead-in) runs straight into the next section, which acts as its content. */
.hero { padding: var(--space-hero) 0 var(--space-section); }
.hero.lead-in { padding-bottom: 0; }
.hero.lead-in + .sec { padding-top: var(--space-head); }
/* Platforms section under the pricing hero: one row of marks that scrolls on its own, one neutral grey, ink on hover */
.hero.lead-in + .plats-sec { padding-top: var(--space-section); }   /* a full section gap under the hero, like every other section */
.plats { display: flex; flex-direction: column; align-items: center; text-align: center; }
.plats-run { position: relative; width: 100%; overflow: hidden; margin: var(--space-l) 0 var(--space-m); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.plats-belt { display: flex; width: max-content; animation: plats-run 40s linear infinite; }
.plats-run:hover .plats-belt, .plats-run:focus-within .plats-belt { animation-play-state: paused; }
@keyframes plats-run { to { transform: translateX(-50%); } }   /* the second list is a copy, so half a belt is one seamless loop */
.plats-sec ul { display: flex; flex: none; gap: var(--space-2xl); margin: 0; padding: 0 var(--space-2xl) 0 0; list-style: none; }   /* the right padding keeps the gap at the seam */
.plats-sec li a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; font: 600 20px/1.2 var(--f-body); letter-spacing: -.01em; white-space: nowrap; color: var(--fog); text-decoration: none; transition: color .15s; }
.plats-sec li a:hover, .plats-sec li a:focus-visible { color: var(--ink); }
.plats-sec svg { flex: none; width: 32px; height: 32px; fill: currentColor; }
.plats-sec svg.wm { height: 24px; width: calc(24px * var(--ar)); }   /* wordmark logos: the mark is the name */
@media (max-width: 600px) { .plats-sec ul { gap: var(--space-xl); padding-right: var(--space-xl); } .plats-sec li a { font-size: 17px; } .plats-sec svg { width: 26px; height: 26px; } .plats-sec svg.wm { height: 20px; width: calc(20px * var(--ar)); } }
/* While a mark has keyboard focus, and with reduced motion, the row stands still and wraps, so every focused mark is in view */
.plats-run:has(a:focus-visible) { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.plats-run:has(a:focus-visible) .plats-belt { animation: none; width: auto; }
.plats-run:has(a:focus-visible) ul[aria-hidden] { display: none; }
.plats-run:has(a:focus-visible) ul, .plats-run:has(a:focus-visible) .plats-belt { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; }
.plats-run:has(a:focus-visible) ul { padding: 0; row-gap: var(--space-s); }
@media (prefers-reduced-motion: reduce) {
  .plats-belt { animation: none; width: auto; }
  .plats-run { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .plats-sec ul[aria-hidden] { display: none; }
  .plats-belt, .plats-sec ul { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; }
  .plats-sec ul { padding: 0; row-gap: var(--space-s); }
}
/* A hero that ends in a film keeps the next section close, so its first lines show under the film and invite a scroll. */
.hero.has-film { padding-bottom: var(--space-l); }
.hero.has-film + .sec { padding-top: var(--space-xl); }
.hero-top { display: grid; gap: var(--space-m); align-items: end; }
.hero-top + * { margin-top: var(--space-visual); }
.hero-top > .stack { max-width: 760px; }
@media (min-width: 1000px) { .hero-top.split { grid-template-columns: 7fr 5fr; gap: var(--space-2xl); } }

/* Product film: a wide canvas the camera moves over, the tool pill and caption on top, a step player below */
.sf { padding: 0; aspect-ratio: 1120 / 500; clip-path: inset(0 round var(--r-xl)); }   /* clip-path: moving cards could paint past the rounded corners */
.sf::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: var(--band, 96px); background: linear-gradient(var(--sky) var(--band-solid, 62%), rgba(207, 232, 239, 0)); pointer-events: none; }
.sf-view { position: absolute; inset: 0; overflow: hidden; background-image: radial-gradient(circle, rgba(15, 65, 80, .17) 1.3px, transparent 1.7px); background-size: 28px 28px; }
.sf.panel-ember::before { background: linear-gradient(var(--ember-wash) var(--band-solid, 62%), rgba(255, 233, 220, 0)); }
.sf.panel-ember .sf-view { background-image: radial-gradient(circle, rgba(122, 46, 5, .16) 1.3px, transparent 1.7px); }
.sf-top { position: absolute; z-index: 2; left: var(--space-m); right: var(--space-m); top: var(--space-m); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-s); pointer-events: none; }
.sf-isl { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px 0 14px; border-radius: 20px; background: var(--ink); color: var(--white); overflow: hidden; white-space: nowrap; font: 500 14px/1 var(--f-body); }
.sf-isl-in { display: inline-flex; align-items: center; gap: 8px; }
.sf-isl .d { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #7CC7DB; }
.sf-isl .d.we { background: var(--ember); }
.sf-isl .d.ai { background: var(--butter); }
.sf-isl .d2 { margin-left: 8px; }
.sf-isl .sub { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .72); }
.sf-isl .ic { width: 15px; height: 15px; }
.sf-cap { margin: 0; font: var(--dw) clamp(18px, 1.8vw, 26px)/1.25 var(--f-display); letter-spacing: var(--dls); text-wrap: balance; }
.sf-player { position: absolute; z-index: 2; left: var(--space-m); bottom: var(--space-m); display: flex; align-items: center; gap: 2px; padding: 4px 8px 4px 4px; border-radius: 28px; background: var(--white); box-shadow: 0 1px 2px rgba(20, 19, 18, .08), 0 10px 24px -12px rgba(20, 19, 18, .35); }
.sf-pp { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--white); cursor: pointer; }
.sf-pp[hidden] { display: none; }
.sf-pp .ic { width: 15px; height: 15px; fill: currentColor; }
.sf-steps { display: flex; margin: 0; padding: 0; list-style: none; }
.sf-steps button { width: 36px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: width .35s var(--ease); }
.sf-steps button[aria-current="step"] { width: 72px; }
.sf-steps i { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; transition: width .35s var(--ease), background-color .2s; }
.sf-steps button:hover i { background: var(--fog); }
.sf-steps .done i { background: var(--ink); }
.sf-steps button[aria-current="step"] i { width: 56px; background: var(--line); }
.sf-steps b { display: none; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.sf-steps button[aria-current="step"] b { display: block; }
.sf-steps button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
@media (min-width: 700px) and (max-width: 1023px) { .sf { aspect-ratio: 16 / 10; } }
@media (max-width: 699px) {
  .sf { aspect-ratio: 2 / 3; }
  .sf-top { left: var(--space-s); right: var(--space-s); top: var(--space-s); }
  .sf-player { left: var(--space-s); right: var(--space-s); bottom: var(--space-s); }
  .sf-steps { flex: 1; }
  .sf-steps li { display: flex; flex: 1 1 0; min-width: 0; transition: flex-grow .35s var(--ease); }
  .sf-steps li:has([aria-current="step"]) { flex-grow: 1.8; }
  .sf-steps button, .sf-steps button[aria-current="step"] { width: 100%; }
  .sf-steps button[aria-current="step"] i { width: 70%; }
  /* Six 44px targets and the pause button don't fit across a phone film, so here the steps show progress only and the
     pause button is the one tap target (QA, Oct 18: 35px steps touching). Keys still move between chapters. */
  .sf-steps button { pointer-events: none; }
}

/* ---------- Story: one problem, start to finish (home "How it works") ---------- */
/* Default (phones, tablets, short screens): steps stacked on a rail, each with its own still of the product. */
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { position: relative; padding: 0 0 var(--space-xl) calc(12px + var(--space-m)); }
.story-step:last-child { padding-bottom: 0; }
.story-step::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 2px; background: var(--line); }
.story-step::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 2px; background: var(--ink); transform-origin: top; transform: scaleY(var(--sp, 0)); }
.story-step:last-child::before, .story-step:last-child::after { display: none; }
.ss-head { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3xs) var(--space-xs); width: 100%; min-height: 44px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); cursor: default; }
.ss-head::before { content: ""; position: absolute; left: calc(-12px - var(--space-m)); top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-sizing: border-box; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.ss-n { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--fog); }
.ss-t { font: var(--dw) 22px/1.1 var(--f-display); letter-spacing: -0.02em; }
.ss-line { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: 13px; color: var(--fog); }
.ss-body { display: grid; grid-template-rows: 1fr; }
.ss-body > div { min-height: 0; overflow: hidden; }
.ss-body h3 { font: var(--dw) 26px/1.18 var(--f-display); letter-spacing: -0.02em; margin: var(--space-xs) 0 0; text-wrap: balance; }
.ss-body p { margin: var(--space-text) 0 0; color: var(--graphite); max-width: 52ch; }
.ss-uses { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-m); }
.ss-uses a { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 40px; padding: 0 var(--space-xs); border: 1px solid var(--line-2); border-radius: 8px; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink-2); background: var(--white); transition: border-color .15s var(--ease); }
.ss-uses a:hover { border-color: var(--ink); }
.ss-uses .ic { width: 15px; height: 15px; color: var(--fog); }
.ss-shot { margin-top: var(--space-m); }
.ss-shot .panel { padding: var(--space-inset-s); }
.ss-shot [data-mock] { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-win); }
.story-stage { display: none; }
.pin-only { display: none; }

/* Wide and tall enough: the steps scroll past one pinned product window. */
@media (min-width: 1000px) and (min-height: 680px) {
  /* The pin is only as tall as its content (--story-h, set by v2.js) and sticks centred under the nav,
     so the section keeps its normal padding below it, like every other section. */
  .story { height: calc(var(--story-h, 100vh) + var(--n, 5) * 62vh); }
  .story-pin { position: sticky; top: max(var(--nav-h), calc(50vh + var(--nav-h) / 2 - var(--story-h, 100vh) / 2)); height: var(--story-h, calc(100vh - var(--nav-h))); display: flex; align-items: center; }
  .story-grid { display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; gap: var(--space-2xl); align-items: center; width: 100%; }
  .story-step { padding-bottom: 0; }
  .story-step:last-child::before, .story-step:last-child::after { display: block; bottom: 8px; }
  .story-step::before, .story-step::after { top: 0; bottom: 0; }
  .ss-head { min-height: 56px; padding: var(--space-s) 0; align-items: center; cursor: pointer; color: var(--fog); transition: color .3s var(--ease); }
  .ss-head:hover { color: var(--ink); }
  .ss-head::before { top: 50%; margin-top: -6px; border-color: var(--line-2); }
  .ss-t { font-size: 20px; }
  .ss-line { margin-left: auto; }
  .story-step.on .ss-head, .story-step.done .ss-head { color: var(--ink); }
  .story-step.on .ss-head::before { background: var(--ink); border-color: var(--ink); }
  .story-step.done .ss-head::before { border-color: var(--ink); }
  .ss-body { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
  .story-step.on .ss-body { grid-template-rows: 1fr; }
  .ss-body > div > :last-child { margin-bottom: var(--space-2xs); } /* a margin inside the clipped box, so a closed step shows nothing */
  .ss-body h3 { margin-top: 0; font-size: 24px; }
  .ss-shot { display: none; }
  .pin-only { display: inline; }
  .story-stage { display: block; }
  .story-stage .panel { padding: var(--space-inset-s); background: var(--sky); transition: background-color .6s var(--ease); }
  .story[data-line="we"] .story-stage .panel { background: var(--ember-wash); }
  .story-stage [data-mock] { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-win); }
}

/* ---------- Card stack (phones): the problem cards and the How it works steps ---------- */
/* Each card sticks under the nav a little lower than the one before, and the next slides over it. site.js sets each
   card's --stick (a card too tall for the screen sticks once its bottom is in view, so nothing is covered before it's
   read) and --stack-end, the room after the last card so the whole stack holds a moment before it scrolls away. */
@media (max-width: 639px) {
  .js [data-stack] { display: flex; flex-direction: column; gap: var(--space-group); }   /* flex, not grid: a grid item can only stick inside its own row */
  .js [data-stack]::after { content: ""; flex: none; height: var(--stack-end, 16px); }
  .js [data-stack] > * { position: sticky; top: var(--stick, calc(var(--nav-h) + 12px)); }
  .js [data-stack] > :focus-within { z-index: 1; }   /* a link tabbed to in a covered card comes to the front */
  /* The steps become cards: the rail goes, and each still fills the foot of its card. */
  .js .story-steps .story-step { padding: var(--space-group) var(--space-group) 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
  .js .story-step::before, .js .story-step::after, .js .story-step .ss-head::before { display: none; }
  .js .story-step .ss-shot { margin: var(--space-group) calc(-1 * var(--space-group)) 0; }
  .js .story-step .ss-shot .panel { border-radius: 0; }
}

/* ---------- Chapters (product pages): a rail of features, each chapter handing off to the next ---------- */
.chapters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.ch-rail { position: sticky; top: var(--nav-h); z-index: 20; display: flex; gap: var(--space-2xs); margin: 0 calc(-1 * var(--gutter)); padding: var(--space-2xs) var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ch-rail::-webkit-scrollbar { display: none; }
.ch-rail ol { display: contents; list-style: none; }
.ch-rail li { display: contents; }
.ch-rail a { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 40px; padding: 0 var(--space-xs); border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); font: 500 14px/1 var(--f-body); color: var(--graphite); text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.ch-rail a span { font: 500 12px/1 var(--f-mono); color: var(--fog); }
.ch-rail a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ch-rail a.on span { color: #B9B4AA; }
.ch-rail .ch-fill { display: none; }
.ch { padding-top: var(--space-xl); scroll-margin-top: calc(var(--nav-h) + 56px + var(--space-m)); }
.ch + .ch { padding-top: var(--space-block); }
.ch > .t-label { display: block; }
.ch h2 { margin-top: var(--space-text); max-width: 20ch; }
.ch .t-lead { margin-top: var(--space-text); }
.ch-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); margin: var(--space-l) 0 var(--space-s); }
.ch-tools + .ch-shot { margin-top: 0; }
.ch-shot { margin-top: var(--space-l); padding: var(--space-inset-s); }
.ch-shot [data-mock] { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-win); }
.ch-shot.card-shot [data-mock] { box-shadow: none; overflow: visible; }
.ch .findex { margin-top: var(--space-xl); }
/* AI section (product pages): one film of a chat in Claude changing Cuttl, on the band. Capped near its design size;
   the pause button sits in the free corner left of the Cuttl window. */
.ai-film { position: relative; width: 100%; max-width: 500px; margin-inline: auto; }
.ai-pp { position: absolute; left: 0; bottom: 0; z-index: 2; }
.band-ink .sf-pp { background: var(--white); color: var(--ink); }
.ch-specs { display: grid; gap: 0; margin: var(--space-l) 0 0; border-top: 1px solid var(--line); }
.ch-specs > div { display: grid; gap: var(--space-3xs); padding: var(--space-s) 0; border-bottom: 1px solid var(--line); }
.ch-specs dt { font-weight: 600; font-size: 15px; }
.ch-specs dd { margin: 0; color: var(--graphite); font-size: 15px; }
@media (min-width: 720px) { .ch-specs { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-l); } .ch-specs > div { border-bottom: 0; } }
.ch-next { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xl); padding: var(--space-m) 0 0; border-top: 1px dashed var(--line-2); text-decoration: none; color: var(--ink); }
.ch-next .t-label { flex: none; }
.ch-next b { font: 600 17px/1.3 var(--f-display); letter-spacing: -0.01em; }
.ch-next .ic { width: 18px; height: 18px; margin-left: auto; transition: transform .2s var(--ease); flex: none; }
.ch-next:hover .ic { transform: translateY(3px); }
@media (min-width: 1000px) {
  .chapters { grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--space-2xl); align-items: start; }
  .ch-rail { top: calc(var(--nav-h) + var(--space-l)); display: block; margin: 0; padding: 0 0 0 var(--space-m); border: 0; background: none; overflow: visible; }
  .ch-rail ol { display: grid; gap: 0; margin: 0; padding: 0; }
  .ch-rail li { display: block; }
  .ch-rail a { display: flex; min-height: 40px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 15px; color: var(--fog); }
  .ch-rail a:hover { color: var(--ink); }
  .ch-rail a.on { background: none; color: var(--ink); font-weight: 600; }
  .ch-rail a.on span { color: var(--ink); }
  .ch-rail::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
  .ch-rail .ch-fill { display: block; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--ink); transform-origin: top; transform: scaleY(var(--cp, 0)); }
  .ch { padding-top: 0; scroll-margin-top: calc(var(--nav-h) + var(--space-l)); }
  .ch + .ch { padding-top: var(--space-block); }
}

/* ---------- Feature index (replaces icon bentos): a quiet spec list, grouped by product line ---------- */
.findex { display: grid; gap: var(--space-xl); }
@media (min-width: 760px) { .findex.c2 { grid-template-columns: 1fr 1fr; column-gap: var(--space-xl); } }
@media (min-width: 1000px) { .findex { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-xl); } .findex.c2 { grid-template-columns: 1fr 1fr; } }
.fi-head { display: flex; align-items: center; gap: var(--space-2xs); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--ink); }
.fi-head b { font: var(--dw) 20px/1.2 var(--f-display); letter-spacing: -0.02em; }
.fi-head .t-label { margin-left: auto; }
.fi-row { position: relative; display: block; padding: var(--space-xs) var(--space-l) var(--space-xs) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.fi-row b { display: block; font: 600 16px/1.35 var(--f-body); }
.fi-row span { display: block; margin-top: var(--space-3xs); font-size: 14.5px; line-height: 1.45; color: var(--fog); }
.fi-row em { font-style: normal; display: inline-flex; align-items: center; height: 20px; padding: 0 var(--space-2xs); margin-left: var(--space-2xs); border-radius: 5px; background: var(--accent-wash); color: var(--ember-ink); font: 500 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
a.fi-row { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
a.fi-row::after { content: "→"; position: absolute; right: 2px; top: 50%; transform: translate(-4px, -50%); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); }
a.fi-row:hover::after { opacity: 1; transform: translate(0, -50%); }
a.fi-row:hover b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- Player bar (recordings): play, pause and drag through a visit ---------- */
.scrubber { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-s); padding: var(--space-2xs) var(--space-s) var(--space-2xs) var(--space-2xs); background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.sc-play { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sc-play .ic { width: 18px; height: 18px; fill: currentColor; }
.sc-track { position: relative; flex: 1; height: 44px; }
.sc-rail { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--sand-2); }
.sc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: var(--ink); }
.sc-tick { position: absolute; top: -5px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--graphite); }
.sc-tick.rage { background: var(--down); }
.sc-tick.err { background: #E0A100; }
.sc-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sc-track input::-webkit-slider-runnable-track { height: 44px; background: none; }
.sc-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: 13px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgba(20, 19, 18, .25); }
.sc-track input::-moz-range-track { background: none; }
.sc-track input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.sc-track input:focus-visible { outline: none; }
.sc-track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--iris); }
.sc-time { flex: none; font: 500 13px/1 var(--f-mono); color: var(--graphite); font-variant-numeric: tabular-nums; }
.sc-legend { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); margin-top: var(--space-xs); font-size: 13px; color: var(--fog); }
.sc-legend i { display: inline-block; width: 3px; height: 12px; border-radius: 2px; margin-right: var(--space-2xs); vertical-align: -1px; background: var(--graphite); }
.sc-legend i.rage { background: var(--down); }
.sc-legend i.err { background: #E0A100; }
@media (max-width: 520px) { .scrubber { gap: var(--space-2xs); padding-right: var(--space-xs); } }

/* Hero notes spring in as they scroll into view (desktop only; hero text is never animated). reveal() adds .in.
   The problem note's icon pings like a tap; the result's bar fills. */
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes in-ping { from { box-shadow: 0 0 0 0 rgba(255, 122, 48, .45); } to { box-shadow: 0 0 0 9px rgba(255, 122, 48, 0); } }
@keyframes in-fill { from { width: 0; } }
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .js .hero .pop { opacity: 0; }   /* .js: without script the notes simply show */
  .hero .pop.in { animation: pop-in .5s cubic-bezier(.34, 1.3, .64, 1) .15s both; }
  .hero .pop.p2.in { animation-delay: .35s; }
  .hero .pop.in .in-ic.hot { animation: in-ping .9s ease-out .6s 2; }
  .hero .pop.in .in-bar i::before { animation: in-fill 1s var(--ease) .8s both; }
}

/* ---------- Motion ---------- */
/* Only hide what script will reveal: without JavaScript (or before it runs) everything shows. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Product cards (home): one per product line. A quiet visual, the features as chips, one link.
   The link's ::before covers the card, so the whole card is clickable but has one short name. */
.pcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-group); }
@media (min-width: 960px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; gap: var(--space-l); padding: var(--space-xs); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); transition: border-color .2s var(--ease); }
.pcard:hover, .pcard:focus-within { border-color: var(--line-2); }
.pcard:hover .more::after { transform: translateX(3px); }
.pcard-art { border-radius: calc(var(--r-xl) - 8px); }
.pcard-body { display: grid; align-content: start; justify-items: start; gap: var(--space-s); padding: 0 var(--space-xs) var(--space-2xs); }
.pcard-feats { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.pcard-feats li { display: inline-flex; align-items: center; gap: var(--space-2xs); height: 36px; padding: 0 var(--space-xs); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pcard-feats .ic { width: 15px; height: 15px; color: var(--fog); }
.pcard .more::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcards-foot { margin-top: var(--space-l); }

/* =====================================================================================================
   Page pieces used by the generated pages (tools/build-product-pages.py). Same tokens, same rhythm.
   ===================================================================================================== */
.skip { position: absolute; left: var(--space-s); top: -80px; z-index: 100; padding: var(--space-xs) var(--space-s); border-radius: var(--r-btn); background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: var(--space-s); }
/* Long page titles (posts, compare, tools, industries) step down one size so they stay on two or three lines */
.t-d1.t-d1-s { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; }

/* Hero picture with insight notes pinned over it (home, industry pages). The notes are extra: hidden below 1100px. */
.hero-wrap { position: relative; }
.hero .pop { display: none; }
@media (min-width: 1100px) {
  .hero .pop { display: grid; }
  .hero .pop.p1 { left: -36px; top: 56%; width: 228px; }
  .hero .pop.p2 { right: 56px; top: -40px; width: 236px; }
  .hero .pop.p3 { left: -40px; bottom: -28px; width: 250px; }
}
.in-t { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* Home: the team switcher's panels */
.persona { display: grid; gap: var(--space-l); align-items: center; margin-top: var(--space-l); }
@media (min-width: 960px) { .persona { grid-template-columns: 5fr 7fr; gap: var(--space-2xl); } }

/* Steps or facts in one joined strip: label, short heading, one line. Four across on desktop (.c3: three). */
.week { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .week { grid-template-columns: repeat(4, 1fr); } .week.c3 { grid-template-columns: repeat(3, 1fr); } }
.week > div { background: var(--paper); padding: var(--space-group); }
.week .t-label { display: block; margin-bottom: var(--space-xs); }
.week .ic-box { margin-bottom: var(--space-s); }
.week strong { display: block; }   /* a fact cell title under a hero, not a heading (no h1→h3 jump) */
.week p { margin: var(--space-2xs) 0 0; font-size: 15px; color: var(--graphite); }
@media (max-width: 767px) { .week p { font-size: 16px; } }

/* Cards in a grid (problems, industries, differences, steps): .uc. The serif line is the question a visitor asks. */
.uc h2, .uc h3 { margin-top: var(--space-2xs); }
.uc .ticks { margin-top: var(--space-2xs); }
.uc > .more { margin-top: auto; }
.uc-q { font: italic 400 21px/1.3 var(--f-serif); color: var(--ink); }
/* Industries hub hero: Spot, Test and Ship side by side in one panel, one switch for all three (viewSwitch drives every mock in #lp1) */
.lp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); }
.lp-i { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.lp-k { font-size: 15px; color: var(--graphite); }
.lp-k b { margin-right: .3em; font-weight: 600; color: var(--ink); }
.lp-row [data-mock] { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-win); }
@media (max-width: 999px) { .lp-row { grid-template-columns: minmax(0, 1fr); } .lp-i { width: 100%; max-width: 440px; margin-inline: auto; } }
@media (max-width: 767px) { .lp-k { font-size: 16px; } }
/* Industries hub cards (.uc.ih): a page sketch (.ihp), name, tagline, the number to watch */
.ih .ihp { order: -1; margin-bottom: var(--space-2xs); }   /* after the name in the source, so its text alternative reads under the heading */
.ih-watch { display: grid; gap: 4px; margin-top: auto; padding-top: var(--space-s); border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink); }
.ih .more { margin-top: 0; }
@media (max-width: 767px) { .ih-watch { font-size: 16px; } }
/* Page sketch (.ihp): the page where that kind of site loses people, drawn as a wireframe that runs off the bottom
   like a .panel.bleed shot, with that spot outlined (.ihp-k) and one "Most leave" tag. Same drawing style on every card. */
.ihp { position: relative; height: 168px; padding: var(--space-s) var(--space-s) 0; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.ihp-d { height: 100%; }
.ihp-w { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--white); }
.ihp-top { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ihp-top i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.ihp-c { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; font-size: 11px; line-height: 1.2; color: var(--graphite); }
.ihp-t { font: 600 12px/1.2 var(--f-body); color: var(--ink); }
.ihp-l { display: block; flex: none; width: var(--w); height: 6px; border-radius: 3px; background: var(--sand); }
.ihp-lh { height: 9px; background: var(--line-2); }
.ihp-lb { height: 9px; }
.ihp-r { display: flex; align-items: center; gap: 8px; }
.ihp-r .ihp-l { flex: 0 1 var(--w); }
.ihp-th { flex: none; width: 16px; height: 16px; border-radius: 3px; background: var(--sand); }
.ihp-x { flex: none; }
.ihp-b { display: grid; place-items: center; height: 20px; padding: 0 8px; border-radius: 4px; background: var(--ink); color: var(--white); font: 600 10.5px/1 var(--f-body); white-space: nowrap; }
.ihp-b.lt { background: var(--sand); color: var(--ink); }
.ihp-b.sm { height: 14px; }
.ihp-b.w { flex: 1; }
/* The marked spot: a dashed outline and one tag, on top of what is above it */
.ihp-k { position: relative; display: flex; flex-direction: column; gap: 6px; outline: 1.5px dashed #C98A2E; outline-offset: 3px; border-radius: 3px; }
.ihp-k > em { position: absolute; z-index: 1; top: -13px; right: 2px; padding: 2px 6px; border-radius: 4px; background: #FFF2D6; color: #7A4A00; font: 600 11px/1.3 var(--f-body); font-style: normal; white-space: nowrap; }
.ihp-k.sm { outline-offset: 2px; }
.ihp-pl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ihp-pl > span { display: grid; gap: 5px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; }
.ihp-pl .ihp-l { width: var(--w); }
.ihp-ph { display: flex; flex-direction: column; gap: 8px; width: 96px; height: 100%; margin-left: 10%; padding: 14px 9px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--white); }
.ihp-ph .ihp-k > em { top: 50%; right: auto; left: calc(100% + 12px); transform: translateY(-50%); }
.ihp-in { display: block; height: 14px; border: 1px solid var(--line-2); border-radius: 3px; }
.ihp-cut { height: 0; margin: 4px 0; outline: 0; border-top: 1.5px dashed #C98A2E; border-radius: 0; }
.ihp-cut > em { top: -10px; }
.ihp-nl { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; opacity: .5; }
.ihp-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 100%; }
.ihp-3 .ihp-c { gap: 7px; padding: 8px; }
.ihp-img { display: block; height: 22px; border-radius: 4px; background: var(--sand); }
.ihp-tk { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-2); }

/* A switch between a hero's heading and its picture */
.hero-top + .ch-tools { margin-top: var(--space-visual); }
.ch-tools + .panel { margin-top: 0; }
.jobs > .frow + .frow { margin-top: var(--space-block); }

/* A short direct answer under a hero: the sentence an assistant or a skimmer should take away */
.answer { max-width: 760px; padding: var(--space-m); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.answer + * { margin-top: var(--space-head); }

/* Feature index rows written as one sentence with the feature name in bold */
.fi-head h3 { font: var(--dw) 20px/1.2 var(--f-display); letter-spacing: -0.02em; }
.fi-head h3 a { color: inherit; text-decoration: none; }
.fi-head h3 a:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.fi-row.fi-line { padding-right: 0; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.fi-line b { display: inline; font: 600 15px/1.5 var(--f-body); color: var(--ink); }
.fi-line a { color: inherit; }
@media (max-width: 767px) { .fi-row.fi-line, .fi-line b { font-size: 16px; } }

/* Blog post */
.a-head { padding: var(--space-hero) 0 var(--space-head); }
.a-head .stack { max-width: 820px; }
.byline { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-s); align-items: center; font-size: 14px; color: var(--fog); }
.a-cover { position: relative; aspect-ratio: 16 / 9; margin-bottom: var(--space-head); border-radius: var(--r-xl); overflow: hidden; background: var(--sand); }
.a-cover.ji { background: var(--sky); }
.a-cover.we { background: var(--ember-wash); }
.a-cover.ai { background: var(--butter); }
.a-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .a-cover { aspect-ratio: 2 / 1; } }
.prose .a-fig { margin: var(--space-xl) 0; }
.inline-cta { display: grid; gap: var(--space-s); margin: var(--space-xl) 0; padding: var(--space-group); border-radius: var(--r-lg); background: var(--sand); }
@media (min-width: 640px) { .inline-cta { grid-template-columns: 1fr auto; align-items: center; } }
.inline-cta p { margin: 0; font-size: 16px; }
.prose .faq { font-size: 16px; }
.related { margin-top: var(--space-block); padding: var(--space-xl) 0 var(--space-section); border-top: 1px solid var(--line); }
.related .grid { margin-top: var(--space-l); }

/* Blog index: the newest guide large, then the rest as cards with a topic filter */
.feat { display: grid; gap: var(--space-s); align-items: center; margin-bottom: var(--space-head); padding: var(--space-2xs); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); text-decoration: none; color: inherit; transition: border-color .2s var(--ease); }
.feat:hover { border-color: var(--line-2); }
.feat:hover h2 { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.feat .post-cover { border-radius: calc(var(--r-xl) - 8px); }
.feat > .stack { padding: var(--space-s) var(--space-s) var(--space-m); }
@media (min-width: 900px) { .feat { grid-template-columns: 7fr 5fr; gap: var(--space-xl); } .feat > .stack { padding: var(--space-l) var(--space-l) var(--space-l) 0; } }
.posts { align-items: start; }

/* Pricing: the product tabs and the billing switch over one white panel: the calculator strip (the unique visitor count, a bar
   per slider stop over the slider), then Free, Pro and Max side by side, their rows lined up (subgrid); site.js pricing() moves
   it. Then the full table. Without prices (CUTTL_SHOW_PRICES=0) there's no calculator and the three .plans cards stand alone. */
.pr-calc { display: grid; gap: var(--space-2xs); padding: var(--space-2xs); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.pr-calc > .plan { border: 0; border-radius: var(--r-lg); }
.pr-calc > .plan[data-plan="free"] { border-radius: 0; border-bottom: 1px solid var(--line); }   /* white next to white Pro: a rule between them */
.pr-q { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-m); min-width: 0; padding: var(--space-group); border-bottom: 1px solid var(--line); }
.pr-q .seg { background: var(--sand); }
.pr-q > .pr-prod { margin: 0; padding-top: 0; }   /* the strip's padding holds the Recommended tag; the strip spaces it */
.pr-q-n { display: grid; align-content: start; }
.pr-n-row { display: flex; align-items: baseline; gap: var(--space-2xs); margin: var(--space-2xs) 0 0; }
.pr-upto { font-size: 16px; color: var(--fog); }   /* as a price's "/ month" */
.pr-n { display: block; font: var(--dw) clamp(40px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }   /* the plan prices' size */
.pr-q-sub { margin: var(--space-2xs) 0 0; color: var(--fog); }
.pr-chart { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
.pr-bars { display: grid; grid-template-columns: repeat(var(--s), minmax(0, 1fr)); gap: clamp(3px, 1.6cqi, 16px); align-items: end; height: 72px; }
.pr-bars i { height: calc(var(--h) * 100%); min-height: 6px; border-radius: 6px 6px 3px 3px; background: var(--sand-2); cursor: pointer; transition: height .3s var(--ease), background-color .2s var(--ease); }
.pr-bars i:hover { background: var(--line-2); }
.pr-bars i.on { background: var(--ink); }
.pr-bars i:last-child { background: none; border: 1.5px dashed var(--line-2); }   /* 500K+: a plan sized to the site, so an outline */
.pr-bars i:last-child.on { border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .pr-bars i { transition: none; } }
.pr-chart .pr-track { margin: var(--space-2xs) calc(100% / (2 * var(--s)) - 11px) 0; }   /* the thumb's centre lands on each bar's centre */
.pr-track { position: relative; height: 44px; }
.pr-rail { position: absolute; left: 11px; right: 11px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--sand-2); }
.pr-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: var(--ink); }
.pr-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pr-track input::-webkit-slider-runnable-track { height: 44px; background: none; }
.pr-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: 11px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2), 0 1px 3px rgba(20, 19, 18, .2); }
.pr-track input::-moz-range-track { background: none; }
.pr-track input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2), 0 1px 3px rgba(20, 19, 18, .2); }
.pr-track input:focus-visible { outline: none; }
.pr-track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--iris); }
.pr-track input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--iris); }
.pr-ticks { position: relative; height: 16px; }
.pr-ticks span { position: absolute; top: 0; left: calc(100% * (var(--i) + .5) / var(--s)); transform: translateX(-50%); font: 500 12px/1.3 var(--f-mono); color: var(--fog); white-space: nowrap; cursor: pointer; }
.pr-ticks span:first-child { left: 0; transform: none; }
.pr-ticks span:last-child { left: auto; right: 0; transform: none; }
.pr-ticks span.on { color: var(--ink); }
@media (min-width: 900px) {   /* the count beside the chart, and Free, Pro and Max side by side under it */
  .pr-calc { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(var(--rows), auto); column-gap: var(--space-2xs); row-gap: 0; }
  .pr-q { grid-column: 1 / -1; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); column-gap: var(--space-l); row-gap: var(--space-m); align-items: center; margin-bottom: var(--space-2xs); }
  .pr-q > .pr-prod { grid-column: 1 / -1; }
  .pr-bars { height: 48px; }
  .pr-calc > .plan { grid-row: 2 / span var(--rows); grid-template-rows: subgrid; }
  .pr-calc > .plan[data-plan="free"] { border-bottom: 0; border-right: 1px solid var(--line); }
  .pr-calc .plan > .ticks { grid-row: span var(--n); }   /* its own rows: a wrapped line never leaves a gap in the next card (the user, Nov 3: equal spacing) */
}
@media (min-width: 1280px) {   /* the switches stacked at the left of the same row */
  .pr-q { grid-template-columns: auto minmax(0, 16rem) minmax(0, 1fr); }
  .pr-q > .pr-prod { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-2xs);
    padding-right: var(--space-l); border-right: 1px solid var(--line); }
  .pr-q [data-pr="billing"] { display: flex; align-self: stretch; }   /* as wide as the product tabs above it */
  .pr-q [data-pr="billing"] button { flex: 1 1 0; justify-content: center; }
}
.pr-save { font: 500 12px/1 var(--f-mono); color: var(--up); }
.pr-prod { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-xs) var(--space-s); padding-top: 10px; margin-bottom: var(--space-s); }   /* the product tabs and the billing switch, right above the panel they change; top room for the Recommended tag */
[data-pr="product"] { overflow: visible; }
[data-pr="product"] .ic { width: 16px; height: 16px; flex: none; }   /* each tab's product icon, before its name */
@media (max-width: 559px) {   /* phones: both switches full width; the icon over the name, which wraps to two lines, so the tabs never scroll */
  .pr-prod .seg { display: flex; width: 100%; }
  .pr-prod .seg button { flex: 1 1 0; justify-content: center; padding: var(--space-2xs) var(--space-3xs); white-space: normal; line-height: 1.25; text-align: center; }
  .pr-prod [data-pr="product"] button { flex-direction: column; gap: var(--space-3xs); padding-top: var(--space-s); }   /* the icon clears the Recommended tag */
  .pr-prod .pr-rec { right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }   /* centred on the narrow tab */
}
@media (min-width: 560px) and (max-width: 899px) {   /* stacked cards: the lists in two columns */
  .pr-calc .plan .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-m); }
  .pr-calc .plan .ticks li.plus { grid-column: 1 / -1; }
}
.pr-rec { position: absolute; top: -10px; right: 6px; padding: 3px 7px; border-radius: 999px; background: var(--ember-wash); color: var(--ember-ink); font: 600 11px/1 var(--f-body); letter-spacing: .01em; box-shadow: 0 0 0 2px var(--paper); pointer-events: none; }   /* the Recommended tag on Both products' top edge (the user, Oct 20) */
.pr-sec.band-sand .pr-rec { box-shadow: 0 0 0 2px var(--sand); }
.plans { display: grid; gap: var(--space-group); }
@media (min-width: 900px) { .plans.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plans.c3 > .plan { grid-row: span var(--rows); grid-template-rows: subgrid; } .plans.c3 .plan > .ticks { grid-row: span var(--n); grid-template-rows: subgrid; } }
.plan { display: grid; gap: var(--space-s); align-content: start; padding: var(--space-group); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.plan.hi { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }   /* Max, in the main buttons' orange (the user, Oct 24) */
.plan.hi .t-body, .plan.hi .t-small, .plan.hi .ticks li, .plan.hi .plan-price span, .plan.hi .pp-was, .plan.hi .pp-was span { color: var(--on-accent); }
.plan-top { display: grid; gap: var(--space-2xs); align-content: start; }
.plan-top p { margin: 0; }
.plan-price { display: flex; align-items: flex-end; gap: var(--space-2xs); margin: var(--space-xs) 0 0; }
.plan-price .pp { font: var(--dw) clamp(40px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.plan-price span { font-size: 16px; color: var(--fog); }
.pp-per { display: grid; line-height: 1.25; padding-bottom: 2px; white-space: nowrap; }   /* a sale's struck list price sits above "/ month", inside the price's height */
.pp-was, .pp-was span { font-size: 15px; line-height: 1; color: var(--fog); }   /* with "/ month" under it, shorter than the price at every width */
.pp-was[hidden] { display: none; }
.plan-price .pp .pp-c { font-size: .55em; letter-spacing: -0.01em; color: inherit; }   /* a sale price's cents (site.js pricing) */
.pr-ticks span.minor { visibility: hidden; }   /* the minor tick labels show by the chart's own width, not the window's (QA, Oct 20) */
@container (min-width: 600px) { .pr-ticks span.minor { visibility: visible; } }
#pr-sub { min-height: 4lh; }   /* priced page: room for a sale banner (a 25-character name runs 4 lines on phones, 2 above 600px), so swapping it in or out moves nothing (QA, Oct 20) */
@media (min-width: 600px) { #pr-sub { min-height: 2lh; } }
.hero .t-lead.pr-sale { color: var(--ink); }   /* a sale's banner, in the subtitle's place (site.js pricing) */
.hero .t-lead.pr-sale::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 2px; background: var(--up); vertical-align: .1em; }
.plan-note { margin: 0; text-wrap: pretty; }   /* a wrapped note never leaves one word ("yearly") alone on its line */
.plan-price + .plan-note { min-height: 2lh; }   /* priced cards: a sale or 500K+ note never changes the card height */
.plan > .btn { justify-self: stretch; margin-top: var(--space-2xs); }
.plan > .t-label { margin-top: var(--space-xs); }
.plan .ticks { margin-top: 0; align-content: start; }
.plan.hi .ticks li::before { background-color: var(--white); }
.plan.hi .btn.is-off { opacity: 1; background: rgba(255, 255, 255, .35); color: color-mix(in srgb, var(--ink) 55%, var(--accent)); }   /* off at Free's 5K: a pale button, not a muddy one */
.plan .ticks li.off { display: none; }   /* a feature the plan doesn't have: a blank line, kept on desktop so lines match across cards */
@media (min-width: 900px) { .plan .ticks li.off { display: block; } .plan .ticks li.off::before { content: none; } }
.plan .ticks li.plus { padding-left: 0; font-weight: 500; }   /* Max's first line, "Everything in Pro, plus:" */
.plan .ticks li.plus::before { content: none; }
/* Talk to sales, under the plan cards: a quiet white card, colour only in the icon tile */
.pr-sales { display: grid; grid-template-columns: auto 1fr; gap: var(--space-s); align-items: start; margin-top: var(--space-group);
  padding: var(--space-m) var(--space-group); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.pr-sales p { margin: 0; font-size: 16px; }
.pr-sales .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) { .pr-sales { grid-template-columns: auto 1fr auto; align-items: center; } .pr-sales .btn { grid-column: auto; } }
.pr-notes { display: grid; gap: var(--space-3xs); margin-top: var(--space-group); }
.pr-notes p { margin: 0; }
.ctable-wrap.pt-wrap { overflow: clip; }   /* not hidden: the plan names stay at the top of the screen while the table scrolls */
.ctable.pt thead th { position: sticky; top: var(--nav-h); z-index: 1; }
.ctable.pt thead th + th, .ctable.pt td { width: 22%; }
.ctable.pt th.me, .ctable.pt td.me { background: color-mix(in srgb, var(--ember-wash) 45%, var(--white)); }   /* Max, tinted like its card but lighter, so a long column stays quiet */
.ctable.pt thead th.me { background: var(--ember-wash); }
@media (max-width: 719px) {   /* each feature becomes a small card: the name, then the three plans side by side */
  .ctable.pt tbody tr:not(.grp) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-s); }
  .ctable.pt tbody th { grid-column: 1 / -1; font-size: 16px; }
  .ctable.pt td { display: grid; width: auto; grid-row: span 2; grid-template-rows: subgrid; row-gap: var(--space-3xs); margin-top: 0; font-size: 15px; }
  .ctable.pt td::before { align-self: end; margin-bottom: 0; }
  .ctable.pt td.me::before { padding-left: 0; background: none; color: var(--fog); }
}

/* Compare: at-a-glance card, then the full table. Below 720px each row becomes a small card with labels. */
.glance { padding: var(--space-2xs) var(--space-m); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-win); font-size: 15px; }
.gl-h, .gl-r { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-s); align-items: center; padding: var(--space-s) 0; }
.gl-h { border-bottom: 1px solid var(--ink); }
.gl-h b { display: inline-flex; align-items: center; font: 600 16px/1.2 var(--f-display); }
.gl-r + .gl-r { border-top: 1px solid var(--line); }
.gl-r span { color: var(--graphite); }
.gl-r b { font-weight: 500; color: var(--graphite); }
.gl-r b.me { font-weight: 600; color: var(--ink); }
.me-mark { flex: none; width: 18px; height: 18px; margin-right: var(--space-2xs); }   /* never squeezed under a long rival name on phones */
.ctable-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ctable th, .ctable td { padding: var(--space-s) var(--space-m); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ctable thead th { background: var(--paper); font: 600 16px/1.3 var(--f-display); }
.ctable thead th.me { display: table-cell; }
.ctable thead th.me .me-mark { display: inline-block; vertical-align: -3px; }
.ctable th.me, .ctable td.me { background: var(--sky-wash); }
.ctable tbody th { width: 34%; font-weight: 600; color: var(--ink); }
.ctable td { color: var(--graphite); }
.ctable tr.grp th { width: auto; padding-block: var(--space-xs); background: var(--sand); font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.ctable tbody:last-child tr:last-child > * { border-bottom: 0; }
.mk { display: inline-block; width: 18px; height: 18px; margin-right: var(--space-2xs); border-radius: 5px; vertical-align: -4px; }
.mk-yes { background: var(--up) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.mk-no { background: var(--sand-2) linear-gradient(var(--fog), var(--fog)) center/8px 1.6px no-repeat; }
.mk-part { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231F8A5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: inset 0 0 0 1.5px var(--up); }   /* yes, with limits: a paid add-on, a higher plan, a trial */
.ctable .v { display: flex; align-items: flex-start; }   /* the icon, then the words: a second line starts under the words, not under the icon */
.ctable .v .mk { flex: none; margin-top: 2px; }
.ctable-key { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); margin-top: var(--space-s); color: var(--fog); }
.ctable-key span { display: inline-flex; align-items: center; }
.ctable-src { margin-top: var(--space-s); }
@media (max-width: 719px) {
  .ctable thead { display: none; }
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; width: auto; }
  .ctable tbody tr:not(.grp) { padding: var(--space-s) var(--space-m); border-bottom: 1px solid var(--line); }
  .ctable tbody th, .ctable td { width: auto; padding: 0; border: 0; }
  .ctable tbody th { font-size: 17px; }
  .ctable td { margin-top: var(--space-xs); background: none !important; font-size: 16px; }
  .ctable td::before { content: attr(data-label); display: block; margin-bottom: var(--space-3xs); font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }
  .ctable td.me::before { padding-left: 22px; background: url("/assets/logo/cuttl-mark.svg") left center / 16px no-repeat; color: var(--ink); }
  .ctable tr.grp th { padding: var(--space-xs) var(--space-m); }
}
.ticks.big li { font-size: 18px; color: var(--ink-2); }
.frow.top > .ticks.big { margin-top: 0; }

/* ---------- Alternatives pages: the compare-page glance + tables, a card per tool, a numbered checklist ---------- */
.gl-list .gl-h, .gl-list .gl-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gl-list .gl-r > span, .gl-list .gl-r > b { display: flex; align-items: center; }
.gl-list .gl-r.me > span, .gl-list .gl-r.me > b { font-weight: 600; color: var(--ink); }
@media (max-width: 639px) { .gl-list { padding-inline: var(--space-s); } .gl-list .gl-h, .gl-list .gl-r { column-gap: var(--space-xs); } }
.nw { white-space: nowrap; }
.ctable tr.me { background: var(--sky-wash); }
.ctable tbody .me-mark { display: inline-block; vertical-align: -3px; }
.ct-pick tbody th { font-weight: 500; }
.ct-pick td:nth-of-type(1) { width: 22%; }
.ct-pick td b { font-weight: 600; color: var(--ink); }
.ct-grid th, .ct-grid td { padding-inline: var(--space-s); }
.ct-grid thead th { font-size: 15px; }
.ct-grid tbody th { width: 16%; }
.ct-grid thead th + th, .ct-grid td { width: 12%; }   /* a width hint: the tool columns share the rest evenly unless a word needs more */
@media (max-width: 1199px) {   /* seven tools across is too narrow below desktop: each feature becomes a card of tool and value pairs */
  .ct-grid thead { display: none; }
  .ct-grid, .ct-grid tbody, .ct-grid tr, .ct-grid th, .ct-grid td { display: block; width: auto; }
  .ct-grid tbody tr:not(.grp) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs) var(--space-s); padding: var(--space-s) var(--space-m); border-bottom: 1px solid var(--line); }
  .ct-grid tbody th, .ct-grid td { width: auto; padding: 0; border: 0; }
  .ct-grid tbody th { grid-column: 1 / -1; font-size: 17px; }
  .ct-grid td { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: var(--space-3xs); margin-top: 0; background: none !important; font-size: 15px; }   /* each tool takes a label row and a value row shared across the card, so a long label or value never shifts the others */
  .ct-grid td::before { content: attr(data-label); display: block; align-self: end; margin-bottom: 0; font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }
  .ct-grid td > .v { align-self: start; }
  .ct-grid td.me { font-weight: 600; color: var(--ink); }
  .ct-grid td.me::before { padding-left: 22px; background: url("/assets/logo/cuttl-mark.svg") left center / 16px no-repeat; color: var(--ink); }   /* the mark sits in line with the name, as in the table head */
}
@media (max-width: 719px) {
  .ct-grid tbody tr:not(.grp) { grid-template-columns: 1fr 1fr; }
  .ct-pick td:nth-of-type(1) { width: auto; }
}
.alts { display: grid; gap: var(--space-group); }
.alt { display: grid; align-content: start; gap: var(--space-s); padding: var(--space-group); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.alt.me { grid-column: 1 / -1; border-color: transparent; background: var(--sky-wash); }
.alt .me-mark { display: inline-block; vertical-align: -2px; }
.alt-h .t-h4 { margin-top: var(--space-2xs); }
.alt p { font-size: 16px; color: var(--graphite); }
.alt-h > p, .alt-b > * + * { margin-top: var(--space-xs); }
.alt-good b { font-weight: 600; color: var(--ink); }
.alt-adds { padding-top: var(--space-s); border-top: 1px solid var(--line); }
.alt-adds p { margin-top: var(--space-2xs); }
.alt-links { display: flex; flex-wrap: wrap; column-gap: var(--space-m); }
.alt .ticks { margin-top: 0; }
@media (min-width: 640px) { .ticks.c2 { grid-template-columns: 1fr 1fr; column-gap: var(--space-m); } }
@media (min-width: 760px) and (max-width: 999px) { .findex.every { grid-template-columns: 1fr 1fr; column-gap: var(--space-xl); } }   /* All features on compare pages: two columns on tablets */
.alt-links:empty { display: none; }
@media (min-width: 640px) {
  .alts { grid-template-columns: repeat(2, 1fr); }
  .alt:not(.me) { grid-row: span 4; grid-template-rows: subgrid; }   /* head, good for, what Cuttl adds and links line up across a row */
}
@media (min-width: 980px) {
  .alts { grid-template-columns: repeat(3, 1fr); }
  .alt.me { grid-template-columns: 5fr 7fr; column-gap: var(--space-xl); }
}
.nlist { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: var(--space-m); }
.nlist li { counter-increment: n; position: relative; padding-left: calc(28px + var(--space-s)); font-size: 18px; color: var(--ink-2); }
.nlist li::before { content: counter(n); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--sand); font: 500 13px/1 var(--f-mono); color: var(--ink); }
.nlist b { font-weight: 600; color: var(--ink); }

/* MCP: one card per assistant, then the two values people copy */
.clients { margin-bottom: var(--space-l); }
.client { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs) var(--space-s); align-content: start; align-items: center; padding: var(--space-group); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.client > p { grid-column: 1 / -1; color: var(--graphite); font-size: 15px; }
.client .t-label { display: block; margin-top: var(--space-3xs); }
.client-logo { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--paper); }
.copyrows { display: grid; gap: var(--space-xs); }
.copyrow { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2xs) var(--space-s); align-items: center; padding: var(--space-s) var(--space-m); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.copyrow .t-label { grid-column: 1 / -1; }
.copyrow code { font: 500 14px/1.5 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 720px) { .copyrow { grid-template-columns: 10em 1fr auto; } .copyrow .t-label { grid-column: auto; } }
@media (max-width: 1000px) { .copyrow .btn, .foot-links a { min-height: 44px; } }

/* Sitemap page and 404 */
.smap { display: grid; gap: var(--space-xl) var(--space-l); }
@media (min-width: 720px) { .smap { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .smap { grid-template-columns: repeat(3, 1fr); } }
.smap-col h2 { margin-bottom: var(--space-xs); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--ink); }
.smap-col h2 a { color: inherit; text-decoration: none; }
.smap-col ul { list-style: none; padding: 0; }
.smap-col li a { display: block; padding: 6px 0; font-size: 15px; color: var(--graphite); text-decoration: none; }
.smap-col li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .smap-col li a { padding: 10px 0; font-size: 16px; } }
.nf-login { margin-top: var(--space-l); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-m); }

/* ---------- Free tool pages: the calculator sits in the hero, in a white card on a sky panel ----------
   Markup: tools/tool_widgets.py; behaviour: free-tools/<slug>/calc.js (keep class names in step with both). */
.hero-top.center { justify-items: center; text-align: center; }
.hero-top.center > .stack { margin-inline: auto; }
.hero-top.center .t-lead { margin-inline: auto; }
.tool-hero .hero-top + .tl-panel { margin-top: var(--space-xl); }
.tl-panel { padding: var(--space-inset-s); }
.tl-calc { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); width: 100%; padding: 10px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-win); text-align: left; }
.tl-in { display: grid; align-content: start; gap: 14px; padding: 18px 18px 20px; }
.tl-versions { display: grid; gap: 10px; }
.tl-ver { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; min-width: 0; margin: 0; padding: 16px 18px 14px; border: 0; border-radius: var(--r-md); background: var(--paper); }
.tl-ver-h { float: left; grid-column: 1 / -1; padding: 0; font: 600 18px/1.3 var(--f-display); color: var(--ink); }
.tl-rm { position: absolute; top: 8px; right: 10px; min-height: 36px; padding: 0 8px; border: 0; background: none; font: 500 13px var(--f-body); color: var(--graphite); cursor: pointer; }
.tl-rm:hover { color: var(--ink); }
.tl-f { display: grid; gap: 6px; font-size: 13px; color: var(--graphite); }
.tl-f input, .tl-split-f input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--white); font: 500 16px var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-f input:focus, .tl-split-f input:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(47, 139, 255, .25); }
.tl-f input[aria-invalid="true"] { border-color: var(--down); }
.tl-rate { grid-column: 1 / -1; font-size: 14px; color: var(--graphite); }
.tl-rate b { font: 500 14px var(--f-mono); color: var(--ink); }
.tl-err { grid-column: 1 / -1; font-size: 13px; color: var(--down); }
.tl-err[hidden], .tl-add[hidden], .tl-split[hidden], .tl-split-f[hidden] { display: none; }
.tl-add { justify-self: start; min-height: 40px; padding: 0 4px; border: 0; background: none; font: 500 15px var(--f-body); color: var(--iris-ink); cursor: pointer; }
.tl-add:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl-opts { display: grid; gap: 12px; padding-top: 4px; }
.tl-opt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tl-lab { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.tl-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--sand); }
.tl-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: 500 14px var(--f-body); color: var(--graphite); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.tl-seg button:hover { color: var(--ink); }
.tl-seg button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 19, 18, .1); }
.tl-adv summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; color: var(--graphite); cursor: pointer; list-style: none; }
.tl-adv summary::-webkit-details-marker { display: none; }
.tl-adv summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s var(--ease); }
.tl-adv[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.tl-adv > .tl-opt { padding-top: 4px; }
.tl-split { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.tl-split-f { position: relative; display: grid; grid-template-columns: auto 84px; align-items: center; gap: 8px; font: 500 14px var(--f-body); color: var(--graphite); }
.tl-split-f input { padding-right: 28px; }
.tl-split-f i { position: absolute; right: 12px; font-style: normal; color: var(--fog); }
html:not(.js) .tl-add, html:not(.js) .tl-adv { display: none; }
/* ⓘ hints: hover or focus on desktop, tap on touch (calc.js keeps them on screen) */
.tl-i { position: relative; display: inline-grid; place-items: center; flex: none; width: 17px; height: 17px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); font: italic 600 10px/1 Georgia, serif; color: var(--graphite); cursor: help; }
.tl-i::before { content: ""; position: absolute; inset: -14px; }
.tl-tip { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: max-content; max-width: min(260px, calc(100vw - 48px)); padding: 10px 12px; border-radius: 12px; background: var(--ink); font: 400 13px/1.45 var(--f-body); color: #fff; text-align: left; white-space: normal; translate: var(--dx, 0) 0; opacity: 0; visibility: hidden; transition: opacity .15s var(--ease), visibility 0s linear .15s; pointer-events: none; }
.tl-i:focus-visible + .tl-tip, .tl-i[aria-expanded="true"] + .tl-tip { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (hover: hover) { .tl-i:hover + .tl-tip { opacity: 1; visibility: visible; transition-delay: 0s; } }
.tl-out { display: grid; align-content: start; gap: 18px; padding: 24px; border-radius: var(--r-md); background: var(--sky-wash); transition: opacity .15s var(--ease); }
.tl-out.is-stale { opacity: .45; }
.tl-res { display: grid; gap: 10px; }
.tl-res + .tl-res { padding-top: 18px; border-top: 1px solid var(--line); }
.tl-verdict { display: flex; align-items: baseline; gap: 10px; font: 600 clamp(20px, 1.8vw, 24px)/1.25 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.tl-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--fog); translate: 0 -2px; }
.is-better .tl-dot { background: var(--up); box-shadow: 0 0 0 4px rgba(31, 138, 91, .15); }
.is-worse .tl-dot { background: var(--down); box-shadow: 0 0 0 4px rgba(214, 69, 61, .15); }
.tl-why { font-size: 15px; line-height: 1.55; color: var(--graphite); }
.tl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.tl-tile { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: var(--r-btn); background: var(--white); }
.tl-tile.is-dim > b, .tl-tile.is-dim > small { color: var(--fog); }
.tl-tl { position: relative; display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.3; color: var(--graphite); }
.tl-tile > b { font: 500 19px/1.25 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* A value never breaks inside a number. The font shrinks only when the value's longest run without a space (--n, set by calc.js) is wider than the tile; Geist Mono is 0.6em a character.
   The value box is the container, not the tile: a contained tile would trap its tooltip under the next tile. */
@supports (container-type: inline-size) {
  .tl-tile > b { container-type: inline-size; }
  .tl-tile > b > .tl-v { font-size: min(1em, 100cqi / (var(--n, 1) * 0.62)); overflow-wrap: normal; }
}
.tl-tile > small { font-size: 12px; color: var(--fog); }
.tl-out-foot { display: grid; justify-items: start; gap: 10px; }
.tl-srm { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.tl-srm::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fog); translate: 0 -1px; }
.tl-srm.is-ok::before { background: var(--up); }
.tl-srm.is-bad { padding: 10px 14px; border-radius: var(--r-btn); background: #FBE7E5; color: #8F2A1B; }
.tl-srm.is-bad::before { background: var(--down); }
.tl-note { font-size: 13px; line-height: 1.5; color: var(--graphite); }
.tl-copy { min-height: 44px; }
.tl-foot { display: grid; justify-items: center; gap: var(--space-s); margin-top: var(--space-l); text-align: center; }
.tl-foot .row { justify-content: center; }
.defs { display: grid; gap: var(--space-xs); }
.defs p { color: var(--graphite); }
.defs b { color: var(--ink); }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); margin: var(--space-s) 0; }
.case { display: grid; justify-items: start; gap: var(--space-3xs); padding: var(--space-s); border: 1px solid var(--line); border-radius: var(--r-md); }
.case .t-num { font-size: 20px; }
.case .tag { margin-top: var(--space-2xs); }
@media (max-width: 1000px) { .tl-calc { grid-template-columns: minmax(0, 1fr); } }
/* Sample size calculator: rate and lift fields on paper, a big number, a status line, 3 + 2 tiles */
.tl-box { display: grid; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); }
.tl-f > .tl-lab { display: block; }
.tl-f > .tl-lab .tl-i { margin-left: 6px; vertical-align: -3px; }
.tl-sub, .tl-opt-l { color: var(--graphite); }
.tl-unit { position: relative; display: block; }
.tl-unit input { padding-right: 40px; }
.tl-unit i { position: absolute; top: 50%; right: 14px; translate: 0 -50%; font: 500 14px var(--f-body); font-style: normal; color: var(--fog); pointer-events: none; }
.tl-lift-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tl-box .tl-unit { max-width: 170px; }
.tl-lift-row .tl-unit { flex: 1 1 130px; }
.tl-lift .tl-unit input { padding-right: 64px; }
.tl-live { font-size: 14px; color: var(--graphite); }
.tl-live:empty { display: none; }
.tl-adv-b { max-width: 240px; padding-top: 6px; }
.tl-big { font-size: 17px; line-height: 1.3; color: var(--graphite); }
.tl-big b { margin-right: 4px; font: 600 clamp(36px, 3.6vw, 48px)/1.05 var(--f-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-big > span { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tl-verdict-s { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; padding: 12px 14px; border-radius: var(--r-btn); background: var(--white); font-size: 15px; line-height: 1.5; color: var(--ink); }
.tl-verdict-s .tl-dot { width: 10px; height: 10px; translate: 0 0; }
.tl-verdict-s a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tl-ss.is-ok .tl-dot { background: var(--up); box-shadow: 0 0 0 4px rgba(31, 138, 91, .15); }
.tl-ss.is-long .tl-dot { background: #E0A100; box-shadow: 0 0 0 4px rgba(224, 161, 0, .18); }
.tl-ss.is-over .tl-dot { background: var(--down); box-shadow: 0 0 0 4px rgba(214, 69, 61, .15); }
.tl-ss .tl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-limits { max-width: 760px; margin-top: var(--space-l); color: var(--graphite); }
.tl-limits b { color: var(--ink); }
.tl-more { display: flex; flex-wrap: wrap; gap: 0 var(--space-m); margin-top: var(--space-m); }
@media (max-width: 640px) {
  .tl-box { padding: 14px; }
  .tl-ss .tl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-ss .tl-tile:last-child { grid-column: 1 / -1; }
  .tl-verdict-s, .tl-live { font-size: 16px; }
  .tl-calc { padding: 6px; }
  .tl-in { padding: 12px 10px 14px; }
  .tl-ver { padding: 14px; }
  .tl-out { padding: 18px 14px; }
  .tl-seg button, .tl-add, .tl-adv summary, .tl-rm { min-height: 44px; }
  .tl-why { font-size: 16px; }
  .tl-srm { font-size: 15px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Live demo form (/live-demo/): a white card on a sky panel, one step at a time. Behaviour: site.js demoGate() ---------- */
.dg-hero .hero-top.split { align-items: start; }
.dg-panel { padding: var(--space-inset-s); }
.dg { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-win); }
.dg-s { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dg-s[hidden], .dg-msg[hidden], .dg-cap[hidden] { display: none; }
.dg-s legend { padding: 0; margin-bottom: 4px; }
.dg-s .tl-f { font-size: 14px; }
.dg .tl-f input { font-family: var(--f-body); font-weight: 400; }
.dg .tl-err { margin-top: -8px; }
.dg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
.dg-acts [data-back] { margin-left: auto; }
.dg-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 2px; font-size: 14px; line-height: 1.45; color: var(--graphite); cursor: pointer; }
.dg-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.dg-check input:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; }
.dg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dg-msg { font-size: 15px; color: var(--ink); }
.dg-msg.is-err { color: var(--down); }
.dg-priv { padding-top: 12px; border-top: 1px solid var(--line); color: var(--graphite); }
.dg.is-busy .dg-s { opacity: .55; pointer-events: none; }
@media (max-width: 640px) {
  .dg { padding: 18px 16px; }
  .dg-acts .btn { flex: 1 1 auto; min-height: 44px; }
  .dg-acts [data-back] { flex: 0 0 auto; margin-left: 0; }
}

/* Phones and tablets: every tap target is at least 44px tall (switchers, chips and the few links that stand alone) */
@media (max-width: 1000px) {
  .seg button, .chip { min-height: 44px; }
  .post-meta .link, .row > .link, .fi-head h3 a, .smap-col h2 a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Cookie choice: one quiet line in a small card, bottom left, shown after load to UK/EU visitors who haven't
   chosen (and to anyone from Cookie settings). Reject and Accept are the same button (ICO: equal prominence). While it's
   open, html.cc-open keeps focused fields clear of it (WCAG 2.4.11). Markup: CONSENT_BOX; behaviour: site.js consent(). ---------- */
.cc { position: fixed; z-index: 48; left: var(--space-m); bottom: var(--space-m); max-width: calc(100% - 2 * var(--space-m));
  display: flex; align-items: center; gap: var(--space-m); padding: 8px 8px 8px 18px; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); font-size: 15px; line-height: 1.4; }
.cc[hidden] { display: none; }
.cc-t { margin: 0; }
.cc-t a { margin-left: 4px; color: var(--graphite); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap; }
.cc-t a:hover { color: var(--ink); text-decoration-color: currentColor; }
.cc-b { display: flex; flex: none; gap: 6px; }
html.cc-open { scroll-padding-bottom: 96px; }
.pv-table { margin: var(--space-m) 0; font-size: 16px; line-height: 1.5; }

/* Cookie choice on phones: a slim bar inside the gutter: the line, then the two buttons side by side, 44px tall */
@media (max-width: 640px) {
  .cc { left: var(--gutter); right: var(--gutter); bottom: 12px; max-width: none; flex-wrap: wrap; gap: 10px; padding: 12px; }
  .cc-t { flex: 1 1 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 0; white-space: nowrap; }
  .cc-t a { margin-left: 0; }
  .cc-b { flex: 1 1 100%; }
  .cc-b .btn { flex: 1; min-height: 44px; }
  html.cc-open { scroll-padding-bottom: 140px; }
}
@media (max-width: 1000px) { .foot .link { min-height: 44px; } }

/* Install guides (/install/): the hero sketch of where the Cuttl Tag goes (.ins-pic, same drawing style as .ihp, larger),
   numbered steps in prose, and code boxes (.codebox: file name, Copy button, the code) */
.ins-pic { padding: var(--space-m) var(--space-m) 0; }
.ins-w { display: flex; flex-direction: column; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--white); min-height: 260px; }
.ins-top { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ins-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.ins-path { margin-left: var(--space-2xs); font: 500 12px/1.3 var(--f-body); color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-c { display: flex; flex-direction: column; gap: 12px; padding: var(--space-s) var(--space-m) var(--space-m); }
.ins-file { font: 600 13px/1.3 var(--f-mono); color: var(--ink); }
.ins-field { display: flex; flex-direction: column; gap: 10px; }
.ins-field > b { font: 600 13px/1.3 var(--f-body); color: var(--ink); }
.ins-tx { font: 500 12.5px/1.4 var(--f-mono); color: var(--graphite); }
.ins-l { display: block; width: var(--w); height: 7px; border-radius: 4px; background: var(--sand); }
.ins-k { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin-top: 10px; border-radius: 5px; background: var(--paper); outline: 1.5px dashed #C98A2E; outline-offset: 3px; }
.ins-k .ins-tx { color: var(--ink); }
.ins-k > em { position: absolute; top: -15px; right: 8px; padding: 2px 8px; border-radius: 4px; background: #FFF2D6; color: #7A4A00; font: 600 12px/1.3 var(--f-body); font-style: normal; white-space: nowrap; }
.ins-btn { align-self: flex-start; display: grid; place-items: center; height: 26px; padding: 0 12px; border-radius: 5px; background: var(--ink); color: var(--white); font: 600 12px/1 var(--f-body); }
.prose .nlist { padding-left: 0; }
.nlist > li { min-width: 0; }   /* a code box scrolls inside its step instead of widening the list */
.prose .nlist li + li { margin-top: 0; }
.prose .nlist .codebox { margin: var(--space-s) 0 0; }
.codebox { margin: 0 0 var(--space-m); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.cb-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-s); border-bottom: 1px solid var(--line); background: var(--paper); }
.codebox pre { margin: 0; padding: var(--space-s); overflow-x: auto; font: 500 13.5px/1.6 var(--f-mono); color: var(--ink); tab-size: 2; }
.prose .codebox code { font: inherit; background: none; padding: 0; border-radius: 0; }
.ins-more { display: flex; flex-wrap: wrap; gap: 0 var(--space-m); }
@media (max-width: 1000px) { .cb-h .btn { min-height: 44px; } }
