/* Humble Tools: a warm-paper site with room to breathe.
   Shell stays neutral; each tool carries one colour sampled from its own icon. */

:root {
  --paper: #fbfaf6;
  --paper-2: #f2efe7;
  --ink: #17160f;
  --ink-soft: #37352b;
  --muted: #6e6b60;
  --line: #e5e1d5;
  --line-strong: #d8d3c4;
  --accent: #17160f; /* per-tool override */

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --page: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #17160f; color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  max-width: var(--page); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
}
.wordmark__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; padding-bottom: 2px;
}
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--ink); }
.pill {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}

/* ---------- shared ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.meta {
  margin: 20px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
}
.meta span { white-space: nowrap; }
.meta span + span::before { content: "·"; margin: 0 10px; color: var(--line-strong); }
.badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { max-width: var(--page); margin: 0 auto; padding: clamp(44px, 8vw, 88px) var(--gutter) clamp(40px, 6vw, 68px); }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 6.4vw, 74px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0; max-width: 15ch;
}
.hero__lede { margin: 26px 0 0; max-width: 54ch; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }
.hero__meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: var(--paper);
}
.tag--dot { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.tag--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,0.16); }

.rail { list-style: none; margin: clamp(40px, 6vw, 68px) 0 0; padding: 0; display: flex; gap: clamp(12px, 2vw, 20px); flex-wrap: wrap; }
.rail__item {
  width: clamp(80px, 12vw, 108px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(23,22,15,0.03);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 90ms + 120ms);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rail__item:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.rail__item img { width: 64%; height: 64%; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- features (alternating rows) ---------- */
.features { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); border-top: 1px solid var(--line); }
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px); align-items: center;
  padding: clamp(44px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature:nth-of-type(even) .feature__shot { order: -1; }

.feature__text { max-width: 46ch; }
.feature__head { display: flex; align-items: center; gap: 14px; }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.feature__head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(23px, 3vw, 31px); letter-spacing: -0.02em; line-height: 1.05; margin: 0;
}
.feature__line { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 2.1vw, 20px); margin: 22px 0 0; }
.feature__line::after { content: ""; display: block; width: 42px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--accent); }
.feature__desc { margin: 16px 0 0; color: var(--ink-soft); }

.feature__shot { margin: 0; text-align: center; }
.feature__shot > img {
  display: inline-block; width: auto; max-width: 100%; max-height: 440px; height: auto;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  box-shadow: 0 26px 55px -40px rgba(23, 22, 15, 0.5);
}
.feature__shot figcaption { margin-top: 13px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Full Page: a browser window whose tall page scrolls as you scroll */
.scrollshot {
  max-width: 460px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 26px 55px -40px rgba(23, 22, 15, 0.5);
}
.scrollshot__chrome {
  display: block; width: 100%; height: auto;
  border-bottom: 1px solid var(--line);
}
.scrollshot__view { height: clamp(300px, 46vh, 440px); overflow: hidden; position: relative; }
.scrollshot__page {
  width: 100%; height: auto; display: block;
  transform: translate3d(0, var(--sy, 0px), 0); will-change: transform;
}
.cap-mobile { display: none; }

/* SuperVideo: a fake YouTube player. On scroll a cursor enters from above,
   clicks Fill window, and the click fills the window (a CSS transition). */
.ytshot { position: relative; }
.ytdemo {
  max-width: 460px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 26px 55px -40px rgba(23, 22, 15, 0.5);
}
.ytdemo__chrome {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.ytdemo__dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.ytdemo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ytdemo__url {
  margin: 0 auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 3px 16px;
}
.ytdemo__stage {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--paper-2); overflow: hidden;
  display: grid; place-items: center;
}
.ytplayer {
  position: relative; width: 100%; height: 100%;
  border-radius: 8px; overflow: hidden; background: #000;
  transform: scale(0.62); transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.32, 0.5, 1);
  will-change: transform;
}
.ytshot.is-clicked .ytplayer { transform: scale(1); }
.ytplayer__video { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.ytfill {
  position: absolute; top: 9%; right: 5%; z-index: 3;
  display: inline-flex; align-items: center;
  background: rgba(20, 19, 13, 0.82); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.ytfill__label { font: 600 12px/1 var(--font-body); color: #fff; padding: 7px 12px; white-space: nowrap; }
.ytshot.is-clicked .ytfill { background: rgba(20, 19, 13, 0.97); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4); }
.ytripple {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.65); pointer-events: none;
  transform: scale(0.3); opacity: 0;
}
.ytshot.is-clicked .ytripple { animation: ytripple 0.6s ease-out; }
@keyframes ytripple {
  0% { transform: scale(0.3); opacity: 0.75; }
  100% { transform: scale(3.8); opacity: 0; }
}
.ytbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.ytbar__seek { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); margin-bottom: 8px; }
.ytbar__seek > span { display: block; width: 34%; height: 100%; background: #f00; border-radius: 3px; position: relative; }
.ytbar__seek > span::after { content: ""; position: absolute; right: -5px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: #f00; }
.ytbar__row { display: flex; align-items: center; gap: 9px; color: #fff; }
.ytbar__row .ic { display: inline-flex; align-items: center; justify-content: center; opacity: 0.94; }
.ic--play { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ytbar__time { font: 500 11px/1 var(--font-body); color: rgba(255, 255, 255, 0.92); }
.ytbar__row .grow { flex: 1; }
.ic--cc { font: 700 9px/1 var(--font-mono); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 3px; padding: 2px 3px; }
.ytcursor {
  position: absolute; left: 0; top: 0; z-index: 6;
  transform: translate(var(--cx, 8%), var(--cy, -30px));
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  pointer-events: none; transition: opacity 0.35s ease 0.25s;
}
.ytcursor__arrow { display: block; transform-origin: 22% 20%; }
.ytshot.is-clicked .ytcursor { opacity: 0; }
.ytshot.is-clicked .ytcursor__arrow { animation: ytpress 0.42s ease; }
@keyframes ytpress { 0%, 100% { transform: scale(1); } 45% { transform: scale(0.8); } }

/* ---------- also in the suite ---------- */
.more { max-width: var(--page); margin: 0 auto; padding: clamp(44px, 7vw, 80px) var(--gutter); }
.more__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 28px); }
.mini { border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 30px); background: var(--paper); }
.mini__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini__icon { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.mini h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin: 16px 0 0; }
.mini p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }
.mini .meta { margin-top: 16px; font-size: 12px; }

/* ---------- principles ---------- */
.principles {
  background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 84px) 0;
}
.principles .eyebrow { max-width: var(--page); margin: 0 auto 30px; padding: 0 var(--gutter); }
.principles__grid {
  max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px);
}
.principle h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 10px; }
.principle p { margin: 0; color: var(--ink-soft); max-width: 40ch; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--page); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.site-footer__note { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-align: right; }
.site-footer__note a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- legal / support pages ---------- */
.legal {
  max-width: 720px; margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(52px, 8vw, 92px);
}
.legal__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 10px 0 0; max-width: 20ch;
}
.legal__meta { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.legal__lede { margin: 26px 0 0; font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); max-width: 60ch; }
.legal h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.02em; line-height: 1.16;
  margin: 46px 0 0;
}
.legal h2 + p, .legal h2 + ul, .legal__lede + h2 { margin-top: 14px; }
.legal h2 + p { margin-top: 14px; }
.legal p { margin: 16px 0 0; color: var(--ink-soft); max-width: 66ch; }
.legal ul, .legal ol { margin: 16px 0 0; padding-left: 1.25em; color: var(--ink-soft); max-width: 66ch; }
.legal li { margin: 10px 0 0; }
.legal li::marker { color: var(--line-strong); }
.legal a { color: var(--ink); text-underline-offset: 3px; text-decoration: underline; text-decoration-color: var(--line-strong); }
.legal a:hover { text-decoration-color: var(--ink); }
.legal strong { font-weight: 600; color: var(--ink); }
.legal__back {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px;
}
.legal__back a { text-decoration: none; color: var(--ink-soft); }
.legal__back a:hover { color: var(--ink); }

/* ---------- footer links (Privacy / Support / Disclaimer) ---------- */
.site-footer__links { display: flex; align-items: center; gap: 20px; font-family: var(--font-mono); font-size: 12.5px; }
.site-footer__links a { color: var(--muted); text-decoration: none; text-underline-offset: 3px; transition: color 0.15s ease; }
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .site-nav a { display: none; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .feature__shot { order: 0; }
  .feature__shot img { max-height: 360px; }
  .feature__shot--compose .compose__inset { width: 104px; bottom: 42px; }
  .more__grid { grid-template-columns: 1fr; }
  .principles__grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer__note { text-align: left; }
  .site-footer__links { flex-wrap: wrap; }

  /* Full Page: on phones the fiddly editor toolbar turns to mush, so drop it and
     show the capture as one clean tall page that fades out at the bottom. */
  .scrollshot__chrome { display: none; }
  .scrollshot__view { height: 300px; }
  .scrollshot__view .scrollshot__page { max-height: none; transform: none; }
  .scrollshot__view::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none;
  }
  .cap-desktop { display: none; }
  .cap-mobile { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail__item { animation: none; }
  .rail__item:hover { transform: none; }
}

/* Download CTA (Site Routes: the first tool shipping as a direct download) */
.feature__actions {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent, #17160f); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 12px 20px; border-radius: 12px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent, #000) 30%, transparent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.dl-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px color-mix(in srgb, var(--accent, #000) 40%, transparent); }
.dl-btn:active { transform: translateY(0); }
.dl-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
