/* ============================================================
   Eddies — Brutalist Gen-Z, neon-lime on black
   ============================================================ */

/* ---- Self-hosted fonts (Anton 400 + Inter 400/600/700 Latin-only) ---- */
@font-face {
  font-family: 'Anton';
  src: url('assets/fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  /* Palette */
  --color-bg: #000000;
  --color-bg-elevated: #0A0A0A;
  --color-bg-card: #111111;
  --color-bg-card-hover: #1A1A1A;

  --color-accent: #BBFF01;
  --color-accent-dim: rgba(187, 255, 1, 0.15);
  --color-accent-glow: rgba(187, 255, 1, 0.35);
  --color-accent-ink: #000000;

  --color-text: #FFFFFF;
  --color-text-muted: #B8B8B8;
  --color-text-dim: #6E6E6E;

  --color-line: rgba(255, 255, 255, 0.10);
  --color-line-bright: rgba(187, 255, 1, 0.30);

  --color-success: #34D399;
  --color-success-bg: rgba(52, 211, 153, 0.15);

  /* Typography */
  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text-display: clamp(3.5rem, 2rem + 8vw, 9rem);
  --text-poster: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  --text-h2: clamp(2rem, 1.25rem + 3vw, 4rem);
  --text-h3: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --text-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* Spacing */
  --gutter: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  --max-width: 1240px;
  --max-width-prose: 680px;
  --space-section: clamp(5rem, 4rem + 6vw, 10rem);
  --space-block: clamp(2rem, 1.5rem + 2vw, 4rem);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-mark: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

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

.lime { color: var(--color-accent); }

/* Hand-drawn underline accent */
.scribble {
  position: relative;
  display: inline-block;
}
.scribble::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.18em;
  height: 0.18em;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transform: skewY(-1.5deg);
  z-index: -1;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-line);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: lowercase;
  letter-spacing: -0.04em;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-mark);
  flex-shrink: 0;
}
.logo-mark svg { display: block; }

.nav-links {
  display: none;
  gap: var(--space-lg);
}

@media (min-width: 481px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--duration-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--color-accent); }
}
.nav-links a:focus-visible { color: var(--color-accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 0.95rem 1.75rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 0 var(--color-accent-glow);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--color-accent-glow);
  }
}

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

.btn-primary:active { transform: translateY(0); }

/* Mobile-first: base = smallest viewport */
.btn-large {
  padding: 0.85rem 0.9rem;
  font-size: 0.875rem;
  gap: 0.4rem;
  letter-spacing: 0.02em;
  max-width: 100%;
  min-height: 48px;
}
.btn-large .apple-icon { width: 16px; height: 20px; }

@media (min-width: 381px) {
  .btn-large {
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    gap: 0.625rem;
  }
  .btn-large .apple-icon { width: 18px; height: 22px; }
}

@media (min-width: 541px) {
  .btn-large {
    padding: 1.15rem 2.25rem;
    font-size: var(--text-lead);
    letter-spacing: 0.04em;
  }
}

.btn-nav {
  padding: 0.55rem 1.1rem;
  font-size: var(--text-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform var(--duration-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-nav:hover { transform: translateY(-1px); }
}

.apple-icon {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================================
   Hero — mobile-first cascade
   ============================================================ */
.hero {
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  text-align: left;
  gap: var(--space-xl);
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

.hero-sub {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--space-2xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  margin: 0 auto;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

@media (min-width: 901px) {
  .hero { padding-bottom: var(--space-section); }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 1rem + 5vw, 5rem);
  }
  .hero-visual { order: initial; }
  .phone-frame { max-width: 360px; }
  .hero-actions { justify-content: flex-start; }
}

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 14px 0;
  border-top: 1px solid var(--color-bg);
  border-bottom: 1px solid var(--color-bg);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-flex;
  gap: 3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  animation: marquee 60s linear infinite;
}
.marquee-inner span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee-dot::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--color-accent-ink);
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 3rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

/* ============================================================
   Feature posters (alternating layout)
   ============================================================ */
.posters {
  padding: var(--space-section) 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-line);
}

/* Posters mobile-first: stacked, img above, copy centered */
.poster-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}
.poster-row:last-child { margin-bottom: 0; }

.poster-row > .poster-img,
.poster-row.reverse > .poster-img {
  order: 1;
  max-width: 280px;
  margin: 0 auto;
}
.poster-row > .poster-copy,
.poster-row.reverse > .poster-copy { order: 2; }
.poster-row .poster-copy { text-align: left; }
.poster-row .poster-copy p { margin-inline: 0; }

@media (min-width: 901px) {
  .poster-row {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 1rem + 5vw, 6rem);
    margin-bottom: var(--space-section);
  }
  .poster-row > .poster-copy { order: 1; }
  .poster-row > .poster-img  { order: 2; max-width: 360px; margin: 0 0 0 auto; }
  .poster-row.reverse > .poster-copy { order: 2; }
  .poster-row.reverse > .poster-img  { order: 1; max-width: 360px; margin: 0 auto 0 0; }
}

.poster-img {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-copy p {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* ============================================================
   FAQ — compact variant
   ============================================================ */
.faq {
  padding: var(--space-3xl) 0;
}
.faq-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.faq-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  min-height: 44px;
  list-style: none;
  user-select: none;
  transition: background var(--duration-fast) var(--ease-out);
  gap: var(--space-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 400;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out);
  line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { background: var(--color-bg-card-hover); }
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.faq-q {
  font-size: var(--text-body);
  font-weight: 600;
}
.faq-item p {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.faq-item p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  padding: var(--space-section) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(187, 255, 1, 0.06) 0%, transparent 60%),
    var(--color-bg);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 1.5rem + 8vw, 9rem);
  text-transform: uppercase;
  line-height: 0.88;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}
.final-cta h2 .lime { color: var(--color-accent); }

.final-cta p {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto var(--space-2xl);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 481px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
  }
  .footer-brand { grid-column: initial; }
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.6;
  max-width: 28ch;
}

.footer-links h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-links li { margin-bottom: 2px; }

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: 6px 0;
  display: inline-block;
  min-height: 24px;
  transition: color var(--duration-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--color-accent); }
}
.footer-links a:focus-visible { color: var(--color-accent); }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}
.footer-bottom small {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}


/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal-page {
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-section);
}

.legal-page .container {
  max-width: var(--max-width-prose);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.legal-page .effective {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2xl);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h3);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
}

.legal-page h3 {
  font-size: var(--text-body);
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-page p,
.legal-page li {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-page ul,
.legal-page ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.legal-page ul li,
.legal-page ol li { list-style: disc; margin-bottom: var(--space-xs); }
.legal-page ol li { list-style: decimal; }

.legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page strong { color: var(--color-text); font-weight: 600; }

.legal-toc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.legal-toc strong {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}
.legal-toc ol {
  padding-left: var(--space-lg);
  margin: 0;
}
.legal-toc li {
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.back-home {
  display: inline-block;
  margin-top: var(--space-3xl);
}

/* ============================================================
   Focus & Accessibility
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  /* Kill only motion-style transitions; keep colors / opacity snappy */
  *, *::before, *::after {
    transition-property: opacity, background-color, color, border-color !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
}
.skip-link:focus { top: 16px; }
