/* ═══════════════════════════════════════════════════════
   RisoraHR — Shared Stylesheet v3
   Brand: Teal #17A8A3 · Orange #F47920 · Charcoal #2C3A4A
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }
input, textarea { font-family: inherit; }

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --white:      #ffffff;
  --off:        #f4f6f8;
  --off-2:      #eaecf0;
  --off-3:      #dce0e6;

  /* Brand Teal (logo primary) */
  --teal:       #17A8A3;
  --teal-2:     #1BBFB9;
  --teal-3:     #A8DEDD;
  --teal-lt:    #DFF5F4;
  --teal-dk:    #0D7B78;
  --teal-deep:  #095F5D;

  /* Brand Orange (logo accent / arrow) */
  --orange:     #F47920;
  --orange-2:   #E06812;
  --orange-lt:  #FEF0E3;
  --orange-dk:  #C55A0A;

  /* Semantic colours */
  --green:      #16A34A;
  --green-lt:   #F0FDF4;
  --green-bd:   #BBF7D0;
  --red:        #DC2626;
  --amber:      #D97706;
  --amber-lt:   #FEF3C7;
  --purple-lt:  #F5F3FF;
  --purple:     #6D28D9;

  /* Text — charcoal from logo wordmark */
  --ink:        #2C3A4A;
  --ink-2:      #3D4E61;
  --muted:      #5C6F80;
  --muted-2:    #8FA4B5;

  /* Borders */
  --border:     #CBD5DC;
  --border-2:   #E1E7EC;

  /* Shadows */
  --sh-sm:      0 1px 4px rgba(0,0,0,.05);
  --sh-md:      0 4px 20px rgba(0,0,0,.08);
  --sh-lg:      0 12px 40px rgba(0,0,0,.11);
  --sh-xl:      0 24px 64px rgba(0,0,0,.14);

  /* Shape */
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --mark-size:  34px;
}

/* ── Base ── */
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ══════════════════════════════════════
   LOGO MARK — mirrors the R-arrow brand
══════════════════════════════════════ */
.logo-mark {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none;
}
.logo-mark-icon {
  width: var(--mark-size); height: var(--mark-size);
  flex-shrink: 0;
}
.logo-mark-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.22rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em;
  line-height: 1;
}
.logo-mark-text .brand-hr {
  color: var(--teal);
}
.logo-mark-text .brand-solutions {
  display: block;
  font-size: .55rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  margin-top: .05rem;
}

/* Smaller footer variant */
.logo-mark.sm { --mark-size: 28px; }
.logo-mark.sm .logo-mark-text { font-size: 1rem; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#site-nav-wrap {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(23,168,163,.18);
  box-shadow: 0 1px 2px rgba(13,123,120,.05);
  transition: box-shadow .3s;
}
#site-nav-wrap.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

#site-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: .75rem 1.25rem;
}
@media (min-width: 768px) {
  #site-nav { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1.1;
}

.nav-logo-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.04));
}

.nav-logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #030712;
}

.nav-logo-accent { color: var(--teal-dk); }

.nav-logo-tagline {
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #6b7280;
}

.nav-pill {
  display: none;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  list-style: none;
}
@media (min-width: 768px) {
  .nav-pill { display: flex; }
}

.nav-links { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #4b5563;
  padding: .5rem 1rem;
  border-radius: 999px;
  transition: color .18s, background .18s, box-shadow .18s;
}
.nav-links a:hover { color: #030712; background: #f9fafb; }
.nav-links a.active { color: var(--teal-dk); background: var(--teal-lt); box-shadow: var(--sh-sm); }

.nav-badge {
  display: inline-flex; align-items: center;
  background: var(--teal-lt); color: var(--teal);
  font-size: .57rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .38rem; border-radius: 4px;
  margin-left: .3rem; vertical-align: middle;
}

.nav-right { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.btn-nav-ghost {
  display: none;
  border: none; background: transparent; color: #374151;
  font-size: .875rem; font-weight: 600; padding: .5rem 1rem; border-radius: .75rem;
  transition: color .18s;
}
@media (min-width: 640px) {
  .btn-nav-ghost { display: inline-flex; align-items: center; }
}
.btn-nav-ghost:hover { color: var(--teal-dk); }
.btn-nav-cta {
  display: none;
  background: var(--teal-dk); color: white;
  font-size: .875rem; font-weight: 600;
  padding: .625rem 1.25rem; border: none; border-radius: .75rem;
  box-shadow: 0 4px 14px rgba(13,123,120,.18);
  transition: background .18s, box-shadow .18s;
}
@media (min-width: 640px) {
  .btn-nav-cta { display: inline-flex; align-items: center; }
}
.btn-nav-cta:hover { background: var(--teal-deep); box-shadow: 0 6px 20px rgba(13,123,120,.24); }

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.page-hero {
  background: var(--off); padding: 5rem 5vw 4.5rem;
  position: relative; overflow: hidden;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero-blob {
  position: absolute; top: -100px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--teal-3) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none; opacity: .45;
}
.page-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.pill-teal   { background: var(--teal-lt);   color: var(--teal-dk); }
.pill-orange { background: var(--orange-lt);  color: var(--orange-dk); }
.pill-amber  { background: var(--amber-lt);   color: var(--amber); }
.pill-purple { background: var(--purple-lt);  color: var(--purple); }
.pill-coral  { background: var(--orange-lt);  color: var(--orange-dk); }   /* alias */
.pill-green  { background: var(--green-lt);   color: var(--green); }

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -.018em;
  color: var(--ink); margin-bottom: 1.2rem; max-width: 700px;
}
.page-title em { font-style: italic; color: var(--teal); }
.page-subtitle { font-size: .97rem; line-height: 1.85; color: var(--muted); max-width: 600px; margin-bottom: 2rem; }
.page-hero-actions { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }

/* ══════════════════════════════════════
   SECTION TYPOGRAPHY
══════════════════════════════════════ */
.section-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: .9rem;
}
.section-heading em { font-style: italic; color: var(--teal); }
.section-sub { font-size: .96rem; line-height: 1.75; color: var(--muted); max-width: 500px; margin-bottom: 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  background: var(--orange); color: white;
  font-size: .9rem; font-weight: 600;
  padding: .88rem 2rem; border: none; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(244,121,32,.36);
  transition: transform .18s, box-shadow .2s, background .18s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244,121,32,.44); background: var(--orange-2); }

.btn-teal {
  background: var(--teal); color: white;
  font-size: .88rem; font-weight: 600;
  padding: .82rem 1.8rem; border: none; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(23,168,163,.28);
  transition: background .18s, transform .15s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-teal:hover { background: var(--teal-2); transform: translateY(-1px); }

.btn-outline {
  background: transparent; border: 1.5px solid var(--border); color: var(--ink);
  font-size: .88rem; font-weight: 500;
  padding: .8rem 1.8rem; border-radius: 999px;
  transition: border-color .2s, background .2s, color .2s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-outline:hover { border-color: var(--teal); background: var(--teal-lt); color: var(--teal); }

.btn-white {
  background: white; color: var(--ink);
  font-size: .88rem; font-weight: 600;
  padding: .82rem 1.8rem; border: none; border-radius: 999px;
  transition: transform .15s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }

.btn-ghost-link {
  background: transparent; border: none;
  color: var(--muted); font-size: .88rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: color .2s; padding: 0;
}
.btn-ghost-link:hover { color: var(--ink); }

.btn-demo {
  background: transparent; border: none;
  color: var(--muted); font-size: .88rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: .55rem; transition: color .2s;
}
.btn-demo:hover { color: var(--ink); }
.demo-play {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--teal); box-shadow: var(--sh-sm);
  transition: border-color .2s, background .2s;
}
.btn-demo:hover .demo-play { border-color: var(--teal); background: var(--teal-lt); }

/* ══════════════════════════════════════
   FEATURE VISUALS & CARDS
══════════════════════════════════════ */
.feat-visual {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--sh-md);
}
.fv-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border-2);
}
.fv-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.fv-badge { font-size: .64rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.badge-green  { background: var(--green-lt);  color: var(--green); }
.badge-amber  { background: var(--amber-lt);  color: var(--amber); }
.badge-teal   { background: var(--teal-lt);   color: var(--teal-dk); }
.badge-orange { background: var(--orange-lt); color: var(--orange-dk); }
.badge-purple { background: var(--purple-lt); color: var(--purple); }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.check-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-lt); color: var(--teal-dk);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700; flex-shrink: 0; margin-top: .1rem;
}

/* Pay table */
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table th { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); text-align: left; padding: 0 0 .55rem; border-bottom: 1px solid var(--border); }
.pay-table td { font-size: .76rem; color: var(--muted); padding: .55rem 0; border-bottom: 1px solid var(--border-2); }
.pay-table td:first-child { color: var(--ink); font-weight: 500; }
.gap-pill { display: inline-flex; border-radius: 999px; padding: .12rem .55rem; font-size: .68rem; font-weight: 600; }
.gap-ok   { background: var(--green-lt);  color: var(--green); }
.gap-warn { background: #fff7ed; color: var(--red); }

/* KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.kpi-tile { background: var(--white); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 1.2rem; }
.kpi-tile.bg-off { background: var(--off); }
.kpi-val { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.kpi-val.t { color: var(--teal-dk); }
.kpi-val.o { color: var(--orange); }
.kpi-val.g { color: var(--green); }
.kpi-label { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.kpi-delta { font-size: .7rem; margin-top: .15rem; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.dn { color: var(--red); }

/* ══════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════ */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { padding: 1rem 1.2rem; font-size: .8rem; font-weight: 600; text-align: center; border-bottom: 2px solid var(--border); }
.compare-table th:first-child { text-align: left; color: var(--muted); font-weight: 400; }
.compare-table th.col-h { background: var(--teal); color: white; border-radius: 10px 10px 0 0; font-size: .88rem; }
.compare-table td { padding: .85rem 1.2rem; font-size: .82rem; color: var(--muted); text-align: center; border-bottom: 1px solid var(--border-2); }
.compare-table td:first-child { text-align: left; color: var(--ink); font-weight: 500; }
.compare-table tbody tr:hover td { background: var(--off); }
.compare-table td.col-h { background: var(--teal-lt); color: var(--teal-dk); font-weight: 600; }
.compare-table tbody tr:hover td.col-h { background: #c6e9e8; }
.chk  { color: var(--green); font-size: 1rem; }
.x    { color: var(--red); }
.dash { color: var(--muted-2); }

/* ══════════════════════════════════════
   PRICING CARDS
══════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 960px; margin: 2.5rem auto 0; }
.pricing-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 18px; padding: 2rem 1.8rem; position: relative; transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.pricing-card.featured { border-color: var(--teal); background: linear-gradient(160deg, var(--teal-lt) 0%, var(--white) 60%); }
.featured-pill { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: white; font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .28rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan-tier { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.plan-price { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.plan-per { font-size: .82rem; color: var(--muted); }
.plan-tagline { font-size: .78rem; color: var(--muted); margin: .5rem 0 1.4rem; line-height: 1.55; }
.plan-divider { border: none; border-top: 1px solid var(--border-2); margin-bottom: 1.3rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.5rem; }
.plan-features li { font-size: .8rem; color: var(--muted); display: flex; align-items: flex-start; gap: .55rem; }
.btn-plan { width: 100%; padding: .8rem; border-radius: 999px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .84rem; font-weight: 600; transition: all .2s; }
.btn-plan-outline { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.btn-plan-outline:hover { border-color: var(--teal); color: var(--teal-dk); background: var(--teal-lt); }
.btn-plan-filled { background: var(--teal); color: white; border: none; box-shadow: 0 2px 10px rgba(23,168,163,.28); }
.btn-plan-filled:hover { background: var(--teal-2); transform: translateY(-1px); }

/* Billing toggle */
.billing-toggle { display: inline-flex; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; margin: 1.5rem auto 0; }
.billing-opt { padding: .4rem 1.1rem; border-radius: 999px; font-size: .78rem; font-weight: 500; color: var(--muted); transition: all .2s; cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.billing-opt.active { background: var(--ink); color: white; }
.save-badge { background: var(--green-lt); color: var(--green); font-size: .6rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: .4rem; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--teal-3); }
.faq-q { padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ink); background: var(--white); transition: background .15s; user-select: none; }
.faq-q:hover { background: var(--off); }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--off-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 300; flex-shrink: 0; transition: transform .3s, background .2s, color .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--teal-lt); color: var(--teal-dk); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 1.3rem; transition: max-height .35s ease, padding .25s; font-size: .87rem; color: var(--muted); line-height: 1.75; background: var(--off); }
.faq-item.open .faq-a { max-height: 220px; padding: 1rem 1.3rem; }

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-band {
  margin: 0 5vw 5rem; border-radius: var(--radius-lg); padding: 5rem;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dk) 50%, #0A3F3E 100%);
}
.cta-band-blob-1 { position: absolute; top: -80px; right: 80px; width: 320px; height: 320px; background: radial-gradient(circle, var(--teal-3) 0%, transparent 60%); opacity: .12; border-radius: 50%; }
.cta-band-blob-2 { position: absolute; bottom: -60px; left: 40px; width: 220px; height: 220px; background: radial-gradient(circle, var(--orange) 0%, transparent 60%); opacity: .15; border-radius: 50%; }
.cta-content { position: relative; z-index: 2; }
.cta-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .9rem; }
.cta-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: white; margin-bottom: .7rem; }
.cta-title em { font-style: italic; color: #6FE0DA; }
.cta-sub { font-size: .92rem; color: rgba(255,255,255,.55); line-height: 1.65; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; align-items: center; position: relative; z-index: 2; }
.cta-micro { font-size: .7rem; color: rgba(255,255,255,.3); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#site-footer { background: var(--off); border-top: 1px solid var(--border); padding: 3.5rem 5vw 2rem; }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr; gap: 3rem; margin-bottom: 3rem; }
.footer-tagline { font-size: .82rem; color: var(--muted); line-height: 1.6; max-width: 200px; margin-top: .65rem; margin-bottom: 1.3rem; }
.footer-socials { display: flex; gap: .5rem; }
.social-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--off-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.social-btn:hover { background: var(--teal-lt); color: var(--teal-dk); border-color: var(--teal-3); }
.footer-col h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 1.1rem; }
.footer-col a { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .55rem; transition: color .18s; }
.footer-col a:hover { color: var(--teal-dk); }
.newsletter-form p { font-size: .78rem; color: var(--muted); line-height: 1.5; margin-bottom: .7rem; }
.email-wrap { display: flex; gap: .4rem; }
.email-input { flex: 1; padding: .55rem .9rem; border: 1px solid var(--border); border-radius: 8px; font-size: .8rem; color: var(--ink); background: var(--white); outline: none; transition: border-color .2s; }
.email-input:focus { border-color: var(--teal); }
.email-submit { background: var(--teal); color: white; border: none; padding: .55rem 1rem; border-radius: 8px; font-size: .78rem; font-weight: 600; transition: background .2s; }
.email-submit:hover { background: var(--teal-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-copy { font-size: .74rem; color: var(--muted-2); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .74rem; color: var(--muted-2); transition: color .18s; }
.footer-legal a:hover { color: var(--teal-dk); }
.footer-certs { display: flex; gap: .8rem; }
.cert-badge { background: var(--off-2); border: 1px solid var(--border); border-radius: 6px; padding: .2rem .6rem; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; }

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.section-pad { padding: 6rem 5vw; }
.section-pad-sm { padding: 4rem 5vw; }
.bg-white { background: var(--white); }
.bg-off   { background: var(--off); }

/* ══════════════════════════════════════
   STATS BAND
══════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-card { background: var(--white); padding: 2.5rem 2rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--teal-dk); line-height: 1; margin-bottom: .4rem; }
.stat-lbl { font-size: .82rem; color: var(--muted); line-height: 1.5; max-width: 160px; }
.stat-note { margin-top: .6rem; font-size: .7rem; color: var(--muted-2); display: flex; align-items: center; gap: .35rem; }
.stat-badge { background: var(--green-lt); color: var(--green); border-radius: 999px; padding: .1rem .5rem; font-size: .65rem; font-weight: 600; }

/* ══════════════════════════════════════
   INTEGRATION CARDS
══════════════════════════════════════ */
.int-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; }
.int-card { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: default; }
.int-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--teal-3); }
.int-icon { font-size: 1.5rem; }
.int-name { font-size: .7rem; font-weight: 600; color: var(--muted); text-align: center; }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; transition: transform .25s cubic-bezier(.34,1.4,.64,1), box-shadow .25s; }
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.testi-stars { color: var(--orange); font-size: .85rem; letter-spacing: .05em; }
.testi-quote { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 400; font-style: italic; line-height: 1.6; color: var(--ink); flex: 1; }
.testi-quote strong { font-style: normal; font-weight: 600; color: var(--teal-dk); }
.testi-result { background: var(--off); border-radius: 8px; padding: .6rem .8rem; font-size: .72rem; color: var(--teal-dk); font-weight: 600; display: flex; align-items: center; gap: .4rem; border: 1px solid var(--teal-3); }
.testi-author { display: flex; align-items: center; gap: .8rem; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.av-orange { background: var(--orange-lt); }
.av-teal   { background: var(--teal-lt); }
.av-amber  { background: var(--amber-lt); }
.av-purple { background: var(--purple-lt); }
/* backward compat aliases */
.av-coral  { background: var(--orange-lt); }
.testi-name { font-size: .84rem; font-weight: 600; color: var(--ink); }
.testi-role { font-size: .72rem; color: var(--muted); }

/* ══════════════════════════════════════
   STEPS
══════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; position: relative; z-index: 1; }
.step { background: var(--off); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.step-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--off-3); line-height: 1; position: absolute; top: 1.4rem; right: 1.5rem; transition: color .2s; }
.step:hover .step-num { color: var(--teal-3); }
.step-icon { width: 52px; height: 52px; background: var(--teal-lt); border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.1rem; transition: transform .25s; }
.step:hover .step-icon { transform: scale(1.08); }
.step-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.step-desc { font-size: .84rem; line-height: 1.7; color: var(--muted); }
.step-time { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .72rem; color: var(--teal-dk); font-weight: 600; display: flex; align-items: center; gap: .35rem; }

/* ══════════════════════════════════════
   FEATURE SPLIT
══════════════════════════════════════ */
.feat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5.5rem; }
.feat-split:last-child { margin-bottom: 0; }
.feat-split.flip { direction: rtl; }
.feat-split.flip > * { direction: ltr; }
.feat-tag { display: inline-flex; background: var(--teal-lt); color: var(--teal-dk); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.feat-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin-bottom: .8rem; }
.feat-title em { font-style: italic; color: var(--teal); }
.feat-desc { font-size: .9rem; line-height: 1.8; color: var(--muted); margin-bottom: 1.6rem; }
.feat-cta-row { margin-top: 1.8rem; display: flex; align-items: center; gap: 1rem; }

/* App window */
.app-window { background: var(--white); border: 1px solid var(--border); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 0 var(--teal-3), 0 -12px 60px rgba(23,168,163,.08), var(--sh-lg); overflow: hidden; }
.app-chrome { background: var(--off-2); padding: .65rem 1rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--border); }
.chrome-dots { display: flex; gap: .35rem; }
.chrome-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #ffbd2e; } .dot-g { background: #28c840; }
.app-url-bar { flex: 1; text-align: center; font-size: .7rem; color: var(--muted-2); background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .22rem .9rem; max-width: 240px; margin: 0 auto; }

/* Hero badge */
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--white); border: 1px solid var(--border); color: var(--ink); font-size: .76rem; font-weight: 500; padding: .4rem 1rem; border-radius: 999px; margin-bottom: 2rem; box-shadow: var(--sh-sm); animation: popIn .5s .05s ease both; }
.badge-pulse { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: livePulse 2.2s infinite; }
@keyframes livePulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(23,168,163,.5); } 50%{ box-shadow: 0 0 0 5px rgba(23,168,163,0); } }
@keyframes popIn { from{ opacity:0; transform:scale(.88) translateY(8px); } to{ opacity:1; transform:none; } }
@keyframes riseUp { from{ opacity:0; transform:translateY(32px); } to{ opacity:1; transform:none; } }

.anim-1 { animation: riseUp .75s .15s ease both; }
.anim-2 { animation: riseUp .75s .25s ease both; }
.anim-3 { animation: riseUp .75s .35s ease both; }
.anim-4 { animation: riseUp .75s .45s ease both; }
.anim-5 { animation: riseUp .75s .55s ease both; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s cubic-bezier(.34,1.4,.64,1), box-shadow .25s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.blog-thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-body { padding: 1.5rem; }
.blog-category { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dk); margin-bottom: .5rem; }
.blog-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: .6rem; }
.blog-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.blog-meta { font-size: .72rem; color: var(--muted-2); display: flex; align-items: center; justify-content: space-between; }
.blog-read { color: var(--teal-dk); font-weight: 600; font-size: .78rem; display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.blog-read:hover { gap: .5rem; }

/* Summary bar */
.summary-bar { margin-top: 1rem; padding: .7rem .9rem; background: var(--green-lt); border-radius: 8px; border: 1px solid var(--green-bd); font-size: .73rem; color: var(--green); font-weight: 500; }

/* ══════════════════════════════════════
   ANCHOR-AS-BUTTON — allow <a> elements
   to use all button classes
══════════════════════════════════════ */
a.btn-primary, a.btn-teal, a.btn-white, a.btn-outline,
a.btn-ghost-link, a.btn-demo, a.btn-nav-ghost, a.btn-nav-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* ══════════════════════════════════════
   ACCESSIBILITY — reduced motion
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .badge-pulse {
    animation: none;
  }
}

/* ══════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════ */
.lang-switcher {
  position: relative;
}

/* ── Trigger button — compact, nav-height ── */
.lang-btn {
  display: inline-flex; align-items: center; gap: .375rem;
  background: transparent;
  border: none;
  color: #374151;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .875rem; font-weight: 500;
  padding: .375rem .5rem; border-radius: .5rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.lang-btn:hover,
.lang-switcher.open .lang-btn {
  color: #030712;
  background: #f9fafb;
}

/* Twemoji flag image inside button */
.lang-btn img.emoji {
  width: 16px; height: 16px;
  vertical-align: middle;
  border-radius: 2px;
  flex-shrink: 0;
}
/* Twemoji flag image inside dropdown */
.lang-option img.emoji {
  width: 20px; height: 20px;
  vertical-align: middle;
  border-radius: 3px;
  flex-shrink: 0;
}

.lang-flag {
  font-size: .95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.lang-name {
  font-size: .875rem;
  font-weight: 500;
  color: inherit;
}
.lang-chevron {
  font-size: .55rem;
  color: var(--muted);
  font-style: normal;
  transition: transform .2s ease;
  display: inline-block;
  margin-left: .05rem;
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
  color: var(--teal-dk);
}

/* ── Dropdown panel ── */
.lang-dropdown {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 16px 48px rgba(0,0,0,.10);
  min-width: 190px;
  padding: .4rem;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.34,1.4,.64,1);
  z-index: 500;
}
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -7px; right: 16px;
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1.5px solid var(--border);
  border-top: 1.5px solid var(--border);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Dropdown header label ── */
.lang-dropdown-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: .25rem .7rem .35rem;
  display: block;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: .25rem;
}

/* ── Individual language option ── */
.lang-option {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .81rem; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border: none; background: none; width: 100%;
  text-align: left;
  border-radius: 8px;
  transition: background .13s;
  position: relative;
}
.lang-option:hover { background: var(--off); }
.lang-option.active {
  background: linear-gradient(135deg, var(--teal-lt) 0%, rgba(255,255,255,0) 100%);
  color: var(--teal-dk);
  font-weight: 700;
}
.lang-option.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--teal);
  border-radius: 0 2px 2px 0;
}
.lang-option-flag { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.lang-option-name { flex: 1; }
.lang-option-check {
  color: var(--teal);
  font-size: .75rem;
  font-weight: 800;
  background: var(--teal-lt);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE — tablet & mobile
   (shared components; page-specific grids
    are collapsed in each page's own <style>)
══════════════════════════════════════ */

/* Hamburger button — hidden on desktop, shown < 768px */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--white);
}
.nav-toggle-bar { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
#site-nav-wrap.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#site-nav-wrap.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
#site-nav-wrap.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Tablet: thin out the densest grids before full collapse */
@media (max-width: 1023px) {
  .int-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; row-gap: 2.5rem; }
}

@media (max-width: 767px) {
  /* ── Mobile navigation ── */
  .nav-toggle { display: inline-flex; }
  .btn-nav-ghost, .btn-nav-cta { display: none !important; }
  #site-nav { position: relative; flex-wrap: wrap; }
  /* id+class beats the inline-equal .nav-links rule so the menu actually hides */
  #site-nav .nav-pill {
    display: none;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    margin: 0; padding: .5rem;
    border: none; border-radius: 0; border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.98); backdrop-filter: blur(24px);
    box-shadow: var(--sh-md);
  }
  #site-nav-wrap.nav-open .nav-pill { display: flex; }
  #site-nav .nav-links { flex-direction: column; width: 100%; gap: 0; }
  #site-nav .nav-links a { width: 100%; padding: .7rem 1rem; border-radius: 8px; }

  /* ── Collapse shared multi-column grids ── */
  .kpi-grid, .int-grid, .testi-grid, .steps,
  .blog-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .feat-split { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
  .feat-split.flip { direction: ltr; }
  .cta-band { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem; margin: 0 1.25rem 3.5rem; }
  .cta-actions { align-items: stretch; }

  /* ── Footer ── */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* ── Wide tables scroll inside their box instead of overflowing the page ── */
  .compare-table, .pay-table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }

  /* ── Tighten section padding (was 5vw / 5rem) ── */
  .section-pad    { padding: 4rem 1.25rem; }
  .section-pad-sm { padding: 3rem 1.25rem; }
  .page-hero      { padding: 3.5rem 1.25rem 3rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
