/* ============================================================
   AppointmentFlow — Industry Landing Pages
   Dark premium theme. Amber accent, emerald trust signals.
   Fonts: Syne (headings), DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg: #0D1B2A;
  --bg-card: #122333;
  --bg-card-hover: #162d42;
  --bg-section: #0a1520;
  --fg: #F0F4F8;
  --fg-muted: #7A92AD;
  --fg-dim: #4A6280;
  --accent: #F59E0B;
  --accent-hover: #e8920a;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.3);
  --green: #10B981;
  --green-dim: rgba(16, 185, 129, 0.12);
  --border: rgba(240, 244, 248, 0.07);
  --border-hover: rgba(240, 244, 248, 0.15);
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.display { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
.label-sm { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

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

/* ── Nav ──────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.site-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--fg); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--bg); font-family: var(--font-body);
  font-weight: 600; font-size: 0.875rem; padding: 9px 20px;
  border-radius: 8px; border: none; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.6;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  color: var(--accent); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px;
  border-radius: 999px; margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px;
  line-height: 1.1;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem; color: var(--fg-muted); max-width: 600px;
  margin: 0 auto 40px; line-height: 1.7;
}
.hero-image-wrap {
  max-width: 800px; margin: 40px auto 0;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.hero-image-wrap img { width: 100%; display: block; }
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(13,27,42,0.8) 100%);
}

/* ── Benefits ─────────────────────────────────────────────── */
.benefits-section { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.benefit-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.benefit-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.benefit-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.2rem;
}
.benefit-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.benefit-card p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }

/* ── Lead Form ────────────────────────────────────────────── */
.form-section { background: var(--bg); }
.form-wrap {
  max-width: 560px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  position: relative;
}
.form-wrap::before {
  content: '';
  position: absolute; top: -1px; left: 10%; right: 10%;
  height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.form-head { text-align: center; margin-bottom: 28px; }
.form-head h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.form-head p { font-size: 0.875rem; color: var(--fg-muted); }

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--fg-muted); margin-bottom: 6px; letter-spacing: 0.02em; }

input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  color: var(--fg); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
input::placeholder { color: var(--fg-dim); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A92AD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
select option { background: var(--bg-card); color: var(--fg); }

.btn-primary {
  width: 100%; background: var(--accent); color: var(--bg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-foot { text-align: center; margin-top: 14px; font-size: 0.75rem; color: var(--fg-dim); display: flex; align-items: center; justify-content: center; gap: 6px; }
.form-foot svg { flex-shrink: 0; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-section { background: var(--bg-section); border-top: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.testimonial-stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-dim);
  border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--accent);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--fg-dim); }

/* ── How it works ─────────────────────────────────────────── */
.how-section { background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 28px; left: calc(16.67% + 20px); right: calc(16.67% + 20px);
  height: 1px; background: linear-gradient(90deg, var(--accent-border), var(--border), var(--accent-border));
}
.step-card { padding: 0 20px; text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
  color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  position: relative; z-index: 1;
}
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.step-desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-section { background: var(--bg-section); border-top: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative; transition: border-color 0.25s;
}
.pricing-card.featured { border-color: var(--accent-border); }
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 14px;
  border-radius: 999px; white-space: nowrap;
}
.pricing-tier { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
.pricing-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--fg-muted); font-family: var(--font-body); }
.pricing-desc { font-size: 0.8rem; color: var(--fg-dim); margin-bottom: 24px; min-height: 36px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: 0.875rem; color: var(--fg-muted); padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.btn-outline {
  display: block; text-align: center; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--fg); font-family: var(--font-body);
  font-weight: 600; font-size: 0.9rem; transition: border-color 0.2s, background 0.2s;
  cursor: pointer; text-decoration: none;
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-dim); text-decoration: none; }
.pricing-card.featured .btn-outline {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.pricing-card.featured .btn-outline:hover { background: var(--accent-hover); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section { background: var(--bg); }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
  cursor: pointer; transition: padding-left 0.2s;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question span { font-weight: 600; font-size: 0.95rem; }
.faq-toggle { color: var(--accent); font-size: 1.2rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { margin-top: 12px; font-size: 0.875rem; color: var(--fg-muted); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin-top 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--fg-muted); font-weight: 500; }
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--fg); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--fg-dim); }
.footer-links a:hover { color: var(--fg-muted); }
.footer-copy { font-size: 0.75rem; color: var(--fg-dim); }

/* ── Success / Error States ───────────────────────────────── */
.form-success { text-align: center; padding: 20px 0; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--green); }
.form-success p { color: var(--fg-muted); font-size: 0.875rem; }
.form-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 0.875rem; color: var(--danger); display: none; }
.form-error.show { display: block; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 24px; }
  .form-wrap { padding: 28px 20px; }
  .hero { padding: 72px 0 60px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 999px; }