/* ============================================================
   CareRelay AI
   Shared stylesheet — dark theme, animation, 3D scroll effects
   Re-themed from the FLC design system: warmer/calmer teal accent
   in place of FLC's orange, for a homecare/family-trust audience.
   ============================================================ */

:root {
  --bg: #060b0c;
  --bg-alt: #0a1213;
  --bg-panel: #0d1718;
  --border: #162224;
  --accent: #2FBFA8;
  --accent-light: #5FD8C4;
  --accent-hover: #7EE6D3;
  --text: #f1f5f4;
  --text-dim: #b9c5c3;
  --text-dimmer: #93a3a1;
  --text-faint: #5f6e6d;
  --radius: 14px;
  --max-width: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; }
p { margin: 0; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.section {
  padding: 100px 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#how-it-works { scroll-margin-top: 90px; }
.section-black { background: #050505; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }

.text-center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head p.lead { color: var(--text-dimmer); font-size: 15px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1f9b86);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47,191,168, 0.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -8px rgba(47,191,168, 0.75); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); transform: translateY(-3px); }

/* Shimmer sweep — used on the header "Book a Free Demo" button */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shimmersweep 3.2s ease-in-out infinite;
}
@keyframes shimmersweep {
  0% { left: -60%; }
  45% { left: 130%; }
  100% { left: 130%; }
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { background: rgba(0,0,0,0.85); padding: 12px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-size: 33px; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, var(--accent-light), #fff, var(--accent), #fff);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brandglow 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(47,191,168, 0.35));
}
.brand span { color: var(--accent); -webkit-text-fill-color: var(--accent); }
@keyframes brandglow {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-dim); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links > a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links > a:hover::after { transform: scaleX(1); }
.nav-links .has-dropdown {
  position: relative;
  /* extend the hoverable hit-box down to meet the dropdown, closing the dead gap */
  padding-bottom: 26px; margin-bottom: -26px;
}
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  margin-top: 22px;
  background: #0d0d0d; border: 1px solid #222; border-radius: 12px;
  padding: 10px; min-width: 240px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.35s;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0s;
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; }
.dropdown a:hover { background: rgba(47,191,168,0.1); color: var(--accent-light); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 13.5px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #000; flex-direction: column; justify-content: flex-start; padding: 40px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.35s var(--ease); }
  .nav-links.open { transform: translateX(0); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin-top: 8px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  padding-top: 130px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}
@media (max-width: 600px) { .hero { padding-top: 150px; } }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.1);
  will-change: transform;
}
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 60%, #000 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 800px; padding: 0 24px 64px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); color: #fff; margin-bottom: 22px; }
.hero .lead { color: #ccc; font-size: 18px; max-width: 620px; margin: 0 auto 34px; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .phone-line { color: var(--text-dimmer); font-size: 13px; }
.hero .phone-line strong { color: var(--accent-light); }
.scroll-cue {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 32px; border: 2px solid rgba(255,255,255,0.3); border-radius: 12px;
  z-index: 1;
}
.scroll-cue::before {
  content: ''; position: absolute; top: 5px; left: 50%; width: 3px; height: 7px;
  background: var(--accent); border-radius: 2px; transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue { 0% { opacity: 1; top: 5px; } 70% { opacity: 0; top: 17px; } 100% { opacity: 0; top: 5px; } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 0.09s); }

/* ---------- 3D tilt cards ---------- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.tilt-card:hover { box-shadow: 0 24px 48px -16px rgba(47,191,168, 0.25); }

/* ---------- Stat rings ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-item .ring-wrap { position: relative; width: 130px; height: 130px; margin: 0 auto 16px; }
.stat-item .ring-wrap::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(47,191,168,0.5);
  animation: ringpulse 2.6s ease-out infinite;
}
@keyframes ringpulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}
.stat-item img { width: 130px; height: 130px; border-radius: 50%; border: 3px solid rgba(47,191,168,0.35); animation: floaty 5s ease-in-out infinite; }
.stat-item .ring-percent {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 26px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 20px rgba(0,0,0,0.6);
  z-index: 2; pointer-events: none;
}
.stat-item:nth-child(2) img { animation-delay: 0.5s; }
.stat-item:nth-child(3) img { animation-delay: 1s; }
.stat-item p { color: var(--text-dim); font-size: 13.5px; }
.stat-item { transition: transform 0.35s var(--ease); }
.stat-item:hover { transform: translateY(-4px); }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Clinic type cards ---------- */
.clinic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.clinic-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid #1c1c1c; background: var(--bg-panel);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,0.7);
}
.clinic-card img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.6s var(--ease); border-radius: var(--radius) var(--radius) 0 0; }
.clinic-card:hover img { transform: scale(1.08); }
.clinic-card .clinic-body { padding: 24px 22px 28px; }
.clinic-card h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.clinic-card p { color: var(--text-dimmer); font-size: 13px; }
.clinic-card:hover { box-shadow: 0 20px 44px -18px rgba(47,191,168,0.4); border-color: rgba(47,191,168,0.4); }
.clinic-card { animation: cardglow 7s ease-in-out infinite; }
.clinic-card:nth-child(2) { animation-delay: 1.2s; }
.clinic-card:nth-child(3) { animation-delay: 2.4s; }
@keyframes cardglow {
  0%, 100% { box-shadow: 0 20px 44px -22px rgba(0,0,0,0.7); }
  50% { box-shadow: 0 20px 44px -18px rgba(47,191,168,0.28); }
}
@media (max-width: 860px) { .clinic-grid { grid-template-columns: 1fr; } }

/* ---------- Problem rows ---------- */
.problem-row { display: grid; grid-template-columns: 38% 62%; gap: 50px; align-items: center; margin-top: 60px; }
.problem-row.reverse { grid-template-columns: 62% 38%; }
.problem-row.reverse .problem-copy { order: -1; }
.problem-row img { border-radius: 18px; width: 100%; box-shadow: 0 24px 50px -22px rgba(0,0,0,0.75); border: 1px solid #1c1c1c; }
.problem-copy h3 { font-size: 19px; color: #fff; margin-bottom: 10px; }
.problem-copy p { color: var(--text-dimmer); font-size: 13.5px; }
@media (max-width: 780px) {
  .problem-row, .problem-row.reverse { grid-template-columns: 1fr; }
  .problem-row.reverse .problem-copy { order: 0; }
}

/* ---------- Channel cards ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.channel-card {
  text-align: center; background: var(--bg-panel); border: 1px solid #1a1a1a;
  border-radius: var(--radius); padding: 34px 26px 30px;
  box-shadow: 0 20px 44px -24px rgba(0,0,0,0.7);
}
.channel-card img { width: 190px; margin: 0 auto 20px; border-radius: 16px; box-shadow: 0 16px 30px -14px rgba(0,0,0,0.6); animation: floaty 5.5s ease-in-out infinite; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.channel-card:nth-child(2) img { animation-delay: 0.6s; }
.channel-card:nth-child(3) img { animation-delay: 1.2s; }
.channel-card:hover img { transform: scale(1.06); box-shadow: 0 20px 40px -12px rgba(47,191,168,0.4); }
.channel-card .ch-tag { color: var(--accent-light); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.channel-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.channel-card p { color: var(--text-dimmer); font-size: 13.5px; margin-bottom: 14px; }
.channel-card a.explore { color: var(--accent); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .channel-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.testimonial-card { background: var(--bg-panel); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -18px rgba(0,0,0,0.6); }
.testimonial-card p.quote { color: #ccc; font-size: 13.5px; font-style: italic; margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-person .name { color: #fff; font-weight: 700; font-size: 12px; }
.testimonial-person .role { color: #888; font-size: 12px; }
.testimonial-note { text-align: center; color: var(--text-faint); font-size: 11px; margin-top: 30px; }
@media (max-width: 980px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Process / how-it-works timeline ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 60px; position: relative; }
.process-grid::before {
  content: ''; position: absolute; top: 92px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,191,168,0.35), transparent);
  z-index: 0;
}
.process-grid::after {
  content: ''; position: absolute; top: 92px; left: 0; width: 30%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  z-index: 0; filter: blur(0.5px);
  animation: flowline 5s ease-in-out infinite;
}
@keyframes flowline {
  0% { left: -30%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.process-step { position: relative; z-index: 1; text-align: center; }
.step-icon-slot { height: 56px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.process-step .step-icon { width: 56px; height: 56px; border-radius: 14px; animation: floaty 5s ease-in-out infinite; }
.process-step:nth-child(3) .step-icon { animation-delay: 0.4s; }
.process-step:nth-child(4) .step-icon { animation-delay: 0.8s; }
.process-step:nth-child(5) .step-icon { animation-delay: 1.2s; }
.process-step .step-num {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--bg-panel); border: 2px solid var(--accent); color: var(--accent-light);
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--bg);
  animation: numpulse 3.4s ease-in-out infinite;
}
.process-step:nth-child(2) .step-num { animation-delay: 0.3s; }
.process-step:nth-child(3) .step-num { animation-delay: 0.6s; }
.process-step:nth-child(4) .step-num { animation-delay: 0.9s; }
.process-step:nth-child(5) .step-num { animation-delay: 1.2s; }
@keyframes numpulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 0 rgba(47,191,168,0.4); }
  50% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px rgba(47,191,168,0); }
}
.process-step h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.process-step p { color: var(--text-dimmer); font-size: 12.5px; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-grid::before, .process-grid::after { display: none; }
}

/* ---------- Impact stats ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.impact-item {
  text-align: center; background: var(--bg-panel); border: 1px solid #1a1a1a;
  border-radius: var(--radius); padding: 34px 20px;
}
.impact-item .impact-number {
  font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.impact-item p { color: var(--text-dimmer); font-size: 13px; }
.impact-item { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.impact-item:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(47,191,168,0.35); border-color: rgba(47,191,168,0.4); }
@media (max-width: 860px) { .impact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .impact-grid { grid-template-columns: 1fr; } }

/* ---------- Feature grid (service pages) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.feature-card { background: var(--bg-panel); border: 1px solid #1a1a1a; border-radius: var(--radius); padding: 30px 26px; }
.feature-card .icon { font-size: 26px; margin-bottom: 16px; display: inline-block; animation: floaty 5s ease-in-out infinite; }
.feature-card .icon-img { width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; animation: floaty 5s ease-in-out infinite; }
.feature-card:nth-child(2n) .icon, .feature-card:nth-child(2n) .icon-img { animation-delay: 0.5s; }
.feature-card:nth-child(3n) .icon, .feature-card:nth-child(3n) .icon-img { animation-delay: 1s; }
.feature-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(47,191,168,0.3); border-color: rgba(47,191,168,0.35); }
.feature-card h3 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dimmer); font-size: 13.5px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-section { background: #0d0500; border-top: 1px solid #1a1a1a; text-align: center; }
.cta-section h2 { font-size: clamp(26px, 4vw, 34px); color: #fff; margin-bottom: 16px; }
.cta-section p { color: #aaa; font-size: 15px; margin-bottom: 30px; }
.cta-section .btn-primary { position: relative; animation: ctapulse 2.6s ease-in-out infinite; }
@keyframes ctapulse {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(47,191,168,0.6); }
  50% { box-shadow: 0 8px 34px -6px rgba(47,191,168,0.9); }
}

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid #1a1a1a; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-dimmer); font-size: 13.5px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-dimmer); font-size: 13.5px; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { color: var(--text-faint); font-size: 12.5px; margin-bottom: 10px; }
.footer-connect {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  border-top: 1px solid #1a1a1a; padding: 28px 0; margin-bottom: 6px;
}
.footer-connect .contact-details { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dim); }
.footer-connect .contact-details a:hover { color: var(--accent-light); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.social-icons a svg { width: 17px; height: 17px; fill: var(--text-dim); transition: fill 0.25s; }
.social-icons a:hover { border-color: var(--accent); background: rgba(47,191,168,0.1); transform: translateY(-3px); }
.social-icons a:hover svg { fill: var(--accent-light); }
.social-icons a.linkedin-badge {
  background: #0A66C2; border-radius: 8px; border: none;
}
.social-icons a.linkedin-badge svg { fill: #fff; width: 20px; height: 20px; }
.social-icons a.linkedin-badge:hover { background: #0d7ae0; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 24px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (service pages) ---------- */
.page-hero { padding: 170px 0 90px; text-align: center; background: linear-gradient(180deg, #0a0a0a, #000); }
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); color: #fff; margin-bottom: 18px; }
.page-hero p.lead { color: var(--text-dimmer); font-size: 16px; max-width: 620px; margin: 0 auto 30px; }

/* ---------- Compliance badges ---------- */
.compliance-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.compliance-badges span {
  border: 1px solid #2a2a2a; border-radius: 30px; padding: 8px 18px; font-size: 12px; color: var(--text-dim);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.compliance-badges span:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-light); background: rgba(47,191,168,0.08); }

/* ---------- Parallax float ---------- */
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 50px auto 0; }
.faq-item {
  background: var(--bg-panel); border: 1px solid #1a1a1a; border-radius: var(--radius);
  padding: 6px 24px; margin-bottom: 14px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  color: #fff; font-weight: 700; font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 16px; font-size: 20px; color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-dimmer); font-size: 13.5px; padding-bottom: 20px; line-height: 1.7; }

/* ---------- Savings calculator ---------- */
.calc-wrap { max-width: 980px; margin: 50px auto 0; }
.calc-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; }
.calc-tab {
  background: var(--bg-panel); border: 1px solid #1e2a2a; color: var(--text-dim);
  padding: 12px 26px; border-radius: 30px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; transition: all 0.25s var(--ease);
}
.calc-tab.on { background: linear-gradient(135deg, var(--accent), #1f9b86); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(47,191,168,0.6); }
.calc-tab:not(.on):hover { border-color: rgba(47,191,168,0.4); color: #fff; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--bg-panel); border: 1px solid #1a1a1a; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.calc-in { padding: 44px 40px; border-right: 1px solid #1a1a1a; }
.calc-out { padding: 44px 40px; background: linear-gradient(165deg, rgba(47,191,168,0.08), transparent 60%); display: flex; flex-direction: column; justify-content: center; }
.calc-panel { display: none; }
.calc-panel.on { display: block; }
.calc-fld { margin-bottom: 30px; }
.calc-fld label { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-dim); font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.calc-fld output { color: var(--accent-light); font-weight: 800; font-size: 16px; }
.calc-fld input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: #1e2a2a; outline: none; cursor: pointer;
}
.calc-fld input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer; transition: transform 0.2s var(--ease);
}
.calc-fld input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-fld input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; cursor: pointer;
}
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.calc-row span { color: var(--text-dimmer); font-size: 13.5px; }
.calc-row b { color: #fff; font-size: 18px; font-weight: 800; }
.calc-big { text-align: center; margin: 26px 0 22px; }
.calc-big span { display: block; color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.calc-big b { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 800; background: linear-gradient(135deg, #fff, var(--accent-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-big small { display: block; color: var(--text-faint); font-size: 11.5px; margin-top: 10px; max-width: 340px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.calc-out .btn { width: 100%; justify-content: center; margin-top: 6px; }
@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: none; border-bottom: 1px solid #1a1a1a; }
  .calc-in, .calc-out { padding: 34px 26px; }
}

/* ---------- À la carte price cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.price-card { background: var(--bg-panel); border: 1px solid #1a1a1a; border-radius: var(--radius); padding: 28px 26px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(47,191,168,0.3); border-color: rgba(47,191,168,0.35); }
.price-card .icon { font-size: 24px; margin-bottom: 14px; display: inline-block; }
.price-card h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.price-card p { color: var(--text-dimmer); font-size: 13px; margin-bottom: 18px; min-height: 54px; }
.price-card .price-figs { display: flex; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid #1a1a1a; flex-wrap: wrap; }
.price-card .pf-monthly { color: #fff; font-size: 22px; font-weight: 800; }
.price-card .pf-monthly small { color: var(--text-dimmer); font-size: 12px; font-weight: 600; }
.price-card .pf-setup { color: var(--text-faint); font-size: 12px; }
.price-card a.explore { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; font-size: 12.5px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Bundled tier cards ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; align-items: stretch; }
.tier-card { position: relative; background: var(--bg-panel); border: 1px solid #1a1a1a; border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(47,191,168,0.3); }
.tier-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -20px rgba(47,191,168,0.4); }
.tier-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), #1f9b86); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; white-space: nowrap; }
.tier-card h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.tier-card .tier-for { color: var(--text-faint); font-size: 12px; margin-bottom: 20px; min-height: 32px; }
.tier-card .tier-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.tier-card .tier-price b { color: #fff; font-size: 30px; font-weight: 800; }
.tier-card .tier-price span { color: var(--text-dimmer); font-size: 13px; }
.tier-card .tier-setup { color: var(--text-faint); font-size: 12px; margin-bottom: 22px; }
.tier-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex-grow: 1; }
.tier-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: 12.5px; margin-bottom: 12px; line-height: 1.5; }
.tier-card li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.tier-card .btn { width: 100%; justify-content: center; }
@media (max-width: 1080px) { .tier-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing notes ---------- */
.price-notes { max-width: 780px; margin: 60px auto 0; text-align: center; color: var(--text-faint); font-size: 12.5px; line-height: 1.8; }
.price-notes strong { color: var(--text-dim); }

/* ---------- Trust bar ---------- */
.trust-bar { color: var(--text-faint); font-size: 12.5px; letter-spacing: 0.3px; }
.trust-bar strong { color: var(--accent-light); }

/* ---------- Resource / article cards ---------- */
.feature-card .card-tag { color: var(--accent-light); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: block; }
a.feature-card { display: block; }
a.feature-card:hover h3 { color: var(--accent-light); }
.feature-card .read-more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 12.5px; }

/* ---------- Blog post body typography ---------- */
.blog-body { color: var(--text-dim); font-size: 15.5px; line-height: 1.8; }
.blog-body h2 { color: #fff; font-size: 24px; margin: 44px 0 16px; }
.blog-body h3 { color: #fff; font-size: 19px; margin: 34px 0 14px; }
.blog-body p { margin-bottom: 20px; }
.blog-body ul, .blog-body ol { margin: 0 0 20px; padding-left: 22px; }
.blog-body li { margin-bottom: 8px; }
.blog-body a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.blog-body a:hover { color: var(--accent); }
.blog-body strong { color: #fff; }
.blog-body blockquote {
  border-left: 3px solid var(--accent); margin: 28px 0; padding: 4px 0 4px 20px;
  color: var(--text-dimmer); font-style: italic;
}
.blog-body img { border-radius: var(--radius); margin: 28px 0; border: 1px solid #1c1c1c; }
.blog-body code { background: var(--bg-panel); border: 1px solid #1e1e1e; border-radius: 4px; padding: 2px 6px; font-size: 0.9em; }
.blog-body hr { border: none; border-top: 1px solid #1a1a1a; margin: 40px 0; }

/* ---------- Blog listing ---------- */
#blog-posts:empty { display: none; }
#blog-posts:empty ~ #blog-empty { display: block; }
#blog-empty { display: none; }
.feature-card time { color: var(--text-faint); font-size: 11px; display: block; margin-top: 10px; }

/* ---------- Utility ---------- */
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
