/* ============================================================
   TRIPSTER DEVELOPERS -- MAIN STYLESHEET
   Production-ready CSS for Tripster Developers website
   Fonts: Plus Jakarta Sans (headings/UI) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500&display=swap');


/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Brand Colors */
  --color-red:           #E52D2D;
  --color-red-dark:      #C41F1F;
  --color-red-light:     #FEE2E2;
  --color-black:         #0D0D0D;
  --color-dark:          #1E293B;
  --color-text:          #374151;
  --color-muted:         #6B7280;
  --color-bg:            #FAFAF9;
  --color-white:         #FFFFFF;
  --color-border:        #E5E7EB;
  --color-border-light:  #F3F4F6;
  --color-success:       #10B981;
  --color-success-light: #ECFDF5;

  /* Fonts */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Font Sizes (fluid) */
  --text-xs:   clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm:   clamp(0.8rem, 0.75rem + 0.3vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.4vw, 1.0625rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.35rem + 0.8vw, 1.875rem);
  --text-3xl:  clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem);
  --text-4xl:  clamp(2.5rem, 2rem + 2.5vw, 4.5rem);

  /* Spacing Scale (fluid) */
  --space-1:  clamp(0.2rem, 0.18rem + 0.1vw, 0.25rem);
  --space-2:  clamp(0.45rem, 0.4rem + 0.2vw, 0.5rem);
  --space-3:  clamp(0.65rem, 0.6rem + 0.3vw, 0.75rem);
  --space-4:  clamp(0.9rem, 0.8rem + 0.4vw, 1rem);
  --space-5:  clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --space-6:  clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --space-8:  clamp(1.75rem, 1.5rem + 1vw, 2rem);
  --space-10: clamp(2.25rem, 2rem + 1.2vw, 2.5rem);
  --space-12: clamp(2.75rem, 2.5rem + 1.5vw, 3rem);
  --space-16: clamp(3.5rem, 3rem + 2vw, 4rem);
  --space-20: clamp(4.5rem, 4rem + 2.5vw, 5rem);
  --space-24: clamp(5.5rem, 5rem + 3vw, 6rem);
  --space-32: clamp(7rem, 6rem + 5vw, 8rem);

  /* Border Radii */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-3xl:  3rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 35px 60px -15px rgb(0 0 0 / 0.3);
  --shadow-red: 0 10px 15px -3px rgb(229 45 45 / 0.3);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --nav-height:    80px;
}


/* ============================================================
   2. RESET AND BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* prevent horizontal scroll from any section */
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

::selection {
  background-color: var(--color-red-light);
  color: var(--color-red-dark);
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6vw + 1rem, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw + 0.25rem, 2rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--color-text);
  line-height: 1.7;
}

.td-lead {
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--color-muted);
  line-height: 1.6;
  font-weight: 400;
}

a:hover {
  color: var(--color-red);
}

strong {
  font-weight: 600;
  color: var(--color-dark);
}

small {
  font-size: var(--text-sm);
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--color-border-light);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-red-dark);
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.td-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.td-container-sm {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--space-6);
  text-align: left;
}

/* Grid Utilities */
.td-grid {
  display: grid;
  gap: var(--space-6);
}

.td-grid-2 { grid-template-columns: repeat(2, 1fr); }
.td-grid-3 { grid-template-columns: repeat(3, 1fr); }
.td-grid-4 { grid-template-columns: repeat(4, 1fr); }

.td-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Flex Utilities */
.td-flex       { display: flex; }
.td-flex-col   { flex-direction: column; }
.td-items-center { align-items: center; }
.td-items-start  { align-items: flex-start; }
.td-justify-center { justify-content: center; }
.td-justify-between { justify-content: space-between; }
.td-gap-2  { gap: var(--space-2); }
.td-gap-3  { gap: var(--space-3); }
.td-gap-4  { gap: var(--space-4); }
.td-gap-6  { gap: var(--space-6); }
.td-gap-8  { gap: var(--space-8); }
.td-wrap   { flex-wrap: wrap; }

/* Section Spacing */
.td-section {
  padding-block: var(--space-20);
}

.td-section-lg {
  padding-block: var(--space-32);
}

@media (max-width: 767px) {
  .td-section { padding-block: var(--space-12); }
  .td-section-lg { padding-block: var(--space-20); }
}

/* Spacing Helpers */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.pt-4  { padding-top: var(--space-4); }
.pt-8  { padding-top: var(--space-8); }
.pb-4  { padding-bottom: var(--space-4); }
.pb-8  { padding-bottom: var(--space-8); }


/* ============================================================
   5. NAVIGATION
   ============================================================ */

.td-nav-spacer {
  height: clamp(50px, 6vw, 72px);
}

.td-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: clamp(50px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.85);
  /* Lighter blur (was 20px sat180%) -- the heavy filter was the #1 cause of
     scroll stutter, especially on iOS Safari and on screens with multiple
     transforms repainting behind the fixed nav. 8px is still glassy at 1/3 cost. */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Scoped transition (was `all`) -- with the scroll handler toggling td-scrolled
     every frame, `transition: all` was forcing recalc on every property. */
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  /* GPU layer for smooth scroll. NOTE: do NOT add `contain: layout paint` --
     paint clips the abs-positioned Apps dropdown, and layout turns the mobile
     menu's position:fixed into position:absolute relative to the nav (mobile
     menu becomes invisible on phones). will-change alone is enough. */
  will-change: transform;
}

.td-nav.td-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  height: clamp(50px, 6vw, 72px);
}

.td-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.td-logo {
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.td-logo:hover {
  transform: scale(1.02);
}

.td-logo img {
  height: clamp(32px, 5vw, 44px);
  width: auto;
}

.td-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
}

.td-nav-links li {
  list-style: none;
}

.td-nav-links a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: 100px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-nav-links a:hover,
.td-nav-links a.td-nav-active {
  color: var(--color-red);
  background: rgba(229, 45, 45, 0.05);
}

.td-nav-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--color-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.td-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.td-nav-cta {
  background: var(--color-red);
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(229, 45, 45, 0.2);
  transition: all var(--transition-fast);
}

.td-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 45, 45, 0.3);
  background: var(--color-red-dark);
}

.td-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.td-hamburger:hover {
  background: var(--color-border-light);
}

.td-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.td-hamburger.td-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.td-hamburger.td-open span:nth-child(2) { opacity: 0; }
.td-hamburger.td-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .td-nav-links { display: none; }
  .td-hamburger { display: flex; }
}

/* Prevent nav from overflowing on small phones */
@media (max-width: 480px) {
  .td-nav-cta {
    font-size: 12px;
    padding: 10px 16px;
    white-space: nowrap;
  }
  .td-nav-inner {
    padding-inline: 12px;
    gap: 8px;
  }
  .td-nav-right {
    gap: 8px;
  }
}

.td-nav.td-nav-hidden {
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}

.td-mobile-menu {
  position: fixed;
  top: clamp(50px, 6vw, 72px);
  left: 0;
  right: 0;
  background: #fff;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  z-index: 999;
  max-height: calc(100dvh - clamp(50px, 6vw, 72px));
  overflow-y: auto;
}

.td-mobile-menu.td-open {
  display: flex;
  animation: tdSlideDown 0.3s ease forwards;
}

.td-mobile-menu a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.td-mobile-menu a:hover {
  background: var(--color-bg);
  color: var(--color-red);
}

.td-mobile-cta {
  background: var(--color-red) !important;
  color: #fff !important;
  text-align: center;
  margin-top: 12px;
}



/* ============================================================
   6. BUTTONS
   ============================================================ */

.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.td-btn:active {
  transform: scale(0.98) !important;
}

/* Primary (Red) */
.td-btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.td-btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

/* Secondary (Outlined) */
.td-btn-secondary {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.td-btn-secondary:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

/* Ghost (Transparent) */
.td-btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.td-btn-ghost:hover {
  background: var(--color-border-light);
  color: var(--color-dark);
  border-color: var(--color-border);
  transform: translateY(-1px);
}

/* Dark */
.td-btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.td-btn-dark:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* White (for dark backgrounds) */
.td-btn-white {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.td-btn-white:hover {
  background: var(--color-border-light);
  color: var(--color-red);
  border-color: var(--color-border-light);
  transform: translateY(-1px);
}

/* Size Variants */
.td-btn-sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.td-btn-lg {
  font-size: var(--text-base);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
}

/* Full Width */
.td-btn-full {
  width: 100%;
}


/* ============================================================
   7. SECTION HEADERS
   ============================================================ */

.td-section-header {
  margin-bottom: var(--space-16);
}

.td-section-header.centered {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.td-section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-4);
}

.td-section-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
  flex-shrink: 0;
}

.td-section-header.centered .td-section-tag {
  justify-content: center;
}

.td-section-header.centered .td-section-tag::before {
  display: none;
}

.td-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.td-section-sub {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 600px;
}

.td-section-header.centered .td-section-sub {
  margin-inline: auto;
}


/* ============================================================
   8. CARDS
   ============================================================ */

.td-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.td-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.td-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border-light);
  transform: translateY(-3px);
}

.td-card:hover::before {
  transform: scaleX(1);
}

.td-card-dark {
  background: var(--color-dark);
  border-color: rgb(255 255 255 / 0.08);
  color: var(--color-white);
}

.td-card-dark h3,
.td-card-dark h4,
.td-card-dark p {
  color: var(--color-white);
}

.td-card-dark .td-card-muted {
  color: rgb(255 255 255 / 0.6);
}

.td-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.375rem;
}

.td-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.td-card__body {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}


/* ============================================================
   9. STAT CARDS
   ============================================================ */

.td-stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.td-stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.td-stat-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-3);
  display: block;
}

.td-stat-val {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.td-stat-val .td-stat-accent {
  color: var(--color-red);
}

.td-stat-lbl {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
  line-height: 1.4;
}


/* ============================================================
   10. FEATURE PILLS
   ============================================================ */

.td-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.td-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-border-light);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.td-pill-red {
  background: var(--color-red-light);
  color: var(--color-red-dark);
  border-color: rgb(229 45 45 / 0.2);
}

.td-pill-dark {
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.9);
  border-color: rgb(255 255 255 / 0.15);
}

.td-pill-success {
  background: var(--color-success-light);
  color: var(--color-success);
  border-color: rgb(16 185 129 / 0.2);
}


/* ============================================================
   11. TRUST BAR
   ============================================================ */

.td-trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.td-trust__avatars {
  display: flex;
  align-items: center;
}

.td-trust__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2.5px solid var(--color-white);
  background: var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-dark);
  flex-shrink: 0;
  overflow: hidden;
  margin-left: -10px;
}

.td-trust__avatar:first-child {
  margin-left: 0;
}

.td-trust__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-trust__divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

.td-trust__stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
  font-size: var(--text-sm);
}

.td-trust__caption {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
}

.td-trust__caption strong {
  color: var(--color-dark);
  font-weight: 600;
}


/* ============================================================
   12. HERO SECTION
   ============================================================ */

.td-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-24);
  background: var(--color-bg);
}

/* Decorative blobs */
.td-hero__blob {
  position: absolute;
  border-radius: var(--radius-full);
  /* Halved blur radius (was 80px) -- still soft, dramatically cheaper to paint
     on every scroll frame. Use will-change to put on own layer. */
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
  transform: translateZ(0);
}

.td-hero__blob--1 {
  width: 600px;
  height: 600px;
  background: var(--color-red-light);
  top: -200px;
  right: -150px;
}

.td-hero__blob--2 {
  width: 400px;
  height: 400px;
  background: rgb(229 45 45 / 0.12);
  bottom: -100px;
  left: -100px;
}

.td-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 45vw, 600px), 1fr));
  gap: var(--space-12);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 991px) {
  .td-hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .td-hero__content { max-width: 700px; }
  .td-trust { justify-content: center; }
}

.td-hero__content {
  max-width: 600px;
}

/* Eyebrow Badge */
.td-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.td-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  flex-shrink: 0;
  animation: tdPulse 2s ease-in-out infinite;
}

/* Hero Heading */
.td-hero__title {
  margin-bottom: var(--space-6);
}

.td-hero__title-accent {
  color: var(--color-red);
  position: relative;
  display: inline-block;
}

.td-hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-dark));
  border-radius: 2px;
  opacity: 0.3;
}

.td-hero__sub {
  font-size: clamp(1rem, 1.5vw + 0.4rem, 1.2rem);
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.td-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.td-hero__trust {
  margin-top: var(--space-8);
}

/* Hero Right (Stats) */
.td-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.td-hero__stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  animation: tdFadeUp 0.6s ease both;
}

.td-hero__stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.td-hero__stat-card:nth-child(2) { animation-delay: 0.1s; }
.td-hero__stat-card:nth-child(3) { animation-delay: 0.2s; }
.td-hero__stat-card:nth-child(4) { animation-delay: 0.3s; }


/* ============================================================
   13. APPS SECTION
   ============================================================ */

.td-apps {
  background: var(--color-bg);
}

/* Miko Featured Card */
.td-miko-card {
  background: var(--color-dark);
  border-radius: var(--radius-3xl);
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-8);
}

.td-miko-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgb(229 45 45 / 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.td-miko-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgb(229 45 45 / 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.td-miko-card__content {
  position: relative;
  z-index: 1;
}

.td-miko-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgb(229 45 45 / 0.2);
  color: rgb(255 150 150);
  border: 1px solid rgb(229 45 45 / 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-5);
}

.td-miko-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.td-miko-card__desc {
  color: rgb(255 255 255 / 0.7);
  font-size: var(--text-base);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.td-miko-card__pricing {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.td-miko-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.td-miko-card__price-period {
  font-size: var(--text-sm);
  color: rgb(255 255 255 / 0.5);
  font-weight: 400;
  margin-top: 2px;
}

.td-miko-card__visual {
  position: relative;
  z-index: 1;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-2xl);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255 255 255 / 0.3);
  font-size: var(--text-sm);
}

/* Secondary App Cards */
.td-apps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.td-app-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.td-app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.td-app-card--coming {
  border-style: dashed;
  border-color: var(--color-border);
  background: var(--color-border-light);
  opacity: 0.75;
}

.td-app-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--color-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}

.td-app-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.td-app-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.td-app-card__status {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================================
   14. SERVICES SECTION
   ============================================================ */

.td-services {
  background: var(--color-white);
}

.td-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.td-service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.td-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.td-service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-border);
  background: var(--color-white);
}

.td-service-card:hover::before {
  transform: scaleX(1);
}

.td-service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.td-service-icon--red     { background: var(--color-red-light); }
.td-service-icon--blue    { background: #EFF6FF; }
.td-service-icon--green   { background: var(--color-success-light); }
.td-service-icon--purple  { background: #F5F3FF; }
.td-service-icon--orange  { background: #FFF7ED; }
.td-service-icon--yellow  { background: #FFFBEB; }

.td-service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.td-service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.td-service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Services CTA Bar */
.td-services-cta {
  background: var(--color-dark);
  border-radius: var(--radius-3xl);
  padding: var(--space-12) var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.td-services-cta__content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.td-services-cta__content p {
  color: rgb(255 255 255 / 0.6);
  font-size: var(--text-base);
}


/* ============================================================
   15. HOW WE WORK SECTION
   ============================================================ */

.td-hww {
  background: var(--color-bg);
}

.td-hww__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
  margin-bottom: var(--space-20);
}

/* Horizontal connector line */
.td-hww__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-border) 100%);
  z-index: 0;
}

.td-hww__step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.td-hww__step-num {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-red);
  margin: 0 auto var(--space-5);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Ring effect on step number */
.td-hww__step-num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-red-light);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.td-hww__step:hover .td-hww__step-num {
  border-color: var(--color-red);
  box-shadow: var(--shadow-red);
}

.td-hww__step:hover .td-hww__step-num::before {
  opacity: 1;
}

.td-hww__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.td-hww__step-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* Why Us Grid */
.td-hww__why {
  background: var(--color-white);
  border-radius: var(--radius-3xl);
  padding: var(--space-12);
  border: 1px solid var(--color-border);
}

.td-hww__why-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-10);
}

.td-hww__why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.td-hww__why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.td-hww__why-icon {
  font-size: 1.75rem;
}

.td-hww__why-item h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
}

.td-hww__why-item p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}


/* ============================================================
   16. PRICING SECTION
   ============================================================ */

.td-pricing {
  background: var(--color-white);
}

.td-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
  margin-bottom: var(--space-8);
}

.td-pricing-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.td-pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

/* Popular Card */
.td-pricing-card.td-popular {
  border-color: var(--color-red);
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

.td-pricing-card.td-popular:hover {
  transform: scale(1.02) translateY(-3px);
}

.td-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.td-pricing-card__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.td-pricing-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.td-pricing-card__tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.td-pricing-amount {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  line-height: 1;
}

.td-pricing-currency {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  padding-bottom: 4px;
}

.td-pricing-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}

.td-pricing-period {
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-bottom: 6px;
}

.td-pricing-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.td-pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.td-pricing-feature__check {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.td-pricing-feature__check--muted {
  background: var(--color-border-light);
  color: var(--color-muted);
}

.td-pricing-comparison {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-4);
}

.td-pricing-comparison a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Custom / Enterprise Quote Card */
.td-pricing-quote {
  background: var(--color-dark);
  border-radius: var(--radius-3xl);
  padding: var(--space-12) var(--space-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-top: var(--space-16);
}

.td-pricing-quote__content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.td-pricing-quote__content p {
  color: rgb(255 255 255 / 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.td-pricing-quote__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}


/* ============================================================
   17. WORK / PORTFOLIO SECTION
   ============================================================ */

.td-work {
  background: var(--color-bg);
}

.td-work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.td-project-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.td-project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.td-project-card__image {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-border-light), var(--color-border));
  overflow: hidden;
}

.td-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.td-project-card:hover .td-project-card__image img {
  transform: scale(1.04);
}

/* Hover overlay */
.td-project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgb(13 13 13 / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.td-project-card:hover .td-project-card__overlay {
  opacity: 1;
}

.td-project-card__body {
  padding: var(--space-6);
}

.td-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.td-project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.td-project-card:hover .td-project-card__title {
  color: var(--color-red);
}

.td-project-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}


/* ============================================================
   18. ABOUT SECTION
   ============================================================ */

.td-about {
  background: var(--color-white);
}

.td-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.td-team-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.td-team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.td-team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  background: var(--color-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-red);
  overflow: hidden;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.td-team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.td-team-card__role {
  font-size: var(--text-sm);
  color: var(--color-red);
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: var(--space-3);
}

.td-team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}


/* ============================================================
   19. BLOG SECTION
   ============================================================ */

.td-blog {
  background: var(--color-bg);
}

.td-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.td-post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.td-post-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.td-post-card__image {
  width: 100%;
  height: 200px;
  background: var(--color-border-light);
  overflow: hidden;
}

.td-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.td-post-card:hover .td-post-card__image img {
  transform: scale(1.04);
}

.td-post-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.td-post-card__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  background: var(--color-red-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  align-self: flex-start;
}

.td-post-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.td-post-card:hover .td-post-card__title {
  color: var(--color-red);
}

.td-post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-4);
}

.td-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.td-post-card__date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-weight: 500;
}

.td-post-card__read-more {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast);
}

.td-post-card:hover .td-post-card__read-more {
  gap: var(--space-2);
}


/* ============================================================
   20. CONTACT SECTION
   ============================================================ */

.td-contact {
  background: var(--color-white);
}

.td-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: flex-start;
}

.td-contact__info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.td-contact__info-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.td-contact__info-desc {
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.td-contact__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.td-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.td-contact__item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: var(--color-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.td-contact__item-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.td-contact__item-val {
  font-size: var(--text-base);
  color: var(--color-dark);
  font-weight: 500;
}

.td-contact__item-val a {
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

.td-contact__item-val a:hover {
  color: var(--color-red);
}


/* ============================================================
   21. FORMS
   ============================================================ */

.td-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.td-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.td-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.td-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.td-label-required::after {
  content: ' *';
  color: var(--color-red);
}

.td-input,
.td-select,
.td-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-dark);
  line-height: 1.5;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.td-input::placeholder,
.td-textarea::placeholder {
  color: var(--color-muted);
}

.td-input:focus,
.td-select:focus,
.td-textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgb(229 45 45 / 0.12);
}

.td-textarea {
  resize: vertical;
  min-height: 140px;
}

.td-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Error State */
.td-input.td-error,
.td-select.td-error,
.td-textarea.td-error {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-light);
}

.td-form-error {
  font-size: var(--text-xs);
  color: var(--color-red);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Success State */
.td-input.td-valid,
.td-select.td-valid,
.td-textarea.td-valid {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-light);
}

/* Honeypot (anti-spam hidden field) */
.td-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Help Text */
.td-form-help {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.5;
}


/* ============================================================
   22. FOOTER
   ============================================================ */

.td-footer {
  background: var(--color-black);
  color: #FFFFFF !important;
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.td-footer p {
  color: #FFFFFF !important;
}

.td-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
}

.td-footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.td-footer-logo {
  display: block;
  margin-bottom: 8px;
}

.td-footer-logo img {
  height: 48px;
  width: auto;
}

.td-footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  max-width: 350px;
  opacity: 0.9;
}

.td-footer-links a {
  font-size: 15px;
  color: #FFFFFF;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.td-footer-links a:hover {
  color: var(--color-red);
  opacity: 1;
  transform: translateX(4px);
}

.td-footer-copy {
  font-size: 14px;
  color: #FFFFFF;
  opacity: 0.7;
}

.td-footer-legal a {
  font-size: 13px;
  color: #FFFFFF;
  opacity: 0.7;
  transition: color var(--transition-fast);
}

.td-footer-legal a:hover {
  opacity: 1;
}

.td-footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.td-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-footer-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.td-footer-links a:hover {
  color: var(--color-red);
  transform: translateX(4px);
}

.td-footer-divider {
  max-width: var(--container-max);
  margin: 64px auto 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.td-footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.td-footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.td-footer-legal {
  display: flex;
  gap: 24px;
}

.td-footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.td-footer-legal a:hover {
  color: #fff;
}

.td-shopify-badge {
  opacity: 0.8;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1);
}

.td-shopify-badge:hover {
  opacity: 1;
}

@media (max-width: 991px) {
  .td-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .td-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .td-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .td-footer-legal {
    justify-content: center;
  }
}



/* ============================================================
   23. ALERTS AND MESSAGES
   ============================================================ */

.td-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  line-height: 1.6;
  animation: tdFadeIn var(--transition-base) ease both;
}

.td-alert__icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  margin-top: 1px;
}

.td-alert__content {}

.td-alert__title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.td-alert-success {
  background: var(--color-success-light);
  border-color: rgb(16 185 129 / 0.25);
  color: #065F46;
}

.td-alert-error {
  background: var(--color-red-light);
  border-color: rgb(229 45 45 / 0.25);
  color: var(--color-red-dark);
}

.td-alert-info {
  background: #EFF6FF;
  border-color: rgb(59 130 246 / 0.25);
  color: #1E40AF;
}

.td-alert-warning {
  background: #FFFBEB;
  border-color: rgb(245 158 11 / 0.25);
  color: #92400E;
}


/* ============================================================
   24. BREADCRUMBS
   ============================================================ */

.td-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.td-breadcrumb__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.td-breadcrumb__link:hover {
  color: var(--color-red);
}

.td-breadcrumb__sep {
  color: var(--color-border);
  font-size: var(--text-xs);
}

.td-breadcrumb__current {
  color: var(--color-dark);
  font-weight: 500;
}


/* ============================================================
   25. UTILITY CLASSES
   ============================================================ */

/* Text Colors */
.td-text-red     { color: var(--color-red); }
.td-text-dark    { color: var(--color-dark); }
.td-text-muted   { color: var(--color-muted); }
.td-text-white   { color: var(--color-white); }
.td-text-success { color: var(--color-success); }

/* Background Colors */
.td-bg-white   { background-color: var(--color-white); }
.td-bg-bg      { background-color: var(--color-bg); }
.td-bg-dark    { background-color: var(--color-dark); }
.td-bg-black   { background-color: var(--color-black); }
.td-bg-red     { background-color: var(--color-red); }

/* Text Alignment */
.td-text-center { text-align: center; }
.td-text-left   { text-align: left; }
.td-text-right  { text-align: right; }

/* Accessibility */
.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;
}

/* Display */
.td-hidden { display: none; }
.td-block  { display: block; }

/* Divider */
.td-divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin-block: var(--space-8);
}

/* Max Width */
.td-max-sm { max-width: 480px; margin-inline: auto; }
.td-max-md { max-width: 680px; margin-inline: auto; }
.td-max-lg { max-width: 900px; margin-inline: auto; }

/* Fade Animation Helpers */
.td-fade-up {
  animation: tdFadeUp 0.6s ease both;
}

.td-fade-in {
  animation: tdFadeIn 0.5s ease both;
}

/* Delay Utilities */
.td-delay-1 { animation-delay: 0.1s; }
.td-delay-2 { animation-delay: 0.2s; }
.td-delay-3 { animation-delay: 0.3s; }
.td-delay-4 { animation-delay: 0.4s; }


/* ============================================================
   26. KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes tdFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tdFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tdPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgb(16 185 129 / 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgb(16 185 129 / 0);
    transform: scale(1.1);
  }
}

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

@keyframes tdSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading spinner utility */
.td-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgb(255 255 255 / 0.3);
  border-top-color: currentColor;
  border-radius: var(--radius-full);
  animation: tdSpin 0.7s linear infinite;
}


/* ============================================================
   27. RESPONSIVE -- MOBILE FIRST ADJUSTMENTS
   ============================================================ */

/* 480px and below */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  .td-container {
    padding-inline: var(--space-4);
  }

  .td-section {
    padding-block: var(--space-16);
  }

  .td-section-lg {
    padding-block: var(--space-20);
  }

  .td-hero {
    padding-top: calc(var(--nav-height) + var(--space-10));
    padding-bottom: var(--space-16);
  }

  .td-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .td-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .td-btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-sm);
  }

  .td-miko-card {
    grid-template-columns: 1fr;
    padding: var(--space-8);
  }

  .td-miko-card__visual {
    min-height: 180px;
  }

  .td-pricing-quote {
    grid-template-columns: 1fr;
    padding: var(--space-8);
  }

  .td-footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-block: var(--space-12) var(--space-8);
  }

  .td-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .td-footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }

  .td-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .td-contact__info {
    position: static;
  }

  .td-form-row {
    grid-template-columns: 1fr;
  }

  .td-services-cta {
    padding: var(--space-8);
    text-align: center;
    flex-direction: column;
  }

  .td-hww__steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .td-hww__steps::before {
    display: none;
  }

  .td-hww__step {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .td-hww__step-num {
    margin: 0;
    flex-shrink: 0;
  }

  .td-pricing__grid {
    grid-template-columns: 1fr;
  }

  .td-pricing-card.td-popular {
    transform: none;
  }

  .td-pricing-card.td-popular:hover {
    transform: translateY(-3px);
  }
}

/* 640px */
@media (max-width: 640px) {
  .td-grid-3 {
    grid-template-columns: 1fr;
  }

  .td-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-blog__grid {
    grid-template-columns: 1fr;
  }

  .td-services__grid {
    grid-template-columns: 1fr;
  }

  .td-hww__why-grid {
    grid-template-columns: 1fr;
  }

  .td-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .td-trust {
    gap: var(--space-3);
  }

  .td-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

/* 768px */
@media (max-width: 768px) {
  /* Navigation collapses to hamburger */
  .td-nav__links {
    display: none;
  }

  .td-nav__actions {
    display: none;
  }

  .td-nav__hamburger {
    display: flex;
  }

  /* Hero */
  .td-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .td-hero__blob--1 {
    width: 350px;
    height: 350px;
  }

  /* Miko Card */
  .td-miko-card {
    grid-template-columns: 1fr;
    padding: var(--space-8);
  }

  /* Blog */
  .td-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  .td-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* How We Work */
  .td-hww__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-hww__steps::before {
    display: none;
  }

  /* Pricing */
  .td-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .td-pricing-card.td-popular {
    transform: none;
  }

  .td-pricing-card.td-popular:hover {
    transform: translateY(-3px);
  }

  /* Contact */
  .td-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .td-contact__info {
    position: static;
  }

  /* Footer */
  .td-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .td-footer__brand {
    grid-column: 1 / -1;
  }

  /* Pricing Quote */
  .td-pricing-quote {
    grid-template-columns: 1fr;
    padding: var(--space-10) var(--space-8);
    gap: var(--space-8);
  }

  /* Services CTA */
  .td-services-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--space-10) var(--space-8);
    gap: var(--space-6);
  }

  /* Why Us Grid */
  .td-hww__why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .td-hww__why {
    padding: var(--space-8);
  }
}

/* 900px */
@media (max-width: 900px) {
  .td-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-hww__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-hww__steps::before {
    display: none;
  }

  .td-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .td-footer__brand {
    grid-column: 1 / -1;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .td-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-pricing__grid {
    gap: var(--space-4);
  }

  .td-hero__inner {
    gap: var(--space-10);
  }

  .td-miko-card {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .td-contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .td-services-cta {
    padding: var(--space-10);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .td-hero__eyebrow-dot {
    animation: none;
  }
}

/* =====================================================================
   MIKO SCREENSHOT (apps page)
   ===================================================================== */
.td-miko-screenshot {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.td-miko-screenshot img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   24. INTERNAL BLOG PAGES (FLUID)
   ============================================================ */

.modern-post {
    --bg-accent: radial-gradient(circle at top center, var(--color-red-light) 0%, var(--color-bg) 70%);
}

.post-hero {
    padding-top: clamp(100px, 12vw, 140px);
    padding-bottom: clamp(40px, 6vw, 80px);
    background: var(--bg-accent);
}

.post-meta-top {
    margin-bottom: var(--space-6);
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.post-tag {
    background: var(--color-red);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.post-date {
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-weight: 600;
}

.post-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.post-lead {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    color: var(--color-muted);
    line-height: 1.6;
}

.post-content-section {
    padding-bottom: var(--space-20);
}

.content-body {
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.8;
    color: var(--color-text);
}

.content-body p {
    margin-bottom: var(--space-8);
}

.content-body h2 {
    color: var(--color-dark);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin: clamp(40px, 6vw, 64px) 0 var(--space-6);
}

.content-body h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin: var(--space-10) 0 var(--space-4);
}

.content-body strong {
    color: var(--color-dark);
}

.content-body ul, .content-body ol {
    margin-bottom: var(--space-8);
    padding-left: var(--space-6);
}

.content-body li {
    margin-bottom: var(--space-3);
}

/* Post Callouts */
.post-callout {
    background: var(--color-border-light);
    border-left: 4px solid var(--color-red);
    padding: var(--space-8);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: var(--space-10) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.post-callout strong {
    color: var(--color-red);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-2);
}

.post-conclusion {
    background: var(--color-dark);
    color: var(--color-white);
    padding: clamp(32px, 6vw, 64px);
    border-radius: var(--radius-2xl);
    margin-top: var(--space-16);
    text-align: left;
}

.post-conclusion h3 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.post-conclusion p {
    color: rgb(255 255 255 / 0.7);
    margin-bottom: 0;
}

.post-conclusion a {
    color: #FFFFFF !important;
    text-decoration: underline;
    font-weight: 700;
}

.post-conclusion a:hover {
    color: var(--color-red);
}

/* Post Testimonial */
.post-testimonial-card {
    border: 1px solid var(--color-border);
    padding: clamp(32px, 5vw, 48px);
    border-radius: var(--radius-2xl);
    margin-top: var(--space-20);
    text-align: center;
    background: var(--color-white);
}

.post-testimonial-card .stars {
    color: #F59E0B;
    margin-bottom: var(--space-4);
    font-size: 1.25rem;
}

.post-testimonial-card p {
    font-style: italic;
    font-size: clamp(1.1rem, 1.3vw, 1.4rem);
    color: var(--color-dark);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.post-testimonial-card .author {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 0.1em;
}

/* Footer CTA */
.post-footer-cta {
    padding: var(--space-12) 0 var(--space-24);
}

.cta-card {
    background: var(--color-border-light);
    border: 1px solid var(--color-border);
    padding: clamp(40px, 8vw, 80px) var(--space-6);
    border-radius: var(--radius-3xl);
    text-align: center;
}

.cta-card h2 {
    margin-bottom: var(--space-4);
}

.cta-card p {
    margin-bottom: var(--space-8);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--color-muted);
}

@media (max-width: 767px) {
    .post-hero { padding-top: clamp(120px, 15vw, 140px); }
    .post-conclusion { padding: var(--space-8) var(--space-6); }
    .cta-card { padding: var(--space-10) var(--space-6); }
}

/* ============================================================
   FIX: Hidden text inside .post-conclusion dark boxes
   .content-body strong sets dark colour : override with higher
   specificity so text stays white on the dark background
   ============================================================ */
.content-body .post-conclusion strong,
.content-body .post-conclusion em,
.content-body .post-conclusion b {
  color: rgba(255, 255, 255, 0.92) !important;
}
.content-body .post-conclusion p {
  color: rgba(255, 255, 255, 0.78) !important;
}
.content-body .post-conclusion h3,
.content-body .post-conclusion h4 {
  color: #FFFFFF !important;
}
.content-body .post-conclusion a {
  color: #FFFFFF !important;
  text-decoration: underline;
  font-weight: 700;
}

/* ============================================================
   FIX: Stretched images : correct sizing across all containers
   ============================================================ */
.rounded-image {
  height: auto !important;
  object-fit: cover;
  display: block;
  max-width: 100%;
}
/* App / product visual containers */
.miko-visual,
.products-visual,
.app-visual,
.odoo-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.miko-visual img,
.products-visual img,
.app-visual img,
.odoo-visual img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
/* Portfolio project cards : fixed 4:3 ratio, no stretch */
.project-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* ============================================================
   FIX: Blog grid mobile : belt-and-suspenders
   ============================================================ */
@media (max-width: 767px) {
  .blog-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .post-card {
    min-width: 0;
    width: 100%;
  }
  .post-image {
    aspect-ratio: 16 / 9;
    background: var(--color-bg);
  }
  .related-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  .blog-grid-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .blog-filters { gap: 8px; }
  .filter-btn { padding: 6px 14px; font-size: 13px; }
}

/* ============================================================
   PERF: CLS prevention: reserve correct space for images
   ============================================================ */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* ============================================================
   UTIL: Visually hidden (accessibility)
   ============================================================ */
.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;
}

/* ============================================================
   FAQ ACCORDION (contact page)
   ============================================================ */
.faq-section {
  padding: clamp(80px, 12vw, 140px) 0;
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.faq-header {
  position: sticky;
  top: 100px;
}
.faq-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-dark);
  font-weight: 700;
}
.faq-subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.faq-subtitle a { color: var(--color-red); font-weight: 600; }
.faq-mini-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
}
.faq-stars { color: #F59E0B; font-size: 15px; letter-spacing: 1px; }
.faq-accordion { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 600;
  color: var(--color-dark);
  transition: color 0.2s;
}
.faq-trigger:hover { color: var(--color-red); }
.faq-trigger[aria-expanded="true"] { color: var(--color-red); }
.faq-icon {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-red);
}
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-body.faq-open { opacity: 1; }
.faq-body p {
  padding: 0 0 24px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  color: var(--color-muted);
  line-height: 1.75;
  margin: 0;
}
.faq-body p strong { color: var(--color-dark); }
.faq-body p a { color: var(--color-red); font-weight: 600; }
@media (max-width: 991px) {
  .faq-layout { grid-template-columns: 1fr; gap: 48px; }
  .faq-header { position: static; }
}

/* ============================================================
   ANIMATION COMPATIBILITY FIX
   main.js adds .td-visible, inline scripts add .td-animate-in
   Both are now handled
   ============================================================ */
.td-animate.td-visible,
.td-animate.td-animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================
   MOBILE BLOG GRID FIX
   The clamp() min of 300px causes overflow on phones < 340px
   ============================================================ */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ============================================================
   RELATED POSTS SECTION (blog post pages)
   ============================================================ */
.post-related {
  padding: var(--space-12) 0 var(--space-16);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}
.related-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-8);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.related-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-red);
  letter-spacing: 0.08em;
}
.related-card h4 {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.4;
  color: var(--color-dark);
  margin: 0;
  flex: 1;
}
.related-arrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-muted);
  margin-top: var(--space-2);
}
@media (max-width: 767px) {
  .related-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MIKO PROMO BLOCK : blog post inline CTA (clean product card)
   ============================================================ */
.miko-promo-block {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px 22px 28px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-left: 4px solid var(--color-red);
  border-radius: 14px;
  /* Constrain to blog content column width : matches td-container-sm */
  max-width: 800px;
  margin: 48px auto 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.miko-promo-block:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}
.miko-promo-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(145deg, #E52D2D 0%, #B91C1C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1.5px;
  box-shadow: 0 4px 12px rgba(229, 45, 45, 0.3);
  user-select: none;
}
.miko-promo-content {
  flex: 1;
  min-width: 0;
}
.miko-promo-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: 3px;
  line-height: 1;
}
.miko-promo-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 5px;
  line-height: 1.25;
}
.miko-promo-desc {
  font-size: 13.5px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.55;
}
.miko-promo-desc strong {
  color: var(--color-dark);
  font-weight: 600;
}
.miko-promo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 160px;
}
.miko-promo-btn {
  display: block;
  text-align: center;
  white-space: nowrap;
  background: var(--color-red);
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(229, 45, 45, 0.25);
}
.miko-promo-btn:hover {
  background: var(--color-red-dark);
  box-shadow: 0 4px 14px rgba(229, 45, 45, 0.35);
  transform: translateY(-1px);
  color: #FFFFFF !important;
}
.miko-promo-link {
  display: block;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted) !important;
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 6px 0;
}
.miko-promo-link:hover {
  color: var(--color-red) !important;
}
@media (max-width: 640px) {
  .miko-promo-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 20px 24px;
    margin-left: var(--space-6);
    margin-right: var(--space-6);
  }
  .miko-promo-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 20px;
  }
  .miko-promo-actions {
    flex-direction: row;
    width: 100%;
    min-width: unset;
  }
  .miko-promo-btn { flex: 1; }
  .miko-promo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border: 1.5px solid var(--color-border);
    border-radius: 100px;
    padding: 10px 12px;
  }
}

/* Legacy class : kept so old selectors don't break, redirected to new design */
.miko-inline-cta { display: none !important; }

/* ============================================================
   HERO GLOW (shared across pages)
   ============================================================ */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at top, rgba(229,45,45,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-container { position: relative; z-index: 1; }
.hero-hero-container { position: relative; z-index: 1; }

/* ============================================================
   BREADCRUMB (shared)
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-muted); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-red); }
.breadcrumb .sep { color: var(--color-border); }
.breadcrumb .current { color: var(--color-text); }

/* ============================================================
   APPS NAV DROPDOWN
   ------------------------------------------------------------
   Desktop: hover or keyboard focus opens a panel of all apps.
   Mobile (<992px): the nav links list collapses inside the
   hamburger menu, so the apps submenu is rendered as a nested
   list under the Apps link in the mobile drawer.
   ============================================================ */
.td-has-submenu { position: relative; }
.td-nav-with-caret { display: inline-flex; align-items: center; gap: 4px; }
.td-nav-caret {
  transition: transform 0.2s ease;
  opacity: 0.75;
  margin-left: 2px;
}
.td-has-submenu:hover .td-nav-caret,
.td-has-submenu:focus-within .td-nav-caret,
.td-has-submenu.td-submenu-open .td-nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.td-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: -16px;
  min-width: 360px;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 1001;
}
/* Show on hover OR keyboard focus-within OR explicit JS class */
.td-has-submenu:hover > .td-submenu,
.td-has-submenu:focus-within > .td-submenu,
.td-has-submenu.td-submenu-open > .td-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
/* Invisible bridge so cursor can move from link into panel without losing hover */
.td-submenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* "View all apps" row at the top */
.td-submenu-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-alt, #F8FAFC);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.td-submenu-all:hover {
  background: var(--brand-red-light, #FFF2F2);
  color: var(--brand-red, #E52D2D);
}
.td-submenu-arrow {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.td-submenu-all:hover .td-submenu-arrow {
  transform: translateX(3px);
}

/* App rows: dot + name + descriptor */
.td-submenu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main, #0F172A);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.td-submenu-item:hover {
  background: var(--bg-alt, #F8FAFC);
}
.td-submenu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.td-submenu-dot--live   { background: #10B981; }
.td-submenu-dot--beta   { background: #F59E0B; }
.td-submenu-dot--soon   { background: #7C3AED; }
.td-submenu-dot--custom { background: #3B82F6; }

.td-submenu-body { display: flex; flex-direction: column; gap: 2px; }
.td-submenu-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main, #0F172A);
  line-height: 1.3;
}
.td-submenu-desc {
  font-size: 12px;
  color: var(--color-muted, #64748B);
  line-height: 1.4;
}
.td-submenu-desc em {
  font-style: normal;
  color: var(--text-main, #0F172A);
  font-weight: 600;
}

/* Mobile drawer submenu (always visible inside the open hamburger) */
.td-mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 14px;
  border-left: 2px solid var(--color-border, #E2E8F0);
  margin: 0 0 6px 12px;
}
.td-mobile-submenu a {
  padding: 10px 6px !important;
  font-size: 14px !important;
  color: var(--color-muted, #64748B) !important;
}
.td-mobile-submenu a:hover {
  color: var(--brand-red, #E52D2D) !important;
}

/* Hide the desktop submenu entirely on small screens (it lives in the
   mobile drawer instead) and let the Apps link behave normally. */
@media (max-width: 991px) {
  .td-submenu { display: none; }
  .td-nav-caret { display: none; }
}
/* Hide the mobile submenu on desktop sizes (it appears only inside the
   hamburger drawer at < 992px). */
@media (min-width: 992px) {
  .td-mobile-submenu { display: none; }
}

/* ============================================================
   CROSS-CUTTING COMPAT + RESPONSIVE LAYER
   ------------------------------------------------------------
   Single location for site-wide fixes that affect every page.
   Edit here, not on individual pages. Order matters: more
   specific selectors at the bottom so they win cleanly.
   ============================================================ */

/* 1. iOS form-zoom fix --------------------------------------
   iOS Safari auto-zooms when an input/textarea/select has a
   font-size below 16px on focus. Force min 16px on mobile.
   We only apply this at the breakpoint to keep desktop typography
   tighter where 14-15px reads better. */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* 2. Mobile-menu height fallback ----------------------------
   100dvh handles iOS Safari's collapsing toolbar. Old Safari
   (pre-15.4) and old Chrome (pre-108) ignore dvh and the whole
   calc() returns invalid, collapsing the menu. Provide a 100vh
   fallback in source order; modern browsers use the dvh line. */
.td-mobile-menu {
  max-height: calc(100vh - clamp(50px, 6vw, 72px));
  max-height: calc(100dvh - clamp(50px, 6vw, 72px));
  -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
}

/* 3. Focus-visible accessibility -----------------------------
   Restore visible focus rings on keyboard nav. We removed
   default outlines on form inputs (visual cleanup) so we have
   to bring focus indication back for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details > summary:focus-visible {
  outline: 2px solid #E52D2D;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Don't apply red outline inside dark-background forms */
.b2b-cta-section input:focus-visible,
.b2b-cta-section textarea:focus-visible,
.b2b-cta-section button:focus-visible,
.ai-cta-section input:focus-visible,
.ai-cta-section button:focus-visible {
  outline-color: #FFFFFF;
}

/* 4. Long-content overflow guards ---------------------------
   Long emails/URLs in inputs or copy can break grid layouts on
   narrow screens. Wrap aggressively but only where it makes
   sense (paragraph copy, links inline). */
p, li, summary, .b2b-faq-a, .ai-faq-a, .breadcrumb {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Code blocks should wrap rather than horizontal-scroll on phones */
code, pre {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* 5. Tap-target minimum --------------------------------------
   Touch targets should be at least 44x44px (Apple HIG) or 48x48px
   (Material). Our buttons hit this already via 14px+14px padding;
   this is belt-and-braces for hamburger and inline icon links. */
@media (max-width: 767px) {
  .td-hamburger,
  .td-mobile-menu a,
  .b2b-faq-q,
  .ai-faq-q {
    min-height: 44px;
  }
}

/* 6. Small-screen safety net (320-374px) --------------------
   iPhone SE 1st gen + cramped browser UIs. Prevent hero titles
   from blowing out the viewport, ensure grids collapse cleanly. */
@media (max-width: 374px) {
  /* Force single column where 2-column might still try to fit */
  .b2b-beta-row,
  .b2b-who-grid,
  .ai-problem-grid {
    grid-template-columns: 1fr !important;
  }
  /* Tighter horizontal padding to claw back width */
  .b2b-container,
  .ai-container,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Cap hero titles so they don't overflow tiny phones */
  .b2b-hero-title,
  .ai-hero-title,
  .hero-title {
    font-size: 1.875rem !important; /* 30px */
    line-height: 1.15 !important;
  }
}

/* 7. prefers-reduced-motion ---------------------------------
   Respect the OS-level "reduce motion" setting. We disable the
   td-animate slide-up, scroll-behavior smooth, pulse animations,
   and hover transforms. Critical for accessibility + iOS users
   who toggle this for vestibular reasons. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .td-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 8. iOS notch / safe-area-inset support --------------------
   Honour the safe area on iPhones with a notch / Dynamic Island.
   The nav and footer should not sit under the system UI. */
@supports (padding: env(safe-area-inset-top)) {
  .td-nav {
    padding-top: env(safe-area-inset-top);
    height: calc(clamp(50px, 6vw, 72px) + env(safe-area-inset-top));
  }
  .td-nav-spacer {
    height: calc(clamp(50px, 6vw, 72px) + env(safe-area-inset-top));
  }
  .td-mobile-menu {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* 9. backdrop-filter fallback -------------------------------
   We already dropped the blur radius to 8px in main nav for
   perf. Some browsers (older Firefox, older Samsung Internet)
   still don't support backdrop-filter at all. Provide an opaque
   background so the nav stays legible. */
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .td-nav {
    background: rgba(255, 255, 255, 0.98) !important;
  }
}

/* 10. Image safety ------------------------------------------
   Prevent images from breaking out of grid containers on
   narrow screens. Already in img selector at top but reinforce
   for safety. */
img, video, svg, iframe {
  max-width: 100%;
  height: auto;
}

/* 11. Form input contrast on dark backgrounds ---------------
   The B2B and Miko AI dark CTA sections have transparent inputs.
   Make sure autofill background from browser extensions doesn't
   produce unreadable white-on-white. */
.b2b-cta-section input:-webkit-autofill,
.b2b-cta-section textarea:-webkit-autofill,
.ai-cta-section input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1E293B inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
}

/* 12. Pricing cards equal height ----------------------------
   When the middle (featured) card has a "Most Popular" badge,
   it grows taller than its neighbours. Equalise via grid. */
.b2b-pricing-grid {
  align-items: stretch;
}
.b2b-pricing-card {
  height: 100%;
}

/* 13. Ecosystem cards equal height + readable wrap ---------- */
.b2b-ecosystem-grid,
.ai-ecosystem-grid {
  align-items: stretch;
}
.b2b-ecosystem-card,
.ai-ecosystem-card {
  height: 100%;
}

/* 14. Ecosystem bar on apps index: wrap gracefully ---------- */
@media (max-width: 767px) {
  .ecosystem-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ecosystem-pill {
    justify-content: center;
  }
  .ecosystem-plus {
    text-align: center;
    line-height: 0.5;
  }
}

/* 15. Print stylesheet (basic) ------------------------------
   When a merchant prints a page (e.g. to share internally),
   strip nav, footers, CTAs. */
@media print {
  .td-nav,
  .td-nav-spacer,
  .td-mobile-menu,
  .b2b-cta-section,
  .ai-cta-section,
  .cta-section,
  .pipeline-section,
  .pipeline-form,
  form { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; }
}

