/* =====================================================
   BEGAD SAEED PORTFOLIO — style.css
   Cormorant Garamond (display) + Outfit (body)
   Cool neutral system — Light default / Dark mode via [data-theme="dark"]
   Palette: Apple / Linear / Nothing inspired
   Gold accent (#C8965A) reserved for premium emphasis only
===================================================== */


/* =====================================================
   1. CSS CUSTOM PROPERTIES (TOKENS)
===================================================== */

:root {
  /* ── Surface layers ── */
  --bg:          #F8F9FA;   /* Primary background */
  --bg-raised:   #F1F4F6;   /* Surface (cards, sidebars) */
  --bg-overlay:  #E8ECEF;   /* Hover, elevated overlays */
  --bg-invert:   #06141B;   /* Dark invert (CTA section) */

  /* ── Text hierarchy ── */
  --fg:          #06141B;   /* Primary text */
  --fg-2:        #11212D;   /* Secondary text */
  --fg-3:        #9BA8AB;   /* Muted / captions */
  --fg-invert:   #F8F9FA;   /* Text on dark surfaces */

  /* ── Gold accent — premium emphasis only ── */
  /* Used: active nav indicator, availability dot, CTA highlights */
  --accent:      #C8965A;
  --accent-tint: #F2EAE0;   /* Very light warm tint for pill bg */
  --accent-2:    #A87840;   /* Darker gold for hover */

  /* ── Neutral accent ── */
  --neutral:     #9BA8AB;   /* Secondary UI elements */

  /* ── Borders ── */
  --border:        rgba(6, 20, 27, 0.08);
  --border-md:     rgba(6, 20, 27, 0.13);
  --border-strong: rgba(6, 20, 27, 0.20);
  /* Solid border alias for surfaces */
  --border-solid:  #CCD0CF;

  /* ── Shadows — cooler, subtler ── */
  --shadow-sm:  0 1px 2px rgba(6,20,27,0.04), 0 4px 12px rgba(6,20,27,0.04);
  --shadow-md:  0 4px 16px rgba(6,20,27,0.07), 0 16px 48px rgba(6,20,27,0.05);
  --shadow-lg:  0 8px 32px rgba(6,20,27,0.10), 0 32px 72px rgba(6,20,27,0.07);

  /* ── Glassmorphism tokens ── */
  --glass-bg:     rgba(248, 249, 250, 0.75);
  --glass-border: rgba(6, 20, 27, 0.08);
  --glass-shadow: 0 4px 24px rgba(6,20,27,0.06), 0 1px 4px rgba(6,20,27,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
  --glass-blur:   blur(24px) saturate(180%);

  /* ── Nav ── */
  --nav-bg:  rgba(248, 249, 250, 0.80);
  --nav-h:   68px;
  --fnav-r:  999px;
  --fnav-top: 18px;

  /* ── Semantic status colors ── */
  --color-success:      #2D6A4F;
  --color-success-bg:   rgba(45,106,79,0.07);
  --color-success-border: rgba(45,106,79,0.16);
  --color-error:        #B33A3A;
  --color-error-dark:   #E88080;
  --color-whatsapp:     #25D366;

  /* ── Type ── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* ── Spacing ── */
  --section-py:   clamp(5rem, 9vw, 8rem);
  --container-px: clamp(1.25rem, 5vw, 5rem);

  /* ── Radius ── */
  --r:      10px;
  --r-lg:   18px;
  --r-xl:   26px;
  --r-pill: 999px;

  /* ── Motion ── */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:         250ms;
  --dur-slow:    500ms;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --bg:          #06141B;   /* Dark background */
  --bg-raised:   #11212D;   /* Dark surface */
  --bg-overlay:  #253745;   /* Dark elevated */
  --bg-invert:   #F1F4F6;

  --fg:          #CCD0CF;   /* Light text */
  --fg-2:        #9BA8AB;   /* Accent neutral as secondary */
  --fg-3:        #4A5C6A;   /* Dark border color as muted text */
  --fg-invert:   #06141B;

  --accent:      #D4A870;   /* Gold slightly warmer in dark */
  --accent-tint: #1E1610;
  --accent-2:    #E8BC84;

  --neutral:     #4A5C6A;

  --border:        rgba(204, 208, 207, 0.07);
  --border-md:     rgba(204, 208, 207, 0.12);
  --border-strong: rgba(204, 208, 207, 0.18);
  --border-solid:  #4A5C6A;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.22);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.38), 0 16px 48px rgba(0,0,0,0.30);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.48), 0 32px 72px rgba(0,0,0,0.38);

  --glass-bg:     rgba(6, 20, 27, 0.82);
  --glass-border: rgba(204, 208, 207, 0.09);
  --glass-shadow: 0 4px 24px rgba(0,0,0,0.38), 0 1px 4px rgba(0,0,0,0.28), inset 0 1px 0 rgba(204,208,207,0.06);

  --nav-bg:  rgba(6, 20, 27, 0.88);

  --color-success:        #52A880;
  --color-success-bg:     rgba(82,168,128,0.09);
  --color-success-border: rgba(82,168,128,0.18);
  --color-error:          #E88080;
  --color-error-dark:     #E88080;
}


/* =====================================================
   2. RESET & BASE
===================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg-2);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Transition guard: prevents flash on theme load */
.no-transitions * {
  transition: none !important;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(200,150,90,0.08);
  color: var(--fg);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }


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

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section-eyebrow--light {
  color: rgba(248, 249, 250, 0.55);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 1.0rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 520px;
  margin-top: 1rem;
}


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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section-intro {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}


/* =====================================================
   5. BUTTONS
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.75rem;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid transparent;
}
.btn--primary:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg-2);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-2px);
}

.btn--nav {
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 0.83rem;
}
.btn--nav:hover { opacity: 0.82; transform: translateY(-1px); }

.btn--cta-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}
.btn--cta-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.btn--cta-ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.22);
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}
.btn--cta-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}


/* =====================================================
   6. SKIP LINK
===================================================== */

.skip-link {
  /* Off-canvas via absolute negative offset rather than a percentage
     transform — a %-based translateY only clears the viewport reliably
     while the link's rendered height stays under ~80px; on narrow
     viewports or if the label wraps to two lines, part of it could remain
     visible during normal mouse browsing. A fixed negative offset hides it
     completely regardless of its rendered size, with no layout shift. */
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--r);
  font-size: 0.85rem;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }


/* =====================================================
   7. FLOATING CAPSULE NAVIGATION
===================================================== */

/*
 * Layout: fixed wrapper (full width, no bg), contains
 * a centered floating capsule. The capsule itself has
 * the glass background, blur, border, and shadow.
 * Two states: expanded (default) and compact (scrolled).
 */

/* ── Header wrapper (invisible, just positions things) ── */
.fnav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  /* enough space so capsule + mobile panel can overflow */
  pointer-events: none;
}

/* ── GLASS TOKENS defined in :root above ── */

/* ── DESKTOP CAPSULE ── */
.fnav__capsule {
  /* Centered, not full-width */
  position: absolute;
  top: var(--fnav-top);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: all;

  display: flex;
  align-items: center;
  gap: 0;

  /* Glass */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--fnav-r);
  box-shadow: var(--glass-shadow);

  /* Sizing */
  height: 52px;
  padding-inline: 8px;
  white-space: nowrap;

  /* Smooth transitions on all properties */
  transition:
    width         0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    height        0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    padding       0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow    0.4s var(--ease),
    background    0.3s var(--ease),
    border-color  0.3s var(--ease);

  /* GPU hint */
  will-change: transform, width;
}

/* Hover: subtle lift + stronger shadow */
.fnav__capsule:hover {
  box-shadow: 0 8px 36px rgba(6,20,27,0.09), 0 2px 8px rgba(6,20,27,0.06), inset 0 1px 0 rgba(255,255,255,0.70);
  transform: translateX(-50%) translateY(-1px);
}
[data-theme="dark"] .fnav__capsule:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.48), 0 2px 8px rgba(0,0,0,0.32), inset 0 1px 0 rgba(204,208,207,0.07);
}

/* ── LEFT ZONE ── */
.fnav__left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 14px 10px;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}

.fnav__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.fnav__logo:hover { opacity: 0.75; }
.fnav__logo--mobile { gap: 0; }

.fnav__logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}
.fnav__logo:hover .fnav__logo-dot {
  transform: scale(1.4);
}

.fnav__logo-accent { color: var(--accent); }

/* Availability pill */
.fnav__status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: var(--r-pill);
  background: rgba(39, 137, 79, 0.08);
  border: 1px solid rgba(39, 137, 79, 0.18);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-success);
  letter-spacing: 0.02em;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  transform-origin: left center;
}
[data-theme="dark"] .fnav__status {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success);
}

.fnav__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  animation: fnavPulse 2.4s ease infinite;
}
[data-theme="dark"] .fnav__status-dot { background: var(--color-success); }

@keyframes fnavPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(200,150,90,0.35); }
  50%       { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 0 4px rgba(200,150,90,0); }
}

/* Separator between left and center */
.fnav__left::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: var(--border-md);
  margin-left: 10px;
  flex-shrink: 0;
  transition: opacity 0.35s var(--ease);
}

/* ── CENTER LINKS ── */
.fnav__links {
  display: flex;
  align-items: center;
  gap: 0;
  padding-inline: 6px;
  position: relative;
  flex: 1;
  justify-content: center;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.fnav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.845rem;
  font-weight: 400;
  color: var(--fg-2);
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  z-index: 1;
}
.fnav__link:hover {
  color: var(--fg);
  background: rgba(6,20,27,0.05);
}
[data-theme="dark"] .fnav__link:hover {
  background: rgba(204,208,207,0.07);
}
.fnav__link.is-active { color: var(--fg); font-weight: 500; }

/* Sliding gold underline indicator */
.fnav__indicator {
  position: absolute;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 99px;
  pointer-events: none;
  opacity: 0;
  transition:
    left   0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
    width  0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.3s var(--ease);
  will-change: left, width;
}
.fnav__indicator.is-visible { opacity: 1; }

/* ── COMPACT CENTER (replaces links when scrolled) ── */
.fnav__compact-center {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: opacity 0.3s var(--ease);
}

.fnav__compact-section {
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
}

/* ── RIGHT ZONE ── */
.fnav__right {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 8px 8px;
  flex-shrink: 0;
}

/* Theme button inside fnav */
.fnav__theme {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.fnav__theme:hover {
  background: var(--bg-overlay);
  transform: scale(1.08);
  border-color: var(--border-strong);
}

/* Reuse existing icon toggle classes */
.fnav__theme .theme-toggle__icon {
  position: absolute;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  line-height: 1;
  font-size: 0.85rem;
}
[data-theme="light"] .fnav__theme .theme-toggle__icon--sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .fnav__theme .theme-toggle__icon--moon { opacity: 1; transform: none; }
[data-theme="dark"]  .fnav__theme .theme-toggle__icon--moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"]  .fnav__theme .theme-toggle__icon--sun  { opacity: 1; transform: none; }

/* Lang toggle inside fnav */
.fnav__lang {
  font-size: 0.73rem;
  padding: 4px 10px;
  height: 34px;
  border-radius: var(--r-pill);
}

/* CTA button */
.fnav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.22s var(--ease);
  flex-shrink: 0;
  margin-left: 4px;
}
.fnav__cta:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* ── SCROLLED / COMPACT STATE ── */
/*
 * JS adds .is-compact to .fnav__capsule when scrolled > 80px
 * and removes it when mouse enters the capsule.
 */
.fnav__capsule.is-compact .fnav__links       { opacity: 0; pointer-events: none; transform: translateY(-4px); }
.fnav__capsule.is-compact .fnav__status      { opacity: 0; transform: scaleX(0.6); pointer-events: none; }
.fnav__capsule.is-compact .fnav__left::after { opacity: 0; }
.fnav__capsule.is-compact .fnav__compact-center { display: flex; }
.fnav__capsule.is-compact .fnav__cta { padding: 6px 14px; font-size: 0.8rem; }

/* When compact, a little tighter */
.fnav__capsule.is-compact {
  height: 44px;
  padding-inline: 6px;
  box-shadow: 0 2px 16px rgba(6,20,27,0.07), 0 1px 3px rgba(6,20,27,0.04);
}
[data-theme="dark"] .fnav__capsule.is-compact {
  box-shadow: 0 2px 16px rgba(0,0,0,0.42), 0 1px 3px rgba(0,0,0,0.28);
}

/* ── ACTIVE INDICATOR (JS positions this) ── */


/* =====================================================
   8. MOBILE CAPSULE + PANEL
===================================================== */

/* Hide desktop capsule on mobile */
.fnav__capsule { display: none; }

/* Mobile capsule */
.fnav__mobile-capsule {
  position: absolute;
  top: var(--fnav-top);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: all;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--fnav-r);
  box-shadow: var(--glass-shadow);

  height: 50px;
  padding: 0 8px 0 16px;
  width: calc(100vw - 32px);
  max-width: 420px;
  transition: box-shadow 0.3s var(--ease);
}

.fnav__mobile-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Mobile menu button */
.fnav__menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.fnav__menu-btn:hover { background: var(--bg-overlay); }

.fnav__menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  width: 16px;
}

.fnav__menu-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.fnav__menu-btn[aria-expanded="true"] .fnav__menu-bar:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.fnav__menu-btn[aria-expanded="true"] .fnav__menu-bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Floating glass panel (not fullscreen) */
.fnav__panel {
  position: absolute;
  top: calc(var(--fnav-top) + 58px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;

  width: calc(100vw - 32px);
  max-width: 420px;

  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);

  padding: 12px;
  opacity: 0;
  transition:
    opacity   0.28s var(--ease-out),
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.fnav__panel:not([hidden]).is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.fnav__panel-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.fnav__panel-link {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--fg-2);
  text-decoration: none;
  transition: all 0.18s var(--ease);
  letter-spacing: 0.01em;
}
.fnav__panel-link:hover,
.fnav__panel-link:focus {
  color: var(--fg);
  background: rgba(6,20,27,0.05);
  padding-left: 20px;
}
[data-theme="dark"] .fnav__panel-link:hover,
[data-theme="dark"] .fnav__panel-link:focus {
  background: rgba(204,208,207,0.07);
}

.fnav__panel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.fnav__panel-cta:hover { opacity: 0.84; transform: scale(0.99); }

/* ── RESPONSIVE: show desktop capsule at ≥960px ── */
@media (min-width: 960px) {
  .fnav__capsule        { display: flex; }
  .fnav__mobile-capsule { display: none; }
  .fnav__panel          { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fnav__capsule,
  .fnav__links,
  .fnav__status,
  .fnav__indicator,
  .fnav__panel,
  .fnav__theme,
  .fnav__cta { transition: none !important; animation: none !important; }
  .fnav__status-dot { animation: none !important; }
}


/* =====================================================
   9. HERO
===================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--fnav-top, 18px) + 52px + 3rem);
  padding-bottom: 4rem;
  padding-inline: var(--container-px);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  width: 100%;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(200,150,90,0.07);
  border: 1px solid rgba(200,150,90,0.18);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(200,150,90,0.4); }
  50%       { opacity: 0.5; transform: scale(0.8); box-shadow: 0 0 0 4px rgba(200,150,90,0); }
}

/* Headline */
.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero__heading em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Visual / device mockup */
.hero__visual {
  position: relative;
  height: 520px;
  display: none;
}

.hero__device {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2.5deg);
  width: 270px;
  height: 350px;
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero__device-bar {
  height: 42px;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}

.hero__device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hero__device-body { padding: 14px; }

.hero__device-img {
  width: 100%;
  height: 128px;
  border-radius: 8px;
  background: var(--bg-overlay);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.hero__device-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-overlay) 0%, rgba(200,150,90,0.08) 100%);
  opacity: 0.5;
}

.hero__device-line {
  height: 9px;
  background: var(--bg-overlay);
  border-radius: 99px;
  margin-bottom: 7px;
}

.hero__device-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--fg);
  margin-top: 10px;
  font-family: var(--font-body);
}

.hero__device-btn {
  margin-top: 10px;
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Float cards */
.float-card {
  position: absolute;
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
  border-radius: 12px;
  padding: 12px 15px;
  box-shadow: var(--shadow-sm);
  min-width: 148px;
}

.float-card__label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 3px;
}

.float-card__value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  font-family: var(--font-body);
}

.float-card__trend {
  font-size: 0.7rem;
  color: var(--fg-3);
  margin-top: 2px;
}

.float-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-card__metric { text-align: center; }
.float-card__metric-val {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
}
.float-card__metric-lbl {
  font-size: 0.65rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}
.float-card__divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.float-card--1 {
  top: 6%;
  right: -2%;
  animation: floatY 4s ease-in-out infinite;
}
.float-card--2 {
  bottom: 18%;
  left: -7%;
  animation: floatY 4.6s 0.5s ease-in-out infinite;
}
.float-card--3 {
  top: 52%;
  right: -4%;
  animation: floatY 3.9s 1s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

/* Grain overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 130px;
}


/* =====================================================
   10. TRUST BAR
===================================================== */

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem;
}

.trust__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  align-items: center;
}

.trust__item { text-align: center; }

.trust__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.trust__label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.trust__divider {
  display: none;
  width: 1px;
  height: 44px;
  background: var(--border);
  justify-self: center;
}


/* =====================================================
   11. ABOUT
===================================================== */

.about {
  padding-block: var(--section-py);
  background: var(--bg-raised);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Visual */
.about__photo-frame {
  position: relative;
  display: inline-block;
}

.about__photo-placeholder {
  width: min(320px, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xl);
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about__photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-overlay) 0%, rgba(200,150,90,0.08) 100%);
  opacity: 0.45;
}

.about__photo-initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: var(--fg);
  opacity: 0.12;
  position: relative;
  z-index: 1;
}

.about__photo-card {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.about__photo-card-num {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 3px;
}
.about__photo-card-lbl {
  font-size: 0.72rem;
  color: var(--fg-3);
}

/* Text */
.about__body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about__body em { font-style: italic; color: var(--fg); }

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.about__tag {
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  color: var(--fg-2);
  font-weight: 400;
  transition: all var(--dur) var(--ease);
  cursor: default;
}
.about__tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* =====================================================
   12. SERVICES
===================================================== */

.services {
  padding-block: var(--section-py);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--dur-slow) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-md);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: block;
  opacity: 0.8;
}

.service-card__title {
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
}

.service-card__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.service-card__list li {
  font-size: 0.78rem;
  color: var(--fg-3);
  padding-left: 1em;
  position: relative;
}
.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}


/* =====================================================
   13. WORK / PROJECTS
===================================================== */

.work {
  padding-block: var(--section-py);
  background: var(--bg-raised);
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease);
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project__image-wrap { overflow: hidden; }

.project__image {
  aspect-ratio: 16 / 9;
  background: var(--bg-overlay);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project:hover .project__image { transform: scale(1.02); }

.project--featured .project__image { aspect-ratio: 4 / 3; }
.project__image--1::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,20,27,0.06), rgba(200,150,90,0.10)); opacity: 0.5; }
.project__image--2::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #0D2535, #1E3A4A); opacity: 0.18; }
.project__image--3::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #0D1E35, #253745); opacity: 0.18; }

.project__image-glyph {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--fg);
  opacity: 0.09;
  position: relative;
  z-index: 1;
  user-select: none;
}

.project__body { padding: clamp(1.25rem, 3vw, 1.75rem); }

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.project__tag {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(200,150,90,0.08);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.project__title {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
}
.project--featured .project__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
}

.project__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.project__desc em { font-style: italic; color: var(--fg-3); }

.project__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.project__stat dt {
  font-size: 0.67rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 3px;
}
.project__stat dd {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fg-2);
}

.work__more {
  margin-top: 2.5rem;
  text-align: center;
}
.work__note {
  font-size: 0.85rem;
  color: var(--fg-3);
  font-style: italic;
  max-width: 500px;
  margin-inline: auto;
}


/* =====================================================
   14. PROCESS
===================================================== */

.process {
  padding-block: var(--section-py);
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: none;
}

.process__step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--dur) var(--ease);
}
.process__step:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
}

.process__step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.65;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  margin-top: 2px;
}

.process__step-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
}

.process__step-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.7;
}


/* =====================================================
   15. OUTCOMES / TESTIMONIALS
===================================================== */

.outcomes {
  padding-block: var(--section-py);
  background: var(--bg-raised);
}

.outcomes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.outcome-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--dur) var(--ease);
}
.outcome-card:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
}

.outcome-card__stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
}

.outcome-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  color: var(--fg-2);
  line-height: 1.75;
  flex: 1;
}

.outcome-card__footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.outcome-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-overlay);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--fg-3);
  flex-shrink: 0;
}

.outcome-card__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}
.outcome-card__role {
  font-size: 0.75rem;
  color: var(--fg-3);
  margin-top: 1px;
}


/* =====================================================
   16. CTA
===================================================== */

.cta {
  padding-block: var(--section-py);
  background: var(--fg);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(200,150,90,0.09), transparent);
  pointer-events: none;
}

.cta__inner {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.cta__heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--fg-invert);
  margin-bottom: 1.25rem;
}

.cta__sub {
  font-size: 1.0rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}


/* =====================================================
   17. FOOTER
===================================================== */

.footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.footer__inner {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.footer__logo span { color: var(--accent); }

.footer__tagline {
  font-size: 0.825rem;
  font-weight: 300;
  color: var(--fg-3);
  line-height: 1.6;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer__nav-heading {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 1rem;
}

.footer__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__nav-col a {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-2);
  transition: color var(--dur) var(--ease);
}
.footer__nav-col a:hover { color: var(--fg); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.35rem;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--fg-3);
  font-weight: 300;
}

.footer__socials {
  display: flex;
  gap: 0.5rem;
}

.footer__social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--fg-3);
  transition: all var(--dur) var(--ease);
}
.footer__social:hover {
  background: var(--bg-overlay);
  color: var(--fg);
  transform: scale(1.08);
}


/* =====================================================
   18. SCROLL REVEAL ANIMATIONS
===================================================== */

.reveal {
  opacity: 0;
  transition:
    opacity 0.72s var(--ease-out),
    transform 0.72s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal--up    { transform: translateY(28px); }
.reveal--left  { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--scale { transform: scale(0.92); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .float-card { animation: none !important; }
  .hero__badge-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}


/* =====================================================
   19. RESPONSIVE — MEDIUM (≥ 640px)
===================================================== */

@media (min-width: 640px) {
  .trust__inner {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
  }
  .trust__divider {
    display: block;
  }
  .trust__item { padding-inline: 1.5rem; }

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

  .outcomes__grid {
    grid-template-columns: 1fr 1fr;
  }

  .process__steps {
    grid-template-columns: 1fr 1fr;
  }
}


/* =====================================================
   20. RESPONSIVE — LARGE (≥ 960px)
===================================================== */

@media (min-width: 960px) {
  /* Hero: two columns */
  .hero__inner {
    grid-template-columns: 1fr 460px;
    gap: 5rem;
  }
  .hero__visual { display: block; }

  /* About: two columns */
  .about__inner {
    grid-template-columns: 420px 1fr;
    gap: 5rem;
  }

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

  /* Work: featured + side stack */
  .work__grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .project--featured {
    grid-row: 1 / 3;
  }

  /* Process: 4 columns */
  .process__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .process__step {
    flex-direction: column;
    gap: 1rem;
  }
  .process__step-num { width: auto; }

  /* Outcomes: 3 columns */
  .outcomes__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer: brand + nav */
  .footer__inner {
    grid-template-columns: 1.6fr 2fr;
  }
}


/* =====================================================
   21. RESPONSIVE — XL (≥ 1200px)
===================================================== */

@media (min-width: 1200px) {
  .hero__inner {
    grid-template-columns: 1fr 520px;
  }
  .about__inner {
    grid-template-columns: 460px 1fr;
    gap: 7rem;
  }
}


/* =====================================================
   22. PROJECT IMAGE VARIANTS (4–7 for new projects)
===================================================== */

.project__image--4::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #111D2D, #253745); opacity: 0.18; }
.project__image--5::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #0A2A3A, #1A6D8B); opacity: 0.18; }
.project__image--6::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #0D1E2E, #2D4558); opacity: 0.18; }
.project__image--7::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #0A3A1A, #1AB756); opacity: 0.18; }

/* Compact project variant (no featured sizing) */
.project--compact .project__image { aspect-ratio: 16 / 7; }

/* Featured title on projects page */
.project--featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
}

/* Work "view all" link */
.work__all-link {
  display: inline-flex;
  margin-inline: auto;
}


/* =====================================================
   23. CRO — BEFORE / AFTER SECTION
===================================================== */

.cro {
  padding-block: var(--section-py);
  background: var(--bg-raised);
}

.cro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cro-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease);
}
.cro-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-md);
}

/* Before / after visual strip */
.cro-card__area {
  display: none; /* shown at md+ as a visual accent strip */
}

.cro-card__body {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.cro-card__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.cro-card__comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.cro-card__col-heading {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
}

.cro-card__col--before .cro-card__col-heading { color: var(--fg-3); }
.cro-card__col--after  .cro-card__col-heading { color: var(--accent); }

.cro-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cro-card__list li {
  font-size: 0.8rem;
  line-height: 1.55;
  padding-left: 1.1em;
  position: relative;
}

.cro-card__list--before li { color: var(--fg-3); }
.cro-card__list--before li::before {
  content: '✕';
  position: absolute;
  left: 0;
  font-size: 0.6rem;
  color: var(--fg-3);
  top: 2px;
}

.cro-card__list--after li { color: var(--fg-2); }
.cro-card__list--after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 0.65rem;
  color: var(--accent);
  top: 2px;
}

.cro-card__outcome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.cro-card__outcome-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.cro-card__outcome-result {
  font-size: 0.855rem;
  font-weight: 400;
  color: var(--fg-2);
  font-style: italic;
}

/* CTA row at bottom of CRO section */
.cro__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.cro__cta-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--fg-2);
}


/* =====================================================
   24. OUTCOMES — METRIC CARDS (replaced quote cards)
===================================================== */

.outcome-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.outcome-metric:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.outcome-metric__icon {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.7;
}

.outcome-metric__area {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}

.outcome-metric__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.outcome-metric__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.7;
  flex: 1;
}

.outcome-metric__tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}


/* =====================================================
   25. PAGE HEADER (inner pages)
===================================================== */

.page-header {
  padding-top: calc(var(--fnav-top, 18px) + 52px + clamp(2rem, 4vw, 3.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-inline: var(--container-px);
  border-bottom: 1px solid var(--border);
}

.page-header--contact {
  border-bottom: none;
  padding-bottom: 0;
}

.page-header__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.page-header__sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 580px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-3);
}
.breadcrumb__link {
  color: var(--fg-3);
  transition: color var(--dur) var(--ease);
}
.breadcrumb__link:hover { color: var(--fg); }
.breadcrumb__sep { color: var(--fg-3); font-size: 0.65rem; }
.breadcrumb__current { color: var(--fg-2); }


/* =====================================================
   26. PROJECTS FILTER
===================================================== */

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.projects-filter__btn {
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
}
.projects-filter__btn:hover {
  color: var(--fg);
  border-color: var(--fg);
}
.projects-filter__btn.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}


/* =====================================================
   27. PROJECTS ARCHIVE
===================================================== */

.projects-archive {
  padding-block: var(--section-py);
}

.projects-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Hidden project (filtered out) */
.project.is-hidden {
  display: none;
}

.projects-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--fg-3);
  font-size: 0.95rem;
  font-weight: 300;
}
.projects-empty a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}


/* =====================================================
   28. CONTACT PAGE
===================================================== */

.contact-section {
  padding-block: var(--section-py);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

/* Contact methods */
.contact-methods__heading,
.contact-expect__heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 1rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  margin-bottom: 0.75rem;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.contact-method:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.contact-method--whatsapp {
  border-color: rgba(37,211,102,0.20);
  background: rgba(37,211,102,0.04);
}
[data-theme="dark"] .contact-method--whatsapp {
  background: rgba(37,211,102,0.05);
}
.contact-method--whatsapp:hover {
  border-color: rgba(37,211,102,0.35);
}

.contact-method__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-method--whatsapp .contact-method__icon {
  color: var(--color-whatsapp);
  background: rgba(37,211,102,0.07);
  border-color: rgba(37,211,102,0.18);
}

.contact-method__label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 2px;
}
.contact-method__value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
}
.contact-method__note {
  font-size: 0.75rem;
  color: var(--fg-3);
  margin-top: 2px;
}
.contact-method__arrow {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--fg-3);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Contact expect list */
.contact-expect {
  margin-top: 2.5rem;
}

.contact-expect__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contact-expect__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-expect__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  width: 36px;
  line-height: 1.2;
}

.contact-expect__list strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 2px;
}
.contact-expect__list p {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.65;
  margin: 0;
}


/* =====================================================
   29. CONTACT FORM
===================================================== */

.contact-form-wrap {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.contact-form__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}
.contact-form__label span { color: var(--fg-3); }

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
  width: 100%;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: var(--fg-3); }

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,150,90,0.09);
}

.contact-form__input.is-error,
.contact-form__select.is-error,
.contact-form__textarea.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(179,58,58,0.1);
}

.contact-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238C8B85'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.contact-form__error {
  font-size: 0.75rem;
  color: #C0392B;
  min-height: 1rem;
  line-height: 1;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-form__submit { width: 100%; justify-content: center; }

.contact-form__note {
  font-size: 0.78rem;
  color: var(--fg-3);
  font-weight: 300;
  text-align: center;
  width: 100%;
}
.contact-form__note a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Success state */
.contact-form__success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.contact-form__success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--color-success-border);
}
.contact-form__success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.contact-form__success p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.65;
}
.contact-form__success a { color: var(--accent); }

/* Nav WhatsApp button variant */
.btn--nav-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  font-size: 0.83rem;
  padding: 0.5rem 1.2rem;
}
.btn--nav-whatsapp:hover { background: #1dba5c; opacity: 1; }


/* =====================================================
   30. STICKY MOBILE CONTACT BAR
===================================================== */

.mobile-contact-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 80;
  background: var(--bg-raised);
  border-top: 1px solid var(--border-md);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  padding: 0.6rem 0.75rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}

.mobile-contact-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--r);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.01em;
}
.mobile-contact-bar__btn:hover,
.mobile-contact-bar__btn:focus {
  color: var(--fg);
  border-color: var(--border-strong);
}

.mobile-contact-bar__btn--whatsapp {
  background: rgba(37,211,102,0.08);
  border-color: rgba(37,211,102,0.25);
  color: #178f42;
  flex: 1.6;
}
[data-theme="dark"] .mobile-contact-bar__btn--whatsapp { color: #25D366; }
.mobile-contact-bar__btn--whatsapp:hover {
  background: rgba(37,211,102,0.15);
  border-color: rgba(37,211,102,0.35);
  color: #14703a;
}

.mobile-contact-bar__icon {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1;
}

/* Body bottom padding so content isn't hidden behind bar */
body {
  padding-bottom: 72px;
}


/* =====================================================
   31. CRO SECTION — MEDIUM SCREEN visual strips
===================================================== */

@media (min-width: 640px) {
  .cro__grid {
    grid-template-columns: 1fr 1fr;
  }
  .cro__grid .cro-card:first-child {
    grid-column: 1 / -1;
  }

  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form__submit { width: auto; }
}


/* =====================================================
   32. LARGE SCREEN (≥ 960px) additions
===================================================== */

@media (min-width: 960px) {

  /* CRO: 3 columns */
  .cro__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cro__grid .cro-card:first-child {
    grid-column: auto;
  }

  /* CRO before/after strip */
  .cro-card__area {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  .cro-card__area--before {
    width: 50%;
    background: var(--bg-overlay);
    color: var(--fg-3);
    float: left;
  }
  .cro-card__area--after {
    width: 50%;
    background: rgba(200,150,90,0.07);
    color: var(--accent);
    float: right;
  }
  .cro-card__area + .cro-card__area + .cro-card__body {
    clear: both;
  }

  /* Projects archive: 2 col */
  .projects-archive__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact layout: 2 col */
  .contact-layout {
    grid-template-columns: 420px 1fr;
    gap: 5rem;
    align-items: start;
  }

  /* Outcomes: 3 col on this breakpoint already handled above */

  /* Mobile contact bar: hide on desktop */
  .mobile-contact-bar { display: none; }
  body { padding-bottom: 0; }
}


/* =====================================================
   33. PROJECTS ARCHIVE — XL 3-col
===================================================== */

@media (min-width: 1200px) {
  .projects-archive__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =====================================================
   34. TRUST BAR — updated with icons
===================================================== */

.trust__icon {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.45rem;
  line-height: 1;
}


/* =====================================================
   35. CRO SECTION — upgraded visual cards
===================================================== */

/* Dual visual strip: before/after screenshots */
.cro-card__visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.cro-card__visual {
  position: relative;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cro-card__visual--before {
  background: var(--bg-overlay);
  border-right: 1px solid var(--border);
}

.cro-card__visual--after {
  background: rgba(200,150,90,0.04);
}
[data-theme="dark"] .cro-card__visual--after {
  background: rgba(200, 161, 99, 0.06);
}

.cro-card__visual-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cro-card__visual--before .cro-card__visual-label { color: var(--fg-3); }
.cro-card__visual--after  .cro-card__visual-label { color: var(--accent); }

/* Wireframe screenshot placeholders */
.cro-card__screenshot {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.cro-card__screenshot--before { border-color: var(--border-md); }
.cro-card__screenshot--after  { border-color: rgba(200,150,90,0.22); }

.cro-card__screen-header {
  height: 22px;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}
.cro-card__screen-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  opacity: 0.5;
}
.cro-card__screen-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 90px;
}
.cro-card__screen-img {
  width: 100%; height: 36px;
  background: var(--bg-overlay);
  border-radius: 3px;
  margin-bottom: 2px;
}
.cro-card__screen-img--pushed { margin-top: 18px; }
.cro-card__screen-img--top { margin-top: 0; }

.cro-card__screen-row {
  height: 6px;
  background: var(--bg-overlay);
  border-radius: 99px;
}
.cro-card__screen-row--sm  { width: 45%; }
.cro-card__screen-row--md  { width: 70%; }
.cro-card__screen-row--lg  { width: 90%; }
.cro-card__screen-row--accent { background: rgba(200,150,90,0.18); width: 55%; }
.cro-card__screen-row--steps-bad  { height: 10px; width: 100%; background: var(--bg-overlay); border-radius: 3px; }
.cro-card__screen-row--steps-good {
  height: 10px; width: 100%;
  background: linear-gradient(to right, var(--accent) 33%, var(--bg-overlay) 33%);
  border-radius: 3px; opacity: 0.5;
}
.cro-card__screen-row--logo { width: 40%; height: 6px; background: var(--bg-overlay); border-radius: 99px; }

.cro-card__screen-btn {
  height: 16px;
  border-radius: 3px;
  margin-top: 4px;
}
.cro-card__screen-btn--low    { background: var(--bg-overlay); opacity: 0.5; }
.cro-card__screen-btn--primary { background: var(--accent); opacity: 0.55; }

.cro-card__screen-trust {
  height: 10px; width: 85%;
  background: rgba(45,106,79,0.12);
  border-radius: 3px;
}

/* Mobile mockup variant */
.cro-card__screenshot--mobile { max-width: 80px; margin-inline: auto; }
.cro-card__screen-header--mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
}
.cro-card__screen-hamburger {
  width: 12px; height: 7px;
  background: linear-gradient(var(--bg-overlay) 1px, transparent 1px, transparent 3px, var(--bg-overlay) 3px, var(--bg-overlay) 4px, transparent 4px, transparent 6px, var(--bg-overlay) 6px);
  border-radius: 1px;
}
.cro-card__screen-search {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  opacity: 0.5;
}
.cro-card__screen-cart-sm { width: 8px; height: 8px; border-radius: 2px; background: var(--bg-overlay); opacity: 0.5; }
.cro-card__screen-cart-lg { width: 12px; height: 12px; border-radius: 2px; background: var(--accent); opacity: 0.5; }
.cro-card__screen-bottom-nav {
  height: 14px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  margin-top: auto;
  border-radius: 0 0 var(--r) var(--r);
}

/* Problem → Change → Why flow */
.cro-card__flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
}

.cro-card__flow-step {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.cro-card__flow-step:last-child { border-bottom: none; }

.cro-card__flow-label {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-bottom: 0.45rem;
}
.cro-card__flow-label--problem {
  background: rgba(179,58,58,0.07);
  color: var(--color-error);
  border: 1px solid rgba(179,58,58,0.16);
}
[data-theme="dark"] .cro-card__flow-label--problem {
  background: rgba(232,128,128,0.09);
  color: var(--color-error-dark);
  border-color: rgba(232,128,128,0.18);
}
.cro-card__flow-label--change {
  background: rgba(200,150,90,0.08);
  color: var(--accent);
  border: 1px solid rgba(200,150,90,0.18);
}
.cro-card__flow-label--why {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}
[data-theme="dark"] .cro-card__flow-label--why {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

.cro-card__flow-arrow {
  text-align: center;
  color: var(--fg-3);
  font-size: 0.7rem;
  padding: 0.1rem 0;
  line-height: 1;
}

.cro-card__flow-text {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.65;
}

/* Remove old area strips (no longer needed) */
.cro-card__area { display: none !important; }


/* =====================================================
   36. OUTCOMES — screenshot placeholder in cards
===================================================== */

.outcome-metric__screenshot {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--bg-overlay);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-block: 0.75rem;
  /* Replace with real screenshot:
     background-image: url('images/outcome-1.jpg');
     background-size: cover;
     background-position: top center; */
}

.outcome-metric__screenshot-inner {
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.outcome-metric__screen-bar {
  height: 8px;
  background: var(--bg-raised);
  border-radius: 99px;
  width: 100%;
}

.outcome-metric__screen-row {
  height: 6px;
  background: var(--bg-raised);
  border-radius: 99px;
}
.outcome-metric__screen-row--wide { width: 85%; }
.outcome-metric__screen-row--mid  { width: 60%; }

.outcome-metric__screen-img {
  flex: 1;
  background: var(--bg-raised);
  border-radius: 3px;
  min-height: 20px;
}
.outcome-metric__screen-img--tall { flex: 2; }

.outcome-metric__screen-btn {
  height: 14px;
  background: rgba(200,150,90,0.28);
  border-radius: 3px;
  width: 50%;
}


/* =====================================================
   37. PROJECTS PAGE — expandable case study detail
===================================================== */

/* Screenshot hint overlay */
.project__image-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--fg-3);
  background: var(--bg-raised);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0.75;
  z-index: 2;
}

/* Count indicator */
.projects-count {
  font-size: 0.78rem;
  color: var(--fg-3);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

/* Expandable project detail */
.project__detail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project__detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project__detail-section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.project__detail-heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}
.project__detail-heading--before { color: var(--color-error); }
[data-theme="dark"] .project__detail-heading--before { color: var(--color-error-dark); }
.project__detail-heading--after  { color: var(--color-success); }
[data-theme="dark"] .project__detail-heading--after  { color: var(--color-success); }

.project__detail-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.7;
}

.project__detail-list {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.project__detail-list li {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--fg-2);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.5;
}
.project__detail-list li::before {
  position: absolute;
  left: 0;
  font-size: 0.65rem;
  top: 2px;
}
ol.project__detail-list { counter-reset: detail-step; }
ol.project__detail-list li::before {
  content: counter(detail-step) '.';
  counter-increment: detail-step;
  color: var(--accent);
  font-weight: 500;
}
.project__detail-list--before li::before { content: '✕'; color: #c44; }
.project__detail-list--after  li::before { content: '✓'; color: var(--color-success); }
[data-theme="dark"] .project__detail-list--after li::before { color: var(--color-success); }

/* Tools used */
.project__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project__tool {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--fg-2);
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* Expand / collapse toggle button */
.project__expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
  transition: opacity var(--dur) var(--ease);
}
.project__expand-btn:hover { opacity: 0.75; }

.project__expand-icon {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
  font-style: normal;
}
.project__expand-btn[aria-expanded="true"] .project__expand-icon {
  transform: rotate(180deg);
}
.project__expand-btn[aria-expanded="true"] .project__expand-label::before {
  content: 'Collapse';
}
.project__expand-btn[aria-expanded="false"] .project__expand-label::before {
  content: 'See full case';
}
.project__expand-label { font-size: 0; } /* hide the static text, replaced by ::before */

/* Project count animation */
@keyframes countPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
#projectsVisible {
  display: inline-block;
  font-weight: 500;
  color: var(--fg);
  animation: countPop 0.25s var(--ease-out) both;
}


/* =====================================================
   38. LANGUAGE TOGGLE BUTTON
===================================================== */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-raised);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.04em;
}
.lang-toggle:hover {
  background: var(--bg-overlay);
  color: var(--fg);
  border-color: var(--accent);
}

/* /audit is English-only — hide the (otherwise inert there) language
   toggle so visitors never see a switch that wouldn't do anything.
   Progressive enhancement: on browsers without :has() support the
   button stays visible but harmlessly inert (app.js forces English
   regardless), so nothing breaks either way. */
body:has(.audit-page) .lang-toggle { display: none; }

.lang-toggle__option {
  transition: color var(--dur) var(--ease);
}
.lang-toggle__sep {
  opacity: 0.35;
  font-size: 0.65rem;
}

/* Active language option highlighted */
[data-lang="en"] .lang-toggle__option[data-lang-label="en"],
[data-lang="ar"] .lang-toggle__option[data-lang-label="ar"] {
  color: var(--accent);
  font-weight: 600;
}


/* =====================================================
   39. RTL / ARABIC LANGUAGE SUPPORT
===================================================== */

/* Arabic font token — applied when [data-lang="ar"] */
[data-lang="ar"] {
  --font-body:    'Cairo', 'Segoe UI', sans-serif;
  --font-display: 'Cairo', Georgia, sans-serif;
}

/* RTL layout adjustments */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .fnav__links {
  flex-direction: row-reverse;
}
[dir="rtl"] .fnav__capsule {
  flex-direction: row-reverse;
}
[dir="rtl"] .fnav__right {
  flex-direction: row-reverse;
}
[dir="rtl"] .fnav__mobile-capsule {
  flex-direction: row-reverse;
  padding: 0 16px 0 8px;
}
[dir="rtl"] .hero__actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .about__inner {
  direction: rtl;
}
[dir="rtl"] .about__photo-card {
  right: auto;
  left: -1.25rem;
}
[dir="rtl"] .service-card__list li,
[dir="rtl"] .project__detail-list li {
  padding-left: 0;
  padding-right: 1.1em;
}
[dir="rtl"] .service-card__list li::before,
[dir="rtl"] .project__detail-list li::before {
  left: auto;
  right: 0;
}
[dir="rtl"] .section-eyebrow { letter-spacing: 0; }
[dir="rtl"] .trust__label    { letter-spacing: 0; }
[dir="rtl"] .mobile-contact-bar {
  flex-direction: row-reverse;
}
[dir="rtl"] .footer__nav {
  direction: rtl;
}
[dir="rtl"] .footer__inner {
  direction: rtl;
}
[dir="rtl"] .breadcrumb {
  flex-direction: row-reverse;
}
[dir="rtl"] .process__step {
  flex-direction: row-reverse;
}
[dir="rtl"] .process__step-num {
  margin-top: 0;
}
[dir="rtl"] .project__expand-btn {
  flex-direction: row-reverse;
}
[dir="rtl"] .contact-layout {
  direction: rtl;
}
[dir="rtl"] .contact-method {
  flex-direction: row-reverse;
}
[dir="rtl"] .contact-method__arrow {
  margin-left: 0;
  margin-right: auto;
  transform: scaleX(-1);
}
[dir="rtl"] .contact-expect__list li {
  flex-direction: row-reverse;
}
[dir="rtl"] .projects-filter { flex-direction: row-reverse; }
[dir="rtl"] .about__tags     { flex-direction: row-reverse; }
[dir="rtl"] .cro-card__flow-arrow { transform: rotate(0deg); } /* arrow stays vertical */

/* ── Audit page: mirror forward-action arrow glyphs only (not whole buttons/text) ── */
[dir="rtl"] .audit-btn-start .arrow,
[dir="rtl"] .audit-btn-next .arrow,
[dir="rtl"] .audit-unlock-cta .arrow {
  display: inline-block;
  transform: scaleX(-1);
}
[dir="rtl"] .audit-btn-start:hover .arrow,
[dir="rtl"] .audit-btn-next:hover:not(:disabled) .arrow {
  transform: scaleX(-1) translateX(3px);
}
/* Arabic text keeps natural RTL alignment (was hardcoded left) */
[dir="rtl"] .audit-checklist { text-align: right; }


/* =====================================================
   40. MOBILE CONTACT BAR — premium redesign (2 buttons)
===================================================== */

/* Override all old bar styles */
.mobile-contact-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  gap: 0.65rem;
  background: var(--bg-raised);
  border-top: 1px solid var(--border-md);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* Override any existing transition */
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.mobile-contact-bar.is-hidden-bar {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* New button structure: icon + label + sub */
.mobile-contact-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.mobile-contact-bar__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-contact-bar__btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

.mobile-contact-bar__btn-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.mobile-contact-bar__btn-sub {
  font-size: 0.65rem;
  font-weight: 300;
  opacity: 0.75;
  line-height: 1;
}

/* WhatsApp button — primary, green accent */
.mobile-contact-bar__btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border: none;
  flex: 1.4;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.28);
}
.mobile-contact-bar__btn--whatsapp:hover,
.mobile-contact-bar__btn--whatsapp:focus {
  background: #1dba5c;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  color: #fff;
}
[data-theme="dark"] .mobile-contact-bar__btn--whatsapp {
  background: #178f42;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.18);
}

/* Consultation button — secondary, ghost-premium */
.mobile-contact-bar__btn--consult {
  background: var(--bg);
  color: var(--fg-2);
  border: 1.5px solid var(--border-strong);
}
.mobile-contact-bar__btn--consult:hover,
.mobile-contact-bar__btn--consult:focus {
  background: var(--bg-overlay);
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-1px);
}

/* RTL flip for bar */
[dir="rtl"] .mobile-contact-bar__btn-text {
  align-items: flex-end;
}

/* Body padding: enough for 2-row bar with safe area */
body {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 960px) {
  .mobile-contact-bar { display: none !important; }
  body { padding-bottom: 0; }
}


/* =====================================================
   41. AUDIT PAGE — multi-step free audit flow
===================================================== */

.audit-page {
  padding-top: calc(var(--fnav-top, 18px) + 52px + clamp(2rem, 4vw, 3.5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-inline: var(--container-px);
  min-height: 80vh;
}

.audit-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

/* ── Progress bar (step dots) ── */
.audit-progress {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.audit-progress__steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.audit-progress__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all var(--dur) var(--ease);
}
.audit-progress__dot.is-active {
  background: var(--accent);
  width: 22px;
  border-radius: var(--r-pill);
}
.audit-progress__dot.is-done { background: var(--fg-3); }

.audit-progress__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.audit-progress__complete {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-success);
}
.audit-progress__complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  font-size: 0.6rem;
}

/* ── Step container / transitions ── */
.audit-step {
  display: none;
  opacity: 0;
}
.audit-step.is-active {
  display: block;
  opacity: 1;
  animation: auditFadeIn var(--dur-slow) var(--ease-out);
}
.audit-step.is-exit {
  animation: auditFadeOut var(--dur) var(--ease) forwards;
}
.audit-step.slide-right { animation: auditSlideRight var(--dur-slow) var(--ease-out); }
.audit-step.slide-left  { animation: auditSlideLeft  var(--dur-slow) var(--ease-out); }

@keyframes auditFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes auditFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes auditSlideRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes auditSlideLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.audit-step__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.audit-step__heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}
.audit-step__heading em { font-style: italic; color: var(--accent); }

.audit-step__sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.audit-step-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.audit-step-counter__current { color: var(--accent); font-size: 0.9rem; }

/* ── Step 1: Hero visual (score cards) ── */
.audit-hero-visual {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.audit-hero-card {
  flex: 1 1 calc(50% - 0.45rem);
  min-width: 140px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.audit-hero-card__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.4rem;
}
.audit-hero-card__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
}

.audit-hero-score {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
}
.audit-hero-score__ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg 245deg, var(--border-strong) 245deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audit-hero-score__ring-inner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
}
.audit-hero-score__text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.5;
}
.audit-hero-score__text strong {
  display: block;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.15rem;
}

/* ── Step 1: Benefits checklist ── */
.audit-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}
.audit-benefit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-2);
}
.audit-benefit__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 0.62rem;
  flex-shrink: 0;
}

.audit-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.audit-btn-start {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.audit-btn-start:hover { opacity: 0.82; transform: translateY(-2px); }
.audit-btn-start .arrow { transition: transform var(--dur) var(--ease); }
.audit-btn-start:hover .arrow { transform: translateX(3px); }

.audit-note {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--fg-3);
}

/* ── Step 2: Form ── */
.audit-form { width: 100%; }

.audit-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.audit-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.audit-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}
.audit-label .req { color: var(--accent); }

.audit-input,
.audit-select {
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg);
  width: 100%;
  appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.audit-input::placeholder { color: var(--fg-3); }

.audit-input:focus,
.audit-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,150,90,0.09);
}

.audit-input.is-error,
.audit-select.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(179,58,58,0.1);
}
.audit-input.is-valid,
.audit-select.is-valid { border-color: var(--color-success); }

.audit-select-wrap { position: relative; }
.audit-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239BA8AB'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.audit-error-msg {
  font-size: 0.75rem;
  color: var(--color-error);
  min-height: 1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.audit-error-msg.is-visible { opacity: 1; }

.audit-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.audit-btn-back {
  background: transparent;
  color: var(--fg-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.audit-btn-back:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-1px);
}

.audit-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.audit-btn-next:hover:not(:disabled) { opacity: 0.82; transform: translateY(-2px); }
.audit-btn-next:disabled { opacity: 0.45; cursor: not-allowed; }
.audit-btn-next .arrow { transition: transform var(--dur) var(--ease); }
.audit-btn-next:hover:not(:disabled) .arrow { transform: translateX(3px); }

.audit-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Step 3: OTP ── */
.audit-otp-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-2);
  margin-bottom: 1.75rem;
}
.audit-otp-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.audit-otp-email { color: var(--fg); font-weight: 500; }

.audit-otp-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.audit-otp-input {
  width: 100%;
  aspect-ratio: 1 / 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-raised);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.audit-otp-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,150,90,0.09);
}
.audit-otp-input.is-filled { border-color: var(--fg-3); }
.audit-otp-input.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(179,58,58,0.1);
}

.audit-otp-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.audit-otp-resend {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: opacity var(--dur) var(--ease);
}
.audit-otp-resend:disabled {
  color: var(--fg-3);
  border-color: transparent;
  cursor: not-allowed;
}
.audit-otp-timer {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.audit-otp-timer.is-expired { color: var(--color-error); }

/* ── Step 4: Processing ── */
.audit-processing { text-align: center; }

.audit-loader-orbit {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.75rem;
}
.audit-loader-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.audit-loader-orbit__ring--outer {
  border-top-color: var(--accent);
  animation: auditSpin 1.4s linear infinite;
}
.audit-loader-orbit__ring--inner {
  inset: 14px;
  border-bottom-color: var(--fg-3);
  animation: auditSpin 1s linear infinite reverse;
}
.audit-loader-orbit__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}
@keyframes auditSpin {
  to { transform: rotate(360deg); }
}

.audit-progress-bar-wrap {
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--border);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.audit-progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.audit-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.audit-checklist__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-3);
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.audit-checklist__item.is-active {
  opacity: 1;
  color: var(--fg);
}
.audit-checklist__item.is-done {
  opacity: 1;
  color: var(--fg-2);
}
.audit-checklist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: transparent;
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.audit-checklist__item.is-active .audit-checklist__icon {
  background: var(--accent-tint);
  color: var(--accent);
}
.audit-checklist__item.is-done .audit-checklist__icon {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.audit-processing__label {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-3);
}

/* ── Step 5: Success ── */
.audit-success { text-align: center; }

.audit-success-illustration {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audit-success-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-success-border);
}
.audit-success-ring--1 { inset: 0; animation: auditRingPulse 2.4s var(--ease-out) infinite; }
.audit-success-ring--2 { inset: 14px; animation: auditRingPulse 2.4s var(--ease-out) infinite 0.3s; }
.audit-success-ring--3 {
  inset: 28px;
  background: var(--color-success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes auditRingPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
.audit-success-check {
  font-size: 1.6rem;
  color: var(--color-success);
}

.audit-success__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.audit-success__sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 2rem;
}
.audit-success__sub strong { color: var(--fg); font-weight: 500; }

.audit-next-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: left;
  margin-bottom: 2rem;
}
.audit-next-card__heading {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 1.1rem;
}
.audit-next-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.audit-next-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.55;
}
.audit-next-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 500;
  flex-shrink: 0;
}

.audit-success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.audit-btn-home {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-2);
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.audit-btn-home:hover { color: var(--fg); border-color: var(--fg); }

.audit-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 0.8rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.audit-btn-whatsapp:hover { background: #1dba5c; transform: translateY(-2px); }

/* Same class of bug fixed earlier for .audit-modal-overlay: any element here
   given a custom `display` value (flex/grid) has equal CSS specificity to
   the browser's own `[hidden] { display: none }` rule, and author rules
   always win — so the `hidden` attribute alone does not reliably hide it.
   This one rule covers every hidden-toggled element on the audit page
   (error banner, modal, and any future one) instead of patching each
   individually. This is what caused the error banner to render its static
   default text ("Something went wrong. Please try again.") permanently
   visible underneath the real field error, looking like a duplicate toast
   — it was never actually triggered twice by JS, it was never hidden. */
.audit-page [hidden],
.audit-error-banner[hidden],
.audit-modal-overlay[hidden] {
  display: none !important;
}

/* ── Global error banner ── */
.audit-error-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100vw - 2.5rem);
  background: var(--bg-raised);
  border: 1px solid var(--color-error);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.1rem;
  z-index: 200;
  animation: auditFadeIn var(--dur) var(--ease-out);
}
.audit-error-banner__icon { color: var(--color-error); flex-shrink: 0; }
.audit-error-banner__text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1.4;
}
.audit-error-banner__close {
  color: var(--fg-3);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}
.audit-error-banner__close:hover { color: var(--fg); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .audit-field-row { grid-template-columns: 1fr; gap: 0; }
  .audit-benefits { grid-template-columns: 1fr; }
  .audit-hero-card { flex: 1 1 100%; }
  .audit-form-footer { flex-direction: column-reverse; align-items: stretch; }
  .audit-btn-back, .audit-btn-next { width: 100%; }
  .audit-otp-input { font-size: 1.25rem; }
}

@media (min-width: 960px) {
  .audit-wrap { max-width: 680px; }
}


/* =====================================================
   42. AUDIT RESULTS — Website Intelligence / Performance / locked Begad Analysis
===================================================== */

.audit-results { width: 100%; }

.audit-results__intro { text-align: center; margin-bottom: 2.5rem; }

.audit-success-check-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.audit-report-section {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}
.audit-report-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.audit-report-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

/* ── Website Intelligence ── */
.audit-intel-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.audit-intel-platform__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.audit-intel-platform__value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
}

.audit-intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.audit-intel-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
}
.audit-intel-card__title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.75rem;
}
.audit-intel-card__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--fg);
}
.audit-intel-card__item + .audit-intel-card__item { border-top: 1px solid var(--border); }
.audit-intel-card__name { font-weight: 500; }
.audit-intel-card__id {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--fg-3);
  background: var(--bg);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-intel-empty {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-3);
  line-height: 1.6;
}

/* ── Performance ── */
.audit-perf-scores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.audit-perf-tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
  text-align: center;
}
.audit-perf-tile__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.5rem;
}
.audit-perf-tile__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.audit-perf-tile__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
}
.audit-perf-tile__badge.is-good { background: var(--color-success-bg); color: var(--color-success); }
.audit-perf-tile__badge.is-warn { background: rgba(200,150,90,0.12); color: var(--accent-2); }
.audit-perf-tile__badge.is-bad  { background: rgba(179,58,58,0.1); color: var(--color-error); }

.audit-perf-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.audit-perf-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  max-width: 220px;
}
.audit-perf-metric__head { display: flex; align-items: baseline; gap: 0.4rem; }
.audit-perf-metric__label { color: var(--fg-3); font-weight: 500; }
.audit-perf-metric__value { color: var(--fg); font-weight: 500; }
.audit-perf-metric__desc {
  color: var(--fg-3);
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.35;
}

.audit-resource-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.audit-resource-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}
.audit-resource-row__label { color: var(--fg-2); font-weight: 500; }
.audit-resource-row__bar-wrap {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--border);
  overflow: hidden;
}
.audit-resource-row__bar {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent);
}
.audit-resource-row__value { color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.audit-perf-unavailable {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-3);
  font-style: italic;
}

/* ── Begad Analysis (locked) ── */
.audit-begad-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--fg-2);
  margin-bottom: 1.5rem;
}
.audit-begad-tagline strong { color: var(--fg); font-weight: 500; }

.audit-locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.audit-locked-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-raised);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 0.9rem 1rem;
  opacity: 0.75;
}
.audit-locked-card__icon { font-size: 0.9rem; flex-shrink: 0; }
.audit-locked-card__label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--fg-2);
  line-height: 1.3;
}
.audit-locked-card__teaser {
  flex-basis: 100%;
  font-size: 0.74rem;
  color: var(--fg-3);
  line-height: 1.35;
}
.audit-locked-card__badge {
  flex-basis: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 0.85;
}

.audit-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.audit-compare__col {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
}
.audit-compare__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.audit-compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--fg-3);
}
.audit-compare__label {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-2);
}
@media (max-width: 640px) {
  .audit-compare { grid-template-columns: 1fr; }
}
.audit-unlock-cta {
  text-align: center;
  background: var(--bg-invert);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.audit-unlock-cta__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-invert);
  opacity: 0.6;
  margin-bottom: 0.6rem;
}
.audit-unlock-cta__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg-invert);
  margin-bottom: 1.25rem;
}
.audit-unlock-cta .audit-btn-start {
  background: var(--accent);
  color: #fff;
}
.audit-unlock-cta .audit-btn-start:hover { background: var(--accent-2); opacity: 1; }

@media (max-width: 640px) {
  .audit-intel-grid, .audit-perf-scores, .audit-locked-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .audit-intel-grid, .audit-perf-scores, .audit-locked-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   43. AUDIT — portfolio badge, intel summary, perf status,
       slowdown/findings sections, request-analysis modal
===================================================== */

/* ── Verified Begad portfolio badge (first-party fact, not scanner output) ── */
.audit-portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-top: 0.5rem;
}
.audit-portfolio-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
}

/* ── Website Intelligence summary pills ── */
.audit-intel-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.audit-intel-summary__pill {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  color: var(--fg-2);
}
.audit-intel-summary__pill strong { color: var(--fg); font-weight: 600; }

/* ── Performance status list (Good / Needs Attention / Poor) ── */
.audit-perf-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.audit-perf-status {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}
.audit-perf-status__metric { font-weight: 500; color: var(--fg); }
.audit-perf-status__value { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.audit-perf-status__target { color: var(--fg-3); font-size: 0.75rem; }
.audit-perf-status__badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
}
.audit-perf-status--good .audit-perf-status__badge { background: var(--color-success-bg); color: var(--color-success); }
.audit-perf-status--needs-attention .audit-perf-status__badge { background: rgba(200,150,90,0.12); color: var(--accent-2); }
.audit-perf-status--poor .audit-perf-status__badge { background: rgba(179,58,58,0.1); color: var(--color-error); }

/* ── What's Slowing Your Store Down ── */
.audit-slowdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.audit-slowdown-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
}
.audit-slowdown-card__title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-3);
  margin-bottom: 0.4rem;
}
.audit-slowdown-card__value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.audit-slowdown-card__toggle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.audit-slowdown-card__detail {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-2);
  line-height: 1.7;
  word-break: break-all;
}

/* ── Automated Findings ── */
.audit-report-section__sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-3);
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}
.audit-findings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.audit-findings-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg-raised);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--r);
  padding: 0.8rem 1rem;
}
.audit-findings-list__item--high { border-left-color: var(--color-error); }
.audit-findings-list__item--medium { border-left-color: var(--accent); }
.audit-findings-list__item--low { border-left-color: var(--fg-3); }
.audit-findings-list__title { font-weight: 500; color: var(--fg); font-size: 0.9rem; }
.audit-findings-list__detail { font-size: 0.82rem; color: var(--fg-2); font-weight: 300; }

/* ── Request My Expert Analysis modal ── */
.audit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,20,27,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 300;
}
/* The [hidden] attribute and a same-specificity `display: flex` class rule
   are equal-specificity author rules — without this override, cascade
   order alone decided the winner and the overlay stayed visible even while
   `hidden` was present, which is exactly what caused the modal to appear
   open on page load. This rule must always win while [hidden] is set. */
.audit-modal-overlay[hidden] {
  display: none;
}
.audit-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.audit-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--fg-3);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background var(--dur) var(--ease);
}
.audit-modal__close:hover { background: var(--bg-overlay); color: var(--fg); }
.audit-modal__heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.6rem;
  padding-right: 2rem;
}
.audit-modal__sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.audit-modal__notice {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--fg-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 8px);
  padding: 0.55rem 0.75rem;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.4;
}
.audit-modal__summary {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.audit-modal__summary > div { display: flex; justify-content: space-between; gap: 1rem; }
.audit-modal__summary dt { font-size: 0.78rem; color: var(--fg-3); }
.audit-modal__summary dd { font-size: 0.85rem; color: var(--fg); font-weight: 500; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-modal__success { text-align: center; }
.audit-modal__success .audit-modal__heading { padding-right: 0; }

@media (max-width: 640px) {
  .audit-slowdown-grid { grid-template-columns: 1fr 1fr; }
  .audit-perf-status { grid-template-columns: 1fr auto; row-gap: 0.3rem; }
  .audit-perf-status__target { grid-column: 1 / -1; }
  .audit-resource-row { grid-template-columns: 70px 1fr auto; gap: 0.5rem; font-size: 0.76rem; }
  .audit-perf-metric { max-width: 100%; }
}
@media (max-width: 420px) {
  .audit-slowdown-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   44. AUDIT — two-phase results (performance skeleton, stale notice)
===================================================== */

.audit-stale-notice {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--accent-2);
  background: var(--accent-tint);
  border-radius: var(--r);
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
}

.audit-perf-skeleton__note {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.audit-perf-tile--skeleton {
  min-height: 92px;
  background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-overlay) 37%, var(--bg-raised) 63%);
  background-size: 400% 100%;
  animation: auditSkeletonPulse 1.6s ease-in-out infinite;
  border-color: var(--border);
}
@keyframes auditSkeletonPulse {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.audit-findings-pending {
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--fg-3);
}
