/* ============================================================
   AEGIS — Insurance Broker / Agent vCard
   Next-gen ScaanMe theme · light, reassuring, warm steel-blue calm
   Design system: shield clip-path geometry, porcelain surfaces,
   single steel-teal accent, "shield assemble" signature motion.
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    --bg: var(--tk-bg, #F4F7FA);          /* cool porcelain — light-first */
    --bg-2: color-mix(in srgb, var(--tk-bg, #F4F7FA), #000 4%);        /* recessed porcelain */
    --panel: #FFFFFF;       /* primary card surface */
    --panel-2: color-mix(in srgb, var(--tk-bg, #F4F7FA), #fff 70%);    /* raised catch-light surface */
    --tint: color-mix(in srgb, var(--tk-primary, #2E6F8E), #fff 86%);  /* shield-tint fill */
    --txt: var(--tk-text, #16202E);         /* ink */
    --muted: color-mix(in srgb, var(--tk-text, #16202E), #fff 40%);    /* secondary ink */
    --dim: color-mix(in srgb, var(--tk-text, #16202E), #fff 58%);      /* tertiary ink */
    --accent: var(--tk-primary, #2E6F8E);      /* steel teal — the single accent */
    --accent-2: var(--tk-secondary, #235971);    /* deeper steel for pressed/borders */
    --accent-soft: rgb(from var(--tk-primary, #2E6F8E) r g b / .10);
    --line: color-mix(in srgb, var(--tk-text, #16202E), #fff 86%);        /* hairline */
    --line-2: color-mix(in srgb, var(--tk-text, #16202E), #fff 76%);      /* stronger hairline */
    --ok: var(--tk-success, #2E8B6F);          /* covered/green */
    --warn: var(--tk-accent2, #C2843A);        /* waitlist amber */
    /* one signature gradient — spent ONLY on hero shield + primary CTA + featured badge */
    --grad: linear-gradient(150deg, color-mix(in srgb, var(--tk-primary, #2E6F8E), #fff 12%) 0%, var(--tk-primary, #2E6F8E) 55%, var(--tk-secondary, #235971) 100%);
    --shadow-teal: 0 14px 34px -18px rgb(from var(--tk-primary, #2E6F8E) r g b / .45);
    --shadow-soft: 0 12px 30px -20px rgba(22, 32, 46, .30);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 26px -20px rgba(22, 32, 46, .35);
    --r-lg: 22px;
    --r-md: 15px;
    --r-sm: 11px;
    /* shield notch radius (clip-path corner geometry baked across cards) */
    --shield: 18px;
    --font-d: var(--tk-font-header, 'Bricolage Grotesque'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-b: var(--tk-font-content, 'Inter'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --dock-h: 74px;
    --ease: cubic-bezier(.22, .8, .26, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Ambient background system (CSS-only, light, calm) ---------- */
.fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.fx::before { /* soft porcelain wash gradient */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(80% 50% at 50% -8%, rgb(from var(--tk-primary, #2E6F8E) r g b / .10), transparent 60%),
        radial-gradient(70% 50% at 100% 100%, rgb(from var(--tk-primary, #2E6F8E) r g b / .06), transparent 55%);
}
.fx::after { /* faint embossed shield silhouette watermark */
    content: ""; position: absolute; inset-block-start: 8%; inset-inline-end: -6%;
    width: 58vw; height: 58vw; max-width: 460px; max-height: 460px;
    background: var(--accent); opacity: .035;
    -webkit-clip-path: path('M230 0 C360 70 420 80 460 80 L460 230 C460 360 360 430 230 460 C100 430 0 360 0 230 L0 80 C40 80 100 70 230 0 Z');
            clip-path: path('M230 0 C360 70 420 80 460 80 L460 230 C460 360 360 430 230 460 C100 430 0 360 0 230 L0 80 C40 80 100 70 230 0 Z');
    transform: scale(1);
}

/* ---------- Layout ---------- */
.aegis-wrap { max-width: 720px; margin-inline: auto; padding-inline: 20px; padding-block-end: calc(var(--dock-h) + 28px); }
.sec { padding-block: 46px; }
.sec-head { margin-block-end: 26px; }
.kicker {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-d); font-size: 11.5px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.sec-title { font-family: var(--font-d); font-size: clamp(1.85rem, 6vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin-block-start: 11px; color: var(--txt); }
.sec-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin-block-start: 10px; max-width: 52ch; }

/* ---------- Reveal choreography (scroll) ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* ---------- Hero page-load sequence (orchestrated, runs once on load) ---------- */
.hero-load { opacity: 0; transform: translateY(20px); animation: heroIn .8s var(--ease) forwards; }
.hl-1 { animation-delay: .10s; }
.hl-2 { animation-delay: .20s; }
.hl-3 { animation-delay: .30s; }
.hl-4 { animation-delay: .42s; }
.hl-5 { animation-delay: .54s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; inset-block-start: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    margin-inline: -20px; padding: 12px 20px;
    background: rgba(244, 247, 250, .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-block-end: 1px solid var(--line);
}
.topbar-avatar { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; border: 1px solid var(--line-2); }
.topbar-name { font-family: var(--font-d); font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- SHIELD GEOMETRY (the ownable shape system) ---------- */
/* clip-path shield-corner: top corners square, bottom rounds into a point — applied to coverage cards */
.shield-clip {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
            clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}

/* ---------- Hero (CENTERED editorial statement crowned by the assembling shield) ----------
   Deliberately NOT a split portrait/grid hero — a calm, centered protection statement. */
.hero { padding-block: 30px 30px; position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line);
    font-size: 12.5px; font-weight: 500; color: var(--muted);
    box-shadow: var(--shadow-card);
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(from var(--tk-success, #2E8B6F) r g b / .5); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px rgb(from var(--tk-success, #2E8B6F) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-success, #2E8B6F) r g b / 0); } }

.hero-brand {
    margin-block-start: 18px;
    font-family: var(--font-d); font-weight: 600; font-size: 12.5px;
    letter-spacing: .26em; line-height: 1; color: var(--muted); text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.9rem, 14vw, 5rem);
    font-weight: 700; letter-spacing: -.04em; line-height: .94;
    margin-block-start: 14px; text-wrap: balance; color: var(--txt);
    max-width: 13ch;
}
.hero-title .grad-word {
    color: var(--accent);
    display: inline; position: relative;
}
/* hairline underline accent beneath the statement word — a calm "underwritten" mark */
.hero-title .grad-word::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: .04em; height: .07em;
    background: var(--accent); opacity: .22; border-radius: 2px;
}
.hero-desc { margin-block-start: 18px; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.hero-desc p { margin-block-end: .6em; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 26px; }

/* ---------- Coverage-ledger strip (signature hairline rail under the statement) ---------- */
.cov-ledger {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 8px 6px; margin-block-start: 30px;
    padding: 14px 8px; width: 100%; max-width: 520px;
    border-block: 1px solid var(--line);
}
.cl-item {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-d); font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
    color: var(--muted); padding: 4px 10px;
}
.cl-item i { color: var(--accent); font-size: 13px; }
.cl-item:not(:last-child)::after {
    content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2);
    margin-inline-start: 12px;
}
.btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 26px; border: 0; border-radius: 14px;
    background: var(--grad); background-size: 180% 180%;
    color: #fff; font-family: var(--font-d); font-weight: 600; font-size: 15px;
    box-shadow: var(--shadow-teal);
    transition: transform .25s var(--ease), box-shadow .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgb(from var(--tk-primary, #2E6F8E) r g b / .55); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 24px; border-radius: 14px;
    background: var(--panel); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-d); font-weight: 600; font-size: 15px;
    box-shadow: var(--shadow-card);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* The assembling shield — the crowning hero mark. SVG outline draws, then fill sweeps in */
.hero-shield { position: relative; width: clamp(96px, 26vw, 128px); margin-block-start: 6px; }
.hero-shield svg { width: 100%; height: auto; display: block; overflow: visible; }
.hs-outline {
    fill: none; stroke: var(--accent); stroke-width: 3;
    stroke-dasharray: 760; stroke-dashoffset: 760;
    animation: shieldDraw 1.3s var(--ease) .25s forwards;
}
.hs-fill {
    fill: var(--accent); opacity: 0;
    -webkit-clip-path: inset(0 0 100% 0);
            clip-path: inset(0 0 100% 0);
    animation: shieldFill .5s var(--ease) 1.35s forwards;
}
.hs-glyph { fill: #fff; opacity: 0; animation: shieldGlyph .4s ease 1.7s forwards; }
@keyframes shieldDraw { to { stroke-dashoffset: 0; } }
@keyframes shieldFill { from { opacity: 0; -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); } to { opacity: 1; -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes shieldGlyph { to { opacity: 1; } }
.hero-shield::after { /* soft ground glow */
    content: ""; position: absolute; inset-block-end: -12%; inset-inline: 14%;
    height: 26px; background: var(--accent); opacity: .16; filter: blur(20px); border-radius: 50%; z-index: -1;
}

/* ---------- Trust trio (why-me) ---------- */
.trust-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trust-card {
    display: flex; align-items: center; gap: 15px;
    padding: 18px 20px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform .25s var(--ease), box-shadow .25s ease;
}
.trust-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.trust-ic {
    width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center;
    font-size: 20px; color: var(--accent); background: var(--tint);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
            clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.trust-tt { font-family: var(--font-d); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.trust-sub { color: var(--muted); font-size: 13px; line-height: 1.45; margin-block-start: 2px; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric {
    padding: 22px 18px 18px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.metric::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 36%; height: 3px; background: var(--accent); }
.metric-num { font-family: var(--font-d); font-size: clamp(1.85rem, 6.4vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; color: var(--accent); }
.metric-label { color: var(--muted); font-size: 12.5px; font-weight: 500; margin-block-start: 6px; }

/* ---------- Quick actions (centered flex) ---------- */
.qa-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 28px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 0 1 110px; min-width: 92px;
    padding: 16px 6px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    color: var(--muted); font-size: 12px; font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s ease;
}
.qa-item i { font-size: 18px; color: var(--accent); }
.qa-item:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--txt); box-shadow: var(--shadow-teal); }

/* ---------- Coverage cards (the SIGNATURE shield-corner shape system) ---------- */
.cov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cov-card {
    position: relative; padding: 24px 18px 22px; border-radius: var(--r-md) var(--r-md) var(--shield) var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease;
    overflow: hidden;
    display: flex; flex-direction: column;
}
/* CTA pins to the card bottom so equal-height grid siblings align their actions */
.cov-card .cov-cta { margin-block-start: auto; }
.cov-card .cov-desc { flex: 0 0 auto; }
/* the ownable thread: a shield-tint corner notch cut into the top-inline-end of every coverage card */
.cov-card::before {
    content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0;
    width: 62px; height: 62px; background: var(--tint);
    -webkit-clip-path: polygon(100% 0, 100% 100%, 0 0);
            clip-path: polygon(100% 0, 100% 100%, 0 0);
    transition: background .28s ease;
}
[dir="rtl"] .cov-card::before { -webkit-clip-path: polygon(0 0, 0 100%, 100% 0); clip-path: polygon(0 0, 0 100%, 100% 0); }
/* coverage policy index — a hairline ledger number sitting in the notch */
.cov-idx {
    position: absolute; inset-block-start: 9px; inset-inline-end: 11px; z-index: 2;
    font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--accent); opacity: .55;
}
/* the brief's hover spec: coverage cards lift 2px + cast a soft teal shadow */
.cov-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-teal); border-color: var(--accent); }
.cov-card:hover::before { background: var(--accent-soft); }
.cov-ic {
    position: relative; z-index: 1;
    width: 50px; height: 50px; display: grid; place-items: center;
    font-size: 21px; color: #fff; background: var(--grad);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
            clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
    box-shadow: var(--shadow-teal);
}
.cov-ic img { width: 100%; height: 100%; object-fit: cover; }
.cov-name { font-family: var(--font-d); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-block-start: 14px; }
.cov-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-block-start: 6px; }
.cov-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-block-start: 14px; }
.btn-mini {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0; border: 0; background: transparent;
    font-family: var(--font-d); font-size: 13px; font-weight: 600;
    color: var(--accent);
    transition: gap .2s ease;
}
.btn-mini i { color: var(--accent); font-size: 12px; }
.btn-mini:hover { gap: 11px; }

/* ---------- Plans / packages (products as pricing) ---------- */
.pkg-grid { display: grid; gap: 14px; }
.pkg-card {
    position: relative; border-radius: var(--r-lg); padding: 24px;
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease;
}
.pkg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-teal); border-color: var(--accent); }
.pkg-card.is-featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow-teal); }
.pkg-badge {
    position: absolute; inset-block-start: -11px; inset-inline-start: 22px;
    padding: 4px 14px; border-radius: 999px; font-family: var(--font-d);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: var(--grad); color: #fff;
}
/* plan illustration: 1:1 shield artwork on porcelain — CONTAIN (never crop the shield) on a tint mat */
.pkg-img {
    width: 100%; height: 150px; object-fit: contain; object-position: center;
    border-radius: var(--r-md); margin-block-end: 16px; padding: 14px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgb(from var(--tk-primary, #2E6F8E) r g b / .08), transparent 65%),
        var(--tint);
    border: 1px solid var(--line);
}
.pkg-name { font-family: var(--font-d); font-size: 18px; font-weight: 600; }
.pkg-desc { color: var(--muted); font-size: 14px; margin-block-start: 6px; }
.pkg-price-row { display: flex; align-items: baseline; gap: 10px; margin-block-start: 14px; }
.pkg-price { font-family: var(--font-d); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.pkg-price-old { color: var(--dim); font-size: 15px; text-decoration: line-through; }
.pkg-stock { font-size: 12px; font-weight: 600; margin-block-start: 4px; }
.pkg-stock.ok { color: var(--ok); }
.pkg-stock.out { color: var(--warn); }
.pkg-card .btn-primary { width: 100%; justify-content: center; margin-block-start: 16px; padding-block: 13px; }

/* ---------- Process steps — a connected "shield path" (Compare -> Choose -> Covered) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; }
.step {
    position: relative; display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 4px 16px 4px;
}
/* hairline connector threading the shield nodes (vertical on mobile) */
.step:not(:last-child)::before {
    content: ""; position: absolute; z-index: 0;
    inset-inline-start: 21px; inset-block-start: 46px; bottom: -2px; width: 2px;
    background: linear-gradient(var(--line-2), var(--line-2));
}
[dir="rtl"] .step:not(:last-child)::before { inset-inline-start: auto; inset-inline-end: 21px; }
.step-num {
    counter-increment: step; flex-shrink: 0; position: relative; z-index: 1;
    width: 44px; height: 44px; display: grid; place-items: center;
    font-family: var(--font-d); font-weight: 700; font-size: 16px; color: #fff;
    background: var(--grad); box-shadow: var(--shadow-teal);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
            clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.step-num::before { content: counter(step); }
.step-body { padding-block-start: 8px; }
.step-tt { font-family: var(--font-d); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.step-sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-block-start: 3px; }

/* ---------- Galleries (slow-drift carousel) ---------- */
.car { position: relative; }
.car-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item {
    flex: 0 0 74%; max-width: 340px; scroll-snap-align: center;
    position: relative; border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--bg-2);
    box-shadow: var(--shadow-card);
}
.car-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car-item:hover img { transform: scale(1.04); }
.mas-cap {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 26px 14px 12px; font-size: 12.5px; font-weight: 500; color: #fff;
    background: linear-gradient(transparent, rgba(22, 32, 46, .8));
}
.car-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .9); color: var(--accent); backdrop-filter: blur(8px);
    display: grid; place-items: center; font-size: 14px; z-index: 5;
    box-shadow: var(--shadow-soft);
    transition: background .2s ease, transform .2s ease;
}
.car-nav:hover { background: #fff; }
.car-nav.prev { inset-inline-start: -6px; }
.car-nav.next { inset-inline-end: -6px; }
[dir="rtl"] .car-nav i { transform: scaleX(-1); }
@media (max-width: 759px) { .car-nav { display: none; } }

/* ---------- Reel (videos) ---------- */
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel-item { flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow-soft); }
.reel-item:only-child { flex-basis: 100%; margin-inline: auto; }
.reel-item iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.reel-label { padding: 13px 16px; font-size: 13px; color: var(--muted); background: var(--panel); }

/* ---------- Testimonials (horizontal scroll bar) ---------- */
.tm-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card { flex: 0 0 84%; max-width: 380px; scroll-snap-align: center; position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.tm-card:only-child { margin-inline: auto; }
.tm-mark { position: absolute; inset-block-start: 6px; inset-inline-end: 18px; font-family: var(--font-d); font-weight: 700; font-size: 70px; line-height: 1; opacity: .12; color: var(--accent); }
.tm-stars { display: flex; gap: 3px; color: var(--warn); font-size: 13px; margin-block-end: 12px; }
.tm-text { font-size: 14.5px; color: var(--txt); line-height: 1.6; }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; }
.tm-who img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; border: 1px solid var(--line-2); }
.tm-name { font-family: var(--font-d); font-weight: 600; font-size: 14px; }
.tm-sub { color: var(--dim); font-size: 12px; }

/* ---------- Info / links / iframes ---------- */
.link-grid { display: grid; gap: 10px; }
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.link-card:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: var(--shadow-teal); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
.link-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-size: 16px; flex-shrink: 0; }
.link-label { font-weight: 600; font-size: 14px; font-family: var(--font-d); }
.link-val { color: var(--muted); font-size: 12.5px; word-break: break-word; }
.link-arrow { margin-inline-start: auto; color: var(--dim); }
[dir="rtl"] .link-arrow i { transform: scaleX(-1); }
.iframe-wrap { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin-block-end: 12px; box-shadow: var(--shadow-card); }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Booking / forms ---------- */
.panel {
    position: relative; border-radius: var(--r-lg); padding: 26px 22px;
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.f-label { display: block; font-family: var(--font-d); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: var(--muted); margin-block: 14px 7px; }
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-b); font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-input::placeholder { color: var(--dim); }
select.f-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6B7E' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 16px) center;
    padding-inline-end: 42px; text-overflow: ellipsis;
}
[dir="rtl"] select.f-input { background-position: 16px center; }
select.f-input option { background: var(--panel); color: var(--txt); }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-box { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: rgb(from var(--tk-danger, #B23535) r g b / .08); border: 1px solid rgb(from var(--tk-danger, #B23535) r g b / .3); color: var(--tk-danger, #B23535); }
.alert-success { background: rgb(from var(--tk-success, #2E8B6F) r g b / .08); border: 1px solid rgb(from var(--tk-success, #2E8B6F) r g b / .3); color: var(--ok); }

/* flatpickr light skin */
.flatpickr-calendar { background: var(--panel) !important; border: 1px solid var(--line-2) !important; border-radius: 16px !important; box-shadow: var(--shadow-soft) !important; color: var(--txt) !important; }
.flatpickr-months, .flatpickr-weekdays { background: transparent !important; }
.flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, .flatpickr-weekday { color: var(--txt) !important; fill: var(--txt) !important; }
.flatpickr-day { color: var(--muted) !important; border-radius: 9px !important; }
.flatpickr-day:hover { background: var(--tint) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.flatpickr-day.flatpickr-disabled { color: var(--line-2) !important; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--muted) !important; }

/* ---------- Hours ---------- */
.hour-row { display: flex; justify-content: space-between; align-items: center; padding-block: 11px; border-block-end: 1px solid var(--line); font-size: 14px; }
.hour-row:last-child { border-block-end: 0; }
.hour-day { color: var(--muted); font-weight: 500; }
.hour-time { color: var(--txt); }
.hour-row.today .hour-day, .hour-row.today .hour-time { color: var(--accent); font-weight: 700; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 600; font-size: 15px; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; gap: 12px; }
.pay-card { padding: 18px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.pay-label { font-family: var(--font-d); font-weight: 600; font-size: 14px; margin-block-end: 6px; }
.pay-val { color: var(--muted); font-size: 13.5px; word-break: break-all; }
.pay-img { border-radius: var(--r-sm); max-height: 220px; margin-inline: auto; }

/* ---------- Socials + footer (centered flex) ---------- */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    flex: 0 1 108px; min-width: 96px;
    padding: 18px 8px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    font-size: 12px; color: var(--muted); font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: transform .22s var(--ease), border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.soc-item i { font-size: 21px; color: var(--accent); transition: color .22s ease; }
.soc-item:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--txt); box-shadow: var(--shadow-teal); }
.footer { text-align: center; padding-block: 34px 10px; color: var(--dim); font-size: 12.5px; }
.footer a { color: var(--accent); font-weight: 600; }

/* ---------- Floating action dock ---------- */
.dock {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 70;
    display: flex; justify-content: center;
    padding-block-end: calc(10px + env(safe-area-inset-bottom));
    pointer-events: none;
    transition: transform .35s var(--ease);
}
.dock.dock-hide { transform: translateY(120%); }
.dock-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px -14px rgba(22, 32, 46, .35);
}
.dock-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 58px; padding: 8px 6px; border: 0; background: transparent;
    color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 12px;
    transition: color .2s ease, background .2s ease;
}
.dock-btn i { font-size: 17px; }
.dock-btn:hover, .dock-btn:focus-visible { color: var(--accent); background: var(--tint); }
.dock-btn.dock-main {
    background: var(--grad); color: #fff; border-radius: 16px;
    min-width: 64px; padding-block: 10px;
    box-shadow: var(--shadow-teal);
    transform: translateY(-10px);
}
.dock-btn.dock-main:hover { color: #fff; background: var(--grad); }

/* ---------- Modals ---------- */
.pm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(22, 32, 46, .42); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s ease; padding: 16px;
}
.pm-overlay.show { opacity: 1; }
.pm-box {
    position: relative;
    width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
    border-radius: 22px; padding: 26px 22px;
    background: var(--panel); border: 1px solid var(--line-2);
    box-shadow: 0 30px 70px -20px rgba(22, 32, 46, .4);
    transform: translateY(34px); transition: transform .35s var(--ease);
}
.pm-overlay.show .pm-box { transform: none; }
.pm-title { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pm-sub { color: var(--muted); font-size: 13.5px; margin-block-start: 4px; }
.pm-close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); display: grid; place-items: center; }
.pm-head { position: relative; margin-block-end: 8px; }
.pm-actions { display: flex; gap: 10px; margin-block-start: 20px; }
.pm-actions .btn-ghost, .pm-actions .btn-primary { flex: 1; justify-content: center; }
.qr-wrap { display: grid; place-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; width: fit-content; margin: 18px auto; }
.share-row { display: flex; justify-content: center; gap: 12px; margin-block: 16px; }
.share-row a { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--tint); border: 1px solid var(--line); font-size: 17px; color: var(--accent); transition: transform .2s ease, background .2s ease; }
.share-row a:hover { transform: translateY(-2px); background: var(--accent-soft); }

@media (min-width: 480px) {
    .pm-overlay { align-items: center; }
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .aegis-wrap { max-width: 980px; }
    .sec { padding-block: 62px; }
    .hero { padding-block: 60px 40px; }
    .hero-shield { width: clamp(120px, 14vw, 150px); }
    .hero-title { font-size: clamp(3.4rem, 7vw, 5.4rem); max-width: 14ch; }
    .cov-ledger { gap: 10px; }
    .metrics { grid-template-columns: repeat(4, 1fr); }
    .trust-row { grid-template-columns: repeat(3, 1fr); }
    .trust-card { flex-direction: column; align-items: flex-start; text-align: start; }
    .cov-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: repeat(3, 1fr); }
    .pkg-card.is-featured { transform: scale(1.02); }
    /* steps become a horizontal shield-path on desktop: nodes inline, connector runs across */
    .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .step { flex-direction: column; align-items: flex-start; padding: 4px; }
    .step:not(:last-child)::before {
        inset-inline-start: 44px; inset-inline-end: -18px; inset-block-start: 21px;
        bottom: auto; width: auto; height: 2px;
    }
    [dir="rtl"] .step:not(:last-child)::before { inset-inline-start: -18px; inset-inline-end: 44px; }
    .step-body { padding-block-start: 14px; }
    .reel-item { flex-basis: 56%; }
    .reel-item:only-child { flex-basis: 72%; max-width: 760px; }
    .tm-card { flex-basis: 42%; }
    .tm-card:only-child { flex-basis: 60%; }
    .soc-item { flex-basis: 140px; }
    .qa-item { flex-basis: 200px; }
    .car-item { flex-basis: 38%; }
}

/* ---------- Reduced motion (kill layer) ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-chip .dot { animation: none !important; }
    .rv { opacity: 1; transform: none; transition: none; }
    .hero-load { opacity: 1 !important; transform: none !important; animation: none !important; }
    /* shield renders filled statically — no draw/sweep */
    .hs-outline { stroke-dashoffset: 0 !important; animation: none !important; }
    .hs-fill { opacity: 1 !important; -webkit-clip-path: inset(0 0 0 0) !important; clip-path: inset(0 0 0 0) !important; animation: none !important; }
    .hs-glyph { opacity: 1 !important; animation: none !important; }
}

/* ============================================================
   GLOBAL CONTAINMENT BASELINE — overflow-x:clip on html is
   sticky-safe and stops horizontal pan; overscroll-behavior-x:none
   kills rubber-band; max-width:100% prevents children forcing the
   document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
.car-track, .reel, .tm-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
