/* KMOS Fit — navy / blue-field camo palette, conversion-focused */

:root {
  /* Core: type-I navy / slate camo */
  --navy-void: #060d16;
  --navy-deep: #0c1826;
  --navy-mid: #132433;
  --navy-panel: #1a3044;
  --navy-elevated: #1f3a4f;
  --steel: #4d6d82;
  --steel-bright: #6e93ab;
  --ice: #9ec5d8;
  --khaki: #c4b896;
  --sand-muted: #9a907c;
  --white: #e8eef2;
  --muted: #9eb0bd;
  --muted-dark: #7a8c99;
  --border: #2a3f52;
  --border-light: #3d566b;
  /* Accent (replaces red): steel / ice blue */
  --accent: #5d8aa8;
  --accent-hover: #7aa6c4;
  --accent-muted: rgba(93, 138, 168, 0.35);
  --focus-ring: #8ecae6;
  --black: var(--navy-void);
  --charcoal: var(--navy-mid);
  --elevated: var(--navy-panel);
  --gold: var(--khaki);
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --space-section: clamp(3rem, 8vw, 4.5rem);
  --container-pad: clamp(1.25rem, 5vw, 7%);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--navy-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 63, 82, 0.85);
}

.header-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.875rem var(--container-pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.logo-accent {
  color: var(--ice);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--ice);
  border-bottom-color: rgba(158, 197, 216, 0.45);
}

.nav-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-void);
}

.nav-cta:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) var(--container-pad) 3rem;
}

/* Layered navy / blue-gray “field” feel + optional banner */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 22, 0.75) 0%, rgba(6, 13, 22, 0.94) 100%),
    linear-gradient(125deg, rgba(26, 48, 68, 0.4) 0%, transparent 45%),
    linear-gradient(215deg, rgba(19, 36, 51, 0.5) 0%, transparent 40%),
    linear-gradient(160deg, #0f1f2e 0%, #152a3d 35%, #0d1824 55%, #12202f 100%),
    url("assets/kmosfit-banner.png") center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--khaki);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6.5vw, 3.5rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 38rem;
}

.lead {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--muted);
}

.pull-quote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.8vw, 1.35rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ice);
  line-height: 1.2;
}

.section p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.text-highlight {
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.button-row-center {
  justify-content: center;
}

.button-row--timeline {
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-void);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--navy-void);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(232, 238, 242, 0.55);
}

.btn-secondary:hover {
  background: rgba(142, 202, 230, 0.1);
  border-color: var(--ice);
}

.btn-large {
  min-height: 3.25rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.inline-cta {
  margin-top: 1.5rem;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(30, 58, 79, 0.5);
  border: 1px solid var(--border);
  color: var(--ice);
}

.section-timeline {
  background: linear-gradient(180deg, var(--navy-void) 0%, var(--navy-deep) 40%, var(--navy-void) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-container {
  max-width: 48rem;
}

.timeline-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  padding: 0 0.5rem;
}

.timeline-header h2 {
  margin-bottom: 0;
}

.timeline-header-copy {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 26rem;
  margin-inline: auto;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0 0 2rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.timeline-dot {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--navy-void);
  box-shadow: 0 0 0 2px var(--accent-muted);
  margin-top: 0.35rem;
}

.timeline-dot--accent {
  background: var(--ice);
  box-shadow: 0 0 0 2px rgba(158, 197, 216, 0.35);
}

.timeline-connector {
  flex: 1;
  width: 2px;
  min-height: 1.5rem;
  margin-top: 0.35rem;
  background: linear-gradient(
    180deg,
    rgba(93, 138, 168, 0.65) 0%,
    rgba(158, 197, 216, 0.3) 60%,
    rgba(158, 197, 216, 0.08) 100%
  );
  border-radius: 2px;
}

.timeline-panel {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.15rem, 3.5vw, 1.5rem);
  margin-bottom: 0;
}

.timeline-step--dark .timeline-panel {
  background: rgba(19, 36, 51, 0.95);
  border-color: var(--border-light);
}

.timeline-panel--wide {
  max-width: none;
}

.timeline-phase {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--khaki);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: var(--white);
}

.timeline-body {
  margin-bottom: 0;
}

.timeline-body p:last-child {
  margin-bottom: 0;
}

.timeline-step .pull-quote {
  margin-top: 0;
}

.timeline-step--compare .timeline-panel {
  border-color: rgba(158, 197, 216, 0.28);
  box-shadow: 0 0 0 1px rgba(93, 138, 168, 0.12);
}

.timeline-next-copy {
  margin: 1.25rem 0 0 !important;
  font-size: 0.9375rem;
  color: var(--muted);
}

.compare-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

.compare-card {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  background: var(--navy-deep);
}

.compare-card-label {
  display: flex;
  justify-content: center;
  padding: 0.65rem 1rem;
  margin: 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
}

.timeline-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--navy-panel) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}

.timeline-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.photo-badge--then {
  background: rgba(77, 109, 130, 0.35);
  color: var(--ice);
  border: 1px solid rgba(110, 147, 171, 0.45);
}

.photo-badge--now {
  background: rgba(196, 184, 150, 0.2);
  color: var(--khaki);
  border: 1px solid rgba(196, 184, 150, 0.4);
}

@media (max-width: 520px) {
  .timeline-step {
    grid-template-columns: 2rem 1fr;
    gap: 0 0.875rem;
  }

  .timeline-dot {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
  }
}

.section {
  padding: var(--space-section) var(--container-pad);
}

.section--tight {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.section-dark {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
}

.container {
  max-width: 90rem;
  margin: 0 auto;
}

.container.narrow {
  max-width: 36rem;
}

.cta-centered {
  text-align: center;
}

.cta-centered p {
  margin-left: auto;
  margin-right: auto;
  max-width: 32rem;
}

.cta-one-liner {
  margin-bottom: 1.5rem !important;
  font-size: 1.0625rem;
}

.cta-qualifier {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-dark) !important;
}

.site-footer {
  padding: 1.75rem var(--container-pad);
  border-top: 1px solid var(--border);
  background: var(--navy-void);
}

.footer-inner {
  text-align: center;
}

.footer-tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-dark);
}

@media (max-width: 480px) {
  .button-row .btn {
    width: 100%;
  }
}

/* Contact page */
.page-contact {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-contact-inner {
  max-width: 32rem;
  margin: 0 auto;
}

.page-contact h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.page-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.page-lead a {
  color: var(--ice);
  font-weight: 600;
  text-underline-offset: 3px;
}

.page-lead a:hover {
  color: var(--accent-hover);
}

.page-lead a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--khaki);
  letter-spacing: 0.03em;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--navy-mid);
  color: var(--white);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-dark);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-dark);
}

.contact-submit {
  margin-top: 0.25rem;
}

.form-status {
  margin: 0;
  padding: 1rem 1.125rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.form-status[hidden] {
  display: none !important;
}

.form-status--success {
  background: rgba(93, 138, 168, 0.2);
  border: 1px solid rgba(93, 138, 168, 0.45);
  color: var(--ice);
}

.form-status--error {
  background: rgba(180, 90, 90, 0.15);
  border: 1px solid rgba(200, 120, 120, 0.4);
  color: #e8b4b4;
}

.form-status--setup {
  background: rgba(196, 184, 150, 0.12);
  border: 1px solid rgba(196, 184, 150, 0.35);
  color: var(--khaki);
}

.honeypot-checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.honeypot-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot-trap input {
  pointer-events: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Latest video page */
.page-latest {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-latest-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.page-latest h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.latest-state {
  margin-top: 1.5rem;
}

.latest-loading-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.latest-state--error p {
  margin: 0 0 0.75rem;
}

.latest-state--error a {
  color: var(--ice);
  font-weight: 600;
}

.latest-video-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 1.25rem 0 0.35rem;
  color: var(--white);
}

.latest-video-date {
  margin: 0 0 0.25rem !important;
  font-size: 0.875rem;
  color: var(--muted-dark);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy-deep);
}

.latest-debug {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px dashed var(--border-light);
  background: rgba(30, 58, 79, 0.35);
}

.latest-debug p {
  margin: 0 0 0.35rem;
}

.latest-deeplink {
  text-align: center;
}

.latest-deeplink .btn {
  margin-top: 0.5rem;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
