/* ==========================================================================
   Noodle Dog: Meteor Clear — core styles (mobile first)
   Style: Night-Market Amber on Deep Space Charcoal
   Base rules target screens <= 768px; see responsive.css for enhancements.
   ========================================================================== */

:root {
  /* Surfaces */
  --space-deep: #151016;
  --space-mid: #1f1820;
  --space-card: #251d27;
  --space-line: #3b2f3d;

  /* Night-market accents */
  --amber: #ffb43c;
  --amber-soft: #ffd28a;
  --chili: #ff6a45;
  --scallion: #6fe39b;

  /* Text */
  --ink-bright: #fff3e2;
  --ink-body: #ded0c6;
  --ink-muted: #b9a89e;
  --ink-on-amber: #1a1016;

  /* Disabled store button (neutral on purpose, never brand colored) */
  --disabled-bg: #2a2a2a;
  --disabled-ink: #ffffff;

  /* Type */
  --font-display: "Arial Black", "Haettenschweiler", "Impact", "Franklin Gothic Heavy", system-ui, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Metrics */
  --header-h: 48px;
  --radius: 14px;
  --shell: 100%;
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--space-deep);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--amber); text-decoration: none; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink-bright);
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; letter-spacing: 0.02em; }

p { margin: 0 0 14px; }

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chili);
  box-shadow: 0 0 0 4px rgba(255, 106, 69, 0.2);
  flex: none;
}

.section {
  padding: 56px 20px;
  max-width: var(--shell);
  margin: 0 auto;
}

.section-head { margin-bottom: 28px; }

.section-lede {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Sticky header — a lit stall sign
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  background: rgba(21, 16, 22, 0.94);
  border-bottom: 1px solid var(--space-line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink-bright);
  flex: 1 1 auto;
  min-width: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--space-line);
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.site-nav { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  background: var(--amber);
  color: var(--ink-on-amber);
  font-weight: 800;
  font-size: 14px;
  flex: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}

.header-cta:active { transform: scale(0.94); background: var(--amber-soft); }
.header-cta-text { display: none; }

.header-cta-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Hero — menu-board text panel + tilted banner plate
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 32px 20px 44px;
  background:
    radial-gradient(120% 70% at 80% 0%, rgba(255, 180, 60, 0.16), transparent 60%),
    radial-gradient(90% 60% at 10% 100%, rgba(255, 106, 69, 0.14), transparent 62%),
    var(--space-deep);
  overflow: hidden;
}

.hero::before {
  /* faint star dust */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255, 243, 226, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 68% 12%, rgba(255, 243, 226, 0.4), transparent),
    radial-gradient(1.8px 1.8px at 34% 70%, rgba(255, 243, 226, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 88% 58%, rgba(255, 243, 226, 0.45), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-lede {
  font-size: 16px;
  color: var(--ink-body);
  max-width: 46ch;
  margin-bottom: 22px;
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

.hero-chips li {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-soft);
  border: 1px dashed rgba(255, 180, 60, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-plate { margin-top: 30px; position: relative; }

.plate-frame {
  border-radius: 18px;
  border: 1px solid var(--space-line);
  background: var(--space-mid);
  padding: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.plate-banner { border-radius: 12px; width: 100%; }

.plate-ticket {
  margin: 14px auto 0;
  max-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--space-card);
  border: 1px dashed rgba(255, 180, 60, 0.55);
}

.plate-ticket-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--amber);
  line-height: 1;
}

.plate-ticket-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Store buttons — stamped ticket with perforated edge
   -------------------------------------------------------------------------- */

.store-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 0;
  font-family: var(--font-body);
  text-align: left;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

/* perforated ticket notches on both ends */
.store-btn::before,
.store-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--space-deep);
  transform: translateY(-50%);
}

.store-btn::before { left: -7px; }
.store-btn::after { right: -7px; }

.store-glyph { width: 26px; height: 26px; fill: currentColor; flex: none; }

.store-copy { display: flex; flex-direction: column; line-height: 1.15; }

.store-copy-top {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.store-copy-main {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.store-btn--play {
  background: var(--amber);
  color: var(--ink-on-amber);
  box-shadow: 0 10px 22px rgba(255, 180, 60, 0.26);
}

.store-btn--play:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 4px 12px rgba(255, 180, 60, 0.2);
}

/* App Store: no iOS build yet — disabled, neutral, clearly not clickable */
.store-btn--soon {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
}

.soon-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #383838;
  border-radius: 999px;
  padding: 3px 9px;
}

/* --------------------------------------------------------------------------
   Features — stall-sign cards with dashed ticket edges
   -------------------------------------------------------------------------- */

.features { background: var(--space-mid); }

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-card {
  position: relative;
  background: var(--space-card);
  border: 1px solid var(--space-line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
}

.feature-card::after {
  /* dashed ticket stub along the bottom */
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  border-bottom: 1px dashed rgba(255, 180, 60, 0.28);
}

.feature-card p { margin-bottom: 10px; font-size: 15px; }

.feature-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 180, 60, 0.16);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 12px;
}

.feature-card--accent { border-color: rgba(255, 106, 69, 0.55); }
.feature-card--accent .feature-tag { background: rgba(255, 106, 69, 0.18); color: var(--chili); }

/* --------------------------------------------------------------------------
   How it plays — order board steps
   -------------------------------------------------------------------------- */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--space-mid);
  border-left: 4px solid var(--scallion);
}

.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }

.step-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--scallion);
  line-height: 1;
  flex: none;
  min-width: 26px;
}

/* --------------------------------------------------------------------------
   Download CTA
   -------------------------------------------------------------------------- */

.download {
  text-align: center;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 106, 69, 0.22), transparent 65%),
    linear-gradient(180deg, var(--space-card), var(--space-deep));
  border-top: 1px solid var(--space-line);
  border-bottom: 1px solid var(--space-line);
}

.download-inner { max-width: 640px; margin: 0 auto; }

.download-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 18px;
  border: 1px solid var(--space-line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.download-lede {
  color: var(--ink-body);
  font-size: 15px;
  margin-bottom: 24px;
}

.store-row--wide { text-align: left; }

.download-note {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-inner { max-width: 68ch; }
.about-inner p { font-size: 15px; }
.about-contact { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 34px 20px calc(96px + env(safe-area-inset-bottom));
  background: var(--space-mid);
  border-top: 1px solid var(--space-line);
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

.footer-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--space-line);
  flex: none;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--ink-bright);
}

.footer-tag { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-body);
}

.footer-links a:active { color: var(--amber); }

.footer-legal { margin: 0; font-size: 12px; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Mobile sticky CTA bar
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 16, 22, 0.97);
  border-top: 1px solid var(--space-line);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta-icon { width: 36px; height: 36px; border-radius: 10px; flex: none; }

.sticky-cta-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--amber);
  color: var(--ink-on-amber);
  font-weight: 800;
  font-size: 15px;
  flex: none;
}

.sticky-cta-btn:active { transform: scale(0.96); }

/* --------------------------------------------------------------------------
   Motion — steam-rise scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta { transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
