/* Mini HOTAS waitlist site: dark theme */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  /* taken from the product and the studio renders */
  --bg: #05060a;         /* studio black, matches the hero render */
  --raised: #111319;     /* alternate sections */
  --sheet: #151821;      /* drawing sheet, cards */
  --line: #252a36;
  --text: #e9ebf0;
  --muted: #a0a7b8;
  --panel: #c9d1de;      /* lid grey */
  --red: #c0403d;        /* throttle caps */
  --red-hover: #d3524e;
  --red-text: #f0857c;   /* red that reads on black */

  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.3125rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; color: var(--bg); }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 3; padding: 1.25rem 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display);
  font-weight: 700; font-size: 1.3125rem; }
.mark svg { width: 1.75rem; height: 1.75rem; flex: none; }
.head-cta { font-weight: 600; font-size: 1rem; text-decoration: none; padding: 0.5rem 0.95rem;
  border: 1.5px solid rgba(233, 235, 240, 0.55); border-radius: 999px; }
.head-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- hero: the studio render fills the stage ---------- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; }
.hero-media figcaption { font-size: 0.875rem; color: var(--muted); padding: 0.5rem var(--gutter) 0; text-align: right; }
.hero-copy { position: relative; z-index: 2; padding: 1.5rem var(--gutter) clamp(3rem, 7vw, 5rem); max-width: var(--wrap); margin: 0 auto; }
.hero h1 { font-size: clamp(3.5rem, 11vw, 7rem); line-height: 0.92; letter-spacing: -0.02em; }
.hero .tagline { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.12; margin-top: 0.9rem; max-width: 17ch; letter-spacing: 0; }
.hero-copy > p { color: var(--muted); max-width: 31rem; margin-top: 1.5rem; }
.hero-copy .waitlist { max-width: 31rem; }

@media (min-width: 70em) {
  .hero { margin-top: -5.5rem; }                          /* render runs up behind the header */
  .hero-media { position: absolute; top: 0; bottom: 0; right: 0; width: 62%; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 10% 50%; }
  .hero-media::after {
    /* fade the render into the page so there is no edge */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 6, 10, 0) 22%),
                linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 10, 0) 20%);
  }
  .hero-media figcaption { position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2; padding: 0; }
  .hero-copy { min-height: min(56.25vw, 52rem); display: flex; flex-direction: column; justify-content: center;
    padding-top: 7rem; padding-bottom: 5rem; }
  .hero-copy > p, .hero-copy .waitlist { max-width: 26rem; }
}

/* ---------- waitlist form ---------- */
.waitlist { margin-top: 1.5rem; }
.waitlist .field { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.waitlist input[type="email"] {
  flex: 1 1 15rem; min-width: 0; font: inherit; font-size: 1.0625rem; color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid #4a5163; border-radius: 0.5rem; padding: 0.8rem 0.95rem;
}
.waitlist input[type="email"]::placeholder { color: #7f8698; }
.waitlist input[type="email"]:focus-visible { outline: 3px solid var(--red-text); outline-offset: 1px; border-color: var(--panel); }
.waitlist input[aria-invalid="true"] { border-color: var(--red-text); }
.waitlist button {
  flex: 0 0 auto; font: inherit; font-weight: 600; font-size: 1.0625rem; color: #fff; background: var(--red);
  border: 0; border-radius: 0.5rem; padding: 0.8rem 1.3rem; cursor: pointer;
}
.waitlist button:hover { background: var(--red-hover); }
.waitlist button[disabled] { opacity: 0.7; cursor: progress; }
.waitlist .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9375rem; color: var(--muted); margin: 0.75rem 0 0; }
.form-note a { color: inherit; }
.form-error { color: var(--red-text); font-weight: 600; font-size: 0.9375rem; margin: 0.6rem 0 0; }
.form-error:empty { display: none; }
.form-done { border-left: 3px solid var(--red-text); padding: 0.2rem 0 0.2rem 1rem; margin-top: 1.5rem; }
.form-done h3 { margin-bottom: 0.35rem; }
.form-done p { margin: 0; color: var(--muted); }
.form-done p + p { margin-top: 0.4rem; font-size: 0.9375rem; }
.form-done:focus { outline: none; }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-intro { max-width: 38rem; }
.section-intro p { color: var(--muted); margin-top: 1rem; }
.raised { background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* small on purpose: the argument */
.why .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60em) { .why .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.why-lead h2 { margin-bottom: 1.25rem; }
.why-lead p { color: var(--muted); max-width: 30rem; }
.why-lead .why-big { font-size: 1.375rem; line-height: 1.45; color: var(--text); }
.why-list { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.5rem; }
@media (min-width: 40em) { .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why-list div { padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.why-list dt { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; line-height: 1.2; }
.why-list dd { margin: 0.4rem 0 0; color: var(--muted); }

/* pint for scale */
.scale-shot { margin: 2.25rem 0 0; }
.scale-shot img { width: 100%; border-radius: 0.75rem; }
.scale-shot figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 0.75rem; }

/* size: the coaster drawing */
.size .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56em) { .size .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.drawing { margin: 0; }
.drawing svg { width: 100%; height: auto; display: block; }
.drawing .dim { stroke: var(--panel); stroke-width: 0.35; fill: none; }
.drawing .ext { stroke: var(--panel); stroke-width: 0.25; fill: none; opacity: 0.8; }
.drawing .arrow { fill: var(--panel); }
.drawing .dim-label { font-family: var(--display); font-weight: 600; font-size: 4.6px; fill: var(--text); }
.drawing .coaster { fill: var(--sheet); stroke: var(--red-text); stroke-width: 0.45; stroke-dasharray: 2.2 1.4; }
.drawing .coaster-label { font-family: var(--body); font-weight: 600; font-size: 3.6px; fill: var(--red-text); }
.title-block {
  display: grid; grid-template-columns: auto auto minmax(0, auto); justify-content: start; margin-top: 1rem;
  border: 1px solid var(--line); font-size: 0.875rem; width: fit-content; max-width: 100%;
}
.title-block div { padding: 0.35rem 0.8rem; border-right: 1px solid var(--line); }
.title-block div:last-child { border-right: 0; }
.title-block span { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.title-block strong { font-weight: 600; line-height: 1.3; }
.specs { margin: 1.75rem 0 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem; }
.specs dt, .specs dd { margin: 0; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; }
.drawing.will-draw .dim, .drawing.will-draw .ext { stroke-dasharray: 120; stroke-dashoffset: 120; }
.drawing.will-draw .arrow, .drawing.will-draw .dim-label, .drawing.will-draw .coaster-label { opacity: 0; }
.drawing.drawn .dim, .drawing.drawn .ext { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.4, 0, .2, 1); }
.drawing.drawn .arrow, .drawing.drawn .dim-label, .drawing.drawn .coaster-label { opacity: 1; transition: opacity .4s ease .8s; }
.drawing.drawn .ext { opacity: 0.8; }

/* what's on it */
.controls .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56em) { .controls .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.control-list { margin: 1.75rem 0 0; }
.control-list div { padding: 1rem 0; border-top: 1px solid var(--line); }
.control-list div:last-child { border-bottom: 1px solid var(--line); }
.control-list dt { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; line-height: 1.2; }
.control-list dd { margin: 0.25rem 0 0; color: var(--muted); max-width: 34rem; }
.cad-shot { margin: 0; }
.cad-shot figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 0.5rem; }

/* designed as one unit: the CAD views */
.cad-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.5rem; align-items: end; }
@media (min-width: 56em) { .cad-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

/* nearly there: route with waypoints */
.route { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; counter-reset: wp; }
.route li { position: relative; padding: 0 0 2rem 2.75rem; counter-increment: wp; }
.route li::before {
  content: counter(wp); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1rem;
  background: var(--raised); color: var(--text); border: 1.5px solid #59607a; z-index: 1;
}
.route li::after { content: ""; position: absolute; left: 0.9rem; top: 1.9rem; bottom: 0; border-left: 1.5px dashed #4a5163; }
.route li:last-child::after { display: none; }
.route li.done::before { content: "\2713"; background: var(--panel); color: var(--bg); border-color: var(--panel); }
.route li.done::after { border-left-style: solid; border-left-color: var(--panel); }
.route li.now::before { border: 2.5px solid var(--red-text); color: var(--red-text);
  box-shadow: 0 0 0 6px rgba(240, 133, 124, 0.14); }
.route h3 { font-size: 1.3125rem; }
.route .when { display: block; font-size: 0.9375rem; color: var(--muted); margin: 0.15rem 0 0.4rem; }
.route li.now .when { color: var(--red-text); font-weight: 600; }
.route p { margin: 0; color: var(--muted); max-width: 30rem; }
@media (min-width: 60em) {
  .route { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .route li { padding: 2.75rem 0 0; }
  .route li::after { left: 1.9rem; right: -1.5rem; top: 0.9rem; bottom: auto; border-left: 0; border-top: 1.5px dashed #4a5163; }
  .route li.done::after { border-top-style: solid; border-top-color: var(--panel); }
}

/* questions */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 56em) { .faq .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.3125rem; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.75rem; height: 0.75rem; margin-top: -0.5rem;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -0.15rem; }
.faq-list .answer { padding: 0 0 1.25rem; max-width: 40rem; color: var(--muted); }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* final call to join */
.join { padding-bottom: clamp(4rem, 9vw, 7rem); }
.join-card {
  max-width: 50rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(120% 140% at 0% 0%, rgba(192, 64, 61, 0.22), rgba(192, 64, 61, 0) 55%), var(--sheet);
  border: 1px solid var(--line); border-radius: 1rem;
}
.join-card h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.join-card .join-lead { color: var(--muted); margin-top: 1rem; max-width: 34rem; }

/* footer */
.site-foot { color: var(--muted); padding: 0 0 2.5rem; font-size: 0.9375rem; }
.site-foot .foot-inner { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-foot .foot-line { margin: 0; }
.site-foot.plain .foot-inner { border-top: 1px solid var(--line); }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* plain text pages (privacy, 404) */
.text-page { padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.text-page .wrap { max-width: 44rem; }
.text-page h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); margin-bottom: 0.5rem; }
.text-page h2 { font-size: 1.75rem; margin: 2.25rem 0 0.6rem; }
.text-page p { color: #c9ceda; }
.text-page .updated { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
