/* =========================================================
   EventMED Dispatch — Marketing Site
   eventmeddispatch.co.uk
   ========================================================= */

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

:root {
  --bg0:    #0d1117;
  --bg1:    #111827;
  --bg2:    #1a2236;
  --bg3:    #1f2d44;
  --bd:     #2a3a52;
  --t1:     #e8edf5;
  --t2:     #b0bdd0;
  --t3:     #6b7a94;
  --blue:   #3b82f6;
  --blue2:  #2563eb;
  --blue-g: rgba(59,130,246,.10);
  --green:  #22c55e;
  --amber:  #f59e0b;
  --red:    #ef4444;
  --rm:     8px;
  --rm2:    14px;
  --shadow: 0 4px 24px rgba(0,0,0,.45);
  --nav-h:  64px;
}

[data-theme="light"] {
  --bg0:    #f0f4fa;
  --bg1:    #ffffff;
  --bg2:    #f5f7fb;
  --bg3:    #eaeff8;
  --bd:     #d1dae8;
  --t1:     #0f172a;
  --t2:     #334155;
  --t3:     #64748b;
  --blue-g: rgba(59,130,246,.07);
  --shadow: 0 4px 24px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg0);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--t2); }

.label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* --- Nav --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13,17,23,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
  z-index: 100;
  display: flex;
  align-items: center;
}

[data-theme="light"] nav {
  background: rgba(255,255,255,.88);
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img { width: 32px; height: 32px; border-radius: 7px; }
.nav-logo span { font-weight: 800; font-size: 1.1rem; color: var(--t1); letter-spacing: -.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--t2);
  padding: 6px 12px;
  border-radius: var(--rm);
  transition: color .15s, background .15s;
}

.nav-links a:hover { color: var(--t1); background: var(--bg3); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.theme-btn {
  background: none;
  border: 1px solid var(--bd);
  color: var(--t2);
  border-radius: var(--rm);
  padding: 6px 10px;
  font-size: .8rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.theme-btn:hover { border-color: var(--blue); color: var(--blue); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--rm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--t1); border: 1px solid var(--bd); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--rm2); }

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-g);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 28px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--blue); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--t2);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-note { font-size: .8rem; color: var(--t3); margin-top: 10px; }

/* --- Screenshot placeholder --- */
.screenshot-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--rm2);
  border: 1px solid var(--bd);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(59,130,246,.12);
}

.screenshot-bar {
  background: var(--bg2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--bd);
}

.screenshot-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.screenshot-body {
  background: var(--bg1);
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--t3);
  font-size: .85rem;
}

.screenshot-body svg { opacity: .3; }

/* --- Audience strip --- */
.audience-strip {
  background: var(--bg2);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  padding: 28px 0;
}

.audience-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.audience-label { font-size: .78rem; color: var(--t3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.audience-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--t2);
}

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--rm2);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}

.feature-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: .88rem; line-height: 1.65; }

.feature-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--blue-g);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 4px;
  padding: 2px 7px;
}

/* --- How it works --- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 56px;
  counter-reset: steps;
}

.how-step {
  position: relative;
  padding-left: 56px;
  counter-increment: steps;
}

.how-step::before {
  content: counter(steps);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step h3 { margin-bottom: 8px; }
.how-step p  { font-size: .88rem; }

/* --- Screenshots section --- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.ss-placeholder {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--rm2);
  overflow: hidden;
}

.ss-placeholder-bar {
  background: var(--bg3);
  padding: 8px 12px;
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--bd);
}

.ss-placeholder-body {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--t3);
  font-size: .78rem;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}

.price-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--rm2);
  padding: 32px;
  position: relative;
}

.price-card.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(59,130,246,.06) 0%, var(--bg1) 60%);
}

.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
}

.price-tier { font-size: .78rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-desc { font-size: .85rem; color: var(--t3); margin-bottom: 24px; min-height: 40px; }

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--t1); }
.price-currency { font-size: 1.3rem; font-weight: 700; color: var(--t2); align-self: flex-start; padding-top: 6px; }
.price-once { font-size: .78rem; color: var(--t3); }
.price-renewal { font-size: .82rem; color: var(--t3); margin-bottom: 24px; }
.price-renewal b { color: var(--t2); }

.price-seats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--rm);
  font-size: .83rem;
  color: var(--t2);
  margin-bottom: 24px;
  font-weight: 500;
}

.price-divider { border: none; border-top: 1px solid var(--bd); margin: 0 0 20px; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .87rem;
  color: var(--t2);
}

.price-features li .chk { color: var(--green); font-size: .9rem; flex-shrink: 0; margin-top: 1px; }
.price-features li .cross { color: var(--t3); font-size: .9rem; flex-shrink: 0; margin-top: 1px; }
.price-features li.muted { color: var(--t3); }

/* --- FAQ --- */
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--bd);
  padding: 20px 0;
}

.faq-item:first-child { border-top: 1px solid var(--bd); }

.faq-q {
  font-weight: 600;
  font-size: .95rem;
  color: var(--t1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--t3);
  flex-shrink: 0;
  transition: transform .2s;
}

details[open] .faq-q::after { content: '−'; }

.faq-a {
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.7;
  padding-top: 12px;
  max-width: 720px;
}

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  text-align: center;
  padding: 80px 24px;
}

.cta-band h2 { margin-bottom: 16px; }
.cta-band p  { margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin: 0 8px; }

/* --- Footer --- */
footer {
  background: var(--bg1);
  border-top: 1px solid var(--bd);
  padding: 48px 0 32px;
  font-size: .85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: .83rem; line-height: 1.7; }

.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: var(--t2); font-size: .85rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--blue); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--bd);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--t3);
  font-size: .78rem;
}

/* --- Status dots (decorative) --- */
.status-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-g { background: var(--green); }
.dot-a { background: var(--amber); }
.dot-r { background: var(--red); }

/* --- Section header --- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { gap: 32px; }
}
