/* RoadReel — site styles
   Palette and type are pulled from the app so the two read as one product. */

:root {
  --ink:       #08080A;
  --bg:        #0E0E11;
  --surface:   #17171C;
  --line:      rgba(255, 255, 255, 0.09);
  --amber:     #FF9E21;
  --amber-dim: rgba(255, 158, 33, 0.16);
  --text:      #F2F2F4;
  --muted:     rgba(242, 242, 244, 0.58);
  --faint:     rgba(242, 242, 244, 0.38);

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: #0E0E11;
  background: var(--bg);
  color: #F2F2F4;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Wordmark ----------
   Same treatment as the app: all caps, heavy, italic, wide tracking,
   with a rule that fades from white through amber. */

.wordmark {
  display: inline-block;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 0.42em;
  position: relative;
  white-space: nowrap;
}
.wordmark .reel { color: var(--amber); }
.wordmark::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: calc(100% - 0.16em);
  height: 1.5px;
  background: linear-gradient(90deg,
              rgba(255,255,255,0.55) 0%,
              rgba(255,158,33,0.65) 55%,
              transparent 100%);
}

/* ---------- Chrome ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  padding: 1.75rem var(--gutter);
  flex-wrap: wrap;
}
.site-head .wordmark { font-size: 1.2rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a { color: var(--muted); text-decoration: none; margin-right: 1.5rem; }
.site-nav a:last-child { margin-right: 0; }
@supports (gap: 1rem) { .site-nav a { margin-right: 0; } }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 2.5rem 2rem 3.5rem;
  padding: 2.5rem var(--gutter) 3.5rem;
  color: var(--faint);
  font-size: 0.88rem;
}
.site-foot .entity {
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.foot-links a { color: var(--muted); text-decoration: none; margin-right: 1.25rem; }
@supports (gap: 1rem) { .foot-links a { margin-right: 0; } }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Hero ----------
   The signature: a road running to the horizon whose centre line is made
   of audio bars. It is the product in one picture — sound laid down the
   middle of a road. */

.hero {
  position: relative;
  padding: 4rem 2rem 0;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 40ch;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.4rem;
}

h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 2.25rem;
  max-width: 46ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.cta-row .btn { margin-right: 0.85rem; }
@supports (gap: 1rem) { .cta-row .btn { margin-right: 0; } }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--amber); color: #000; }
.btn-primary:hover { background: #FFB254; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

.cta-note { font-size: 0.85rem; color: var(--faint); margin: 1.1rem 0 0; }

/* The road itself */
.road {
  position: relative;
  height: clamp(240px, 38vw, 420px);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
  margin-inline: calc(var(--gutter) * -1);
}
.road svg { display: block; width: 100%; height: 100%; }

/* Bars march toward the viewer. Distance is encoded in the animation
   delay, so the far bars appear to move slower — same as real road markings. */
.lane-bar { animation: drive 2.6s linear infinite; }
@keyframes drive {
  from { opacity: 0.15; }
  40%  { opacity: 1; }
  to   { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  .lane-bar { animation: none; opacity: 0.8; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

.band { padding: 4rem 2rem; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.band + .band { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
}
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.card-mark {
  color: var(--amber);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------- Documents ---------- */

.doc { padding: 1rem 2rem 0; padding: 1rem var(--gutter) 0; }
.doc-inner { max-width: 68ch; max-width: var(--measure); }

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin-bottom: 0.6rem;
}
.doc-meta {
  color: var(--faint);
  font-size: 0.86rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-size: 1.3rem;
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}
.doc h3 { margin-top: 1.75rem; }
.doc p, .doc li { color: rgba(242,242,244,0.82); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }

.callout {
  background: var(--amber-dim);
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.35rem;
  margin: 2rem 0;
}
.callout p { margin: 0; color: var(--text); font-size: 0.97rem; }

.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.contact-table th,
.contact-table td {
  text-align: left;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.contact-table th {
  color: var(--muted);
  font-weight: 600;
  width: 38%;
  padding-right: 1rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc p { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.9rem; }
.toc ul { margin: 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.92rem; }

@media (max-width: 560px) {
  .toc ul { columns: 1; }
  .site-nav { gap: 1.1rem; font-size: 0.86rem; }
}
