/* Isolated TEEKAFIT marketing homepage.
   Legal pages keep styles.css only. Screenshot pixels are never filtered. */

:root {
  --landing-ink: #08090a;
  --landing-surface: #111315;
  --landing-surface-2: #181b1e;
  --landing-text: #f7f4ed;
  --landing-muted: #a9abb0;
  --landing-orange: #ff5a00;
  --landing-amber: #ffad1f;
  --landing-line: rgba(255, 255, 255, 0.12);
  --landing-max: 1180px;
}

html:has([data-landing-page]) {
  background: var(--landing-ink);
  overflow-x: clip;
}

[data-landing-page] .skip-link {
  left: auto;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  opacity: 0;
  pointer-events: none;
}

[data-landing-page] .skip-link:focus,
[data-landing-page] .skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

[data-landing-page] {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(255, 90, 0, 0.2), transparent 58%),
    radial-gradient(720px 420px at 100% 12%, rgba(255, 173, 31, 0.07), transparent 50%),
    linear-gradient(180deg, #0c0d0f 0%, var(--landing-ink) 38%, #0a0b0c 100%);
  color: var(--landing-text);
  overflow-x: clip;
}

[data-landing-page]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 3px);
  background-size: 3px 3px;
}

[data-landing-page] > * {
  position: relative;
  z-index: 1;
}

[data-landing-page] a {
  color: var(--landing-text);
}

[data-landing-page] a:hover {
  color: var(--landing-amber);
}

[data-landing-page] a:focus-visible,
[data-landing-page] .store-cta:focus-visible,
[data-landing-page] summary:focus-visible {
  outline: 2px solid var(--landing-amber);
  outline-offset: 3px;
}

[data-landing-page] main {
  max-width: none;
  margin: 0;
  padding: 0;
}

[data-header-sentinel] {
  position: absolute;
  top: 0;
  inline-size: 1px;
  block-size: 1px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 280ms ease, border-color 280ms ease;
}

.landing-header[data-solid] {
  background: var(--landing-ink);
  border-bottom-color: var(--landing-line);
}

.landing-header-inner {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

[data-landing-page] .brand {
  color: var(--landing-text);
  flex-shrink: 0;
}

[data-landing-page] .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.landing-nav a,
.landing-nav summary {
  color: var(--landing-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}

.landing-nav .nav-wide {
  display: none;
}

.landing-nav .lang-switch a {
  color: var(--landing-text);
  border: 1px solid var(--landing-line);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--landing-line);
  color: var(--landing-text);
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  min-width: 12rem;
  padding: 0.5rem;
  background: var(--landing-surface);
  border: 1px solid var(--landing-line);
  border-radius: 12px;
  display: grid;
}

.nav-more-panel a {
  color: var(--landing-text);
}

.store-cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem 0.5rem;
  border-radius: 12px;
  background: transparent;
  color: var(--landing-muted);
  border: 1px dashed var(--landing-line);
  cursor: not-allowed;
  user-select: none;
  line-height: 1.05;
}

.store-cta-kicker {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.store-cta-name {
  font-size: 0.95rem;
  font-weight: 800;
}

.store-cta-compact {
  padding-inline: 0.8rem;
}

.store-cta-compact .store-cta-name {
  font-size: 0.82rem;
}

.hero-section,
.story-section,
.close-section {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.hero-shell {
  display: grid;
  gap: 2.4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--landing-amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1,
.close-section h2,
.story-intro h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero-copy h1 {
  font-size: clamp(3rem, 12vw, 6.4rem);
  max-width: 8ch;
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 32ch;
  color: var(--landing-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 1.6rem;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--landing-text);
  border-bottom: 1px solid var(--landing-orange);
}

.store-note {
  margin: 0.85rem 0 0;
  max-width: 36ch;
  color: var(--landing-muted);
  font-size: 0.82rem;
}

.hero-device {
  justify-self: center;
  width: min(100%, 280px);
  padding: 1.5rem 0 0;
}

.hero-device .device {
  box-shadow:
    0 0 0 1px rgba(255, 173, 31, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(255, 90, 0, 0.12);
}

.device {
  margin: 0;
  width: 100%;
  background: #050607;
  border: 3px solid #2b2e32;
  border-radius: 2.1rem;
  padding: 0.7rem 0.55rem 0.55rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.device-sensor {
  display: block;
  width: 4.6rem;
  height: 0.42rem;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  background: #1b1d20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.35rem;
}

.story-section {
  padding-top: 1rem;
}

.story-intro {
  max-width: 18ch;
  margin-bottom: 2.5rem;
}

.story-intro h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.story-shell {
  display: grid;
  gap: 2rem;
}

.product-stage {
  display: none;
}

.story-step {
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid var(--landing-line);
  scroll-margin-top: 5.5rem;
}

.step-index {
  margin: 0 0 0.7rem;
  color: var(--landing-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.story-step h3 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.story-step p:not(.step-index) {
  margin: 0.8rem 0 0;
  max-width: 34ch;
  color: var(--landing-muted);
}

.step-visuals {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  max-width: 280px;
}

.step-visuals.pair {
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.step-visuals.pair .device:last-child {
  margin-top: 1.6rem;
}

.close-section {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding-block: 4rem;
  border-top: 1px solid var(--landing-line);
}

.close-section h2 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  max-width: 10ch;
}

.close-section .store-cta {
  margin-top: 1.6rem;
}

.landing-footer {
  background: #050607;
  border-top: 1px solid var(--landing-line);
}

.landing-footer .footer-inner {
  max-width: var(--landing-max);
}

.landing-footer a {
  color: var(--landing-amber);
}

@media (max-width: 720px) {
  .landing-header-inner {
    padding-inline: 0.85rem;
    flex-wrap: nowrap;
  }

  .landing-nav {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .store-cta-compact .store-cta-kicker {
    display: none;
  }

  .store-cta-compact {
    padding-inline: 0.65rem;
  }

  .landing-nav a,
  .landing-nav summary {
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  .hero-device,
  .step-visuals:not(.pair) {
    width: min(100%, 320px);
    max-width: 320px;
  }

  .hero-section,
  .story-section,
  .close-section {
    padding-inline: 2rem;
  }
}

@media (min-width: 900px) {
  .landing-nav .nav-wide {
    display: inline-flex;
  }

  .nav-more {
    display: none;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    min-height: calc(100svh - 4.5rem);
    gap: 4rem;
  }

  .hero-device {
    justify-self: end;
    width: min(100%, 360px);
  }

  .story-shell {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }

  .product-stage {
    display: block;
    position: sticky;
    top: 6rem;
  }

  [data-landing-page][data-enhanced] .step-visuals {
    display: none;
  }

  .story-step {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 4rem;
    border-top: 0;
    border-inline-start: 1px solid var(--landing-line);
    padding-inline-start: 2.2rem;
  }

  .story-step[data-active] {
    border-inline-start-color: var(--landing-orange);
  }

  .story-step h3 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    font-size: 6.2rem;
  }

  .hero-device {
    width: 380px;
  }
}

@media (min-width: 1440px) {
  .hero-section,
  .story-section,
  .close-section,
  .landing-header-inner,
  .landing-footer .footer-inner {
    max-width: calc(var(--landing-max) + 80px);
  }
}

.product-stage img.is-incoming {
  animation: stage-in 420ms ease;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .landing-header,
  [data-landing-page] a:not(.skip-link),
  .store-cta,
  .text-link,
  .product-stage img {
    transition: none;
    animation: none;
  }

  .product-stage {
    display: none;
  }

  [data-landing-page][data-enhanced] .step-visuals,
  .step-visuals {
    display: grid;
  }

  .story-step {
    min-height: 0;
    transform: none;
  }

  .product-stage img.is-incoming {
    animation: none;
  }
}
