/* editkit.tools v4
   The original site's look (cream paper, Bricolage, terracotta, blue for
   anything you can press) carrying v2's page structure and v3's timeline
   reader. Tokens below are the original design system's, unchanged. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/Bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face { font-family: 'Inter'; src: url('../fonts/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* Paper and ink */
  --bg:         #F7F6F2;
  --bg-raised:  #EFEDE8;
  --card:       #FFFFFF;
  --bg-dark:    #1A1917;
  --ink:        #18171A;
  --ink-2:      #3A3835;
  --ink-3:      #6B6762;
  --border:     #D8D5CE;
  --hair:       rgba(24, 23, 26, .08);

  /* Blue is for things you can press. Terracotta is atmosphere only. */
  --accent:       #2563EB;
  --accent-hover: #1D4ED8;
  --terra:        #B94B2D;
  --terra-3:      #C35A38;
  --amber:        #A87538;

  /* One colour per tool, as in the app. */
  --sheet:  #1E40AF;  --sheet-bg:  #EFF6FF;
  --gather: #15803D;  --gather-bg: #F0FDF4;
  --dupe:   #6D28D9;  --dupe-bg:   #F5F3FF;

  /* Match kinds, as in the app. */
  --k-exact:   #DC2626;
  --k-partial: #B94B2D;
  --k-prox:    #1D4ED8;

  /* The dark app window and its track colours. */
  --win:      #1F1F23;
  --win-bar:  #2A2A2E;
  --win-line: rgba(255, 255, 255, .09);
  --win-text: #ECEAE6;
  --win-dim:  #9B9893;
  --tl-lane:  #28282D;
  --tl-v:     #34A065;
  --tl-a:     #D9B548;
  --tl-g:     #7BA9FF;
  --tl-d:     #C4A8FF;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ui:      'Inter', system-ui, sans-serif;
  --mono:    'Plex Mono', 'SF Mono', Menlo, ui-monospace, Consolas, monospace;

  --pad:       clamp(1.1rem, 4vw, 4rem);
  --radius:    10px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(24,23,26,.07), 0 1px 2px rgba(24,23,26,.04);
  --shadow-md: 0 4px 16px rgba(24,23,26,.09), 0 2px 6px rgba(24,23,26,.05);
  --shadow-win: 0 2px 4px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.10), 0 32px 72px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.win :focus-visible { outline-color: #8AB4FF; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 0; }

h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.7vw, 2.75rem);
  line-height: 1.03; letter-spacing: -.03em;
  color: var(--ink); text-wrap: balance;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow.terra { color: var(--terra); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 500; line-height: 1; white-space: nowrap;
  padding: .78rem 1.4rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.3); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a282c; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,255,255,.5); color: var(--ink-2); border-color: var(--border); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: var(--bg-raised); }

/* ── Paper background ────────────────────────────────────────────────────
   The original's "letterpress" field, to its numbers: dots of 0.85px radius
   on an 8px grid, each tinted by a hidden colour wheel centred at 50% / 44%
   of the window (red at the top, hue running clockwise) at 38% saturation,
   66% lightness and 22% opacity, under a faint vignette. Within 90px of the
   cursor the dots swell to 1.3px and ink up to 60% / 60% at 77% opacity,
   falling off with the square of the distance, and the ink fades behind the
   cursor over about three seconds.

   The original drew every dot on a canvas, every frame. Here nothing is
   drawn in script. The field is a CSS gradient cut by a mask and painted
   once. The ink under the cursor is the same field, inked, seen through a
   small round window that follows the cursor by transform alone. The trail
   is a few small patches left along the path, each painted once and faded
   by the compositor. */
:root {
  --wheel-rest: hsl(0 38% 66% / .22), hsl(30 38% 66% / .22), hsl(60 38% 66% / .22), hsl(90 38% 66% / .22), hsl(120 38% 66% / .22), hsl(150 38% 66% / .22), hsl(180 38% 66% / .22), hsl(210 38% 66% / .22), hsl(240 38% 66% / .22), hsl(270 38% 66% / .22), hsl(300 38% 66% / .22), hsl(330 38% 66% / .22), hsl(360 38% 66% / .22);
  --wheel-ink: hsl(0 60% 60%), hsl(30 60% 60%), hsl(60 60% 60%), hsl(90 60% 60%), hsl(120 60% 60%), hsl(150 60% 60%), hsl(180 60% 60%), hsl(210 60% 60%), hsl(240 60% 60%), hsl(270 60% 60%), hsl(300 60% 60%), hsl(330 60% 60%), hsl(360 60% 60%);
  --wheel-trail: hsl(0 44% 64%), hsl(30 44% 64%), hsl(60 44% 64%), hsl(90 44% 64%), hsl(120 44% 64%), hsl(150 44% 64%), hsl(180 44% 64%), hsl(210 44% 64%), hsl(240 44% 64%), hsl(270 44% 64%), hsl(300 44% 64%), hsl(330 44% 64%), hsl(360 44% 64%);
  --emboss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M3 3.8a1 1 0 0 1 2 0' fill='none' stroke='white' stroke-opacity='.3'/%3E%3Cpath d='M3 4.2a1 1 0 0 0 2 0' fill='none' stroke='%2318171A' stroke-opacity='.07'/%3E%3C/svg%3E");
  --press: rgba(0,0,0,0.705) 0%, rgba(0,0,0,0.571) 10%, rgba(0,0,0,0.451) 20%, rgba(0,0,0,0.345) 30%, rgba(0,0,0,0.254) 40%, rgba(0,0,0,0.176) 50%, rgba(0,0,0,0.113) 60%, rgba(0,0,0,0.063) 70%, rgba(0,0,0,0.028) 80%, rgba(0,0,0,0.007) 90%, rgba(0,0,0,0.000) 100%;
}
.paper {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(24,23,26,0) 30vmin, rgba(24,23,26,.025) 85vmax), var(--bg);
}
.paper-rest {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at 50% 44%, var(--wheel-rest));
  -webkit-mask: radial-gradient(circle at 4px 4px, #000 .45px, transparent 1.2px) 0 0 / 8px 8px repeat;
          mask: radial-gradient(circle at 4px 4px, #000 .45px, transparent 1.2px) 0 0 / 8px 8px repeat;
}
/* The patch under the cursor. It holds two round windows: one onto the
   inked field, one onto the emboss (a lit top edge and a shaded foot on each
   dot, which the original draws on any dot that is pressed at all). Each
   field is moved the opposite way to the patch, so the dots stay put while
   the windows travel. */
.paper-head {
  position: absolute; left: 0; top: 0; width: 180px; height: 180px;
  transform: translate3d(-999px, -999px, 0);
  will-change: transform, opacity;
  opacity: 0; transition: opacity 1.4s ease-out;
}
.paper-head.live { opacity: 1; transition-duration: .2s; }
.paper-win { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.win-ink {
  -webkit-mask-image: radial-gradient(closest-side, var(--press));
          mask-image: radial-gradient(closest-side, var(--press));
}
.win-emboss {
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 80%);
          mask-image: radial-gradient(closest-side, #000 70%, transparent 80%);
}
.paper-ink, .paper-emboss { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; will-change: transform; }
.paper-ink {
  background: conic-gradient(from 0deg at 50% 44%, var(--wheel-ink));
  -webkit-mask: radial-gradient(circle at 4px 4px, #000 1px, transparent 1.6px) 0 0 / 8px 8px repeat;
          mask: radial-gradient(circle at 4px 4px, #000 1px, transparent 1.6px) 0 0 / 8px 8px repeat;
}
.paper-emboss { background: var(--emboss) 0 0 / 8px 8px repeat; }
/* One patch of the trail. Its corner sits on the 8px grid so its dots land
   on the field's; --x and --y say where it is, so its slice of the wheel
   matches, and --cx / --cy put the press where the cursor actually was. */
.stamp { position: absolute; left: 0; top: 0; width: 184px; height: 184px; opacity: 0; will-change: opacity; }
.stamp b {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at calc(50vw - var(--x)) calc(44vh - var(--y)), var(--wheel-trail));
  -webkit-mask-image: radial-gradient(circle at 4px 4px, #000 1px, transparent 1.6px), radial-gradient(circle 90px at var(--cx) var(--cy), var(--press));
  -webkit-mask-size: 8px 8px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(circle at 4px 4px, #000 1px, transparent 1.6px), radial-gradient(circle 90px at var(--cx) var(--cy), var(--press));
          mask-size: 8px 8px, 100% 100%;
          mask-repeat: repeat, no-repeat;
          mask-composite: intersect;
}
.stamp u {
  position: absolute; inset: 0; opacity: .5;
  background: var(--emboss) 0 0 / 8px 8px repeat;
  -webkit-mask-image: radial-gradient(circle 62px at var(--cx) var(--cy), #000 80%, transparent 100%);
          mask-image: radial-gradient(circle 62px at var(--cx) var(--cy), #000 80%, transparent 100%);
}
/* No cursor, no ink: touch screens get the field at rest, as on the original. */
@media (hover: none), (pointer: coarse) { .paper-head, .stamp { display: none; } }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 242, .93);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(247, 246, 242, .97); }
.nav-inner { display: flex; align-items: center; gap: 1.2rem; height: 60px; }
.brand { display: flex; align-items: center; flex: none; }
.ek-logo { height: 33px; width: auto; }
.ek-mark-bg { fill: #1E1E1E; }
.ek-word { fill: var(--ink); }
/* The nav logo plays: its clips scroll past the playhead. Each strip is 72
   logo units of pattern wider than its window and slides by exactly that. */
.ek-live { position: relative; display: block; aspect-ratio: 182 / 44; }
.ek-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.ek-clip { position: absolute; overflow: hidden; }
.ek-clip-mark { left: 5.4945%; top: 29.5455%; width: 13.1868%; height: 31.8182%; }
.ek-clip-line { left: 5.4945%; top: 68.1818%; width: 92.3077%; height: 9.0909%; }
.ek-strip { display: block; height: 100%; max-width: none; will-change: transform; }
.ek-clip-mark .ek-strip { width: 591.667%; animation: ekMark 6s linear infinite -2s; }
.ek-clip-line .ek-strip { width: 144.048%; animation: ekLine 6s linear infinite -2s; }
@keyframes ekMark { to { transform: translateX(-50.7042%); } }
@keyframes ekLine { to { transform: translateX(-29.7521%); } }
.nav-links { display: flex; gap: .1rem; margin-left: .9rem; }
.nav-links a { font-size: .92rem; color: var(--ink-2); padding: .45rem .75rem; border-radius: 6px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(24,23,26,.05); }
.nav-spacer { flex: 1; }
.nav-tc { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nav-download { padding: .62rem 1.1rem; }
.nav-burger { display: none; border: 0; background: transparent; color: var(--ink); padding: 6px; margin: -6px -6px -6px 0; border-radius: 8px; }
.nav-burger:hover { background: rgba(24,23,26,.06); }
.nav-menu { display: flex; flex-direction: column; border-top: 1px solid var(--border); background: rgba(247,246,242,.98); padding: .3rem 0; }
.nav-menu a { padding: .8rem var(--pad); font-size: 1rem; color: var(--ink-2); border-bottom: 1px solid var(--hair); }
.nav-menu a:last-child { border-bottom: 0; }
/* The page's own playhead: how far down you are. */
.playbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.playbar i { display: block; height: 100%; background: var(--terra-3); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(2.8rem, 5vw, 4.4rem) 0 clamp(2.6rem, 5vw, 4rem); }
.hero-bloom {
  position: absolute; inset: 0 0 auto 0; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 52% 62% at 50% 34%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 70%);
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: .94; letter-spacing: -.035em;
  color: var(--ink); margin: 1.1rem 0; text-wrap: balance;
}
.hero-h1 em {
  font-style: italic; padding-right: .06em;
  background: linear-gradient(180deg, var(--terra-3) 0%, var(--terra) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.hero-actions { margin-top: 1.6rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 1.1rem; display: flex; gap: .55rem; flex-wrap: wrap; justify-content: center; font-size: .8rem; color: var(--ink-3); }
.hero-trust span { white-space: nowrap; }
.hero-trust i { font-style: normal; color: var(--border); }

/* ── The bench ───────────────────────────────────────────────────────── */
.bench { margin-top: clamp(2rem, 3.6vw, 3rem); }

.win {
  background: var(--win); color: var(--win-text);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-win), 0 0 0 1px rgba(0,0,0,.35);
  transition: opacity .2s;
}
.win.busy { opacity: .7; }
.win-bar { display: flex; align-items: center; gap: 1rem; height: 40px; padding: 0 .9rem; background: var(--win-bar); border-bottom: 1px solid rgba(0,0,0,.4); }
.win-dots { display: flex; gap: 7px; flex: none; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; }
.win-dots i:nth-child(1) { background: #FF5F57; }
.win-dots i:nth-child(2) { background: #FEBC2E; }
.win-dots i:nth-child(3) { background: #28C840; }
.win-dots-spacer { width: 50px; flex: none; }
.win-title { flex: 1; min-width: 0; text-align: center; font-size: .8rem; font-weight: 600; color: #D9D7D3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.win-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .7rem; padding: .7rem .95rem; border-bottom: 1px solid var(--win-line); }
.bay-meta { flex: 1 1 16rem; min-width: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .01em; color: var(--win-dim); }
.bay-meta b { color: var(--win-text); font-weight: 500; }
.pick { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--win-dim); }
.pick select {
  max-width: 15rem; background: #2E2E33; color: var(--win-text);
  border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: .3rem .5rem; font-size: .78rem;
}
.win-btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  background: #2E2E33; color: var(--win-text);
  border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
  padding: .38rem .7rem; font-size: .78rem; font-weight: 500; line-height: 1.2;
  transition: background .15s, border-color .15s;
}
.win-btn:hover { background: #38383E; border-color: rgba(255,255,255,.26); }
.win-btn--go { background: #60A5FA; border-color: #60A5FA; color: #0B1B33; font-weight: 600; }
.win-btn--go:hover { background: #8ABBFB; border-color: #8ABBFB; }
.win-btn--go:focus-within { outline: 2px solid #fff; outline-offset: 2px; }

.tl { padding: .55rem .95rem .2rem; }
.tl-ruler {
  display: flex; justify-content: space-between;
  margin-left: 34px; padding-bottom: 5px;
  font-family: var(--mono); font-size: .66rem; color: var(--win-dim); font-variant-numeric: tabular-nums;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 1px, transparent 1px 12.5%) 0 100% / 100% 4px no-repeat;
}
.tl-ruler span:last-child { text-align: right; }
.tl-body { display: flex; }
.tl-labels { position: relative; width: 34px; flex: none; font-family: var(--mono); font-size: .62rem; color: var(--win-dim); }
.tl-labels span { position: absolute; left: 0; display: flex; align-items: center; }
.tl-stage { position: relative; flex: 1; min-width: 0; cursor: crosshair; touch-action: pan-y; }
.tl-stage canvas { width: 100%; }
.tl-head {
  position: absolute; top: -9px; bottom: -3px; left: 0; width: 0;
  border-left: 1.5px solid #fff; pointer-events: none;
  opacity: 0; transition: opacity .15s; will-change: transform;
}
.tl-head::before { content: ''; position: absolute; left: -5.5px; top: 0; border: 5px solid transparent; border-top: 6px solid #fff; border-bottom: 0; }
.tl-head.on { opacity: 1; }
.tl-tip {
  position: absolute; left: 8px; top: -2px; white-space: pre;
  background: #fff; color: var(--ink); border-radius: 4px; padding: 2px 7px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500; line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  max-width: 60vw; overflow: hidden; text-overflow: ellipsis;
}
.tl-head.flip .tl-tip { left: auto; right: 8px; }
.tl-tip:empty { display: none; }
.tl-stage.pending canvas { clip-path: inset(0 100% 0 0); }

.win-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.2rem; padding: .6rem .95rem .7rem; font-size: .74rem; color: var(--win-dim); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.sw { width: 14px; height: 8px; border-radius: 2px; }
.sw-v { background: var(--tl-v); }
.sw-a { background: var(--tl-a); }
.sw-g { background: var(--tl-g); }
.sw-d { background: var(--tl-v); box-shadow: inset 0 3px 0 var(--tl-d); }
.bay-msg { display: none; margin: 0; padding: .65rem .95rem; border-top: 1px solid var(--win-line); background: #2A2620; color: #F3D9A4; font-size: .84rem; line-height: 1.5; }
.bay-msg.on { display: block; }

/* Three answers from the one cut. Same tray and cards as the original's
   mode switcher; each card leads to its section. */
.outs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 14px auto 0; padding: 6px;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.mode--sheet  { --tool: var(--sheet);  --tool-bg: var(--sheet-bg); }
.mode--gather { --tool: var(--gather); --tool-bg: var(--gather-bg); }
.mode--dupe   { --tool: var(--dupe);   --tool-bg: var(--dupe-bg); }
.out {
  position: relative; display: flex; flex-direction: column;
  padding: 1rem 1.15rem 1.05rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.out::before { content: ''; position: absolute; top: 0; left: 1.15rem; right: 1.15rem; height: 2px; border-radius: 2px; background: var(--tool); }
/* A short lead from the window down to each card. */
.out::after { content: ''; position: absolute; left: 50%; top: -21px; width: 2px; height: 14px; margin-left: -1px; background: var(--tool); border-radius: 1px; opacity: .55; }
.out:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--tool); }
.out-head { display: flex; align-items: center; gap: .5rem; }
.pip { width: 9px; height: 9px; border-radius: 50%; background: var(--tool); box-shadow: 0 0 0 3px var(--tool-bg); }
.out-head b { font-family: var(--display); font-weight: 800; font-size: 1.04rem; letter-spacing: -.01em; color: var(--tool); }
.out-count { margin-top: .55rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 1.9vw, 1.5rem); letter-spacing: -.025em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.out-sub { margin-top: .25rem; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); transition: opacity .4s; }
.outs.counting .out-sub { opacity: 0; }
.out-desc { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--hair); font-size: .82rem; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }

.bench-note { margin: 1.1rem auto 0; max-width: 66ch; text-align: center; font-size: .92rem; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.bench-note b { color: var(--ink); font-weight: 600; }

.specs { margin-top: clamp(2.2rem, 4vw, 3.2rem); display: grid; grid-template-columns: 2.1fr 1fr 1fr; border-top: 1px solid var(--border); }
.specs > div { padding: 1.1rem 1.6rem 0 0; }
.specs > div + div { padding-left: 1.6rem; border-left: 1px solid var(--border); }
.specs dt { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; color: var(--ink); }
.specs dd { margin-top: .3rem; font-size: .9rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ── Sections ────────────────────────────────────────────────────────── */
.tool, .band { position: relative; padding: clamp(3.2rem, 6.5vw, 5.5rem) 0; border-top: 1px solid var(--border); }

.tool-tag {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem;
  font-family: var(--display); font-weight: 800; font-size: .84rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--tool);
}
.tool-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tool); box-shadow: 0 0 0 4px var(--tool-bg); }
.tool-copy > p { max-width: 54ch; text-wrap: pretty; }
.tool-copy h2 { margin-bottom: 1.1rem; }

.tool-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.tool-head .tool-copy { padding-top: calc(.84rem * 1.65 + 1.1rem); }
.tool-head .stats { margin-top: 1.8rem; }
.tool-split .stats dt { font-size: 1.35rem; }
.tool-split .stats { gap: 1rem 1.8rem; }
.tool-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
.tool-split--flip > .tool-copy { order: 2; }
.tool-split--flip > .mock { order: 1; }
.tool-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.stats dt { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.025em; line-height: 1; color: var(--ink); }
.stats dd { margin-top: .45rem; font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.aside { margin-top: 1.3rem; font-size: .92rem; line-height: 1.6; color: var(--ink-3); }

.more {
  display: inline-block; margin-top: 1.4rem;
  font-weight: 600; font-size: .95rem; color: var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0% 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .4s cubic-bezier(.16, 1, .3, 1);
}
.more:hover { background-size: 100% 1.5px; }

.kinds { margin-top: 1.5rem; border-top: 1px solid var(--border); }
.kinds > div { display: grid; grid-template-columns: 5.6rem 1fr; gap: .9rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.kinds dd { font-size: .94rem; line-height: 1.5; }
.kind, .chip {
  display: inline-block; border-radius: 999px; padding: .2em .7em;
  font-size: .72rem; font-weight: 700; line-height: 1.5; letter-spacing: .01em; color: #fff; white-space: nowrap;
}
.pair-row .kind, .repeats .kind { justify-self: start; font-family: var(--ui); }
.k-exact { background: var(--k-exact); }
.k-partial { background: var(--k-partial); }
.k-prox { background: var(--k-prox); }

/* ── Mocks: light panels in the app's light theme ────────────────────── */
.mock {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; min-width: 0;
}
.mock-bar { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: .45rem .8rem; background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.led { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--tool); box-shadow: 0 0 0 3px var(--tool-bg); }
.mock-title { flex: 1; min-width: 0; font-size: .82rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-meta { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); text-align: right; }
.mock-go { flex: none; border: 0; border-radius: 6px; padding: .45rem .85rem; background: var(--tool); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.2; transition: filter .15s, opacity .15s; }
.mock-go:hover { filter: brightness(1.12); }
.mock-go:disabled { opacity: .55; cursor: default; }
.mock-foot { padding: .6rem .85rem; background: var(--bg-raised); border-top: 1px solid var(--border); font-size: .78rem; line-height: 1.5; color: var(--ink-3); }
.mock-foot:empty { display: none; }
.mock-empty { padding: 1.6rem 1.2rem; font-size: .92rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }

.seg { display: inline-flex; flex: none; gap: 2px; padding: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.seg button { border: 0; background: transparent; border-radius: 6px; padding: .28rem .62rem; font-size: .74rem; font-weight: 500; line-height: 1.3; color: var(--ink-3); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; font-weight: 600; }

/* Sheet: the workbook */
.book-tools { display: flex; align-items: center; gap: .8rem; padding: .5rem .8rem; border-bottom: 1px solid var(--border); background: var(--card); }
.book-filter { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .34rem .6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; color: var(--ink-3); }
.book-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.book-filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .84rem; color: var(--ink); }
.book-filter input::placeholder { color: var(--ink-3); }
.book-count { flex: none; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.book-grow { flex: none; border: 1px solid var(--border); border-radius: 7px; background: var(--card); padding: .3rem .65rem; font-size: .76rem; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.book-grow:hover { border-color: var(--ink); color: var(--ink); }

.book-page, .repeats { overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(128,128,128,.45) transparent; }
.book-page { height: 372px; background: var(--card); transition: height .3s ease; }
.book.tall .book-page { height: min(80vh, 920px); }
.book-page::-webkit-scrollbar, .repeats::-webkit-scrollbar { width: 8px; height: 8px; }
.book-page::-webkit-scrollbar-thumb, .repeats::-webkit-scrollbar-thumb { background: rgba(128,128,128,.45); border-radius: 4px; }
.repeats { max-height: 468px; }
.book-page table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--mono); font-size: .74rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.book-page th, .book-page td { padding: .42rem .7rem; text-align: left; white-space: nowrap; }
.book-page td { max-width: 24rem; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.book-page th { position: sticky; top: 0; z-index: 1; font-family: var(--ui); font-weight: 600; font-size: .72rem; }
.trk { display: inline-block; min-width: 2.1rem; text-align: center; border-radius: 4px; padding: .08rem .3rem; font-weight: 600; font-size: .68rem; color: #1B6B3F; background: rgba(27,107,63,.11); }
.trk.a { color: #8A6D1F; background: rgba(196,158,43,.16); }
.trk.g { color: #1E40AF; background: rgba(30,64,175,.10); }
.none-row td { padding: 2.2rem 1rem; text-align: center; font-family: var(--ui); font-size: .9rem; color: var(--ink-3); }

/* XLSX: the export's own header blue and track tints, with row numbers. */
.f-xlsx th { background: #366092; color: #fff; border-right: 1px solid rgba(255,255,255,.2); }
.f-xlsx td { border-right: 1px solid #E4E2DC; border-bottom: 1px solid #E4E2DC; }
.f-xlsx th.rn, .f-xlsx td.rn { width: 2.6rem; padding-left: .4rem; padding-right: .4rem; text-align: center; font-family: var(--ui); font-size: .68rem; color: var(--ink-3); background: #F1EFEA; border-right: 1px solid #D8D5CE; }
.f-xlsx th.rn { background: #E7E4DD; }
.f-xlsx tr.v td:not(.rn) { background: #E7F3E7; }
.f-xlsx tr.a td:not(.rn) { background: #FFF2CC; }
.f-xlsx tr.g td:not(.rn) { background: #CCE5FF; }
.f-xlsx .trk { background: transparent; padding: 0; min-width: 0; }

/* PDF: a page on a desk. */
.book-page.f-pdf { background: #E9E6E0; padding: 1.2rem; }
.pdf-sheet { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08); padding: 1.5rem 1.6rem 1.2rem; min-width: min-content; }
.pdf-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.pdf-sub { margin: .3rem 0 1rem; font-size: .76rem; color: var(--ink-3); }
.f-pdf th { position: static; padding-left: 0; border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.f-pdf td { padding-left: 0; border-bottom: 1px solid #ECEAE5; font-size: .7rem; }

/* CSV: plain text. */
.book-page.f-csv { background: #FBFAF8; }
.f-csv pre { margin: 0; padding: .9rem 1rem; font-family: var(--mono); font-size: .72rem; line-height: 1.7; color: var(--ink-2); white-space: pre; }

.book-tabs { display: flex; overflow-x: auto; background: #F1EFEA; border-top: 1px solid var(--border); scrollbar-width: none; }
.book-tabs::-webkit-scrollbar { display: none; }
.book-tabs button { flex: none; border: 0; border-right: 1px solid var(--border); background: transparent; padding: .5rem .95rem; font-size: .78rem; font-weight: 500; color: var(--ink-3); }
.book-tabs button:hover { color: var(--ink); }
.book-tabs button[aria-selected="true"] { background: var(--card); color: var(--tool); font-weight: 700; box-shadow: inset 0 2px 0 var(--tool); }
.book-tabs .tabs-more { margin-left: auto; align-self: center; padding: 0 .95rem; font-size: .74rem; color: var(--ink-3); white-space: nowrap; }

/* Gather: the plan */
.plan { display: grid; grid-template-columns: 1fr 1fr; }
.plan-col { min-width: 0; }
.plan-col + .plan-col { border-left: 1px solid var(--border); }
.plan-col h3 { padding: .6rem .85rem; font-family: var(--ui); font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--border); background: var(--bg); }
.plan-col li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 .7rem; align-content: center; align-items: baseline; height: 54px; padding: 0 .85rem; overflow: hidden; border-bottom: 1px solid var(--hair); font-size: .8rem; line-height: 1.4; }
.plan-col li:last-child { border-bottom: 0; }
.plan-col li b { font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-col li em { font-style: normal; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); white-space: nowrap; }
.plan-col li .path { grid-column: 1 / -1; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); overflow-wrap: anywhere; }
.plan-col li .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; transition: opacity .5s .25s; }
.plan-col li[data-s="done"] .bar, .plan-col li[data-s="skip"] .bar { opacity: 0; }
.plan-col li .bar i { display: block; height: 100%; background: var(--gather); transform: scaleX(0); transform-origin: 0 50%; }
.plan-col li[data-s="copy"] em, .plan-col li[data-s="done"] em { color: var(--gather); font-weight: 600; }
.plan-col li[data-s="skip"] em { color: var(--ink-3); }
.plan-col li[data-s="off"] b, .plan-col li[data-s="off"] .path { text-decoration: line-through; text-decoration-color: rgba(185,75,45,.5); }
.plan-col li[data-s="off"] em { color: var(--terra); font-weight: 600; }

.plan-to { background: #FBFDFB; }
.plan-col li.root { display: flex; gap: .55rem; align-items: center; height: 42px; background: var(--bg); }
.plan-col li.root svg { flex: none; color: var(--ink-3); }
.plan-col li.root b { flex: 1; }
.plan-to li.root { background: var(--gather-bg); }
.plan-to li.root svg { color: var(--gather); }
.plan-to li.in { align-items: center; padding-left: 1.5rem; font-family: var(--mono); font-size: .72rem; color: var(--ink); opacity: .5; transition: opacity .35s; }
.plan-to li.in span { min-width: 0; overflow-wrap: anywhere; }
.plan-to li.in em::before { content: ''; }
.plan-to li.in.there { opacity: 1; }
.plan-to li.in.there em { color: var(--gather); font-weight: 600; }
.plan-to li.in.there em::before { content: '✓ '; }
.plan-to li.in.fresh { background: var(--gather-bg); }
.plan-to li.in.wait em { color: var(--terra); }

/* Dupe: the series matrix and the list inside one cut */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .6rem .85rem; border-bottom: 1px solid var(--border); font-size: .78rem; color: var(--ink-3); }
.chips span { margin-right: .2rem; }
.chip { border: 0; cursor: pointer; transition: opacity .15s, filter .15s; }
.chip:hover { filter: brightness(1.1); }
.chip[aria-pressed="false"] { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--border); }

.matrix { display: grid; grid-template-columns: 2.2rem repeat(6, minmax(0, 1fr)); gap: 4px; padding: .85rem .85rem 1rem; }
.matrix .ax { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .68rem; color: var(--ink-3); }
.cell {
  aspect-ratio: 1.75; min-height: 34px; border: 0; border-radius: 5px;
  background: rgba(109, 40, 217, var(--a, .08)); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
  transition: box-shadow .15s, transform .15s;
}
button.cell:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(109,40,217,.45); }
.cell.deep { color: #fff; }
.cell.void { background: var(--bg-raised); opacity: .7; }
.cell[aria-pressed="true"], button.cell[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); transform: none; }

.pair { border-top: 1px solid var(--border); padding: .8rem .85rem .9rem; }
.pair-title { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.015em; color: var(--ink); margin-bottom: .45rem; }
.pair-row { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto auto; gap: .8rem; align-items: center; padding: .34rem 0; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: .7rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pair-row .nm { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-none { padding-top: .45rem; font-size: .8rem; color: var(--ink-3); }

.repeats li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .15rem .8rem; align-items: baseline; padding: .7rem .85rem; border-bottom: 1px solid var(--hair); }
.repeats li:last-child { border-bottom: 0; }
.repeats li b { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.repeats li span:not(.kind) { grid-column: 2; font-size: .8rem; line-height: 1.5; color: var(--ink-3); }
.repeats li.rest { display: block; font-size: .8rem; color: var(--ink-3); }

/* ── App preview ─────────────────────────────────────────────────────── */
.app-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.app-head p { max-width: 54ch; margin-bottom: .9rem; text-wrap: pretty; }
.appwin { height: 660px; border-radius: 10px; overflow: hidden; background: #1E1E22; box-shadow: var(--shadow-win); }
.appwin iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── The maker ───────────────────────────────────────────────────────── */
.maker-eyebrow { display: flex; align-items: center; gap: .8rem; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.maker-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--terra-3); }
.maker-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: 1.4rem; }
.maker-head { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: .92; letter-spacing: -.035em; }
.maker-head em { font-style: italic; color: var(--terra); }
.maker-note { display: grid; gap: 1.05rem; max-width: 46ch; }
.maker-note .lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.maker-note p { line-height: 1.7; text-wrap: pretty; }
.maker-sign { margin-top: .4rem; }
.maker-sign .name { display: inline-block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.85rem; letter-spacing: -.02em; line-height: 1; color: var(--ink); padding-bottom: .4rem; border-bottom: 2px solid var(--terra-3); }
.maker-sign .role { display: block; margin-top: .75rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.maker-promise { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.maker-promise::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); flex: none; }
.maker-promise a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.maker-credits { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.8rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.credits-main { position: relative; padding-left: 30px; }
/* 35mm perforations down the edge, as on the original. */
.credits-main::before {
  content: ''; position: absolute; left: 0; top: .1rem; bottom: .2rem; width: 12px; opacity: .16;
  background-image: linear-gradient(var(--ink) 0 0), radial-gradient(circle, var(--bg) 38%, transparent 40%);
  background-size: 1px 100%, 12px 13px; background-position: 5px 0, 0 0; background-repeat: no-repeat, repeat-y;
}
.credits-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem; }
.credits-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem; }
.credits-row img { height: 38px; width: auto; filter: grayscale(1); opacity: .55; transition: filter .25s, opacity .25s; }
.credits-row img:hover { filter: none; opacity: 1; }
.maker-cta { margin-top: 2rem; display: inline-grid; gap: .55rem; }
.maker-cta .cta-main { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.15; color: var(--accent); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .4s cubic-bezier(.16, 1, .3, 1); }
.maker-cta:hover .cta-main { background-size: 100% 1.5px; }
.maker-cta .cta-url { display: inline-flex; align-items: center; gap: .85rem; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); transition: gap .4s cubic-bezier(.16, 1, .3, 1); }
.maker-cta:hover .cta-url { gap: 1.5rem; }
/* End credits: role on the left, name on the right, meeting at a centre gutter. */
.roll { display: grid; gap: .5rem; max-width: 46ch; }
.roll > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: baseline; }
.roll dt { text-align: right; font-size: .84rem; color: var(--ink-3); }
.roll dd { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink); }

/* ── Free tools ──────────────────────────────────────────────────────── */
.tools-head { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.tools-head h2 { margin-top: .8rem; }
.tools-head p:not(.eyebrow):not([class^="calc"]) { margin-top: .7rem; max-width: 48ch; }
.calc { background: var(--win); color: var(--win-text); border-radius: 12px; padding: 1.05rem 1.1rem 1rem; box-shadow: var(--shadow-md); }
.calc-title { font-size: .82rem; font-weight: 600; margin-bottom: .7rem; color: #D9D7D3; }
.calc-row { display: flex; gap: .45rem; margin-bottom: .45rem; }
.calc input, .calc select { background: #2E2E33; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: .5rem .65rem; color: var(--win-text); }
.calc input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.calc select { flex: none; width: 6.4rem; font-size: .84rem; }
.calc-out { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid var(--win-line); font-size: .78rem; color: var(--win-dim); }
.calc-out output { font-family: var(--mono); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: .02em; color: var(--tl-a); font-variant-numeric: tabular-nums; }
.calc-note { min-height: 1.2em; margin-top: .25rem; font-size: .76rem; color: #F3D9A4; }

.tools-list { border-top: 1px solid var(--border); }
.tools-list li { border-bottom: 1px solid var(--border); }
.tool-row { display: grid; grid-template-columns: 36px 130px minmax(140px, 1fr) minmax(280px, 2fr) 24px; align-items: baseline; gap: 1.5rem; padding: 1.1rem .4rem; color: var(--ink); transition: padding .2s ease, background .2s ease; }
.tool-row:hover { padding-left: 1.1rem; padding-right: 1.1rem; background: rgba(255,255,255,.7); }
.tool-row .num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.tool-row .cmd { font-family: var(--mono); font-size: 11.5px; color: var(--terra); letter-spacing: .02em; }
.tool-row .nm { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -.025em; line-height: 1.1; }
.tool-row .desc { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.tool-row .open { justify-self: end; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink-3); transition: color .2s, transform .2s; }
.tool-row:hover .open { color: var(--accent); transform: translateX(3px); }
.tool-row:hover .nm { color: var(--accent); }
.mac-badge { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .5rem; font-family: var(--ui); font-weight: 600; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: var(--terra); background: rgba(185,75,45,.10); border: 1px solid rgba(185,75,45,.22); padding: .25em .55em; border-radius: 999px; }
.tool-row:hover .mac-badge { color: var(--terra); }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.price-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; margin: 1.3rem 0 1.6rem; padding-bottom: 1.7rem; border-bottom: 1px solid var(--border); }
.price-pair { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.4rem); align-items: flex-start; }
.price-opt { padding: clamp(.9rem, 2vw, 1.3rem) clamp(1rem, 2.2vw, 1.5rem); border: 1.5px solid transparent; border-radius: var(--radius-lg); }
.price-opt--annual { border-color: var(--terra-3); background: rgba(185,75,45,.04); }
.price-opt-label { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.price-opt-label .save { color: var(--terra); }
.price-opt-figure { display: flex; align-items: baseline; gap: .5rem; }
.price-opt-figure .amount { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6.5vw, 6rem); letter-spacing: -.045em; line-height: .85; color: var(--ink); font-feature-settings: "tnum"; }
.price-opt-figure .unit { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(1.05rem, 2vw, 1.5rem); color: var(--terra); }
.price-opt-sub { margin-top: .5rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--ink-3); }
.price-aside { display: grid; gap: .6rem; padding-bottom: .4rem; }
.price-aside > div { display: flex; align-items: baseline; gap: 1rem; font-size: .9rem; }
.price-aside dt { flex: 0 0 72px; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.price-aside dd { color: var(--ink); font-weight: 500; }
.price-lede { font-size: 1.05rem; line-height: 1.6; }
.price-actions { margin-top: 1.6rem; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.price-samples { margin-left: .5rem; font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color .2s, text-decoration-color .2s; }
.price-samples:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { background: var(--bg-dark); color: rgba(255,255,255,.65); padding: clamp(2rem, 4vw, 3rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.foot-brand .ek-logo { height: 30px; }
.foot-brand .ek-mark-bg { fill: #2C2C2E; }
.foot-brand .ek-word { fill: #fff; }
.foot-brand p { color: rgba(255,255,255,.45); font-size: .88rem; line-height: 1.6; max-width: 30ch; margin-top: .8rem; }
.foot-col h2 { font-family: var(--ui); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; color: rgba(255,255,255,.42); margin-bottom: 1rem; }
.foot-col ul { display: grid; gap: .55rem; }
.foot-col a { font-size: .9rem; color: rgba(255,255,255,.7); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.10); display: flex; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.35); }
.foot-bottom .right { margin-left: auto; }

/* ── Drop veil and contact ───────────────────────────────────────────── */
.dropveil { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 1.5rem; background: rgba(247,246,242,.9); pointer-events: none; }
.dropveil.on { display: grid; }
.dropveil > div { display: grid; gap: .5rem; justify-items: center; text-align: center; padding: clamp(2rem, 6vw, 4rem); border: 2px dashed var(--accent); border-radius: 20px; background: rgba(255,255,255,.7); max-width: 34rem; }
.dropveil b { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.dropveil span { color: var(--ink-2); }

.contact { width: min(30rem, calc(100% - 2rem)); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--ink-2); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.contact::backdrop { background: rgba(24,23,26,.5); }
.contact-in { padding: 1.7rem 1.7rem 1.5rem; }
.contact-in h2 { font-size: 1.8rem; }
.contact-in > p { margin: .5rem 0 1.2rem; font-size: .94rem; }
.contact form { display: grid; gap: .8rem; }
.contact label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.contact input, .contact select, .contact textarea { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .7rem; font-size: .95rem; color: var(--ink); }
.contact textarea { resize: vertical; }
.contact .hp { position: absolute; left: -9999px; }
.contact-msg { min-height: 1.3em; font-size: .86rem; color: var(--gather); }
.contact-msg.bad { color: var(--k-exact); }
.contact-actions { display: flex; gap: .6rem; }

/* ── Smaller screens ─────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .nav-tc { display: none; }
  .tool-row { grid-template-columns: 36px 120px minmax(120px, 1fr) minmax(200px, 2fr) 24px; gap: 1rem; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .tool-head, .tool-split, .tool-split--flip, .app-head, .maker-top, .maker-credits, .tools-head { grid-template-columns: minmax(0, 1fr); }
  .tool-head .tool-copy { padding-top: 0; }
  .tool-split--flip > .tool-copy, .tool-split--flip > .mock { order: unset; }
  .app-head { align-items: start; }
  .roll dt { text-align: left; }
  .roll > div { grid-template-columns: 11rem 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs > div, .specs > div + div { padding: 1rem 0; border-left: 0; }
  .specs > div + div { border-top: 1px solid var(--border); }
  .price-row { grid-template-columns: 1fr; align-items: start; }
  .appwin { height: clamp(460px, 78vh, 560px); }
}
@media (min-width: 901px) { .nav-menu { display: none !important; } }
@media (max-width: 760px) {
  .outs { grid-template-columns: 1fr; }
  .out::after { display: none; }
  .out-desc { display: none; }
  .out { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; padding: .8rem 1rem; }
  .out::before { left: 0; right: auto; top: .8rem; bottom: .8rem; width: 2px; height: auto; }
  .out-count { margin-top: 0; }
  .out-sub { flex-basis: 100%; margin-top: 0; }
  .win-hint { display: none; }
  .tool-row { grid-template-columns: 30px 1fr 20px; grid-template-areas: "num cmd arr" "num name arr" "num desc arr"; row-gap: .35rem; }
  .tool-row .num { grid-area: num; } .tool-row .cmd { grid-area: cmd; } .tool-row .nm { grid-area: name; }
  .tool-row .desc { grid-area: desc; } .tool-row .open { grid-area: arr; align-self: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom .right { margin-left: 0; }
  .price-samples { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .nav-download { padding: .55rem .85rem; font-size: .85rem; }
  .hero-sub br, .hero-h1 br { display: none; }
  .hero-h1 { font-size: clamp(2.2rem, 10.4vw, 2.9rem); }
  .win-title { text-align: left; }
  .win-dots-spacer { display: none; }
  .tl-ruler span:nth-child(even) { display: none; }
  .plan { grid-template-columns: 1fr; }
  .plan-col + .plan-col { border-left: 0; border-top: 1px solid var(--border); }
  .mock-bar { flex-wrap: wrap; }
  .pair-row { grid-template-columns: 4.8rem minmax(0, 1fr) auto; }
  .pair-row .hide-s { display: none; }
  .matrix { gap: 3px; padding: .7rem .6rem .8rem; grid-template-columns: 1.6rem repeat(6, minmax(0, 1fr)); }
  .cell { font-size: .8rem; min-height: 0; aspect-ratio: 1.35; }
  .plan-mock .mock-meta { order: 3; flex-basis: 100%; text-align: left; }
  .dupe-mock .mock-title { flex: 1 1 calc(100% - 2rem); }
  .kinds > div { grid-template-columns: 1fr; gap: .3rem; }
  .roll > div { grid-template-columns: 1fr; gap: 0; }
  .roll { gap: .8rem; }
  .book-page { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ek-strip { animation: none !important; }
  .paper-head, .stamp { display: none; }
  * { transition-duration: .01ms !important; }
}
