/* Reserve It — marketing site
   Palette and mark are pulled directly from assets/brand/reserve-it-brand.html
   so this page and the app read as the same product. */

:root {
  --teal: #0D9488;
  --teal-deep: #087667;
  --teal-on: #FFFFFF;
  --ink: #191C1B;
  --muted: #56635F;
  --line: #D7DEDC;
  --surface: #F4F6F5;
  --surface-low: #FBFDFC;
  --radius-card: 24px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #2FE0C4;
    --teal-deep: #25CBB1;
    --teal-on: #0B211E;
    --ink: #EAF2F0;
    --muted: #9FB0AC;
    --line: #22332F;
    --surface: #12211F;
    --surface-low: #16261F;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--surface-low);
  color: var(--ink);
  font-family: Rubik, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--teal-on);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 48px);
  background: color-mix(in srgb, var(--surface-low) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.mark { color: var(--teal); }
.mark--nav { width: 26px; height: 26px; }
.mark--footer { width: 32px; height: 32px; margin: 0 auto 12px; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
  border: 1px solid transparent;
}

.button--primary {
  /* teal-deep, not teal: white text on --teal is ~3.7:1, below WCAG AA's
     4.5:1 for normal-size text. teal-deep clears ~5.5:1. */
  background: var(--teal-deep);
  color: var(--teal-on);
}
.button--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in srgb, var(--teal) 35%, transparent); }
.button--primary:active { transform: scale(0.98); }

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

.button--small { padding: 10px 18px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px) clamp(32px, 6vw, 64px);
  min-height: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-headline {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 32px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.queue-demo {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 120px;
}

.queue-capsule {
  border-radius: var(--radius-pill);
  background: var(--teal);
}
.queue-capsule--lead {
  width: 38px;
  height: 120px;
  animation: lead-step 3.2s var(--ease) infinite;
}
.queue-capsule--wait {
  width: 30px;
  height: 84px;
  opacity: 0.35;
  animation: wait-shift 3.2s var(--ease) infinite;
}
.queue-capsule--wait:nth-of-type(3) { animation-delay: 0.05s; }

@keyframes lead-step {
  0%, 100% { transform: translateX(0); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(10px); }
}
@keyframes wait-shift {
  0%, 100% { transform: translateX(0); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(8px); }
}

.queue-caption {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 32ch;
}

@media (prefers-reduced-motion: reduce) {
  .queue-capsule--lead, .queue-capsule--wait { animation: none; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px); }
.section--muted { background: var(--surface); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-inner--narrow { max-width: 640px; text-align: center; }

.section-title {
  margin: 0 0 40px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  font-weight: 700;
}
.section-inner--narrow .section-title { margin-bottom: 12px; }

.section-lead { color: var(--muted); margin: 0 0 28px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.section--muted .feature-card,
.section .feature-card { background: var(--surface-low); }

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 18px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */

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

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--teal-on);
  font-weight: 700;
}

.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Platforms ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.platform-card {
  padding: 28px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.platform-card--live { border-color: var(--teal); }

.platform-status {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.platform-status--live {
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  color: var(--teal-deep);
}

.platform-card h3 { margin: 0; font-size: 1.15rem; }
.platform-card p { margin: 0 0 6px; color: var(--muted); }

/* ---------- Contact / CTA ---------- */

.section--cta { text-align: center; }

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

.footer {
  text-align: center;
  padding: 48px 20px 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer p { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
}
.footer a:hover { color: var(--teal-deep); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
}
