/* VideoRidgeline coming-soon site.
   Palette and type follow the brand guide: Inter, navy/teal, logo on white. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #093256;
  --navy-deep: #062542;
  --teal: #1cbed1;
  --teal-deep: #0f7888;
  --slate: #36536b;
  --cloud: #f4f7f9;
  --white: #ffffff;
  --line: #d9e2ea;
  --line-on-navy: rgba(255, 255, 255, 0.16);
  --error: #a8322b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-control: 10px;
  --radius-panel: 16px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

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

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-control);
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button--accent {
  background: var(--teal);
  color: var(--navy-deep);
}

.button--accent:hover {
  background: #5fd5e2;
  color: var(--navy-deep);
}

.button--primary {
  background: var(--navy);
  color: var(--white);
}

.button--primary:hover {
  background: #0d4273;
  color: var(--white);
}

.button--primary[disabled] {
  background: #6f879b;
  cursor: progress;
}

.button--quiet {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.button--quiet:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Header: the logo artwork must sit on white. */

.site-header {
  background: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.5rem;
}

.site-header__logo {
  display: block;
  flex: 0 1 360px;
  min-width: 0;
  /* The image file already includes the logo's required clear space. */
  margin-left: -4px;
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

.site-header__cta {
  flex: none;
}

/* Hero */

.hero {
  background: var(--navy);
  color: var(--white);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.status-pill {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line-on-navy);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero__lede {
  max-width: 30rem;
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
  color: #c9d8e4;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

/* Player illustration: the ridgeline is the progress bar. */

.player-demo {
  --accent: #1cbed1;
}

.player {
  overflow: hidden;
  border-radius: var(--radius-panel);
  box-shadow: 0 0 0 1px var(--line-on-navy), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.player__art {
  width: 100%;
  height: auto;
}

.player__label,
.player__meta {
  font-family: var(--font);
  fill: #ffffff;
}

.player__label {
  font-size: 13px;
  font-weight: 600;
  fill-opacity: 0.85;
}

.player__meta {
  font-size: 13px;
  font-weight: 500;
  fill-opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.player__accent-fill {
  fill: var(--accent);
  transition: fill 0.25s ease;
}

.player__track,
.player__progress {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player__track {
  stroke: #ffffff;
  stroke-opacity: 0.28;
}

.player__progress {
  stroke: var(--accent);
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke 0.25s ease;
}

.player__playhead {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
  transition: stroke 0.25s ease;
}

.player-demo__caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-top: 1rem;
  color: #c9d8e4;
  font-size: 0.9375rem;
}

.swatches {
  display: inline-flex;
  gap: 0.6rem;
}

.swatch {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #ffffff;
}

.swatch[data-accent="#1CBED1"] { color: #1cbed1; }
.swatch[data-accent="#FF7A59"] { color: #ff7a59; }
.swatch[data-accent="#8B7CFF"] { color: #8b7cff; }
.swatch[data-accent="#F5B83D"] { color: #f5b83d; }

/* One page-load moment: the progress line draws along the ridge. */

@media (prefers-reduced-motion: no-preference) {
  .player__progress {
    animation: ridge-draw 1.5s cubic-bezier(0.3, 0, 0.2, 1) 0.35s backwards;
  }

  .player__playhead {
    animation: playhead-in 0.3s ease-out 1.75s backwards;
  }
}

@keyframes ridge-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes playhead-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Features */

.features {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.section-intro p {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 3.5rem);
}

.feature {
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--line);
}

.feature__icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 1rem;
}

/* Signup */

.signup {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--cloud);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.signup__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.signup__copy p {
  max-width: 28rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.signup__panel {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
}

.field__optional {
  color: var(--slate);
  font-weight: 400;
}

.field input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #b9c7d3;
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--navy);
  font: inherit;
}

.field input::placeholder {
  color: #7d92a4;
}

.field input:hover {
  border-color: var(--slate);
}

.field input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal-deep);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin-top: 0.4rem;
  color: var(--error);
  font-size: 0.9375rem;
}

/* Honeypot: kept out of sight and out of the tab order. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form__check:not(:empty) {
  margin-bottom: 1.25rem;
}

.signup-form__submit {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.0625rem;
}

.signup-form__status {
  color: var(--error);
  font-size: 0.9375rem;
}

.signup-form__status:not(:empty) {
  margin-top: 0.9rem;
}

.signup-form__note {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.signup-done h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.signup-done:focus {
  outline: none;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #c9d8e4;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--teal);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

/* Text pages (privacy, not found) */

.page {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 9vw, 6rem);
}

.page__body {
  max-width: 42rem;
}

.page h1 {
  color: var(--navy);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.page__meta {
  margin-top: 0.75rem;
}

.page h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  letter-spacing: -0.012em;
}

.page p,
.page__body ul {
  margin-top: 1rem;
}

.page__body ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.page__body li + li {
  margin-top: 0.4rem;
}

.page .button {
  margin-top: 2rem;
}

.site-header--ruled {
  border-bottom: 1px solid var(--line);
}

/* Smaller screens */

@media (max-width: 60rem) {
  .hero__inner,
  .signup__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-demo__caption {
    justify-content: flex-start;
  }
}

@media (max-width: 38rem) {
  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header__cta {
    display: none;
  }

  .hero .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .player__accent-fill,
  .player__progress,
  .player__playhead {
    transition: none;
  }
}
