/* Manki Marketing Site — local overrides on top of manki-tokens.css */

@import url('assets/manki-tokens.css');

:root {
  --site-bg: #0a0a0a;
  --site-fg: #f0f0f0;
  --site-muted: #8a8a8a;
  --site-accent: #FFB300;
  --site-accent-text: #FFB300;
  --site-line: rgba(255,255,255,0.10);
  --site-line-strong: rgba(255,255,255,0.22);
  --display-font: "Workbench", "Rubik Mono One", system-ui, sans-serif;
  --display-letter: 0.01em;
}

[data-theme="light"] {
  --site-bg: #f0ece2;
  --site-fg: #0a0a0a;
  --site-muted: #5a5550;
  --site-line: rgba(0,0,0,0.12);
  --site-line-strong: rgba(0,0,0,0.28);
  --site-accent-text: #8C4D00;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--manki-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 400ms ease, color 400ms ease;
}

* { box-sizing: border-box; }

::selection { background: var(--site-accent); color: #0a0a0a; }

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

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

/* ============ Display type ============ */
.display {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: var(--display-letter);
  line-height: 0.92;
  text-transform: uppercase;
  font-feature-settings: "ss01" on;
}

.display-clean {
  font-family: var(--manki-font-sans);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--manki-font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--site-muted);
}

.eyebrow-amber {
  color: var(--site-accent-text);
}

.mono-label {
  font-family: var(--manki-font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ============ Layout ============ */
.section {
  position: relative;
  width: 100%;
  padding: 120px 40px;
}
.section-tight { padding: 80px 40px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.divider-vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1.5px dashed var(--site-line-strong);
}

/* ============ Squiggle accent ============ */
.squiggle {
  position: absolute;
  pointer-events: none;
  color: var(--site-fg);
  opacity: 0.7;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-family: var(--manki-font-sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.34, 1.3, 0.64, 1), background 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-amber {
  background: var(--site-accent);
  color: #0a0a0a;
}
.btn-amber:hover { background: color-mix(in srgb, var(--site-accent) 90%, white 10%); }

.btn-ghost {
  background: transparent;
  color: var(--site-fg);
  border: 1.5px solid var(--site-line-strong);
}
.btn-ghost:hover { border-color: var(--site-accent); color: var(--site-accent-text); }

.btn-large {
  padding: 22px 36px;
  font-size: 18px;
  border-radius: 18px;
}

/* App store pill (stacked) */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1.5px solid var(--site-line-strong);
  color: #f0f0f0;
  cursor: pointer;
  transition: border-color 200ms ease, transform 180ms ease;
}
.store-btn:hover { border-color: var(--site-accent); transform: translateY(-2px); }
.store-btn .store-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: 0.7;
}
.store-btn .store-name {
  font-family: var(--manki-font-sans);
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  margin-top: 1px;
}
.store-btn[data-coming="true"] { opacity: 0.55; cursor: not-allowed; }

/* ============ Phone frame ============ */
.phone {
  width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: #0a0a0a;
  border: 2px solid #1a1a1a;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 32px;
  background: #0a0a0a;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 8px;
  font-family: var(--manki-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f0;
}

/* ============ Decoration helpers ============ */
.amber-tab {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--site-accent);
}

.dashed-divider {
  border-top: 1.5px dashed var(--site-line-strong);
}

/* Sticker tape effect for testimonials */
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 24px;
  background: rgba(255, 179, 0, 0.5);
  border: 1px dashed rgba(255, 179, 0, 0.8);
}

/* Marquee */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: scroll-x 40s linear infinite;
  gap: 60px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.34, 1.3, 0.64, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee gradient mask edges */
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Pinch grain background overlay */
.zine-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* FAQ */
details.faq {
  border-top: 1.5px solid var(--site-line);
  padding: 28px 0;
}
details.faq:last-of-type { border-bottom: 1.5px solid var(--site-line); }
details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-family: var(--display-font);
  font-size: 32px;
  color: var(--site-accent-text);
  transition: transform 250ms ease;
}
details.faq[open] summary::after { content: "–"; }
details.faq p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--site-muted);
  max-width: 720px;
}

/* ============ MOBILE ============ */
@media (max-width: 860px) {
  .section { padding: 72px 20px; }
  .section-tight { padding: 56px 20px; }

  /* Collapse any inline grid display to 1 column on mobile */
  div[style*="display: grid"],
  div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* But keep auto-fill grids (deck cards, testimonials) flowing */
  div[style*="auto-fill"],
  div[style*="auto-fit"] {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }

  /* Nav: hide secondary links on phones, keep mark + CTA */
  nav a[href^="#"] { display: none !important; }

  /* Display sizes already use clamp() — just tighten leading */
  .display { line-height: 0.95; }

  /* FAQ summary */
  details.faq summary { font-size: 18px; }
  details.faq p { font-size: 15.5px; }

  /* Phone images in gallery — reduce widths */
  .section img[alt*="Manki on"] { max-width: 100% !important; }

  /* Footer wordmark */
  .footer-mark { font-size: clamp(56px, 18vw, 120px) !important; }
}

@media (max-width: 480px) {
  .section { padding: 56px 16px; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .btn-large { padding: 18px 26px; font-size: 16px; }
  .store-btn { padding: 12px 16px; }
  .store-btn .store-name { font-size: 16px; }
  details.faq summary { font-size: 16.5px; gap: 16px; }
}
