/* BenchBook site. Colours come from the app icon: kraft notebook, black
   elastic and the yellow, blue and red index tabs. */

:root {
  --paper: #fbf7f1;
  --paper-deep: #f3ead9;
  --surface: #ffffff;
  --ink: #1d1b19;
  --ink-soft: #5d5750;
  --line: #e6ddcf;
  --kraft: #d4964f;
  --kraft-deep: #a8682a;
  --tab-yellow: #f2b705;
  --tab-blue: #1f6fd6;
  --tab-red: #d93a2b;
  --accent: var(--tab-blue);
  --window: #ffffff;
  --window-bar: #f1eee9;
  --window-side: #f6f3ee;
  --shadow: 0 1px 2px rgb(40 30 15 / 0.06), 0 18px 48px -12px rgb(40 30 15 / 0.22);
  --panel: #1d1b19;
  --panel-ink: #fbf7f1;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171513;
    --paper-deep: #201d1a;
    --surface: #24211d;
    --ink: #f3eee7;
    --ink-soft: #b3aaa0;
    --line: #37322c;
    --kraft: #e0a663;
    --kraft-deep: #f0bd80;
    --accent: #4b93f0;
    --window: #282521;
    --window-bar: #312d28;
    --window-side: #2c2924;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 48px -12px rgb(0 0 0 / 0.6);
    --panel: #2a2622;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.button.small { padding: 7px 14px; font-size: 14px; }
.button svg { width: 18px; height: 18px; }

/* Hero */

.hero { padding: 88px 0 40px; text-align: center; }

.hero-icon {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 14px 24px rgb(120 70 20 / 0.28));
}

.eyebrow {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kraft-deep);
}

.hero h1 {
  margin: 12px auto 0;
  max-width: 820px;
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 750;
}

.hero .lede {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 21px;
  color: var(--ink-soft);
}

.cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.fineprint { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.fineprint + .fineprint { margin-top: 4px; }

.hero-shot { margin-top: 64px; }

/* Highlights */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-block: 72px 24px;
}

.highlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.highlight h3 { font-size: 19px; margin-top: 14px; }
.highlight p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }

.glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}
.glyph svg { width: 22px; height: 22px; }
.glyph.kraft { background: var(--kraft); }
.glyph.yellow { background: var(--tab-yellow); color: #3a2a00; }
.glyph.blue { background: var(--tab-blue); }
.glyph.red { background: var(--tab-red); }
.glyph.ink { background: var(--ink); color: var(--paper); }

/* Feature sections */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 56px;
  align-items: center;
  padding-block: 88px;
  border-top: 1px solid var(--line);
}
.feature.flip .feature-text { order: 2; }
.feature.flip { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
/* Grid items size to their content by default; let screenshots shrink to fit. */
.feature > * { min-width: 0; }

.feature .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kraft-deep);
}
.feature h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 10px; }
.feature .feature-text > p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }

.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 28px; font-size: 16px; }
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--kraft);
}

kbd {
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--surface);
}

/* Screenshots: real windows, transparent corners, shadow follows them. */
.shot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 3px rgb(40 30 15 / 0.12)) drop-shadow(0 22px 40px rgb(40 30 15 / 0.24));
}
.hero-shot .shot { max-width: 1120px; margin: 0 auto; }
/* Cut from a taller window: round the cut edge to match. */
.shot.cropped { width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); filter: none; box-shadow: var(--shadow); }

/* Text above, a wide screenshot below. */
.feature.wide, .feature.wide.flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.feature.wide.flip .feature-text { order: 0; }
.feature.wide .feature-text { max-width: 760px; }

/* Illustrated app windows */

.window {
  background: var(--window);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--window-bar);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
}
.lights { display: flex; gap: 7px; margin-right: 10px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.titlebar .title { color: var(--ink); }
.titlebar .sub { font-weight: 400; margin-left: 6px; }
.titlebar .spacer { flex: 1; }
.titlebar .search {
  width: 180px;
  height: 24px;
  border-radius: 7px;
  background: var(--window);
  border: 1px solid var(--line);
  padding: 0 9px;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.app { display: grid; grid-template-columns: 210px 1fr; min-height: 420px; }

.sidebar {
  background: var(--window-side);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
}
.sidebar h4 {
  margin: 10px 8px 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-soft);
}
.sidebar h4:first-child { margin-top: 0; }
.side-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-row.selected { background: var(--accent); color: #fff; }
.side-row .badge {
  margin-left: auto;
  font-size: 11px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink);
}
.status { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status.progress { background: var(--tab-blue); }
.status.research { background: var(--tab-yellow); }
.status.paused { background: #9a9289; }
.status.done { background: #2f9e57; }
.side-row.selected .status { box-shadow: 0 0 0 2px #fff; }

.content { padding: 0; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.tabs span { padding: 4px 12px; border-radius: 6px; color: var(--ink-soft); }
.tabs span.on { background: var(--line); color: var(--ink); font-weight: 600; }

.chips { display: flex; gap: 6px; padding: 10px 16px 0; flex-wrap: wrap; }
.chip {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 16px 18px;
}
.tile {
  border-radius: 9px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--window);
}
.tile.picked { outline: 3px solid var(--accent); outline-offset: -1px; }
.tile .pic { height: 78px; position: relative; }
.tile .cap { padding: 6px 8px 8px; }
.tile .cap b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .cap small { color: var(--ink-soft); }
.kind {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
}

/* "Photos": painted gradients standing in for screenshots. */
.ph-sky { background: linear-gradient(160deg, #9fb7cf 0%, #c9d6e0 55%, #7d8a76 56%, #5f6b55 100%); }
.ph-grey { background: linear-gradient(135deg, #8d949b, #b9bfc4 60%, #6d747b); }
.ph-cockpit { background: radial-gradient(circle at 40% 55%, #4f5357 0 22%, #2a2d30 23% 40%, #71767a 41%); }
.ph-desert { background: linear-gradient(170deg, #e8cfa0, #c89f63 60%, #8c6a3c); }
.ph-green { background: linear-gradient(150deg, #6b7a4f, #8c9a68 50%, #4c5838); }
.ph-pdf { background: repeating-linear-gradient(180deg, #fff 0 9px, #e6e1d8 9px 10px); }
.ph-video { background: linear-gradient(135deg, #2b2b2e, #4a4a52); }
.ph-web { background: linear-gradient(180deg, #e9eef5 0 24%, #fff 24%); }
.ph-note { background: #fff6c9; }
.ph-sea { background: linear-gradient(175deg, #b7c9d6 0 45%, #4d6f86 46%, #2f4d61); }

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
}
.play::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-left: 9px solid #222;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Narrower windows beside text show three tiles across. */
.feature .grid { grid-template-columns: repeat(3, 1fr); }

/* Aftermarket parts: picture, name, status. */
.paint.part { grid-template-columns: 22px 1fr auto; }

/* Image notes illustration */

.viewer { display: grid; grid-template-columns: 1fr 230px; min-height: 380px; }
.photo { position: relative; }
.photo .pic { position: absolute; inset: 0; }
.box {
  position: absolute;
  border: 2.5px solid var(--tab-yellow);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35);
  border-radius: 2px;
}
.box.sel { border-color: var(--accent); }
.box i {
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tab-yellow);
  color: #2a1f00;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.box.sel i { background: var(--accent); color: #fff; }

.panel {
  border-left: 1px solid var(--line);
  background: var(--window-side);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--line);
  border-radius: 7px;
  padding: 2px;
  text-align: center;
  font-size: 12px;
}
.segmented span { padding: 3px; border-radius: 5px; }
.segmented .on { background: var(--window); font-weight: 600; }
.note {
  background: var(--window);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}
.note.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.note .n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tab-yellow);
  color: #2a1f00;
  font-weight: 700;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.note.sel .n { background: var(--accent); color: #fff; }
.note p { font-size: 12px; color: var(--ink-soft); }
.note b { display: block; font-size: 12.5px; color: var(--ink); }

/* Compare illustration */

.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); min-height: 300px; }
.pane { background: var(--window); display: grid; grid-template-rows: auto 1fr; position: relative; }
.pane.active { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; }
.pane-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--window-bar);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.pane-bar small { color: var(--ink-soft); }
.pane-bar .x { margin-left: auto; color: var(--ink-soft); }
.pane .pic { position: relative; }

/* Paints illustration */

.paints { display: grid; grid-template-columns: 210px 1fr; min-height: 360px; }
.list { padding: 8px 0; }
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 18px 6px;
}
.list-head b { font-size: 15px; }
.list-head small { color: var(--ink-soft); }
.group { padding: 10px 18px 4px; font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.paint {
  display: grid;
  grid-template-columns: 18px 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 18px;
  border-top: 1px solid var(--line);
}
.check { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #a39b91; }
.check.done { background: var(--accent); border-color: var(--accent); position: relative; }
.check.done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.swatch { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
@media (prefers-color-scheme: dark) {
  .swatch { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
}
.paint b { font-weight: 600; }
.paint small { display: block; color: var(--ink-soft); font-size: 12px; }
.paint .std { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Search illustration */

.results { padding: 6px 0 12px; }
.search-big {
  margin: 14px 16px 6px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
}
.token { background: var(--accent); color: #fff; border-radius: 5px; padding: 1px 7px; font-size: 12px; }
.result {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 16px;
}
.result .thumb { width: 38px; height: 38px; border-radius: 7px; }
.result b { font-weight: 600; }
.result small { display: block; color: var(--ink-soft); font-size: 12px; }
mark { background: color-mix(in srgb, var(--tab-yellow) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Tutorials: thumbnails stored here, videos play on YouTube. */

.tutorials { padding: 96px 0 32px; text-align: center; }
.tutorials h2 { font-size: clamp(30px, 3.6vw, 42px); }
.tutorials > .wrap > p { margin: 14px auto 0; max-width: 600px; color: var(--ink-soft); font-size: 18px; }
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
  text-align: left;
}
.tutorial {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tutorial:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.tutorial:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tutorial-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--paper-deep); }
.tutorial-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.62);
  color: #fff;
  transition: background 0.15s ease;
}
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.tutorial:hover .play { background: var(--tab-red); }
.tutorial-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.tutorial-number { font-size: 13px; font-weight: 600; color: var(--kraft-deep); text-transform: uppercase; letter-spacing: 0.04em; }
.tutorial-text b { font-size: 17px; line-height: 1.3; }
.tutorial-text span:last-child { font-size: 15px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .tutorial, .tutorial:hover { transition: none; transform: none; } }

/* Privacy and data */

.privacy {
  margin: 40px 0 0;
  padding: 64px;
  border-radius: 24px;
  background: var(--panel);
  color: var(--panel-ink);
  border: 1px solid var(--line);
}
.privacy h2 { font-size: clamp(30px, 3.6vw, 42px); max-width: 640px; }
.privacy > p { margin-top: 14px; color: color-mix(in srgb, var(--panel-ink) 72%, transparent); font-size: 18px; max-width: 640px; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; margin-top: 44px; }
.privacy-grid h3 { font-size: 18px; }
.privacy-grid p { margin-top: 6px; color: color-mix(in srgb, var(--panel-ink) 68%, transparent); font-size: 16px; }
.privacy .glyph { margin-bottom: 12px; }

/* Mac section */

.mac { padding: 96px 0 24px; text-align: center; }
.mac h2 { font-size: clamp(30px, 3.6vw, 42px); }
.mac > .wrap > p { margin: 14px auto 0; max-width: 600px; color: var(--ink-soft); font-size: 18px; }
.mac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.mac-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mac-grid b { display: block; font-size: 16px; }
.mac-grid span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }

/* Download */

.download { padding: 96px 0 104px; text-align: center; }
.download img { width: 96px; height: 96px; filter: drop-shadow(0 10px 18px rgb(120 70 20 / 0.25)); }
.download h2 { margin-top: 20px; font-size: clamp(32px, 4vw, 48px); }
.download p { margin-top: 12px; color: var(--ink-soft); font-size: 18px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--ink-soft);
}
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--ink-soft); }

/* Narrow screens */

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 64px; }
  .feature.flip .feature-text { order: 0; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .mac-grid, .tutorial-grid { grid-template-columns: 1fr 1fr; }
  .privacy { padding: 40px 28px; }
  .privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav .button { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero .lede { font-size: 18px; }
  .highlights, .mac-grid, .tutorial-grid { grid-template-columns: 1fr; }
  .app, .paints { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .viewer { grid-template-columns: 1fr; }
  .viewer .photo { min-height: 240px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .compare { grid-template-columns: 1fr; }
  .compare .pane:nth-child(3) { display: none; }
  .titlebar .search { display: none; }
}
