/*
 * tunerengine.com. The tool-shop system the TunerSuite site uses (charcoal "pedestal" bands for the product, paper
 * "datasheet" bands for the facts, wide heavy Archivo, one accent), with TunerEngine's own accent so the two brands
 * never look alike. The only file that holds a colour.
 */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --char-950: #0e0e10;
  --char-900: #18181b;
  --char-800: #26262b;
  --char-700: #3c3c42;
  --paper: #f6f5f0;
  --paper-2: #ecebe3;
  --ink: #1a1a1c;
  --ink-2: #4a4a50;
  --fog: #b4b4ba;
  --snow: #f4f4f0;

  --volt: #c8f031;       /* the accent as a surface, and as type on charcoal */
  --volt-deep: #4a6200;  /* the accent as type on paper */
  --volt-ink: #141a00;   /* type on the accent */

  --bad: #e5484d;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
h2::after { content: "."; color: var(--accent-type); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* Bands set the colours their contents read. */
.band { padding-block: clamp(64px, 10vw, 120px); --accent-type: var(--volt-deep); --line: rgba(26, 26, 28, .14); --muted: var(--ink-2); }
.band--dark { background: linear-gradient(180deg, var(--char-950), var(--char-900)); color: var(--snow); --accent-type: var(--volt); --line: rgba(244, 244, 240, .14); --muted: var(--fog); }
.band--paper { background: var(--paper); }
.band--rule { border-top: 1px solid var(--line); }

.kick { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-type); margin-bottom: 20px; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 640px; color: var(--muted); }
.intro { color: var(--muted); max-width: 640px; margin-bottom: 40px; }
.small { font-size: 14px; color: var(--muted); }

/* Buttons: one solid, one line. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 2px solid var(--volt);
  background: var(--volt); color: var(--volt-ink); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .14s var(--ease), background .14s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 56px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 14, 16, .92); backdrop-filter: blur(8px); color: var(--snow); border-bottom: 1px solid rgba(244, 244, 240, .08); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.mark { font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.mark span { color: var(--volt); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--fog); }
.top nav a:not(.btn):hover { color: var(--snow); }
@media (max-width: 560px) { .top nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-top: clamp(72px, 12vw, 150px); }
.hero h1 { max-width: 15ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 0; }
.facts div { padding: 22px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fog); }
.facts dd { margin: 8px 0 0; font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1; }
.facts dd.sub { font: 400 14px/1.4 var(--sans); color: var(--fog); letter-spacing: 0; margin-top: 6px; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 24px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.n { font: 500 13px/1 var(--mono); color: var(--accent-type); letter-spacing: .1em; display: block; margin-bottom: 14px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
}

/* Feature shelves */
.shelf { border-top: 1px solid var(--line); }
.shelf:last-of-type { border-bottom: 1px solid var(--line); }
.shelf summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr) 24px; gap: 16px; align-items: baseline; padding: 24px 0; }
.shelf summary::-webkit-details-marker { display: none; }
.shelf summary::after { content: "+"; font: 400 26px/1 var(--sans); justify-self: end; transition: transform .2s var(--ease); }
.shelf[open] summary::after { transform: rotate(45deg); }
.shelf .n { margin: 0; }
.shelf .t { font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
.shelf .l { color: var(--muted); }
.shelf ul { list-style: none; margin: 0 0 32px; padding: 0 0 0 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.shelf li { padding: 14px 0; border-top: 1px dashed var(--line); }
.shelf li strong { display: block; font-weight: 600; }
.shelf li span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .shelf summary { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .shelf .l { grid-column: 2; }
  .shelf summary::after { grid-row: 1; grid-column: 3; }
  .shelf ul { padding-left: 0; grid-template-columns: 1fr; }
}

/* Price sheets */
.sheet { border-top: 2px solid currentColor; margin-top: 32px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row span:last-child { text-align: right; font-weight: 600; }
.row--head span { font-weight: 800; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.02em; }
.row--head em { display: block; font: 400 15px/1.4 var(--sans); font-style: normal; color: var(--muted); letter-spacing: 0; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 4px; } .row span:last-child { text-align: left; } }
.launch { margin-top: 48px; padding: 28px; border: 2px solid var(--volt); border-radius: var(--r); max-width: 640px; }
.launch p:last-child { margin: 0; font-size: 19px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > div > p { color: var(--muted); }
.split > div > p strong { color: inherit; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Form */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--fog); }
.form input, .form textarea, .form select { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--snow); background: var(--char-800); border: 1px solid var(--char-700); border-radius: var(--r); padding: 13px 14px; }
.form textarea { min-height: 96px; resize: vertical; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0; }
.pick legend { font-size: 14px; color: var(--fog); margin-bottom: 6px; }
.pick label { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--char-700); border-radius: var(--r); color: var(--snow); font-size: 15px; cursor: pointer; }
.pick label:has(input:checked) { border-color: var(--volt); box-shadow: inset 0 0 0 1px var(--volt); }
.pick input { width: auto; accent-color: var(--volt); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #ff9a9d; font-size: 15px; margin: 0; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.done { padding: 32px; border: 2px solid var(--volt); border-radius: var(--r); }
.done h3 { font-size: 28px; }

/* Footer */
.foot { background: var(--char-950); color: var(--fog); padding: 48px 0; border-top: 1px solid rgba(244, 244, 240, .08); }
.foot__in { display: grid; gap: 8px; }
.foot .mark { color: var(--snow); }
.foot p { margin: 0; }
.foot .small { color: #8a8a90; }

.page h1::after { content: none; }
.prose { max-width: 70ch; }
