/* The Woodshed website. Colors are the console's tokens (console/designSystem/tokens.json), under the same names;
   site.test.mjs fails when one differs. */
:root {
  --ground: #ffffff;
  --stopped: #f6f5f2;
  --ink: #1b2232;
  --sub: #666666;
  --meta: #767676;
  --label: #736d65;
  --line: #e2e2e2;
  --line-soft: #eeeeee;
  --chip-count: #f2f1ee;
  --action: #b45a05;
  --action-ink: #ffffff;
  --amber: #e87d09;
  --amber-ink: #a95a03;
  --amber-tint: #fdf2e3;
  --wait: #8a6700;
  --slate: #526288;
  --slate-tint: #f2f4f9;
  --green: #2f6d4f;
  --bad: #b42318;
  --private: #2b3347;
  --private-ink: #ffffff;
  --serif: Merriweather, Georgia, serif;
  --sans: 'Red Hat Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 7px;
  --wide: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ground: #12151c;
  --stopped: #10131a;
  --ink: #e8ecf5;
  --sub: #a3aabb;
  --meta: #8f97a8;
  --label: #a39d92;
  --line: #2a3142;
  --line-soft: #232a38;
  --chip-count: #232a38;
  --action: #f59433;
  --action-ink: #1b1204;
  --amber: #f59433;
  --amber-ink: #f0b45f;
  --amber-tint: #2c2013;
  --wait: #e6c04a;
  --slate: #9fb2dd;
  --slate-tint: #1f2739;
  --green: #7fc9a3;
  --bad: #f97066;
  --private: #47516b;
  --private-ink: #f2f4f9;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #12151c;
    --stopped: #10131a;
    --ink: #e8ecf5;
    --sub: #a3aabb;
    --meta: #8f97a8;
    --label: #a39d92;
    --line: #2a3142;
    --line-soft: #232a38;
    --chip-count: #232a38;
    --action: #f59433;
    --action-ink: #1b1204;
    --amber: #f59433;
    --amber-ink: #f0b45f;
    --amber-tint: #2c2013;
    --wait: #e6c04a;
    --slate: #9fb2dd;
    --slate-tint: #1f2739;
    --green: #7fc9a3;
    --bad: #f97066;
    --private: #47516b;
    --private-ink: #f2f4f9;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .light-only { display: none; }
  :root:not([data-theme="light"]) .dark-only { display: block; }
}
.dark-only { display: none; }
:root[data-theme="dark"] .light-only { display: none; }
:root[data-theme="dark"] .dark-only { display: block; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: var(--radius-sm); }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { color: var(--ink); background: var(--chip-count); padding: 1px 5px; border-radius: var(--radius-sm); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ground); padding: 8px; z-index: 2; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.wordmark { font: 700 19px/1 var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: 10px; }
footer .wordmark img { width: 20px; height: 20px; }
.nav a:not(.wordmark), .theme {
  font: 500 13px/1 var(--mono); color: var(--sub); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em;
}
.nav a:not(.wordmark):hover { color: var(--ink); }
.theme { background: none; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 7px 9px; cursor: pointer; }

/* Type */
.eyebrow { font: 500 12.5px/1.4 var(--mono); color: var(--label); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 12px; }
h3 { font: 600 17px/1.35 var(--sans); margin: 0 0 6px; }
.lede { font-size: 19px; color: var(--sub); max-width: 46ch; margin: 0 0 28px; }
.claim { color: var(--sub); max-width: 60ch; margin: 0 0 28px; }
.meta { font: 400 12px/1.5 var(--mono); color: var(--meta); }
/* meta is 4.5:1 on ground only; on the stopped ground, sub. */
.alt .meta, .alt .claim { color: var(--sub); }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font: 600 15px/1 var(--sans); border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--ground); color: var(--ink);
}
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn:hover { border-color: var(--sub); }
.btn.primary:hover { filter: brightness(1.06); border-color: var(--action); }
details.try > summary { list-style: none; }
details.try > summary::-webkit-details-marker { display: none; }
details.try[open] > summary { border-color: var(--slate); color: var(--slate); }
.try-body { margin-top: 14px; width: min(100%, 520px); }

/* Commands to copy: one command a box, its own Copy. */
.value-box {
  display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); background: var(--stopped);
  border-radius: var(--radius-md); padding: 10px 10px 10px 14px; margin: 6px 0 14px;
}
.value-box pre { margin: 0; flex: 1; overflow-x: auto; white-space: pre; font-size: 13.5px; line-height: 1.6; padding-top: 3px; }
.copy {
  font: 600 12.5px/1 var(--sans); color: var(--slate); background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; flex: none;
}

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.7;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.shot { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--ground); }
.hero-video { margin: 8px 0 0; }
.video-slot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; }
.video-slot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0.55; }
.video-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
  background: var(--ground); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 10px;
  font: 600 14px/1 var(--sans); white-space: nowrap;
}
.video-badge .play {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-tint); color: var(--slate);
  font: 600 14px/1 var(--mono); padding-left: 2px;
}
.caption { font: 400 12px/1.5 var(--mono); color: var(--meta); margin: 10px 2px 0; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--stopped); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ground); padding: 22px; display: flex; flex-direction: column; }
.card p { color: var(--sub); margin: 0 0 16px; font-size: 15.5px; }
.card .trigger { margin-top: auto; }
.trigger { font: 500 13px/1.5 var(--mono); background: var(--stopped); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 10px 12px; color: var(--ink); overflow-wrap: anywhere; }
.tag { font: 600 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--label); margin-bottom: 14px; display: block; }

/* Benefits */
.benefits { gap: 40px; }
.benefits .eyebrow { margin-bottom: 12px; }
.h-sm { font-size: 23px; line-height: 1.3; }
.benefits .claim { margin: 0; font-size: 16px; }
#why { padding: 72px 0; border-top: 1px solid var(--line); }

/* Checklist, as the console draws a job a person waits on. */
.checklist { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ground); max-width: 760px; }
.checklist-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.checklist-head strong { font: 600 16px/1.2 var(--sans); }
.pill { font: 600 11.5px/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--slate-tint); color: var(--slate); }
.checklist ol { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--meta); margin-top: 3px; display: grid; place-items: center; font-size: 11px; line-height: 1; }
.done .mark { background: var(--green); border-color: var(--green); color: var(--ground); }
.now .mark { border-color: var(--slate); border-right-color: transparent; }
.next { color: var(--sub); }
.row-title { font-weight: 600; }
.next .row-title { font-weight: 500; }
.row-note { grid-column: 2; font-size: 14.5px; color: var(--sub); }
.row-note code { font-size: 12.5px; }
.bar { grid-column: 2; height: 4px; background: var(--slate-tint); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; width: 55%; background: var(--slate); }

/* Proof */
.proof { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.pr { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ground); overflow: hidden; }
.pr-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pr-head strong { font-weight: 600; margin-right: auto; }
.chip { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; color: var(--slate); background: var(--slate-tint); }
.chip .ring { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--slate); border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chip .ring { animation: none; } }
.pr-body { padding: 6px 18px 18px; font-size: 15px; }
.pr-body .pr-h { font: 700 15px/1.3 var(--mono); margin: 18px 0 8px; }
.pr-body ul { margin: 0; padding-left: 0; list-style: none; }
.pr-body li { padding: 5px 0 5px 26px; position: relative; color: var(--ink); }
.pr-body li::before { position: absolute; left: 4px; top: 5px; font-family: var(--mono); font-weight: 700; }
.pr-body li.ok::before { content: '✓'; color: var(--green); }
.pr-body li.no::before { content: '✗'; color: var(--bad); }
.pr-body li.no strong { color: var(--bad); }
.points { margin: 0; padding: 0; list-style: none; }
.points li { padding: 0 0 18px; }
.points li strong { display: block; }
.points li span { color: var(--sub); font-size: 15.5px; }

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.bento .card { padding: 22px 22px 0; }
.bento .card.pad { padding-bottom: 22px; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.bento .crop { margin: auto -22px 0; border-top: 1px solid var(--line); }
.phone { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 300px); gap: 16px; margin-top: auto; }
.phone .shot { border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.keys { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.keys li { font: 500 12.5px/1 var(--mono); border: 1px solid var(--line); background: var(--stopped); border-radius: var(--radius-sm); padding: 7px 9px; }

/* Infrastructure */
.infra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.infra h3 { font: 600 15px/1 var(--mono); margin: 0 0 4px; }
.infra dl { margin: 12px 0 0; }
.infra dt { font: 600 11.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--label); margin-top: 14px; }
.infra dd { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.guard { margin-top: 20px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-md); padding: 16px 18px; background: var(--ground); }
.guard strong { color: var(--green); }

/* Code */
.code { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--stopped); overflow: hidden; }
.code .file { font: 500 12px/1 var(--mono); color: var(--meta); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ground); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
.code .k { color: var(--slate); }
.code .c { color: var(--sub); }
.repo { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan .price { font: 700 26px/1.1 var(--serif); margin: 6px 0 4px; }
.plan .when { font: 500 12px/1.4 var(--mono); color: var(--meta); margin-bottom: 14px; }
.plan .soon { color: var(--slate); }
.plan ul { padding-left: 18px; margin: 0 0 18px; color: var(--sub); font-size: 15px; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '▸'; color: var(--meta); font-family: var(--mono); }
.faq details[open] summary::before { content: '▾'; }
.faq details p { margin: 0 0 16px 22px; color: var(--sub); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: 14.5px; color: var(--sub); }
footer .wordmark { font-size: 16px; }

/* Self-host page */
.steps { counter-reset: step; max-width: 820px; }
.step { border-top: 1px solid var(--line); padding: 36px 0; }
.step > h2::before { counter-increment: step; content: counter(step) '  '; font-family: var(--mono); color: var(--meta); font-weight: 500; }
.step ol { padding-left: 20px; }
.step ol > li { margin-bottom: 14px; }
.step ol > li > p { margin: 0 0 6px; }
.needs { font-size: 15px; color: var(--sub); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { font: 500 13px/1 var(--mono); display: inline-block; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 9px 12px; text-decoration: none; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .hero { padding-top: 88px; padding-bottom: 72px; }
}
@media (max-width: 960px) {
  .cols, .plans { grid-template-columns: 1fr 1fr; }
  .proof, .repo { grid-template-columns: 1fr; }
  .span-4, .span-3, .span-2 { grid-column: span 6; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .nav .wrap { gap: 14px; }
  .nav .hide-sm { display: none; }
  .cols, .plans, .infra { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .lede { font-size: 17px; }
  .checklist li { padding: 12px 14px; }
}
