/* Caytonia – site styles. Retro-pixel meets chrome. */

@font-face {
  font-family: 'Pixelify Sans';
  src: url('/fonts/pixelify-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pixelify Sans';
  src: url('/fonts/pixelify-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
/* Pixelify's digits are hard to read – use Silkscreen for 0–9 only */
@font-face {
  font-family: 'Pixel Digits';
  src: url('/fonts/silkscreen-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0030-0039;
  size-adjust: 88%;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0d0d0d;
  --ink-2: #3a3a3a;
  --muted: #5c5c5c;
  --paper: #ffffff;
  --mist: #f2f2ef;
  --line: #0d0d0d;
  --green: #0f7a3d;
  --yellow: #ffd400;
  --chrome: linear-gradient(135deg, #f7f7f7 0%, #c9ccd1 35%, #ffffff 50%, #aeb2b8 70%, #eceef0 100%);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --pixel: 'Pixel Digits', 'Pixelify Sans', 'Courier New', monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }

.pixel { font-family: var(--pixel); font-weight: 700; letter-spacing: 0.01em; }
.display { font-size: clamp(3rem, 8vw, 6.2rem); line-height: 0.95; letter-spacing: -0.01em; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; margin-bottom: 0.5em; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; margin: 1.2em 0 1.6em; }
.body-lg { font-size: 1.12rem; color: var(--ink-2); }
.narrow { max-width: 42em; }
.narrow-wide { max-width: 860px; }
.eyebrow, .kicker {
  font-family: var(--pixel); font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.92rem; margin: 0 0 1rem; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before, .kicker::before { content: ''; width: 10px; height: 10px; background: var(--green); }
.fineprint { font-size: 0.82rem; color: var(--muted); margin-top: 1.6rem; }
.micro { font-size: 0.88rem; color: var(--muted); margin-top: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--pixel); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  padding: 14px 22px; min-height: 52px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.card { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.frame { border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--mist); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: var(--pixel); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.08em; text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav + .header-actions { margin-left: 8px; }
.lang-switch { font-family: var(--pixel); font-weight: 700; text-decoration: none; padding: 6px 8px; border: 2px solid transparent; }
.lang-switch:hover { border-color: var(--ink); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) { .header-inner { gap: 10px; } .logo { font-size: 1.2rem; } .btn-small { padding: 8px 10px; font-size: .85rem; } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--mist) 1px, transparent 1px), linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-media { aspect-ratio: 1 / 1; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Mobile: headline + e-mail field first (above the fold), product image below */
  .hero-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero { padding-top: 28px; }
  .eyebrow { margin-bottom: .6rem; }
  .lead { margin: .8em 0 1.1em; }
}

/* Waitlist form */
.wl-form { max-width: 560px; }
.wl-row { display: flex; gap: 0; border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--paper); }
.wl-row input[type='email'] {
  flex: 1; min-width: 0; border: 0; padding: 0 16px; min-height: 56px; font: inherit; font-size: 1.05rem; background: transparent; color: var(--ink);
}
.wl-row input[type='email']:focus { outline: none; }
.wl-row:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.wl-row .btn { box-shadow: none; border: 0; border-left: 2px solid var(--ink); min-height: 56px; white-space: nowrap; }
.wl-row .btn:hover { transform: none; box-shadow: none; }
@media (max-width: 520px) {
  .wl-row { flex-direction: column; }
  .wl-row .btn { border-left: 0; border-top: 2px solid var(--ink); }
}
.wl-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.86rem; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.wl-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.wl-turnstile:not(:empty) { margin-top: 12px; }
.wl-msg { margin: 12px 0 0; font-size: 0.95rem; min-height: 1px; }
.wl-msg.is-error { color: #b00020; font-weight: 600; }
.wl-form.is-done .wl-row, .wl-form.is-done .wl-consent, .wl-form.is-done .wl-turnstile { display: none; }
.wl-form.is-done .wl-msg { padding: 16px 18px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: var(--shadow-sm); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Ticker */
.ticker { border-block: 2px solid var(--ink); background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 28px; padding: 14px 0; font-family: var(--pixel); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; animation: ticker 36s linear infinite; }
.ticker-track span[aria-hidden] { color: var(--yellow); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-mist { background: var(--mist); border-block: 2px solid var(--ink); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .kicker::before { background: var(--yellow); }
.section-ink .fineprint { color: #b8b8b8; }
.split { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-rev { grid-template-columns: 1fr 0.8fr; }
.split-media { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; }
.split-media img { object-position: center 40%; }
.frame-tilt { transform: rotate(-2deg); }
@media (max-width: 900px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-media { max-width: 380px; margin: 0 auto; }
  .split-rev .split-media { order: -1; }
}
.punch { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 0.8em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 7vw, 88px); }
.step { padding: 26px 24px; }
.step-n { display: inline-block; font-size: 1rem; background: var(--yellow); border: 2px solid var(--ink); padding: 2px 8px; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Apps */
.app-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.app-icon {
  grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--pixel); font-weight: 700; font-size: 1.6rem;
  background: var(--chrome); border: 2px solid var(--ink);
}
.app-name { font-weight: 700; font-size: 1.08rem; }
.app-note { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .app-grid { grid-template-columns: 1fr; } }

/* Camera */
.spec-badge { display: inline-block; background: var(--ink); color: #fff; padding: 8px 14px; font-size: 1.05rem; margin: 0.4em 0 2em; }
.polaroids { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.polaroid figure { margin: 0; }
.polaroid { margin: 0; background: #fff; padding: 10px 10px 8px; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); width: min(180px, 30%); min-width: 130px; }
.polaroid:nth-child(1) { transform: rotate(-3deg); }
.polaroid:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.polaroid:nth-child(3) { transform: rotate(-1deg); }
.polaroid picture { aspect-ratio: 3 / 4; overflow: hidden; background: var(--mist); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.polaroid figcaption { font-size: 0.85rem; font-weight: 400; margin-top: 8px; text-align: center; }
@media (max-width: 520px) { .polaroid { width: calc(50% - 10px); } .polaroid:nth-child(3) { display: none; } }
em { font-style: normal; background: var(--yellow); padding: 0 .12em; }
.section-ink em { color: var(--ink); }

/* Specs */
.specs { margin: 36px 0 0; border-top: 2px solid #fff; }
.spec-row { display: grid; grid-template-columns: minmax(140px, 0.4fr) 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid #3a3a3a; }
.spec-row dt { font-family: var(--pixel); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: #cfcfcf; }
.spec-row dd { margin: 0; font-size: 1.12rem; font-weight: 600; }
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ */
.faq { margin-top: 28px; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--pixel); font-weight: 700; font-size: 1.8rem; line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
.faq-a { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq-a p { margin: 0; }

/* CTA */
.cta { position: relative; isolation: isolate; padding: clamp(64px, 10vw, 140px) 0; overflow: hidden; border-top: 2px solid var(--ink); background: var(--mist); }
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media picture { height: 100%; }
.cta-inner { position: relative; z-index: 1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta-inner { display: flex; justify-content: center; }
.cta-box { padding: clamp(28px, 4vw, 48px); max-width: 640px; width: 100%; text-align: left; }

/* Simple pages */
.page { min-height: 55vh; }
.prose h2 { font-size: 1.2rem; margin: 2em 0 .6em; }
.prose p { color: var(--ink-2); }
.pos-number { font-family: var(--pixel); font-size: 2.2rem; background: var(--yellow); padding: 0 .2em; border: 2px solid var(--ink); }
.page-confirmed .pos { margin-bottom: 1.4em; }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding: 48px 0 28px; background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; font-size: 0.95rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; font-size: 0.8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
