/* ============================================================
   LEDGER — Harrow & Vale CPA vCard
   Next-gen ScaanMe theme · audit-grade order, quiet competence
   Design system: hairline ledger rules, right-aligned mono figures,
   aged-brass accounting underlines on deep slate-green.
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   Authority through restraint — no flash, no rainbow gradients.
   ============================================================ */

:root {
    --bg: var(--tk-bg, #0E1512);            /* deep slate-green */
    --bg-2: color-mix(in srgb, var(--tk-bg, #0E1512) 78%, #000);
    --panel: color-mix(in srgb, var(--tk-bg, #0E1512) 86%, #fff);        /* solid ledger panel */
    --panel-2: color-mix(in srgb, var(--tk-bg, #0E1512) 78%, #fff);      /* one tier up */
    --panel-3: color-mix(in srgb, var(--tk-bg, #0E1512) 72%, #fff);      /* hover / catch-light tier */
    --txt: var(--tk-text, #EAF1ED);
    --muted: color-mix(in srgb, var(--tk-text, #EAF1ED) 56%, var(--tk-bg, #0E1512));
    --dim: color-mix(in srgb, var(--tk-text, #EAF1ED) 34%, var(--tk-bg, #0E1512));
    --accent: var(--tk-primary, #C9A24B);       /* aged brass — the SINGLE accent */
    --accent-soft: rgb(from var(--tk-primary, #C9A24B) r g b / .14);
    --accent-line: rgb(from var(--tk-secondary, #C9A24B) r g b / .42);
    --line: rgb(from var(--tk-secondary, #C9A24B) r g b / .18);   /* hairline ledger rule */
    --line-2: rgb(from var(--tk-text, #EAF1ED) r g b / .10);
    --paper: #FAF8F2;        /* light-variant token (QR card, etc.) */
    --ok: var(--tk-success, #7FB69B);           /* muted ledger green for "in good standing" */
    --r-lg: 14px;
    --r-md: 11px;
    --r-sm: 8px;
    /* type: Fraunces optical serif (display), IBM Plex Sans (body),
       IBM Plex Mono (figures), IBM Plex Sans Arabic (RTL sibling) */
    --font-d: var(--tk-font-header, 'Fraunces'), 'IBM Plex Sans Arabic', Georgia, serif;
    --font-b: var(--tk-font-content, 'IBM Plex Sans'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-num: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
    --dock-h: 72px;
    --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.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    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; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

::selection { background: var(--accent); color: color-mix(in srgb, var(--tk-primary, #C9A24B) 22%, #000); }

/* ---------- Ambient background system (CSS-only, reduced-motion killed) ----------
   A faint ruled-ledger paper: horizontal hairlines + one brass margin rule.
   Static, GPU-cheap. Only the desk-lamp glow drifts (transform). */
.fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.fx-rule {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(
        to bottom, transparent 0, transparent 33px,
        rgb(from var(--tk-text, #EAF1ED) r g b / .022) 33px, rgb(from var(--tk-text, #EAF1ED) r g b / .022) 34px);
}
.fx-margin {
    position: absolute; inset-block: 0; inset-inline-start: 38px;
    width: 1px; background: var(--line); opacity: .5;
}
.fx-lamp {
    position: absolute; inset-block-start: -14%; inset-inline-end: -10%;
    width: 70vw; height: 70vw; max-width: 640px; max-height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgb(from var(--tk-primary, #C9A24B) r g b / .16), transparent 62%);
    filter: blur(18px); will-change: transform;
    animation: lampDrift 30s ease-in-out infinite alternate;
}
@keyframes lampDrift { to { transform: translate(-6vw, 5vh) scale(1.08); } }

/* ---------- Layout ---------- */
.ldg-wrap { max-width: 680px; margin-inline: auto; padding-inline: 20px; padding-block-end: calc(var(--dock-h) + 28px); }
.sec { padding-block: 46px; }
.sec-head { margin-block-end: 24px; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-num); font-size: 11px; font-weight: 500;
    letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
/* Fraunces display — heavy optical weight, real jump above body */
.sec-title {
    font-family: var(--font-d); font-size: clamp(1.85rem, 6vw, 2.5rem);
    font-weight: 620; letter-spacing: -.012em; line-height: 1.08;
    margin-block-start: 12px;
    font-optical-sizing: auto;
}
/* brass accounting underrule beneath section titles — the ownable device */
.sec-title::after {
    content: ""; display: block; width: 54px; height: 2px;
    margin-block-start: 12px; background: var(--accent);
    box-shadow: 0 3px 0 -1px var(--accent-line);
}
.sec-sub { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-block-start: 14px; max-width: 54ch; }

/* ---------- Reveal choreography (scroll) ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; } .rv-d2 { transition-delay: .14s; } .rv-d3 { transition-delay: .21s; }

/* ---------- Hero page-load sequence ---------- */
.hero-load { opacity: 0; transform: translateY(16px); animation: heroIn .8s var(--ease) forwards; }
.hl-1 { animation-delay: .05s; }
.hl-2 { animation-delay: .14s; }
.hl-3 { animation-delay: .24s; }
.hl-4 { animation-delay: .40s; }
.hl-5 { animation-delay: .52s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } 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: 11px 20px;
    background: rgb(from var(--tk-bg, #0E1512) r g b / .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-block-end: 1px solid var(--line);
}
.topbar-avatar { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; border: 1px solid var(--accent-line); }
.topbar-name { font-family: var(--font-d); font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Hero (typographic statement) ---------- */
.hero { padding-block: 44px 26px; position: relative; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    font-family: var(--font-num); font-size: 11px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(from var(--tk-success, #7FB69B) r g b / .5); animation: pulse-dot 2.6s ease-out infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px rgb(from var(--tk-success, #7FB69B) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-success, #7FB69B) r g b / 0); } }

.hero-brand {
    margin-block-start: 22px;
    font-family: var(--font-num); font-weight: 500; font-size: 12.5px;
    letter-spacing: .22em; text-transform: uppercase; line-height: 1; color: var(--muted);
    display: flex; align-items: center; gap: 12px;
}
.hero-brand::after { content: ""; flex: 0 0 30px; height: 1px; background: linear-gradient(90deg, var(--accent-line), transparent); }
[dir="rtl"] .hero-brand::after { background: linear-gradient(270deg, var(--accent-line), transparent); }

/* The statement — huge Fraunces line + brass underrule */
.hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.7rem, 11vw, 4.4rem);
    font-weight: 620; letter-spacing: -.03em; line-height: 1.0;
    margin-block-start: 14px; text-wrap: balance;
    font-optical-sizing: auto;
}
.hero-title .grad-word {
    color: var(--txt); position: relative; display: inline;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 3px;
    padding-block-end: 4px;
    animation: ruleDraw 1.1s var(--ease) .6s forwards;
}
/* brass accounting-rule that draws itself under the headline word */
@keyframes ruleDraw { to { background-size: 100% 3px; } }
[dir="rtl"] .hero-title .grad-word { background-position: 100% 100%; }

.hero-desc { margin-block-start: 18px; color: var(--muted); font-size: 15.5px; max-width: 54ch; }
.hero-desc p { margin-block-end: .6em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 24px; border: 1px solid var(--accent); border-radius: var(--r-md);
    background: var(--accent);
    color: color-mix(in srgb, var(--tk-primary, #C9A24B) 22%, #000); font-family: var(--font-b); font-weight: 600; font-size: 14.5px;
    letter-spacing: .01em;
    box-shadow: 0 10px 26px -14px rgb(from var(--tk-primary, #C9A24B) r g b / .7);
    transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease;
}
.btn-primary i { font-size: 14px; }
.btn-primary:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--tk-primary, #C9A24B) 84%, #fff); box-shadow: 0 16px 34px -14px rgb(from var(--tk-primary, #C9A24B) r g b / .85); }
.btn-primary:active { transform: translateY(0) scale(.99); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 22px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    color: var(--txt); font-family: var(--font-b); font-weight: 600; font-size: 14.5px;
    transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--panel-2); transform: translateY(-2px); }

/* ---------- Trust ribbon (credential hairline chips) ---------- */
.ribbon {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-block-start: 30px; padding-block: 22px;
    border-block: 1px solid var(--line);
}
.ribbon-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 15px; border-radius: 999px;
    background: transparent; border: 1px solid var(--line);
    font-family: var(--font-num); font-size: 11.5px; font-weight: 500;
    letter-spacing: .08em; color: var(--muted);
    /* wrap long credentials instead of forcing a chip wider than the viewport */
    max-width: 100%; text-align: center; line-height: 1.4;
    transition: border-color .22s ease, color .22s ease;
}
.ribbon-chip i { font-size: 13px; color: var(--accent); flex: 0 0 auto; }
.ribbon-chip:hover { border-color: var(--accent-line); color: var(--txt); }

/* ---------- Tally metrics trio (count-up) ---------- */
.metrics { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.metric {
    position: relative; padding: 22px 22px;
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    border-block-end: 1px solid var(--line);
    box-shadow: inset 0 1px 0 var(--line-2);
}
.metric:last-child { border-block-end: 0; }
.metric-num {
    font-family: var(--font-num); font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: clamp(1.7rem, 6.4vw, 2.3rem); font-weight: 600; letter-spacing: -.01em;
    color: var(--accent); line-height: 1; white-space: nowrap;
}
.metric-label { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .01em; text-align: end; max-width: 56%; }

/* ---------- 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 108px; min-width: 92px;
    padding: 16px 8px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    color: var(--muted); font-size: 12px; font-weight: 500;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.qa-item i { font-size: 18px; color: var(--accent); }
.qa-item:hover { transform: translateY(-3px); border-color: var(--accent-line); color: var(--txt); }

/* ---------- Services ledger (itemized list w/ right-aligned mono fee column) ---------- */
.ledger { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.ledger-row {
    position: relative; display: flex; align-items: flex-start; gap: 16px;
    padding: 20px 20px; border-block-end: 1px solid var(--line);
    transition: background .22s ease;
}
.ledger-row:last-child { border-block-end: 0; }
.ledger-row:hover { background: var(--panel-2); }
.ledger-ic {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--r-sm);
    display: grid; place-items: center; font-size: 16px; color: var(--accent);
    background: var(--accent-soft); border: 1px solid var(--line);
    overflow: hidden;
}
.ledger-ic img { width: 100%; height: 100%; object-fit: cover; }
.ledger-body { flex: 1; min-width: 0; }
.ledger-name { font-family: var(--font-d); font-size: 17px; font-weight: 600; letter-spacing: -.005em; line-height: 1.25; }
.ledger-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-block-start: 5px; }
.ledger-fee {
    flex: 0 0 auto; text-align: end; padding-block-start: 2px;
}
.ledger-fee .fee-tag { display: block; font-family: var(--font-num); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ledger-fee .fee-amt { display: block; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 17px; font-weight: 600; color: var(--accent); white-space: nowrap; margin-block-start: 3px; }
.ledger-cta { margin-block-start: 12px; }
.btn-mini {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0; border: 0; background: transparent;
    font-family: var(--font-b); font-size: 13px; font-weight: 600; letter-spacing: .01em;
    color: var(--accent);
    transition: gap .2s ease;
}
.btn-mini i { color: var(--accent); font-size: 12px; }
.btn-mini:hover { gap: 12px; }
.btn-mini + .btn-mini { margin-inline-start: 18px; }

/* ---------- Packages (products as engagement tiers) ---------- */
.pkg-grid { display: grid; gap: 14px; }
.pkg-card {
    position: relative; border-radius: var(--r-lg); padding: 24px 22px;
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 var(--line-2);
    transition: transform .28s var(--ease), border-color .28s ease;
}
.pkg-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.pkg-card.is-featured {
    border-color: var(--accent);
    box-shadow: 0 22px 50px -28px rgb(from var(--tk-primary, #C9A24B) r g b / .55), inset 0 1px 0 var(--accent-soft);
}
.pkg-badge {
    position: absolute; inset-block-start: -10px; inset-inline-start: 22px;
    padding: 4px 13px; border-radius: 999px; font-family: var(--font-num);
    font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    background: var(--accent); color: color-mix(in srgb, var(--tk-primary, #C9A24B) 22%, #000);
}
.pkg-img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--r-md); margin-block-end: 16px; 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: 13.5px; margin-block-start: 6px; }
.pkg-price-row { display: flex; align-items: baseline; gap: 10px; margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.pkg-price { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.pkg-price-old { color: var(--dim); font-size: 14px; text-decoration: line-through; font-family: var(--font-num); }
.pkg-stock { font-family: var(--font-num); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-block-start: 6px; }
.pkg-stock.ok { color: var(--ok); }
.pkg-stock.out { color: var(--muted); }
.pkg-card .btn-primary { width: 100%; justify-content: center; margin-block-start: 18px; padding-block: 12px; }

/* ---------- Process timeline (Onboard → Reconcile → File → Advise) ---------- */
.timeline { position: relative; padding-inline-start: 30px; }
.timeline::before {
    content: ""; position: absolute; inset-block: 6px 6px; inset-inline-start: 9px;
    width: 1px; background: linear-gradient(var(--accent-line), var(--line));
}
.tl-step { position: relative; padding-block: 4px 22px; }
.tl-step:last-child { padding-block-end: 0; }
.tl-dot {
    position: absolute; inset-inline-start: -30px; inset-block-start: 3px;
    width: 19px; height: 19px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--accent);
    display: grid; place-items: center;
    font-family: var(--font-num); font-size: 9.5px; font-weight: 600; color: var(--accent);
}
.tl-num { font-family: var(--font-num); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.tl-title { font-family: var(--font-d); font-size: 17px; font-weight: 600; margin-block-start: 3px; }
.tl-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-block-start: 5px; }

/* ---------- Work (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: 320px; scroll-snap-align: center;
    position: relative; border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--panel);
}
.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: 24px 14px 11px; font-family: var(--font-num); font-size: 11.5px; letter-spacing: .04em; color: #fff;
    background: linear-gradient(transparent, rgb(from var(--tk-bg, #0E1512) r g b / .9));
}
.car-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent-line);
    background: rgb(from var(--tk-bg, #0E1512) r g b / .88); color: var(--accent); backdrop-filter: blur(8px);
    display: grid; place-items: center; font-size: 13px; z-index: 5;
    transition: background .2s ease;
}
.car-nav:hover { background: var(--panel-3); }
.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; }
.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: 12px 16px; font-size: 13px; color: var(--muted); background: var(--panel); font-family: var(--font-num); letter-spacing: .03em; }

/* ---------- 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: 360px; 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: inset 0 1px 0 var(--line-2);
}
.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: 620; font-size: 64px; line-height: 1; opacity: .2; color: var(--accent); }
.tm-stars { display: flex; gap: 3px; color: var(--accent); font-size: 12px; margin-block-end: 12px; }
.tm-text { font-size: 15px; color: var(--txt); font-family: var(--font-d); font-weight: 400; line-height: 1.5; }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.tm-who img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--accent-line); }
.tm-name { font-family: var(--font-b); font-weight: 600; font-size: 13.5px; }
.tm-sub { color: var(--dim); font-family: var(--font-num); font-size: 11px; letter-spacing: .04em; }

/* ---------- Info / links / iframes ---------- */
.link-grid { display: grid; gap: 10px; }
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 18px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    transition: transform .2s ease, border-color .2s ease;
}
.link-card:hover { transform: translateX(4px); border-color: var(--accent-line); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
.link-ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--line); font-size: 15px; color: var(--accent); flex-shrink: 0; }
.link-label { font-weight: 600; font-size: 14px; font-family: var(--font-b); }
.link-val { color: var(--muted); font-family: var(--font-num); font-size: 12px; 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; }
.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: inset 0 1px 0 var(--line-2), 0 18px 44px -34px rgba(0, 0, 0, .9);
}
.panel-note {
    display: flex; align-items: flex-start; gap: 10px; margin-block-start: 16px;
    padding: 12px 14px; border-radius: var(--r-md);
    background: var(--accent-soft); border: 1px solid var(--line);
    font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.panel-note i { color: var(--accent); font-size: 14px; margin-block-start: 1px; }
.f-label { display: block; font-family: var(--font-num); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; color: var(--muted); margin-block: 14px 7px; text-transform: uppercase; }
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
    background: var(--bg-2); 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;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--accent); 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='%238FA39A' 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: 12px 15px; border-radius: var(--r-sm); font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: rgb(from var(--tk-danger, #BE5A5A) r g b / .1); border: 1px solid rgb(from var(--tk-danger, #BE5A5A) r g b / .35); color: color-mix(in srgb, var(--tk-danger, #BE5A5A) 60%, #fff); }
.alert-success { background: rgb(from var(--tk-success, #7FB69B) r g b / .1); border: 1px solid rgb(from var(--tk-success, #7FB69B) r g b / .35); color: var(--ok); }

/* flatpickr ledger skin */
.flatpickr-calendar { background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7) !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: 8px !important; }
.flatpickr-day:hover { background: var(--panel-2) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--accent) !important; border-color: var(--accent) !important; color: color-mix(in srgb, var(--tk-primary, #C9A24B) 22%, #000) !important; }
.flatpickr-day.flatpickr-disabled { color: rgb(from var(--tk-text, #EAF1ED) r g b / .14) !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 { font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--txt); font-size: 13.5px; }
.hour-row.today .hour-day, .hour-row.today .hour-time { color: var(--accent); font-weight: 600; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: 15px; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 270px; 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); }
.pay-label { font-family: var(--font-d); font-weight: 600; font-size: 14px; margin-block-end: 6px; }
.pay-val { color: var(--muted); font-family: var(--font-num); font-size: 13px; 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 106px; min-width: 94px;
    padding: 18px 8px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    font-size: 12px; color: var(--muted); font-weight: 500;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.soc-item i { font-size: 21px; color: var(--accent); transition: color .2s ease; }
.soc-item:hover { transform: translateY(-3px); border-color: var(--accent-line); color: var(--txt); }
.footer { text-align: center; padding-block: 32px 10px; color: var(--dim); font-size: 12.5px; font-family: var(--font-num); letter-spacing: .02em; }
.footer a { color: var(--muted); }

/* ---------- 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(130%); }
.dock-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
    padding: 7px 11px; border-radius: 20px;
    background: rgb(from color-mix(in srgb, var(--tk-bg, #0E1512) 86%, #fff) r g b / .92);
    border: 1px solid var(--accent-line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .8);
}
.dock-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 56px; 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: 16px; }
.dock-btn:hover, .dock-btn:focus-visible { color: var(--txt); background: var(--panel-2); }
.dock-btn.dock-main {
    background: var(--accent); color: color-mix(in srgb, var(--tk-primary, #C9A24B) 22%, #000); border-radius: 14px;
    min-width: 62px; padding-block: 10px;
    box-shadow: 0 10px 24px -10px rgb(from var(--tk-primary, #C9A24B) r g b / .7);
    transform: translateY(-9px);
}
.dock-btn.dock-main i { color: color-mix(in srgb, var(--tk-primary, #C9A24B) 22%, #000); }

/* ---------- Modals ---------- */
.pm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgb(from color-mix(in srgb, var(--tk-bg, #0E1512) 55%, #000) r g b / .74); 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: 460px; max-height: 86vh; overflow-y: auto;
    border-radius: var(--r-lg); padding: 26px 22px;
    background: var(--panel); border: 1px solid var(--accent-line);
    transform: translateY(30px); transition: transform .35s var(--ease);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
}
.pm-overlay.show .pm-box { transform: none; }
.pm-title { font-family: var(--font-d); font-size: 20px; font-weight: 620; letter-spacing: -.005em; }
.pm-sub { color: var(--muted); font-size: 13.5px; margin-block-start: 4px; }
.pm-close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }
.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: 16px; background: var(--paper); border-radius: var(--r-md); 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: var(--r-sm); display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); font-size: 17px; color: var(--accent); transition: transform .2s ease, border-color .2s ease; }
.share-row a:hover { transform: translateY(-3px); border-color: var(--accent-line); }

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

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .ldg-wrap { max-width: 960px; }
    .sec { padding-block: 60px; }
    .hero { padding-block: 76px 38px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 44px; align-items: center; }
    .hero-visual { display: block; }
    .metrics { grid-template-columns: repeat(3, 1fr); }
    .metric { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; border-block-end: 0; border-inline-end: 1px solid var(--line); }
    .metric:last-child { border-inline-end: 0; }
    .metric-label { text-align: start; max-width: none; }
    .pkg-grid { grid-template-columns: repeat(3, 1fr); }
    .pkg-card.is-featured { transform: scale(1.02); }
    .reel-item { flex-basis: 56%; }
    .reel-item:only-child { flex-basis: 72%; max-width: 760px; }
    .tm-card { flex-basis: 44%; }
    .tm-card:only-child { flex-basis: 60%; }
    .soc-item { flex-basis: 138px; }
    .qa-item { flex-basis: 190px; }
    .car-item { flex-basis: 32%; }
}

/* Hero visual card (desktop) — framed advisor portrait, brass-lit */
.hero-visual { display: none; position: relative; }
.hv-card {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--accent-line);
    box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .9);
}
.hv-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 6px rgb(from var(--tk-primary, #C9A24B) r g b / .08); pointer-events: none; }
.hv-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hv-glow { position: absolute; inset-block-start: -20px; inset-inline-end: -20px; width: 60%; height: 60%; background: radial-gradient(circle, rgb(from var(--tk-primary, #C9A24B) r g b / .3), transparent 65%); filter: blur(50px); z-index: -1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-lamp, .hero-chip .dot { animation: none !important; }
    .hero-title .grad-word { animation: none !important; background-size: 100% 3px !important; }
    .rv { opacity: 1; transform: none; transition: none; }
    .hero-load { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   GLOBAL CONTAINMENT BASELINE — stops horizontal pan / wiggle.
   overflow-x:clip on html is sticky-safe; overscroll-behavior-x
   kills the rubber-band; max-width:100% prevents children from
   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;
}
