/* ============================================================
   Dynawins website — local styles (extends colors_and_type.css)
   Breakpoints:
     - mobile      : ≤ 480px
     - large mobile: ≤ 640px
     - tablet      : ≤ 900px
     - laptop      : ≤ 1200px
     - desktop     : > 1200px
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--surface-1);
  color: var(--ink-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-1); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { max-width: 100%; }

/* ----- accent override (Tweaks) ----- */
body[data-accent="safe"] {
  --accent:       #0F6CBD;
  --accent-hover: #0A5BA0;
  --accent-press: #084987;
  --accent-tint:  #E8F1FB;
}

/* ----- container ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 900px) { .container { padding: 0 24px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* ----- section ----- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface-2); }
.section-ink { background: var(--ink-1); color: #FFF; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #FFF; }
.section-ink p, .section-ink .lead { color: #A3A3A3; }
@media (max-width: 900px) { .section { padding: 56px 0; } .section-tight { padding: 32px 0; } }
@media (max-width: 600px) { .section { padding: 40px 0; } .section-tight { padding: 24px 0; } }

/* Tighten the lead-in margins between section header and content */
.section h2,
.section-tight h2 { margin-bottom: 32px; }
.section .lead,
.section-tight .lead { margin-bottom: 32px; }

/* ----- header ----- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.site-header.scrolled { border-color: var(--border); }
.site-header .row {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a,
.site-header nav .nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-header nav a.active,
.site-header nav .nav-link.active { color: var(--accent); }
.site-header .logo { display: flex; align-items: center; gap: 10px; }
.site-header .logo-mark { width: 28px; height: 28px; border-radius: 7px; }
.site-header .logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

/* ----- mobile hamburger toggle (desktop default: hidden) ----- */
.nav-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--ink-1);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover {
  background: var(--ink-1);
  color: #FFF;
  border-color: var(--ink-1);
  box-shadow: var(--shadow-md);
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 5px var(--accent);
}
.nav-toggle svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  pointer-events: none;
}

/* mobile drawer backdrop (desktop default: hidden) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(10, 10, 10, 0.4);
  z-index: calc(var(--z-header) - 1);
  animation: fadeIn var(--dur-base) var(--ease-out) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── ≤768px: switch to mobile menu ─── */
@media (max-width: 768px) {
  .site-header .row { gap: 12px; }
  .nav-toggle { display: inline-flex !important; }
  .nav-backdrop.open { display: block; }

  /* nav drawer — use display none/flex so click reliably works */
  .site-header nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: var(--z-header);
    animation: drawerIn var(--dur-base) var(--ease-out) both;
  }
  .site-header nav.open { display: flex; }

  @keyframes drawerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* drawer link styling */
  .site-header nav > a,
  .site-header nav > .nav-products,
  .site-header nav .nav-link {
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .site-header nav > .nav-products {
    padding: 0;
    position: static !important;
    display: block !important;
  }
  .site-header nav .nav-products > button {
    padding: 14px 4px !important;
    width: 100%;
    justify-content: space-between !important;
    text-align: left;
  }
  .site-header nav .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    margin-top: 12px;
    border: 0;
  }
  /* products dropdown becomes inline expanded list inside the drawer */
  .site-header nav .nav-products > div:not([class]) {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 4px 0 12px !important;
    left: auto !important;
    top: auto !important;
  }
}

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-2);
  font-size: 14px; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--accent-press); transform: translateY(0); }
.btn-secondary { background: #FFF; color: var(--ink-1); border-color: var(--ink-1); }
.btn-secondary:hover { background: var(--ink-1); color: #FFF; }
.btn-ghost { background: transparent; color: var(--ink-1); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink-1); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
@media (max-width: 480px) {
  .btn-lg { padding: 12px 18px; font-size: 15px; }
}

/* ----- card styles (Tweak switchable via [data-card-style]) ----- */
.card {
  background: #FFF;
  border-radius: var(--radius-3);
  padding: 28px;
  transition: all var(--dur-base) var(--ease-out);
}
body[data-card-style="flat"] .card { border: 1px solid var(--border); }
body[data-card-style="bordered"] .card { border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
body[data-card-style="shadow"] .card { box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (max-width: 600px) { .card { padding: 22px; } }
@media (max-width: 480px) { .card { padding: 18px; border-radius: var(--radius-2); } }

/* ----- chip / badge ----- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  background: var(--accent-tint); color: var(--accent);
}
.chip-mono {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: var(--radius-1);
}
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ----- eyebrow ----- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ----- grid background motif ----- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ----- hero ----- */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
  /* First view should feel "complete" — fill the viewport on landing. */
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero > .container { width: 100%; }
/* Some pages don't want a full-viewport hero (pricing, blog post, contact) */
.hero.hero-compact {
  min-height: 0;
  display: block;
  padding: 56px 0 24px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 24px; max-width: 14ch;
}
.hero .lead { max-width: 56ch; margin-bottom: 32px; font-size: clamp(15px, 2vw, 19px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero { padding: 80px 0 56px; } }
@media (max-width: 600px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { max-width: none; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
}

/* ----- footer ----- */
.site-footer {
  background: var(--ink-1); color: #A3A3A3;
  padding: 64px 0 32px;
}
.site-footer h4 { color: #FFF; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #A3A3A3; font-size: 14px; }
.site-footer a:hover { color: #FFF; }
.site-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.site-footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #262626;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .site-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding: 48px 0 24px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 32px; }
}
@media (max-width: 380px) { .site-footer-grid { grid-template-columns: 1fr; } }

/* ----- whatsapp FAB ----- */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: var(--fab-size); height: var(--fab-size);
  border-radius: 999px;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fab);
  transition: transform var(--dur-fast) var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.05); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #FFF; }
@media (max-width: 480px) {
  .whatsapp-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ----- browser frame for screenshots ----- */
.browser {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 100%;
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--ink-6); flex-shrink: 0; }
.browser-dot.r { background: #FF5F57; }
.browser-dot.y { background: #FFBD2E; }
.browser-dot.g { background: #28C940; }
.browser-url {
  flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--ink-4);
  background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-1);
  padding: 4px 10px; margin-left: 12px;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-body { background: #FFF; overflow-x: auto; }
@media (max-width: 600px) {
  .browser-bar { padding: 10px 12px; }
  .browser-url { font-size: 11px; margin-left: 8px; }
}

/* ----- D365 mock UI ----- */
.d365 {
  display: grid; grid-template-columns: 220px 1fr 360px;
  height: 460px; font-size: 12px;
}
.d365-nav {
  background: #FAFAF9; border-right: 1px solid var(--border);
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.d365-nav .item {
  padding: 8px 10px; border-radius: 4px; color: var(--ink-3);
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.d365-nav .item.active { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.d365-form { padding: 24px; overflow: hidden; }
.d365-form h4 { font-size: 18px; margin: 0 0 4px; }
.d365-form .meta { color: var(--ink-4); font-size: 12px; margin-bottom: 20px; font-family: var(--font-mono); }
.d365-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d365-field label { font-size: 11px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 4px; }
.d365-field .v { font-size: 13px; color: var(--ink-1); padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; background: #FFF; }
.d365-panel {
  background: var(--surface-2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.d365-panel-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  background: #FFF;
}
.d365-panel-header .mark { width: 22px; height: 22px; border-radius: 5px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.d365-panel-header .name { font-weight: 600; font-size: 13px; }
.d365-panel-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.d365-msg {
  background: #FFF; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; font-size: 12px; line-height: 1.55; color: var(--ink-2);
}
.d365-msg .role { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 4px; }
.d365-input {
  background: #FFF; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; color: var(--ink-4);
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .d365 { grid-template-columns: 180px 1fr 280px; }
}
@media (max-width: 900px) {
  .d365 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .d365-nav {
    border-right: 0; border-bottom: 1px solid var(--border);
    flex-direction: row; flex-wrap: wrap; gap: 6px;
    padding: 12px;
  }
  .d365-nav .item { padding: 6px 10px; font-size: 12px; }
  .d365-panel { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .d365-fields { grid-template-columns: 1fr; }
  .d365-form { padding: 18px; }
}

/* ----- tabs (in-app router) ----- */
/* Page transitions */
.page-enter { animation: pageIn 320ms var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ----- Misc ----- */
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.tabular { font-variant-numeric: tabular-nums; }

/* feature-grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1100px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; gap: 16px; } }

/* inline icon */
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }

/* logos strip */
.logos-strip {
  display: flex; gap: 48px; justify-content: center; align-items: center;
  flex-wrap: wrap; opacity: 0.55;
}
.logos-strip .logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink-3); }
@media (max-width: 600px) {
  .logos-strip { gap: 24px; }
  .logos-strip .logo { font-size: 14px; }
}

/* ============================================================
   Responsive overrides for inline-styled grids in JSX pages
   These use !important so they win against inline `style={{ ... }}`.
   The defaults (desktop) come from the inline styles.
   ============================================================ */

/* contact page split (legacy) */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ============================================================
   Contact page — new redesigned layout
   ============================================================ */
.contact-hero {
  padding: 80px 0 56px;
  background: var(--surface-1);
}
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-hero-image {
  border-radius: var(--radius-3);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.contact-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .contact-hero { padding: 56px 0 40px; }
  .contact-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .contact-hero { padding: 40px 0 32px; }
  .contact-hero-image { aspect-ratio: 16 / 11; }
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -32px;
  position: relative;
  z-index: 1;
}
.contact-card { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (max-width: 900px) {
  .contact-methods { grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
}

.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* contact form: email + phone side by side -> stack */
.contact-form-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .contact-form-row { grid-template-columns: 1fr; }
}

/* product page hero (text + mock) */
@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* stats grid (4 across) */
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; } }

/* pricing tiers (3 across) */
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 720px)  { .pricing-grid { grid-template-columns: 1fr !important; } }

/* PCF bundle pricing — 4 cards across on desktop */
.pricing-grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 1200px) { .pricing-grid-4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .pricing-grid-4 { grid-template-columns: 1fr !important; } }

/* faq, trust, install grids */
@media (max-width: 900px) {
  .faq-grid    { grid-template-columns: 1fr !important; gap: 24px !important; }
  .trust-grid  { grid-template-columns: 1fr !important; gap: 20px !important; }
  .install-grid{ grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* blog featured card (image plate + text) */
@media (max-width: 900px) {
  .blog-featured-grid {
    grid-template-columns: 1fr !important;
  }
  .blog-featured-grid > div:first-child { padding: 28px !important; }
  .blog-featured-grid > div:last-child  { min-height: 180px !important; order: -1; }
}

/* pricing tabs row should wrap nicely on narrow */
.pricing-tabs { flex-wrap: wrap; max-width: 100%; }
.pricing-tabs button { white-space: nowrap; }

/* Make any iframe / embed fluid (defensive) */
iframe, embed, object { max-width: 100%; }

/* Safer table responsiveness — wrap any plain table in scroll on small */
@media (max-width: 600px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   ROI calculator
   ============================================================ */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-tint));
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink-1);
  border: 3px solid #FFF;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink-1);
  border: 3px solid #FFF;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

@media (max-width: 900px) {
  .roi-grid { grid-template-columns: 1fr !important; }
  .roi-grid > div:first-child { border-right: 0 !important; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 14px; color: var(--ink-1); }
.testimonial-role { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.testimonial-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; }

/* ============================================================
   Scroll progress bar (top of page)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: calc(var(--z-header) + 5);
  pointer-events: none;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #8B5CF6 50%, #EC4899 100%);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
  transition: width 80ms linear;
  border-radius: 0 999px 999px 0;
}

/* ============================================================
   Marquee — auto-scrolling logo strip
   ============================================================ */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  width: max-content;
  gap: 0;
  align-items: center;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0.7;
  flex-shrink: 0;
  padding: 0 36px;          /* ensures spacing even if `gap` fails */
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.marquee-item:hover { opacity: 1; color: var(--ink-1); }

/* Visible vertical separator between items */
.marquee-dot {
  width: 1px;
  height: 18px;
  background: var(--ink-6);
  flex-shrink: 0;
  border-radius: 1px;
  opacity: 0.7;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
@media (max-width: 600px) {
  .marquee-item   { font-size: 16px; padding: 0 22px; }
  .marquee-dot    { height: 14px; }
  .marquee-track  { animation-duration: 24s; }
}

/* ============================================================
   Hero — highlighted word with hand-drawn underline
   ============================================================ */
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.04em;
  height: 0.36em;
  background: linear-gradient(transparent 50%, color-mix(in srgb, var(--accent) 28%, transparent) 50%);
  border-radius: 4px;
  z-index: -1;
  transform: skew(-4deg);
}
/* fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
  .hl::after { background: linear-gradient(transparent 50%, var(--accent-tint) 50%); }
}

/* Subtle live status dot pulse (used in contact hero + nav) */
.dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #15803D;
  position: relative;
}
.dot-live::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid #15803D;
  opacity: 0.6;
  animation: pulse-ring 1.6s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 0.7; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}

/* Counter — keep numbers stable while animating */
.counter-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* Pricing tier — annual / total-for-term cost line */
.tier-total-cost {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(15, 108, 189, 0.08) 0%, rgba(15, 108, 189, 0.02) 100%);
  border-left: 3px solid #0F6CBD;
  border-radius: 0 8px 8px 0;
}
