/* Hallmark · genre: modern-minimal · macrostructure: kinetic-marquee + product index
 * theme: Friendly Chrome · design-system: design.md · designed-as-app
 * nav: N9 · footer: Ft2 · enrichment: Tier-A semantic row field
 * contrast: pass · honest: pass · chrome: pass · mobile: pass
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5
 */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400..700&display=swap");
@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  background: var(--color-paper);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  border-bottom: var(--rule-thin) solid var(--color-rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
}

.nav-link,
.text-link {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration-color: var(--color-rule);
  text-decoration-thickness: var(--rule-thin);
  text-underline-offset: 0.35em;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(48rem, 82svh);
  align-content: end;
  padding-block: var(--space-8) var(--space-9);
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 68rem;
}

.eyebrow {
  margin: 0 0 var(--space-5);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  min-width: 0;
  margin-block: 0;
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 9.5ch;
  font-size: var(--text-display);
  font-weight: 500;
}

.hero-bottom {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.hero-copy {
  max-width: 54ch;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cta-stack {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.button,
.support-button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-5);
  border: var(--rule-thin) solid var(--color-ink);
  border-radius: 999rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.button {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.support-button {
  border-color: var(--color-support);
  background: var(--color-support);
  color: var(--color-on-accent);
}

.store-proof {
  display: inline-flex;
  width: 9.5rem;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.store-proof img {
  width: 100%;
  height: auto;
}

.button:active,
.support-button:active {
  transform: translateY(1px);
}

.button[aria-disabled="true"],
.support-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.row-field {
  position: absolute;
  z-index: -1;
  inset: var(--space-6) calc(50% - 50vw) auto;
  display: grid;
  gap: var(--space-3);
  opacity: 0.78;
  overflow: clip;
  pointer-events: none;
}

.row-track {
  display: flex;
  width: max-content;
  gap: var(--space-3);
  animation: row-drift 32s linear infinite;
}

.row-track:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 40s;
}

.row-track span {
  display: block;
  width: var(--tile-width);
  height: 4.25rem;
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-sm);
  background: var(--color-tile-1);
}

.row-track span:nth-child(6n + 2) { background: var(--color-tile-2); }
.row-track span:nth-child(6n + 3) { background: var(--color-tile-3); }
.row-track span:nth-child(6n + 4) { background: var(--color-tile-4); }
.row-track span:nth-child(6n + 5) { background: var(--color-tile-5); }
.row-track span:nth-child(6n + 6) { background: var(--color-tile-6); }

@keyframes row-drift {
  from { transform: translateX(-4rem); }
  to { transform: translateX(-18rem); }
}

.gallery,
.section {
  padding-block: var(--space-9);
  border-top: var(--rule-thin) solid var(--color-rule);
}

.gallery-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.gallery-head h2,
.section-heading {
  max-width: 15ch;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: clip;
  border: var(--space-2) solid var(--color-surface);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 1.5rem 4rem var(--color-shadow);
}

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

.video-caption {
  max-width: 65ch;
  margin: var(--space-3) 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.section-heading {
  margin-bottom: var(--space-7);
}

.feature-list {
  display: grid;
  border-top: var(--rule-thin) solid var(--color-rule);
}

.feature {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: var(--rule-thin) solid var(--color-rule);
}

.feature h2,
.feature h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.feature:nth-child(3n + 1) h2,
.feature:nth-child(3n + 1) h3 {
  color: var(--color-accent-dark);
}

.feature:nth-child(3n + 2) h2,
.feature:nth-child(3n + 2) h3 {
  color: var(--color-green-ink);
}

.feature:nth-child(3n + 3) h2,
.feature:nth-child(3n + 3) h3 {
  color: var(--color-coral-ink);
}

.feature p,
.feature div {
  max-width: 62ch;
  margin: 0;
  color: var(--color-muted);
}

.feature div p + p {
  margin-top: var(--space-4);
}

code {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.quiet-grid {
  display: grid;
  gap: var(--space-7);
}

.privacy-copy {
  max-width: 55ch;
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-block: var(--space-7);
  border-top: var(--rule-thin) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.footer p {
  max-width: 70ch;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.legal-hero {
  min-height: 30rem;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover,
  .text-link:hover {
    color: var(--color-ink);
  }

  .button:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-on-accent);
  }

  .support-button:hover {
    border-color: var(--color-support-dark);
    background: var(--color-support-dark);
    color: var(--color-on-accent);
  }

}

@media (min-width: 40rem) {
  .shell {
    width: min(100% - 4rem, 78rem);
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .actions {
    justify-content: flex-end;
  }

  .cta-stack {
    justify-items: end;
  }

  .feature {
    grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .quiet-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .footer {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  .row-track span {
    height: 5.25rem;
  }
}

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

  .row-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
