/* v3 */
/* AcuityMaster — style.css v4.0 — clean build */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --blue:         #3399CC;
  --blue-dark:    #2277aa;
  --blue-deep:    #1a5f8a;
  --blue-bg:      rgba(51,153,204,.09);
  --white:        #ffffff;
  --off-white:    #f8f9fb;
  --page-bg:      #f4f6f9;
  --text:         #1c2b3a;
  --text-light:   #56647a;
  --border:       #e1e7ef;
  --card-icon-bg: #ddeaf5;
  --max-w:        1140px;
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   .22s ease;
  --grad-hero:    linear-gradient(145deg, #12304d 0%, #1b5f8c 55%, #2a8fc0 100%);
  --grad-cta:     linear-gradient(135deg, #1a3f5c 0%, #1d6496 55%, #3399CC 100%);
  --shadow-card:  0 2px 16px rgba(0,0,0,.07);
  --shadow-hover: 0 12px 44px rgba(30,100,160,.18);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: 'Roboto Slab', Georgia, serif; line-height: 1.25; }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }
.section-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: .75rem;
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .72rem 1.85rem;
  border-radius: 50px;
  font-weight: 600; font-size: .93rem;
  cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center; letter-spacing: .012em;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #2585bf 0%, #3399CC 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(51,153,204,.38);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1e6fa3 0%, #2585bf 100%);
  box-shadow: 0 6px 22px rgba(51,153,204,.50);
  transform: translateY(-1px);
  color: #fff;
}
.btn-white { background: #fff; color: var(--blue-dark); border-color: rgba(255,255,255,.9); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.btn-white:hover { background: #f0f8ff; box-shadow: 0 4px 18px rgba(0,0,0,.16); transform: translateY(-1px); color: var(--blue-deep); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.9); }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
.btn-card { margin-top: 1.25rem; font-size: .875rem; padding: .52rem 1.4rem; }
.btn-sm { padding: .48rem 1.15rem; font-size: .85rem; }

/* ── HEADER — white background ──────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  height: 64px; padding-inline: 1.5rem;
  max-width: var(--max-w); margin-inline: auto;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: 'Roboto Slab', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.brand-logo { height: 36px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: .15rem;
  margin-left: auto; flex-wrap: wrap;
}
.nav-links a {
  display: block; padding: .35rem .72rem;
  color: #444; font-size: .9rem; font-weight: 500;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { background: var(--blue-bg); color: var(--blue); }
.nav-links a.cta {
  background: var(--blue); color: #fff !important;
  padding: .35rem .9rem; margin-left: .4rem;
}
.nav-links a.cta:hover { background: var(--blue-dark); }
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
  padding: .25rem; margin-left: auto;
}

/* ── SLIDER — light grey, text left / image right ───────── */
.slider {
  background: var(--grad-hero);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
/* hide ALL slides; show only .active */
.slide { display: none; }
.slide.active { display: block; }

.slide-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.75rem 0 4rem;
}
.slide-text h2 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 700; color: #ffffff;
  margin-bottom: 1rem; line-height: 1.18;
}
.slide-text p {
  font-size: 1.05rem; color: rgba(255,255,255,.82);
  line-height: 1.72; margin-bottom: 1.75rem;
}
.slide-image {
  display: flex; justify-content: center; align-items: center;
}
.eyechart-svg {
  width: 100%; max-width: 400px;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.18));
  border-radius: 5px;
}

/* slider controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32); color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; z-index: 10;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slider-btn:hover { background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.6); }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-dots {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  padding: 0; transition: background var(--transition), transform var(--transition);
}
.slider-dot.active { background: #ffffff; transform: scale(1.35); }

/* ── ABOUT INTRO ─────────────────────────────────────────── */
.about-intro-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.75rem;
  text-align: center;
}
.about-intro-lead {
  font-size: 1.02rem; color: var(--text-light);
  max-width: 820px; margin: .75rem auto 1.25rem; line-height: 1.75;
}
.about-intro-list {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 640px; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem;
}
.about-intro-list li {
  padding-left: 1.4rem; position: relative;
  font-size: .96rem; color: var(--text-light); line-height: 1.5;
}
.about-intro-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── HOVER CARDS — 4-col, grey circles, filled icons ─────── */
.hover-cards-section {
  background: #ffffff;
  padding: 3rem 0 4rem;
}
.hover-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.hover-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-card);
}
.hover-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}
.hover-card-icon {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, #dbeaf8 0%, #c8dff0 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.35rem;
}
.hover-card-icon svg {
  width: 36px; height: 36px;
  fill: var(--blue);
  display: block;
}
.hover-card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: .65rem;
}
.hover-card p { font-size: .93rem; color: var(--text-light); line-height: 1.6; }

/* ── REQUEST A DEMO ──────────────────────────────────────── */
.demo-request-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.demo-request-box {
  display: flex; gap: 3rem; align-items: center;
  background: linear-gradient(135deg, #eef5fb 0%, #f4f8fc 100%);
  border: 1px solid #ccdded;
  border-radius: 18px;
  padding: 2.25rem 2.25rem;
  box-shadow: 0 2px 14px rgba(51,153,204,.1);
}
.demo-request-text { flex: 1; }
.demo-request-text h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--blue); margin-bottom: .85rem;
}
.demo-request-text p { font-size: .95rem; color: var(--text-light); line-height: 1.7; margin-bottom: .6rem; }
.demo-request-cta { flex-shrink: 0; display: flex; align-items: center; padding-top: .25rem; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials-section { background: #f6f9fd; padding: 4.5rem 0; }
.testimonials-section h2 { margin-bottom: 0; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.testimonial {
  background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem 1.85rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial:hover { box-shadow: 0 8px 32px rgba(0,0,0,.10); transform: translateY(-3px); }
.testimonial p { font-style: italic; color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
.testimonial-author { font-size: .85rem; font-weight: 600; color: var(--text); }

/* ── CTA STRIP ───────────────────────────────────────────── */
.cta-section {
  background: var(--grad-cta);
  color: #fff; text-align: center; padding: 4.5rem 0;
}
.cta-section h2 { color: #fff; font-size: clamp(1.5rem,3vw,2.1rem); margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.88); font-size: 1.05rem; margin-bottom: 0; }

/* ── FEATURE GRID (features page) ───────────────────────── */
/* section base padding defined in mobile-opt v4.1 below */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 1.85rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-card p { font-size: .93rem; color: var(--text-light); }

/* ── SPLIT LAYOUT ────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split-info h2 { margin-bottom: 1rem; font-size: clamp(1.4rem,2.5vw,2rem); }
.split-info p { color: var(--text-light); margin-bottom: .85rem; line-height: 1.7; }

/* ── HERO (inner pages) ──────────────────────────────────── */
.page-hero {
  background: var(--grad-hero) !important;
  color: #fff; padding: 3.75rem 0 3.25rem; text-align: center;
  position: relative;
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem,4vw,2.5rem); margin-bottom: .6rem; }
.page-hero .section-eyebrow { color: rgba(255,255,255,.85); letter-spacing: .12em; }
.page-hero p { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 640px; margin-inline: auto; }


/* Testimonial author row with photo */
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.1rem;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}
.testimonial-name {
  display: block;
  font-size: .95rem;
  color: var(--heading, #1e2d3d);
}
.testimonial-title {
  display: block;
  font-size: .8rem;
  color: var(--text-light, #6b7a8d);
  margin-top: .1rem;
}

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: 5px;
  font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-success { color: #1a7a3c; font-weight: 600; padding: 1rem; background: #eafaf1; border-radius: 5px; }

/* ── COMING SOON BANNER ──────────────────────────────────── */
.coming-soon-banner {
  background: #ff8c00; color: #fff;
  text-align: center; padding: .85rem 1rem;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}

/* ── VERSION BADGE ───────────────────────────────────────── */
.version-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .15rem .6rem; border-radius: 3px; margin-left: .4rem;
  vertical-align: middle;
}
.badge-legacy { background: #6c757d; color: #fff; }
.badge-cloud  { background: var(--blue); color: #fff; }

/* ── VERSION TABS ────────────────────────────────────────── */
.tab-nav { display: flex; gap: .5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.tab-btn {
  padding: .6rem 1.25rem; font-weight: 600; font-size: .9rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-light); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PRICING TABLE ───────────────────────────────────────── */
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.pricing-table th, .pricing-table td {
  padding: .75rem 1rem; border: 1px solid var(--border);
  text-align: left; font-size: .93rem;
}
.pricing-table th { background: linear-gradient(135deg, #1d6496, #3399CC); color: #fff; font-weight: 600; }
.pricing-table tr:nth-child(even) td { background: var(--off-white); }
.pricing-table td:not(:first-child) { text-align: right; }

/* ── COMPARISON TABLE ────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.compare-table th, .compare-table td {
  padding: .7rem 1rem; border: 1px solid var(--border); font-size: .92rem;
}
.compare-table th { background: #f5f7fa; font-weight: 600; }
.compare-table .yes { color: #1a7a3c; font-weight: 700; }
.compare-table .no  { color: #c0392b; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #1e2530; color: #b0b8c4; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: 'Roboto Slab', serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-tagline { font-size: .9rem; color: #8a96a4; margin-bottom: .35rem; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .85rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { font-size: .88rem; color: #8a96a4; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2e3845; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; font-size: .82rem; color: #6a7585;
}

/* ── SECTION backgrounds (content pages) ─────────────────── */
main > section:not(.slider):not(.page-hero) { background: var(--page-bg); }
main > section:not(.slider):not(.page-hero):nth-child(even) { background: #fff; }

/* ── MOBILE NAV ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem; gap: .2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .55rem .5rem; width: 100%; font-size: 1rem; }
  .nav-links a.cta { margin-left: 0; margin-top: .5rem; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hover-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .slide-container { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .slide-image { display: none; }
  .about-intro-list { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .demo-request-box { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .hover-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Legacy variable aliases (used by older pages) */
:root {
  --muted:    #555e6d;
  --paper:    #ffffff;
  --paper-2:  #f7f8fa;
  --navy:     #2c3440;
  --line:     #d8dde4;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --accent:   #3399CC;
}

/* .page-hero rules consolidated in main section above */

/* Buttons */
.btn-secondary {
  display: inline-block; padding: .5rem 1.2rem; font-size: .88rem; font-weight: 600;
  border: 1.5px solid var(--blue); border-radius: 4px; color: var(--blue);
  background: transparent; transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover { background: var(--blue); color: #fff; }
.btn-accent { background: #fff; color: var(--blue); border: 2px solid #fff; border-radius: 4px; padding: .65rem 1.6rem; font-weight: 600; display: inline-block; }
.btn-accent:hover { background: #e8f4fb; }

/* Info box */
.info-box {
  background: #edf6fb; border-left: 4px solid var(--blue);
  border-radius: 0 6px 6px 0; padding: 1rem 1.25rem; margin-top: 1.5rem;
  font-size: .93rem;
}

/* Transition/callout box */
.transition-box {
  background: #fff8e6; border: 1px solid #f0d080;
  border-radius: var(--radius); padding: 1.75rem 2rem;
}
.transition-box h3 { font-family: 'Roboto Slab',serif; margin-bottom: .75rem; color: var(--text); }
.transition-box ul { padding-left: 1.4rem; margin-top: .5rem; }
.transition-box li { margin-bottom: .35rem; font-size: .95rem; color: var(--text-light); }

/* Stats row */
.stats-row { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--blue); font-family: 'Roboto Slab',serif; }
.stat-label { font-size: .82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; }

/* Download cards */
.download-card {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: #f7f9fb; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.download-icon { font-size: 2rem; flex-shrink: 0; }
.download-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.download-card p { font-size: .9rem; color: var(--text-light); margin-bottom: 0; }

/* Version tabs (help page) */
.version-tabs {
  display: flex; gap: .5rem; margin-bottom: 2rem;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.version-tab {
  padding: .65rem 1.4rem; font-weight: 600; font-size: .92rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-light); border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color var(--transition), border-color var(--transition);
  font-family: 'Roboto',sans-serif;
}
.version-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.version-panel { display: none; }
.version-panel.active { display: block; }

/* Steps ol */
.steps { list-style: none; counter-reset: steps; padding: 0; margin-top: 1.25rem; }
.steps li { counter-increment: steps; display: flex; gap: 1.25rem; margin-bottom: 1.5rem; align-items: flex-start; }
.steps li::before {
  content: counter(steps); min-width: 32px; height: 32px;
  background: var(--blue); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0; margin-top: .1rem;
}
.steps li h3 { font-size: 1rem; margin-bottom: .25rem; }
.steps li p { font-size: .93rem; color: var(--text-light); margin: 0; }

/* FAQ list */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.faq-q {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600;
  font-size: .97rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
  gap: 1rem; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--blue); flex-shrink: 0; }
details[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 1.25rem 1rem; font-size: .93rem; color: var(--text-light); line-height: 1.7; }
.faq-a p { margin-bottom: .5rem; }
.faq-a ul { padding-left: 1.4rem; }
.faq-a li { margin-bottom: .3rem; }

/* FAQ two-column layout */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.faq-col h2 { font-size: 1.25rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }

/* Requirements two-column */
.req-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.req-col h2 { font-size: 1.25rem; margin-bottom: 1rem; }

/* Content tables */
.content table, table.plain {
  width: 100%; border-collapse: collapse; font-size: .93rem;
  margin-top: 1rem;
}
.content table th, .content table td,
table.plain th, table.plain td {
  padding: .65rem .9rem; border: 1px solid var(--border); text-align: left;
}
.content table th, table.plain th { background: #f5f7fa; font-weight: 600; }
.content table tr:nth-child(even) td { background: var(--off-white); }

/* form-row (trial page legacy) */
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border);
  border-radius: 5px; font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition); background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-note { font-size: .82rem; color: var(--text-light); margin-top: .6rem; }

/* CTA strip (features page) */
.bg-navy.cta-strip, .cta-strip { background: var(--grad-cta); color: #fff; padding: 4rem 0; text-align: center; }
.bg-navy.cta-strip h2, .cta-strip h2 { color: #fff; }
.bg-navy.cta-strip p, .cta-strip p { color: rgba(255,255,255,.88); }

/* bg-paper-2 */
.bg-paper-2 { background: #f7f9fb; }

/* Responsive FAQ/req cols */
@media (max-width: 768px) {
  .faq-cols, .req-cols { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════
   MOBILE OPTIMISATION — v4.1
   ════════════════════════════════════════════════════════ */

/* Section vertical rhythm */
section { padding: 4rem 0; }

/* Fluid headings */
h1 { font-size: clamp(1.55rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.2rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.35rem); }

/* Touch targets — minimum 44 × 44 px */
.btn, summary, .feat-tab-nav li { min-height: 44px; display: inline-flex; align-items: center; }
.menu-toggle { min-height: 44px; min-width: 44px; }
.menu-toggle { min-height: 44px; min-width: 44px; }

@media (max-width: 768px) {
  section { padding: 2.5rem 0; }
  .cta-section, .cta-strip, .bg-navy.cta-strip { padding: 2.5rem 0 !important; }
  .page-hero { padding: 2rem 0 1.75rem; }

  /* Prevent iOS zoom: inputs must be ≥16 px */
  input, select, textarea { font-size: 16px !important; }

  /* Tables — horizontal scroll */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Feature tab bar — horizontally scrollable on mobile */
  .feat-tab-nav {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 2px; gap: .2rem;
  }
  .feat-tab-nav li { flex-shrink: 0; scroll-snap-align: start; }

  /* Feature panel — always single column */
  .feat-panel-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .feat-gallery { grid-template-columns: repeat(2, 1fr); }

  /* Two-column inner pages */
  .req-cols, .faq-cols, .help-cols { grid-template-columns: 1fr !important; }

  /* Button groups stack vertically */
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; justify-content: center; }

  /* Download cards — stack icon above text */
  .download-card { flex-direction: column; gap: .75rem; }

  /* Pricing table scroll */
  .pricing-table-wrap, .comparison-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .feat-gallery { grid-template-columns: 1fr; }
  .hover-cards { grid-template-columns: 1fr !important; }
  .slide-text h2 { font-size: 1.45rem; }
  .nav { padding-inline: 1rem; }
}

/* ── SLIDER MOBILE — hide overlapping arrows, add swipe padding ── */
@media (max-width: 768px) {
  /* Arrows sit at top:50% and overlap the text on mobile — hide them.
     Users swipe horizontally instead (touch event added in slider JS). */
  .slider-btn { display: none !important; }

  /* Give the slider a bottom gutter so the dot indicators don't clip */
  .slider { padding-bottom: 2.75rem; }

  /* Tighten the slide content vertically and add horizontal padding
     so text is never flush with the screen edge */
  .slide-container { padding: 1.75rem 1rem 1rem !important; }

  /* Dots remain absolutely positioned in the new bottom gutter */
  .slider-dots { bottom: .65rem; }

  /* Enlarge dots for easier tapping */
  .slider-dot { width: 11px; height: 11px; }
}

/* ── HOMEPAGE MOBILE FIX v2 ─────────────────────────────────────────────── */

/* Stop the whole page sloshing sideways */
html { overflow-x: hidden; }

/* Why Us advantage cards — desktop 3-col grid */
.why-adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  /* Slider: collapse to single column, hide illustration */
  .slide-container {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .slide-image { display: none; }

  /* Hover cards (4-up) → native CSS scroll-snap carousel */
  .hover-cards {
    display: flex !important;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1.5rem;
    /* hide scrollbar — users swipe */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hover-cards::-webkit-scrollbar { display: none; }
  .hover-card {
    flex: 0 0 calc(100vw - 4rem) !important;
    max-width: calc(100vw - 4rem);
    scroll-snap-align: start;
  }

  /* Why Us adv grid → same scroll-snap carousel */
  .why-adv-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .why-adv-grid::-webkit-scrollbar { display: none; }
  .why-adv-grid > div {
    flex: 0 0 calc(100vw - 4rem);
    max-width: calc(100vw - 4rem);
    scroll-snap-align: start;
    min-width: 0;
  }
}


/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY — WCAG 2.2 AA
   ════════════════════════════════════════════════════════════════ */

/* ── Skip navigation link (WCAG 2.4.1) ───────────────────────── */
/* Single-rule approach: clipped when not focused, visible on focus  */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
  /* visual styles applied always; shown only when clip is removed */
  background: #fff;
  color: #1a5f8a;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid #1a5f8a;
  border-radius: 0 0 8px 0;
  padding: .875rem 1.5rem;
  z-index: 100000;
}
.skip-link:focus,
.skip-link:focus-visible {
  width: auto; height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  position: fixed;
  top: 0; left: 0;
  pointer-events: auto;
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* ── Focus indicators (WCAG 2.4.7 / 2.4.11) ──────────────────── */
:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Override any element that hides focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* ── Color contrast fixes (WCAG 1.4.3) ───────────────────────── */
/* --blue (#3399CC) is only 3.2:1 on white — fails for body text  */
/* --blue-dark (#2277aa) is 4.6:1 — passes AA                     */
a { color: #2277aa; }
a:hover { color: #1a5f8a; }

/* Section eyebrow — small text needs full 4.5:1 ratio */
.section-eyebrow { color: #1a5f8a; }

/* Ensure card links and blue-on-white text meet contrast */
.hover-card h3, .adv-card h3, .why-card h3 { color: #2277aa; }

/* ── Minimum touch target size (WCAG 2.5.8) ──────────────────── */
.feat-c-btn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
}
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
}
.feat-c-dot {
  width: 12px;
  height: 12px;
  min-width: 24px;   /* tap area via padding-inline */
  min-height: 24px;
  padding: 6px;
  box-sizing: content-box;
}

/* ── Inline form error messages (WCAG 3.3.1) ─────────────────── */
.form-error-msg {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: .6rem .9rem;
  font-size: .9rem;
  margin-top: .75rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.form-error-msg::before {
  content: "⚠";
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Reduced motion (WCAG 2.3.3) ─────────────────────────────── */
@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;
  }
}

/* ── Ensure sufficient contrast for placeholder text ─────────── */
::placeholder { color: #767e8d; opacity: 1; }

/* ── Landmark region focus target offset (sticky header) ──────── */
#main-content { scroll-margin-top: 4rem; }

/* ── High-contrast mode support ──────────────────────────────── */
@media (forced-colors: active) {
  .btn, .feat-c-btn, .menu-toggle { border: 2px solid ButtonText; }
  .feat-c-dot { border: 2px solid ButtonText; }
}


/* ════════════════════════════════════════════════════════
   MODERN UI — v5.0 additions
   ════════════════════════════════════════════════════════ */

/* Smooth section transitions on white bg */
.about-intro-section,
.hover-cards-section,
.demo-request-section { background: #ffffff; }
.testimonials-section { background: #f6f9fd; }

/* Section dividers — subtle gradient line instead of border */
.about-intro-section { border-bottom: 1px solid var(--border); }

/* Mobile: ensure full-width tap targets on forms */
@media (max-width: 768px) {
  .btn { width: 100%; max-width: 340px; justify-content: center; }
  .btn-group { flex-direction: column; align-items: center; gap: .75rem; }
  .demo-request-box { flex-direction: column; gap: 1.25rem; }
  .demo-request-cta { width: 100%; }
  .demo-request-cta .btn { max-width: 100%; }

  /* Hover cards — full width cards on mobile, no snap carousel confusion */
  .hover-cards {
    grid-template-columns: 1fr !important;
    display: grid !important;
    overflow-x: visible !important;
  }
  .hover-card { flex: none !important; max-width: 100% !important; }

  /* Trust bar — wrap to 2×2 on small screens */
  .trust-bar-list { gap: .85rem 1.5rem !important; }

  /* Testimonial grid — full width */
  .testimonial-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Slide container — generous text padding */
  .slide-container { padding: 2.5rem 1.25rem 2rem !important; }
  .slide-text h2 { font-size: clamp(1.55rem, 5.5vw, 2rem); }
  .slide-text p { font-size: .97rem; }
}

@media (max-width: 480px) {
  /* Tighten hero padding */
  .page-hero { padding: 2rem 0 1.75rem; }
  /* Cards — slightly less padding on very small screens */
  .hover-card, .testimonial, .feature-card { padding: 1.5rem 1.25rem; }
  /* About-intro checklist — single column */
  .about-intro-list { grid-template-columns: 1fr; }
  /* Section eyebrow — smaller */
  .section-eyebrow { font-size: .72rem; }
}

/* Prevent any child from busting out of the viewport */
* { max-width: 100%; }
img, video, canvas, iframe { max-width: 100%; }
.container { overflow: visible; }


/* ── iPhone safe-area insets (notch / Dynamic Island) ─────────────────── */
.nav {
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}
footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
.trial-grid,
.feat-panel-grid {
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

/* ── Touch target minimum 44px ─────────────────────────────────────────── */
/* Touch targets — buttons only (nav links excluded to prevent layout breakage) */
.btn, .menu-toggle, .feat-c-btn, .slider-btn {
  min-height: 44px;
}
.btn { min-width: 44px; }

/* ── Print styles ──────────────────────────────────────────────────────── */
@media print {
  .nav, .cta-section, .cta-strip, footer, .menu-toggle,
  .slider-btn, .feat-c-btn, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .page-hero { background: #1b5f8c !important; -webkit-print-color-adjust: exact; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* Screen-reader only utility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ── Critical: restore hero slider gradient (overrides section bg alternation) */
.slider,
.slider .slide,
.slider .slide.active {
  background: var(--grad-hero) !important;
}
.slide-text h2 { color: #ffffff !important; }
.slide-text p  { color: rgba(255,255,255,.85) !important; }
