/* Linear Audio Tech / coming soon page
   Tokens follow brand/linear-audio-tech-brand-system-v1/specification/brand-tokens.css (identity v1.0). */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Barlow-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Barlow-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Barlow-Bold.woff2") format("woff2");
}

:root {
  --lat-accent: #FF5A1F;
  --lat-on-accent: #000000;
  --lat-ink: #111214;
  --lat-paper: #F2F1EC;
  --lat-text-secondary-on-dark: #B9BDC5;
  --lat-divider-on-dark: #45484F;
  --lat-font-family: "Barlow", system-ui, sans-serif;

  --gutter: 16px;
  --content-max: 1584px;
  /* Primary logo file is 731.79 x 138 with a 23 u transparent margin on every side. */
  --logo-w: 15rem;
  --logo-margin: calc(var(--logo-w) * 23 / 731.79);

  color-scheme: dark;
}

@media (min-width: 40rem) {
  :root { --gutter: 32px; }
}
@media (min-width: 64rem) {
  :root { --gutter: 52px; --logo-w: 17.625rem; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--lat-ink);
  color: var(--lat-paper);
  font-family: var(--lat-font-family);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; }

h1, h2, p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--lat-paper);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content-max));
  margin-inline: auto;
}

.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;
}

/* Header: the manufacturer signs. */

.site-header .wrap {
  display: flex;
  align-items: center;
  padding-block: calc(clamp(0.75rem, 2vw, 1.5rem) - var(--logo-margin));
  border-bottom: 1px solid var(--lat-divider-on-dark);
}

.site-logo {
  display: block;
  width: var(--logo-w);
  margin-left: calc(var(--logo-margin) * -1);
}
.site-logo img { width: 100%; height: auto; }

/* Shared type */

.ref-bar {
  display: block;
  width: clamp(3rem, 4vw, 3.8125rem);
  height: 6px;
  background: var(--lat-accent);
}

.kicker {
  font-weight: 600;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1.125rem);
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--lat-text-secondary-on-dark);
}

.headline {
  font-weight: 700;
  font-size: clamp(2.75rem, 1.25rem + 8vw, 6.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--lat-paper);
  text-wrap: balance;
}
.headline .line { display: block; }

.lede {
  max-width: 34rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.625rem);
  line-height: 1.42;
  color: var(--lat-text-secondary-on-dark);
}

/* Main / hero */

main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding-block: clamp(2.25rem, 7vh, 4.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "product"
    "form";
  gap: 2.5rem;
}

.hero__intro {
  grid-area: intro;
  container-type: inline-size;
}
.hero__intro .kicker { margin-top: clamp(1.25rem, 2.5vw, 2.25rem); }
.hero__intro .headline { margin-top: clamp(1rem, 2.4vw, 2.25rem); }
.hero__intro .lede { margin-top: clamp(1rem, 2vw, 1.75rem); }

@supports (font-size: 1cqi) {
  /* "the live mix." sets about 5.2 em wide; keep it inside its column. */
  .hero__intro .headline { font-size: min(6.75rem, 17cqi); }
}

.hero__product {
  grid-area: product;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__form { grid-area: form; }

@media (min-width: 56.25rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "intro product"
      "form  product";
    column-gap: clamp(2.5rem, 5vw, 3.25rem);
    row-gap: clamp(2rem, 3vw, 2.75rem);
  }
  .hero__form { align-self: end; }
}

/* SUPPRA: the one dominant accent area. */

.product-field {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  padding: clamp(1.5rem, 3.2vw, 2.6875rem);
  background: var(--lat-accent);
  color: var(--lat-on-accent);
}

.product-field .kicker {
  color: var(--lat-on-accent);
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1.1875rem);
  letter-spacing: 0.105em;
}

.product-name {
  margin-top: 0.12em;
  margin-left: -0.03em;
  font-weight: 700;
  font-size: clamp(4rem, 2rem + 10vw, 9.625rem);
  line-height: 1;
  letter-spacing: -0.0195em;
}

.product-desc {
  margin-top: 0.15em;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.6875rem);
  line-height: 1.3;
}

@supports (font-size: 1cqi) {
  /* SUPPRA sets about 3.55 em wide. */
  .product-name { font-size: min(9.625rem, 24cqi); }
  .product-desc { font-size: clamp(1.125rem, 4.3cqi, 1.6875rem); }
}

/* Diagonal joint: one local cut, horizontal displacement to height = 2:3. */
.joint {
  --h: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  --cut: 40%;
  --run: calc(var(--h) * 2 / 3);
  --gap: calc(var(--h) * 0.634);
  position: relative;
  height: var(--h);
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
}
.joint span {
  position: absolute;
  inset: 0;
  background: var(--lat-on-accent);
}
.joint span:first-child {
  clip-path: polygon(0 0, var(--cut) 0, calc(var(--cut) + var(--run)) 100%, 0 100%);
}
.joint span:last-child {
  clip-path: polygon(calc(var(--cut) + var(--gap)) 0, 100% 0, 100% 100%, calc(var(--cut) + var(--gap) + var(--run)) 100%);
}

.product-status {
  margin-top: auto;
  padding-top: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  line-height: 1.2;
}

.more {
  font-size: 1rem;
  color: var(--lat-text-secondary-on-dark);
}

/* Waitlist form */

.waitlist { container-type: inline-size; }

.waitlist__label {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--lat-paper);
}

.waitlist__row {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.625rem;
}

@container (min-width: 28rem) {
  .waitlist__row { grid-template-columns: minmax(0, 1fr) auto; }
}

.waitlist__input {
  width: 100%;
  min-width: 0;
  height: 3.5rem;
  padding: 0 1rem;
  border: 1px solid var(--lat-text-secondary-on-dark);
  border-radius: 0;
  background: var(--lat-ink);
  color: var(--lat-paper);
  font: inherit;
  font-size: 1.125rem;
  -webkit-appearance: none;
  appearance: none;
}
.waitlist__input::placeholder { color: var(--lat-text-secondary-on-dark); opacity: 1; }
.waitlist__input:hover { border-color: var(--lat-paper); }
.waitlist__input:focus-visible {
  border-color: var(--lat-paper);
  outline-offset: 2px;
}
.waitlist__input[aria-invalid="true"] {
  border-color: var(--lat-accent);
  box-shadow: inset 0 0 0 1px var(--lat-accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--lat-accent);
  color: var(--lat-on-accent);
  font: inherit;
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.button svg {
  flex: none;
  width: 1.25rem;
  height: 1.0625rem;
  transition: transform 160ms ease-out;
}
.button:hover svg { transform: translateX(4px); }
.button:active { transform: translateY(1px); }
.button[aria-disabled="true"] { cursor: progress; }

.waitlist__consent {
  margin-top: 0.875rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--lat-text-secondary-on-dark);
}

.waitlist__consent a {
  color: var(--lat-paper);
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

.waitlist__status:empty { display: none; }
.waitlist__status {
  margin-top: 0.875rem;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--lat-paper);
}
.waitlist__status[data-tone="error"]::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.5rem;
  background: var(--lat-accent);
  vertical-align: 0.05em;
}
.waitlist__status:focus { outline: none; }

.waitlist.is-done .waitlist__label,
.waitlist.is-done .waitlist__row,
.waitlist.is-done .waitlist__consent { display: none; }
.waitlist.is-done .waitlist__status {
  margin-top: 0;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
}

/* Honeypot: off-screen for people, still in the DOM for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Simple pages: thanks, try again, 404 */

.simple {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  justify-items: start;
}
.simple .headline { font-size: clamp(2.5rem, 1.25rem + 6vw, 5.5rem); }
.simple .lede a { color: var(--lat-paper); text-underline-offset: 0.2em; }
.simple .button { margin-top: 0.5rem; text-decoration: none; }

/* Light reading surface (the kit's "technical" rhythm): used for long text such as /privacy. */

/* Root too, so the scrollbar and overscroll area follow the light page. */
:root:has(body.theme-light) {
  color-scheme: light;
  background: var(--lat-paper);
}

.theme-light {
  --lat-divider-on-light: #B3B4B2;
  color-scheme: light;
  background: var(--lat-paper);
  color: var(--lat-ink);
}
.theme-light :focus-visible { outline-color: var(--lat-ink); }
.theme-light .site-header .wrap,
.theme-light .site-footer .wrap { border-color: var(--lat-divider-on-light); }
.theme-light .kicker,
.theme-light .headline,
.theme-light .site-footer .wrap,
.theme-light .site-footer a { color: var(--lat-ink); }
.theme-light .site-footer a { text-decoration-color: var(--lat-divider-on-light); }
.theme-light .site-footer a:hover { text-decoration-color: currentColor; }
.theme-light main { align-items: flex-start; }

/* Left edge lines up with the header's .wrap; the text keeps a readable measure. */
.doc {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-left: max(var(--gutter), (100% - var(--content-max)) / 2);
}
.doc .kicker { margin-top: clamp(1.25rem, 2.5vw, 2.25rem); }
.doc h1 {
  margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.doc__meta {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.doc__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.5;
}
.doc h2 {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lat-divider-on-light);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.2;
}
.doc h3 {
  margin: 1.75rem 0 0;
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.doc p,
.doc ul,
.doc ol { margin: 0.875rem 0 0; line-height: 1.6; }
.doc ul,
.doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.375rem; }
.doc a { color: inherit; text-underline-offset: 0.2em; }
.doc strong { font-weight: 600; }
.doc .toc { margin-top: 2rem; }
.doc .toc ol { columns: 2 14rem; column-gap: 2rem; }
.doc .toc li { break-inside: avoid; }

/* Footer */

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--lat-divider-on-dark);
  font-size: 0.9375rem;
  color: var(--lat-text-secondary-on-dark);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--lat-paper);
  text-decoration: underline;
  text-decoration-color: var(--lat-divider-on-dark);
  text-underline-offset: 0.25em;
}
.site-footer a:hover { text-decoration-color: currentColor; }

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