/* Ondatik landing — spec v1 orange LCD tokens */

@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/PressStart2P-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0603;
  --surface: #140c05;
  --border: #6b3a08;
  --text: #ff9a1f;
  --text-2: #c46a10;
  --text-dim: #8a4d0c;
  --accent: #ffb347;
  --up: #33ff66;
  --down: #ff3b3b;
  --glow: 0 0 8px rgba(255, 154, 31, 0.5);
  --radius: 4px;
  --phone-radius: 28px;
  --max: 1200px;
  --gutter: 16px;
  --space: 8px;
  --fs-wordmark: clamp(32px, 11vw, 96px);
  --fs-h2: 20px;
  --fs-body: 14px;
  --fs-small: 12px;
  --lh-body: 1.5;
  --pad-section: 48px;
}

@media (min-width: 960px) {
  :root {
    --fs-h2: 28px;
    --fs-body: 16px;
    --pad-section: 96px;
    --gutter: 24px;
  }
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

html.reduced-motion {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 154, 31, 0.04) 0,
    rgba(255, 154, 31, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

html.reduced-motion body::before {
  display: none;
}

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

  body::before {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #ffb347;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 60;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.skip:focus {
  top: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  background: rgba(10, 6, 3, 0.92);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: var(--fs-small);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

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

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.nav {
  display: none;
}

.nav a {
  color: var(--text-2);
  letter-spacing: 0.08em;
  font-size: var(--fs-small);
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 60px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav.is-open a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.nav-static {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 24px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.hero {
  padding: var(--pad-section) 0;
  text-align: center;
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
  container-type: inline-size;
}

.wordmark {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(32px, 11vw, 96px);
  font-size: clamp(32px, 11cqi, 96px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-shadow: var(--glow);
  cursor: pointer;
  white-space: nowrap;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--accent);
}

.tagline {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  min-height: 1.5em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.06s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.lede {
  margin: 0 auto 32px;
  max-width: 28rem;
  color: var(--text-2);
  font-size: var(--fs-body);
}

.hero-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 32px;
}

.hero-frame {
  width: min(100%, 280px);
}

.chip {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  background: transparent;
}

.caption {
  margin: 8px 0 0;
  font-size: var(--fs-small);
  color: var(--text-2);
}

.section {
  padding: var(--pad-section) 0;
  min-width: 0;
}

.section h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: var(--glow);
}

.features-lead {
  margin: -8px auto 24px;
  max-width: 40rem;
  text-align: center;
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.card svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 8px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.shots {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
}

.shots > li {
  list-style: none;
  flex: 0 0 70%;
  max-width: 240px;
  min-width: 0;
  scroll-snap-align: center;
}

.phone-frame {
  margin: 0;
  padding: 8px 8px 4px;
  background: var(--surface);
  border: 1px solid var(--text);
  border-radius: var(--phone-radius);
}

.phone-frame picture,
.phone-frame img {
  display: block;
  width: 100%;
}

.phone-frame img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  background: #100804;
}

.phone-frame figcaption {
  margin: 8px 0 4px;
  text-align: center;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--text);
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: center;
    text-align: left;
  }

  .wordmark {
    text-align: left;
  }

  .lede {
    margin-left: 0;
  }

  .hero-copy {
    grid-column: 1;
  }

  .hero-phone-wrap {
    margin: 0;
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .chip {
    grid-column: 1;
    justify-self: start;
  }

  .shots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .shots > li {
    flex: none;
    max-width: none;
  }
}

.signup {
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 26rem);
  margin: 0 auto;
}

@media (min-width: 520px) {
  .form {
    flex-direction: row;
    align-items: stretch;
  }
}

.form input[type="email"] {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-body);
}

.form input::placeholder {
  color: var(--text-2);
}

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

.form button {
  min-height: 44px;
  min-width: 8.5rem;
  padding: 8px 16px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.form button:hover,
.form button:focus-visible {
  background: rgba(255, 154, 31, 0.08);
  color: var(--accent);
}

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

.form-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--accent);
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
}

.form-status.is-error {
  color: var(--down);
}

.privacy-note {
  margin: 16px auto 0;
  max-width: 28rem;
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.privacy-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.disclaimer,
.copyright {
  margin: 0 auto 8px;
  max-width: 42rem;
  color: var(--text-2);
  font-size: var(--fs-small);
  overflow-wrap: break-word;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.foot-links a {
  color: var(--text-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.wrap.legal {
  padding: var(--pad-section) 0;
  max-width: 70ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

.legal h1,
.legal h2 {
  color: var(--text);
  letter-spacing: 0.04em;
  text-shadow: var(--glow);
}

.legal h1 {
  margin: 0 0 16px;
  font-size: var(--fs-h2);
  letter-spacing: 0.08em;
}

.legal h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.legal p,
.legal li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}

.legal p {
  margin: 0 0 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 8px;
}

.legal-date {
  color: var(--text);
  font-size: 16px;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.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;
}
