/* ============================================================
   Qita' (قطع) — design system
   Tokens · layout · components · RTL-aware (logical properties)

   NOTE: This file is deliberately UNLAYERED. Tailwind's built output
   (tailwind.css) is unlayered, and unlayered rules always beat rules
   inside @layer in the CSS cascade. Wrapping these rules in
   @layer components caused Tailwind preflight to override them
   (e.g. invisible chip buttons). This file loads AFTER tailwind.css,
   so unlayered source order lets our component classes win.
   ============================================================ */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }

  :root {
    --font-sans: "IBM Plex Sans Arabic", "Tajawal", ui-sans-serif, system-ui, sans-serif;
    /* brand (green) — primary palette */
    --color-brand-50:  #f0f7f4; --color-brand-100: #dcefe6; --color-brand-200: #b9dfce;
    --color-brand-300: #8cc6b0; --color-brand-400: #5aa88d; --color-brand-500: #3a8c70;
    --color-brand-600: #2b7059; --color-brand-700: #245a49; --color-brand-800: #1f483c;
    --color-brand-900: #1b3c33;
    /* sand */
    --color-sand-50: #fbf8f1; --color-sand-100: #f5eedd; --color-sand-200: #eadbba;
    --color-sand-300: #dcc28d;
    /* gray scale — text + borders */
    --color-gray-50:  #f9fafb; --color-gray-100: #f3f4f6; --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db; --color-gray-400: #9ca3af; --color-gray-500: #6b7280;
    --color-gray-600: #4b5563; --color-gray-700: #374151; --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    /* amber — warehouse accent */
    --color-amber-50: #fffbeb; --color-amber-100: #fef3c7; --color-amber-200: #fde68a;
    --color-amber-300: #fcd34d; --color-amber-400: #fbbf24; --color-amber-500: #f59e0b;
    --color-amber-600: #d97706; --color-amber-700: #b45309;
    /* emerald — service-provider accent */
    --color-emerald-50: #ecfdf5; --color-emerald-100: #d1fae5; --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7; --color-emerald-400: #34d399; --color-emerald-500: #10b981;
    --color-emerald-600: #059669; --color-emerald-700: #047857;
    /* indigo — admin accent */
    --color-indigo-50: #eef2ff; --color-indigo-100: #e0e7ff; --color-indigo-200: #c7d2fe;
    --color-indigo-300: #a5b4fc; --color-indigo-400: #818cf8; --color-indigo-500: #6366f1;
    --color-indigo-600: #4f46e5; --color-indigo-700: #4338ca; --color-indigo-800: #3730a3;
    /* legacy aliases (referenced by badges, hero eyebrow, etc.) */
    --color-ink: #1f2937; --color-muted: #6b7280; --color-border: #e5e7eb;
    --shadow-1: 0 1px 2px rgba(0,0,0,.06);
    --shadow-2: 0 4px 16px rgba(0,0,0,.08);
    --shadow-3: 0 12px 40px rgba(0,0,0,.14);
    --radius-sm: .5rem; --radius-md: .85rem; --radius-lg: 1.25rem; --radius-full: 999px;
    --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
    --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
  }
  html { -webkit-text-size-adjust: 100%; }
  body {
    font-family: var(--font-sans);
    background: #f9fafb;
    color: var(--color-ink);
    line-height: 1.6;
    font-size: 16px;
  }
  h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--color-brand-200); }
  :focus-visible { outline: 2px solid var(--color-brand-500); outline-offset: 2px; border-radius: 4px; }
  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-block-end: 1px solid var(--color-border);
  }
  .logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-2);
  }
  .logo-mark-sm { width: 30px; height: 30px; font-size: .85rem; border-radius: 9px; }
  .nav-link {
    padding: .5rem .8rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .925rem;
    color: #374151; transition: background .15s, color .15s; position: relative;
  }
  .nav-link:hover { background: var(--color-brand-50); color: var(--color-brand-700); }
  .dot-badge {
    position: absolute; inset-inline-start: 1.55rem; top: .3rem;
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
  }
  .mobile-menu { background: #fff; border-block-end: 1px solid var(--color-border); }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.3rem; border-radius: var(--radius-md);
    font-weight: 700; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
    transition: transform .1s, box-shadow .15s, background .15s, border-color .15s;
    white-space: nowrap;
  }
  .btn:active { transform: translateY(1px); }
  .btn:disabled { opacity: .55; cursor: not-allowed; }
  .btn-primary {
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700));
    color: #fff; box-shadow: var(--shadow-2);
  }
  .btn-primary:hover:not(:disabled) { box-shadow: var(--shadow-3); filter: brightness(1.05); }
  .btn-outline { background: #fff; border-color: #d1d5db; color: #374151; }
  .btn-outline:hover:not(:disabled) { border-color: var(--color-brand-500); color: var(--color-brand-700); }
  .btn-ghost { background: transparent; color: #4b5563; }
  .btn-ghost:hover { background: rgba(0,0,0,.05); }
  .btn-lg { padding: .9rem 2rem; font-size: 1.05rem; border-radius: var(--radius-md); }
  .btn-sm { padding: .4rem .9rem; font-size: .85rem; border-radius: var(--radius-sm); }

  /* ---------- cards ---------- */
  .card {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-1);
  }
  .hover-card { transition: box-shadow .2s, transform .2s; }
  .hover-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
  .success-card { border: 2px solid var(--color-brand-300); background: linear-gradient(180deg, #fff, var(--color-brand-50)); }

  /* ---------- badges ---------- */
  .badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 700; padding: .22rem .6rem;
    border-radius: var(--radius-full); white-space: nowrap;
  }
  .badge-oem { background: #e0f2fe; color: #0369a1; }
  .badge-used { background: #fef3c7; color: #b45309; }
  .badge-am { background: #f3e8ff; color: #7e22ce; }
  .badge-green { background: #dcfce7; color: #15803d; }
  .badge-blue { background: #e0f2fe; color: #0369a1; }
  .badge-red { background: #fee2e2; color: #b91c1c; }
  .badge-amber { background: #fef3c7; color: #b45309; }
  .badge-gray { background: #f3f4f6; color: #4b5563; }

  /* ---------- forms ---------- */
  .form-label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-block-end: .4rem; }
  .form-input {
    width: 100%; padding: .7rem .9rem; border: 1px solid #d1d5db; border-radius: var(--radius-sm);
    background: #fff; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
  }
  .form-input:focus { outline: none; border-color: var(--color-brand-500); box-shadow: 0 0 0 3px rgba(58,140,112,.15); }
  textarea.form-input { resize: vertical; }

  /* ---------- chips ---------- */
  .map-box {
    position: relative; z-index: 0;
    height: 340px; border-radius: var(--radius-md);
    border: 1.5px solid #d1d5db; overflow: hidden;
  }
  .map-box .leaflet-container { font-family: inherit; }

  .chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .42rem .95rem; border-radius: var(--radius-full);
    border: 1.5px solid #d1d5db; background: #fff; color: #4b5563;
    font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s;
  }
  .chip:hover { border-color: var(--color-brand-400); }
  .chip-on { background: var(--color-brand-600); border-color: var(--color-brand-600); color: #fff; }
  .chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }

  /* ---------- wizard ---------- */
  .photo-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    padding: 1.5rem; border: 2px dashed #cbd5e1; border-radius: var(--radius-md);
    color: var(--color-muted); cursor: pointer; transition: border-color .15s, background .15s;
    margin-block-start: .4rem;
  }
  .photo-drop:hover { border-color: var(--color-brand-500); background: var(--color-brand-50); }

  /* ---------- hero ---------- */
  .hero { position: relative; background: linear-gradient(135deg, var(--color-brand-900), var(--color-brand-700) 60%, var(--color-brand-500)); overflow: hidden; }
  .hero-grid {
    position: absolute; inset: 0; opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  }
  .hero-glow { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); top: -20vw; inset-inline-end: -15vw; }

  /* ---------- sections ---------- */
  .section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--color-brand-800); }
  .section-sub { font-size: 1.1rem; font-weight: 800; color: var(--color-brand-800); }
  .step-circle {
    width: 56px; height: 56px; margin-inline: auto; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-400), var(--color-brand-600));
    color: #fff; font-size: 1.4rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2);
  }
  .step-dot {
    width: 26px; height: 26px; border-radius: 50%; background: var(--color-brand-100);
    color: var(--color-brand-700); font-weight: 800; font-size: .8rem;
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* ---------- tabs ---------- */
  .tabs { display: flex; gap: .25rem; border-block-end: 2px solid var(--color-border); flex-wrap: wrap; }
  .tab {
    padding: .6rem 1.1rem; font-weight: 600; font-size: .92rem; color: #6b7280;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: all .15s;
    border-block-end: 2px solid transparent; margin-block-end: -2px;
  }
  .tab:hover { color: var(--color-brand-700); }
  .tab-on { color: var(--color-brand-700); border-block-end-color: var(--color-brand-600); background: var(--color-brand-50); }

  /* ---------- modal ---------- */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(17,24,39,.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    opacity: 0; transition: opacity .2s; overflow-y: auto;
  }
  .modal-overlay.show { opacity: 1; }
  .modal-card {
    position: relative; background: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
    max-width: 30rem; width: 100%; box-shadow: var(--shadow-3);
    transform: translateY(12px) scale(.98); transition: transform .2s;
  }
  .modal-overlay.show .modal-card { transform: none; }
  .modal-close {
    position: absolute; top: .9rem; inset-inline-end: .9rem;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: #f3f4f6; color: #4b5563; display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
  }
  .modal-close:hover { background: #e5e7eb; }
  .pay-option {
    display: flex; align-items: center; gap: .5rem; justify-content: center;
    padding: .7rem; border: 1.5px solid #d1d5db; border-radius: var(--radius-sm);
    background: #fff; font-size: .85rem; font-weight: 600; color: #4b5563; cursor: pointer; transition: all .15s;
  }
  .pay-on { border-color: var(--color-brand-600); background: var(--color-brand-50); color: var(--color-brand-800); }

  /* ---------- stars ---------- */
  .star-row { display: flex; gap: .2rem; }
  .star {
    background: none; border: none; font-size: 1.6rem; color: #e5e7eb; cursor: pointer; padding: .1rem;
    transition: color .12s, transform .12s;
  }
  .star:hover { transform: scale(1.15); }
  .star.on { color: #f59e0b; }

  /* ---------- toast ---------- */
  #toast-root {
    position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 200;
    display: flex; flex-direction: column; gap: .5rem;
  }
  .toast {
    padding: .8rem 1.2rem; border-radius: var(--radius-md); color: #fff; font-weight: 600; font-size: .9rem;
    box-shadow: var(--shadow-3); opacity: 0; transform: translateY(10px); transition: all .25s; max-width: 22rem;
  }
  .toast.show { opacity: 1; transform: none; }
  .toast-success { background: var(--color-brand-700); }
  .toast-error { background: #dc2626; }

  /* ---------- footer ---------- */
  .site-footer { border-block-start: 1px solid var(--color-border); background: #fff; margin-block-start: 2rem; }

  /* ---------- icons ---------- */
  .rtl-arrow { transform: scaleX(-1); }
  html[dir="ltr"] .rtl-arrow { transform: none; }

  .container { width: 100%; margin-inline: auto; }
  .hidden { display: none !important; }

  /* ============================================================
     super-redesign polish — quick wins (v1)
     ============================================================ */

  /* Card accent — wizard step cards get a strong brand left rail */
  .card-accent-strong {
    border-inline-start: 4px solid var(--color-brand-500);
    box-shadow: var(--shadow-2);
  }

  /* Chip — selected state with glow + inner shadow */
  .chip-on {
    background: var(--color-brand-600);
    border-color: var(--color-brand-600);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(58, 140, 112, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  .chip-on:focus-visible { outline: 3px solid var(--color-brand-300); outline-offset: 2px; }

  /* Step circle — outer halo + inner glow */
  .step-circle {
    width: 56px; height: 56px; margin-inline: auto; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-400), var(--color-brand-600));
    color: #fff; font-size: 1.4rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 6px rgba(58, 140, 112, 0.08), var(--shadow-2);
  }
  .step-circle-halo { position: relative; }
  .step-circle-halo::before {
    content: ""; position: absolute;
    inset: -10px; border-radius: 50%;
    background: radial-gradient(circle, rgba(58,140,112,0.12) 0%, transparent 70%);
    z-index: -1;
  }

  /* Hero CTA glow — primary button attracts attention on first load */
  .hero-cta-glow {
    position: relative;
    animation: heroGlow 2.4s ease-in-out infinite;
  }
  @keyframes heroGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(58, 140, 112, 0.45); }
    50% { box-shadow: 0 0 0 12px rgba(58, 140, 112, 0); }
  }

  /* Pulse dot — tiny live indicator for stats row */
  .pulse-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-brand-500);
    position: relative;
  }
  .pulse-dot::before {
    content: ""; position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--color-brand-500);
    animation: pulseRing 1.8s ease-out infinite;
    opacity: 0.7;
  }
  @keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    80% { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
  }

  /* Steps connector — gradient line between step dots */
  .steps-connector {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
    justify-content: center;
  }
  .steps-connector .connector-line {
    flex: 0 1 80px; height: 2px;
    background: linear-gradient(90deg, var(--color-brand-200), var(--color-brand-400));
    border-radius: 999px;
  }

  /* Empty state — bigger, friendlier, brand-tinted */
  .empty-state-illustration {
    background: linear-gradient(180deg, var(--color-brand-50), #fff);
    border: 1px dashed var(--color-brand-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  .empty-state-illustration .empty-icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--color-brand-100);
    color: var(--color-brand-600);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.04);
  }

  /* Wizard stepper — fill bar indicating progress */
  .wiz-stepper-bar {
    height: 4px; border-radius: 999px;
    background: var(--color-border);
    overflow: hidden;
    margin-block-end: 1.25rem;
  }
  .wiz-stepper-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-brand-400), var(--color-brand-600));
    border-radius: 999px;
    transition: width .35s ease;
  }

  /* Stat card — subtle accent for dark stats section */
  .stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: transform .15s, border-color .15s;
  }
  .stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
  }

  /* Footer polish */
  .site-footer a:hover { color: var(--color-brand-600); }

  /* ============================================================
     super-redesign polish — quick wins (v2)
     Layered on top of v1; ADDITIVE ONLY — keeps v1 selectors intact.
     ============================================================ */

  /* Section rhythm — consistent vertical beat on long pages */
  .pad-section { padding-block: clamp(3rem, 6vw, 5rem); }
  .section-heading { max-width: 36rem; margin-inline: auto; }

  /* Hero CTA cluster — keyboard hint chip under the primary button */
  .kbd-hint {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .55rem; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    font-size: .72rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,.14);
    font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
    letter-spacing: .02em;
  }
  .kbd-hint kbd {
    background: rgba(255,255,255,.12);
    padding: .05rem .35rem;
    border-radius: 4px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.18);
    font: inherit;
  }

  /* Payment-method tile v2 — brand-tinted, accessible */
  .pay-option-v2 {
    display: flex; align-items: center; gap: .6rem;
    padding: .75rem .9rem; border-radius: var(--radius-md);
    border: 1.5px solid #d1d5db; background: #fff;
    color: #374151; font-size: .95rem; font-weight: 700;
    cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
  }
  .pay-option-v2 .pay-mark {
    width: 38px; height: 24px; border-radius: 6px;
    background: var(--color-brand-50); color: var(--color-brand-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: .72rem; letter-spacing: .04em;
    border: 1px solid var(--color-brand-100);
  }
  .pay-option-v2:hover { border-color: var(--color-brand-500); }
  .pay-option-v2.pay-on {
    border-color: var(--color-brand-600);
    background: var(--color-brand-50);
    box-shadow: 0 0 0 3px rgba(58,140,112,.14);
  }

  /* Lifecycle pills — color-coded order/quote status with leading dot */
  .lifecycle-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .22rem .65rem; border-radius: var(--radius-full);
    font-size: .72rem; font-weight: 700; line-height: 1.2;
    border: 1px solid currentColor;
  }
  .lifecycle-pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
  }
  .lifecycle-pill-paid       { color: #1d4ed8; background: #dbeafe; border-color: #93c5fd; }
  .lifecycle-pill-preparing  { color: #b45309; background: #fef3c7; border-color: #fde68a; }
  .lifecycle-pill-delivered  { color: #0369a3; background: #e0f2fe; border-color: #7dd3fc; }
  .lifecycle-pill-completed  { color: #15803d; background: #dcfce7; border-color: #86efac; }
  .lifecycle-pill-cancelled  { color: #b91c1c; background: #fee2e2; border-color: #fca5a5; }
  .lifecycle-pill-pending    { color: #4b5563; background: #f3f4f6; border-color: #d1d5db; }

  /* Section divider — subtle gradient break between major sections */
  .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin-block: 0;
  }

  /* Lift micro-interaction for clickable cards */
  .lift-sm { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
  .lift-sm:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }

  /* Inline dot separator between metadata fragments */
  .pipe-sep {
    display: inline-block; width: 3px; height: 3px;
    margin-inline: .4rem; border-radius: 50%;
    background: currentColor; opacity: .35;
    vertical-align: middle;
  }

  /* Skeleton loader — gentle shimmer while data loads */
  .skeleton-line {
    display: inline-block;
    background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
    background-size: 200% 100%;
    animation: skeletonShift 1.4s ease-in-out infinite;
    border-radius: 6px;
    color: transparent;
  }
  @keyframes skeletonShift {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* Success mark circle — for wizard completion card */
  .success-mark-circle {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700));
    color: #fff; font-size: 1.75rem;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(58,140,112,.12), var(--shadow-3);
    margin-block-end: .75rem;
  }

  /* Toast icon slot — left rail decoration for clarity */
  .toast.with-icon { display: inline-flex; align-items: center; gap: .55rem; }
  .toast.with-icon .toast-icon {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem;
  }
  .toast-strip-left { border-inline-start: 4px solid rgba(255,255,255,.6); }

  /* Wizard section labels — eyebrows above wizard headings */
  .wizard-eyebrow {
    font-size: .72rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--color-brand-700);
    margin-block-end: .4rem;
    display: inline-block;
  }

  /* ============================================================ */
  /* Landing redesign (v3) — simple hero + portal CTAs + 6-step    */
  /* workflow infographic. Minimal additions, no breaking changes. */
  /* ============================================================ */

  /* Compact hero — smaller padding, tighter H1, eyebrow on top. */
  .hero-v3 {
    background:
      radial-gradient(1200px 600px at 70% -10%, rgba(255,255,255,.08), transparent 60%),
      linear-gradient(160deg, var(--color-brand-900) 0%, var(--color-brand-800) 55%, var(--color-brand-700) 100%);
    color: #fff;
    position: relative; overflow: hidden;
  }
  .hero-v3::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(900px 400px at 50% 0%, #000 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(900px 400px at 50% 0%, #000 40%, transparent 75%);
    pointer-events: none;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .85rem; border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .8rem; font-weight: 700; letter-spacing: .04em;
    color: var(--color-brand-50);
  }
  .hero-eyebrow i { color: var(--color-brand-200); }

  /* Portal CTA buttons — the three "I am a …" entry points. */
  .portal-cta {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    text-align: start;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    box-shadow: var(--shadow-1);
  }
  .portal-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); border-color: var(--color-brand-200); }
  .portal-cta-icon {
    width: 3rem; height: 3rem; border-radius: .85rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    background: var(--color-brand-50); color: var(--color-brand-700);
    flex-shrink: 0;
  }
  .portal-cta-icon.is-amber { background: var(--color-amber-50); color: var(--color-amber-600); }
  .portal-cta-icon.is-emerald { background: var(--color-emerald-50); color: var(--color-emerald-600); }
  .portal-cta-icon.is-indigo { background: var(--color-indigo-50); color: var(--color-indigo-600); }
  .portal-cta-title { font-weight: 800; color: var(--color-gray-900); font-size: 1.05rem; line-height: 1.2; }
  .portal-cta-sub { font-size: .85rem; color: var(--color-gray-500); margin-top: .15rem; }
  .portal-cta-arrow { margin-inline-start: auto; color: var(--color-brand-600); font-size: 1.05rem; }

  /* 6-step workflow infographic — vertical (mobile) / horizontal (md+).
     Each step is a card with numbered badge, icon, title, description.
     Cards are connected by a horizontal arrow at md+. */
  .flow-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
  }
  @media (min-width: 768px) {
    .flow-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  }
  @media (min-width: 1024px) {
    .flow-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  }
  .flow-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 1rem;
    padding: 1.1rem 1rem 1rem;
    text-align: start;
    box-shadow: var(--shadow-1);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .flow-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--color-brand-200); }
  .flow-card-icon {
    width: 2.6rem; height: 2.6rem; border-radius: .7rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    background: var(--color-brand-50); color: var(--color-brand-700);
    margin-block-end: .65rem;
  }
  .flow-card-title { font-weight: 800; color: var(--color-gray-900); font-size: 1rem; line-height: 1.25; margin-block-end: .25rem; }
  .flow-card-desc  { font-size: .85rem; color: var(--color-gray-500); line-height: 1.45; }
  .flow-card-num {
    position: absolute; top: -.65rem; inset-inline-start: -.65rem;
    width: 1.9rem; height: 1.9rem; border-radius: 999px;
    background: var(--color-brand-700); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 800;
    box-shadow: 0 6px 14px -4px rgba(43,112,89,.45);
  }
  /* Arrow connector — only visible on lg+. Drawn as a horizontal line + chevron. */
  @media (min-width: 1024px) {
    .flow-card:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 50%;
      inset-inline-start: 100%;
      transform: translate(0, -50%);
      width: 1rem; height: 1px;
      background: linear-gradient(to right, var(--color-brand-300), var(--color-brand-300));
    }
    /* RTL flip: arrow on the start side instead of the end. */
    [dir="rtl"] .flow-card:not(:last-child)::after {
      inset-inline-start: auto;
      inset-inline-end: 100%;
      background: linear-gradient(to left, var(--color-brand-300), var(--color-brand-300));
    }
  }

  /* Section background helper — soft sand tint for "what we do" */
  .bg-sand-soft { background: var(--color-sand-50); }

/* ---------- responsive ---------- */
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1216px; } }

/* ---------- a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
