/* ============ Tokens ============ */
:root {
  --ink: #0F0C52;        /* deep navy — dark sections */
  --navy: #1A1680;       /* logo wordmark navy — headings */
  --blue: #2316D6;       /* logo blue */
  --plum: #8A1F78;       /* logo plum */
  --lilac: #B9B2FF;      /* light accent on dark */
  --paper: #F3F3FA;      /* cool page tint */
  --white: #FFFFFF;
  --line: #DFE0F1;
  --muted: #5C5B80;
  --wa: #17A34A;

  --grad: linear-gradient(100deg, var(--blue) 0%, #5A1AA8 55%, var(--plum) 100%);
  --grad-light: linear-gradient(100deg, #A39BFF 0%, #D58BE6 60%, #F29BC9 100%);
  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, monospace;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 12, 82, .06), 0 14px 34px -14px rgba(15, 12, 82, .22);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.75;
  color: var(--ink); background: var(--white); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.num { font-family: var(--f-num); font-weight: 600; letter-spacing: .02em; unicode-bidi: isolate; direction: ltr; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }


/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-solid { background: var(--grad); color: var(--white); box-shadow: 0 10px 24px -10px rgba(35, 22, 214, .7); }
.btn-solid:hover { box-shadow: 0 14px 30px -10px rgba(35, 22, 214, .85); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #138C3F; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { box-shadow: 0 0 0 5px rgba(255, 255, 255, .16); }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, .32); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(223, 224, 241, .7);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 30px; width: auto; }
.brand-text { height: 23px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-inline-start: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15.5px; color: var(--muted); transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--navy); background: var(--paper); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: 96px 0 150px;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(138, 31, 120, .55), transparent 70%),
    radial-gradient(55% 80% at 0% 100%, rgba(35, 22, 214, .65), transparent 70%),
    var(--ink);
}
.hero-watermark {
  position: absolute; width: min(1040px, 95vw); left: -14%; top: 4%;
  opacity: .07; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  font-family: var(--f-display); font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, .86);
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.open-status { color: #9EF0BE; border-color: rgba(59, 219, 124, .35); background: rgba(59, 219, 124, .08); }
.open-status.is-closed { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
.open-status.is-closed .pulse-dot { background: #F2A33B; animation: none; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #3BDB7C; box-shadow: 0 0 0 0 rgba(59, 219, 124, .6); animation: dot 2.2s infinite; }
@keyframes dot { 70% { box-shadow: 0 0 0 9px rgba(59, 219, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 219, 124, 0); } }
.hero-title {
  margin-top: 26px;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(50px, 8.6vw, 124px); line-height: 1.12; letter-spacing: -.015em;
}
.grad-light { background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding-bottom: .06em; }
.hero-lead { margin-top: 26px; font-size: 19.5px; color: rgba(255, 255, 255, .76); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 44px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .82); }
.hero-trust svg { width: 22px; height: 22px; fill: none; stroke: var(--lilac); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Ribbons (signature: crossing bands like the logo strokes) ============ */
.ribbons { position: relative; z-index: 3; height: 230px; margin: -115px 0 -40px; overflow: hidden; pointer-events: none; }
.ribbon {
  position: absolute; left: -10%; right: -10%; top: 50%; height: 70px;
  display: flex; align-items: center; overflow: hidden; direction: ltr;
}
.ribbon-front {
  transform: translateY(-50%) rotate(-4.5deg);
  background: var(--grad); color: var(--white);
  box-shadow: 0 22px 44px -18px rgba(35, 22, 214, .7);
}
.ribbon-back {
  transform: translateY(-50%) rotate(3.2deg);
  background: var(--white); color: var(--navy);
  box-shadow: 0 12px 30px -14px rgba(15, 12, 82, .35);
}
.ribbon-track { display: flex; width: max-content; direction: ltr; animation: rb 70s linear infinite; }
.ribbon-back .ribbon-track { animation-direction: reverse; animation-duration: 85s; }
.rb-run { display: flex; align-items: center; gap: 30px; padding-inline-end: 30px; }
.rb-item { font-family: var(--f-display); font-weight: 800; font-size: 27px; white-space: nowrap; line-height: 1; }
.rb-sep { width: 24px; height: 13px; fill: currentColor; opacity: .45; flex: none; }
.ribbon-back .rb-sep { fill: var(--plum); opacity: .7; }
@keyframes rb { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Blocks ============ */
.block { padding: 104px 0 96px; }
.block-tint { background: var(--paper); }
.block-picker { background: var(--paper); padding-top: 72px; }
.block-head { margin-bottom: 40px; max-width: 660px; }
.block-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow { font-family: var(--f-display); font-weight: 500; font-size: 14px; color: var(--plum); margin-bottom: 10px; }
.block-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.25; color: var(--navy); }
.block-lead { margin-top: 12px; color: var(--muted); }

/* ============ Device picker ============ */
.picker-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dev {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
  min-height: 132px; padding: 20px 18px 18px; text-align: start;
  background: var(--white); border: 1.5px solid transparent; border-radius: var(--r-md);
  box-shadow: 0 1px 2px rgba(15, 12, 82, .05);
  transition: border-color .2s, transform .2s, box-shadow .2s, background-color .2s;
}
.dev:hover { border-color: rgba(35, 22, 214, .35); transform: translateY(-2px); box-shadow: var(--shadow); }
.dev-ico { width: 42px; height: 42px; fill: none; stroke: var(--navy); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.dev-name { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; line-height: 1.35; color: var(--navy); transition: color .2s; }
.dev[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); box-shadow: 0 16px 30px -14px rgba(15, 12, 82, .6); }
.dev[aria-pressed="true"] .dev-ico { stroke: var(--lilac); }
.dev[aria-pressed="true"] .dev-name { color: var(--white); }
.dev[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 16px; left: 16px; width: 26px; height: 8px;
  background: var(--grad-light); transform: skewX(-30deg); border-radius: 2px;
}
.dev-other { background: transparent; border: 1.5px dashed #C3C4E2; box-shadow: none; }
.extras { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.extras em { font-style: normal; font-weight: 600; color: var(--navy); padding: 3px 12px; border-radius: 999px; background: var(--white); }

/* ticket */
.ticket {
  position: sticky; top: 96px;
  background: var(--white); border-radius: 24px;
  box-shadow: 0 2px 4px rgba(15, 12, 82, .05), 0 30px 60px -30px rgba(15, 12, 82, .45);
}
.ticket-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-radius: 24px 24px 0 0;
  background: var(--grad); color: var(--white);
}
.ticket-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.ticket-label::before { content: ""; width: 18px; height: 7px; background: rgba(255, 255, 255, .75); transform: skewX(-30deg); border-radius: 2px; }
.ticket-date { font-size: 13.5px; opacity: .85; }
.ticket-body { padding: 22px 22px 18px; }
.ticket-device { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ticket-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--paper); flex: none; }
.ticket-ico-empty { background: transparent; border: 2px dashed #C3C4E2; }
.ticket-svg { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.ticket-ico.pop { animation: pop .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.6) rotate(-8deg); } 100% { transform: none; } }
.ticket-k { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
.ticket-k small { font-size: 12.5px; opacity: .8; }
.ticket-device .ticket-k { margin-bottom: 2px; }
.ticket-v { font-family: var(--f-display); font-weight: 800; font-size: 23px; line-height: 1.35; color: var(--navy); }
.ticket-row { margin-top: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--navy);
  transition: background-color .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: var(--blue); }
.pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ticket-tear {
  position: relative; height: 28px;
  background:
    radial-gradient(circle at 0 50%, var(--paper) 13px, transparent 14px),
    radial-gradient(circle at 100% 50%, var(--paper) 13px, transparent 14px);
}
.ticket-tear::after { content: ""; position: absolute; top: 50%; left: 24px; right: 24px; border-top: 2px dashed var(--line); }
.ticket-foot { padding: 4px 22px 22px; }
.ticket-preview {
  white-space: pre-line; font-size: 14.5px; line-height: 1.75; color: var(--ink);
  background: #E9F8EF; border-radius: 14px 14px 14px 4px; padding: 12px 16px; margin-bottom: 14px;
}

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 28px 24px; background: var(--white); border-radius: var(--r-md); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad); color: var(--white);
  font-family: var(--f-num); font-weight: 600; font-size: 18px; margin-bottom: 18px; transform: skewX(-10deg);
}
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--navy); }
.step p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.65; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 49px; inset-inline-end: -12px; width: 8px; height: 8px;
  border-top: 2px solid #C3C4E2; border-left: 2px solid #C3C4E2; transform: rotate(-45deg);
}

/* ============ Branches ============ */
.locate-msg { min-height: 1.6em; margin: -20px 0 18px; font-weight: 600; color: var(--plum); font-size: 15.5px; }
.branches-layout { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-areas: "list map"; gap: 24px; align-items: start; }
.branch-list { grid-area: list; display: flex; flex-direction: column; gap: 12px; }
.map-card { grid-area: map; position: sticky; top: 96px; background: var(--paper); border-radius: var(--r-lg); padding: 18px; overflow: hidden; }
.map { width: 100%; height: auto; }
.map-caption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.map-slashes path { stroke: var(--line); stroke-width: 22; }
.map-ref circle:first-child { fill: none; stroke: #C9CAE6; stroke-width: 1.2; stroke-dasharray: 3 5; }
.map-ref circle:nth-child(2) { fill: #A7A8CC; }
.map-ref text, .map-compass text { font-family: var(--f-body); font-size: 12px; fill: #8D8CAE; }
.map-compass path { fill: var(--navy); }
.pin { cursor: pointer; outline: none; }
.pin-dot { fill: url(#pinGrad); stroke: var(--white); stroke-width: 3; transition: r .2s; }
.pin-core { fill: var(--white); }
.pin-pulse { fill: var(--plum); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin-label { font-family: var(--f-display); font-weight: 700; font-size: 15px; fill: var(--navy); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.pin.is-active .pin-dot { r: 13; }
.pin.is-active .pin-pulse { animation: pulse 1.8s ease-out infinite; }
.pin.is-active .pin-label { fill: var(--plum); }
.pin:focus-visible .pin-dot { stroke: var(--blue); }
@keyframes pulse { 0% { opacity: .45; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.6); } }
.me circle { fill: var(--wa); stroke: var(--white); stroke-width: 3; }
.me text { font-family: var(--f-body); font-size: 12px; font-weight: 600; fill: var(--wa); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }

.branch { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.branch.is-active { border-color: transparent; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(35, 22, 214, .35); }
.branch-top { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; text-align: start; }
.branch-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--grad); box-shadow: 0 0 0 4px rgba(35, 22, 214, .1); }
.branch-titles { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.branch-name { display: block; font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--navy); line-height: 1.4; }
.branch-area { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.branch-dist { font-family: var(--f-num); font-size: 13px; font-weight: 600; color: var(--plum); background: rgba(138, 31, 120, .08); padding: 4px 10px; border-radius: 999px; direction: rtl; }
.branch:not(.is-active) .branch-body { display: none; }
.branch-phone { display: block; padding: 0 20px; font-size: clamp(26px, 3vw, 32px); color: var(--ink); }
.branch-phone .num { display: inline-block; }
.branch-hours { position: relative; margin: 12px 20px 0; padding: 12px 14px; padding-inline-start: 44px; background: var(--paper); border-radius: var(--r-sm); font-size: 14.5px; }
.hours-ico { position: absolute; inset-inline-start: 14px; top: 14px; width: 20px; height: 20px; color: var(--muted); }
.branch-hours li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; line-height: 1.8; }
.branch-hours li + li { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.branch-hours li span:last-child { text-align: end; }
.branch-status {
  font-family: var(--f-display); font-size: 12.5px; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: 999px; color: #8A5A00; background: #FFF1D6;
}
.branch-status.is-open { color: #0E7A37; background: #DDF6E6; }
.branch-hours li span:first-child { color: var(--muted); }
.branch-hours li span:last-child { font-weight: 600; color: var(--navy); }
.branch-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 20px 20px; }
.act { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--r-sm); font-family: var(--f-display); font-weight: 700; font-size: 15px; transition: filter .2s; }
.act svg { width: 19px; height: 19px; fill: currentColor; }
.act:hover { filter: brightness(1.08); }
.act-call { background: var(--grad); color: var(--white); }
.act-wa { background: var(--wa); color: var(--white); }
.act-dir { background: var(--paper); color: var(--navy); }
.branch-soon { border-style: dashed; border-color: #C9CAE6; background: transparent; }
.branch-soon .branch-dot { background: transparent; border: 2px dashed #A7A8CC; box-shadow: none; }
.branch-soon .branch-name { color: var(--muted); }
.soon-tag { font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--plum); border: 1.5px solid currentColor; padding: 3px 12px; border-radius: 999px; }

/* ============ CTA ============ */
.cta { padding: 0 0 96px; }
.cta-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: 56px; border-radius: var(--r-lg); color: var(--white);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(138, 31, 120, .75), transparent 60%),
    radial-gradient(70% 140% at 0% 100%, rgba(35, 22, 214, .8), transparent 60%),
    var(--ink);
}
.cta-slab { position: absolute; top: 18%; inset-inline-start: -10%; width: 70%; height: 26%; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0)); transform: rotate(-11deg); pointer-events: none; }
.cta-inner > div { position: relative; }
.cta-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 4vw, 48px); line-height: 1.3; }
.cta-lead { margin-top: 8px; color: rgba(255, 255, 255, .78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 40px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 16px; }
.footer-h { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 14px; }
.footer-phones li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-phones a { color: var(--white); }
.footer-phones a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--white); transition: background-color .2s; }
.socials a:hover { background: rgba(255, 255, 255, .18); }
.socials svg { width: 21px; height: 21px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.footer-bottom a:hover { color: var(--white); }

.wa-float {
  position: fixed; bottom: 20px; left: 20px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 12px 28px -8px rgba(23, 163, 74, .6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ============ Motion ============ */
.js .reveal, .js .dev, .js .step, .js .map-card, .js .ticket {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s, background-color .2s;
}
.js .in { opacity: 1; transform: none; }
.js .dev.in:hover { transform: translateY(-2px); }
.js .hero-inner .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero-inner .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero-inner .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero-inner .reveal:nth-child(5) { transition-delay: .32s; }
.js .step:nth-child(2) { transition-delay: .06s; }
.js .step:nth-child(3) { transition-delay: .12s; }
.js .step:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .device-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-row { justify-content: space-between; }
  .hero { padding: 64px 0 150px; }
  .hero-watermark { width: 130vw; left: -40%; top: 30%; }
  .picker-layout { grid-template-columns: 1fr; }
  .ticket { position: relative; top: 0; scroll-margin-top: 88px; }
  .branches-layout { grid-template-columns: 1fr; grid-template-areas: "map" "list"; }
  .map-card { position: relative; top: 0; padding: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-inner { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-text { height: 20px; }
  .brand-mark { height: 26px; }
  .btn-sm span { display: none; }
  .btn-sm { width: 44px; padding: 0; }
  .hero { padding: 44px 0 130px; }
  .hero-eyebrow { font-size: 12.5px; padding: 5px 12px; }
  .hero-title { margin-top: 20px; font-size: 42px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 32px; }
  .hero-trust li { font-size: 14px; }
  .ribbons { height: 170px; margin: -85px 0 -30px; }
  .ribbon { height: 50px; }
  .rb-item { font-size: 19px; }
  .rb-run { gap: 20px; padding-inline-end: 20px; }
  .rb-sep { width: 18px; height: 10px; }
  .block { padding: 72px 0 64px; }
  .block-picker { padding-top: 52px; }
  .device-grid { gap: 8px; }
  .dev { min-height: 104px; padding: 14px 10px 12px; align-items: center; text-align: center; gap: 10px; justify-content: center; }
  .dev-ico { width: 34px; height: 34px; }
  .dev-name { font-size: 13.5px; }
  .dev[aria-pressed="true"]::after { top: 10px; left: 10px; width: 16px; height: 6px; }
  .ticket-body { padding: 18px 16px 14px; }
  .ticket-foot { padding: 4px 16px 18px; }
  .ticket-head { padding: 14px 16px; }
  .ticket-v { font-size: 20px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .branch-actions { padding: 12px 14px 16px; }
  .branch-top { padding: 16px; }
  .branch-phone { padding: 0 16px; }
  .branch-hours { margin-inline: 16px; }
  .act { font-size: 14px; gap: 6px; }
  .cta { padding-bottom: 64px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { bottom: 16px; left: 16px; width: 54px; height: 54px; }
}

/* ============ Contact sheet (pick a branch to call / WhatsApp) ============ */
.sheet {
  width: min(460px, 100% - 24px); max-height: calc(100% - 24px); padding: 0;
  border: 0; border-radius: 24px; background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(15, 12, 82, .55);
}
.sheet::backdrop { background: rgba(15, 12, 82, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; background: var(--grad); color: var(--white);
}
.sheet-title { font-family: var(--f-display); font-weight: 800; font-size: 19px; display: inline-flex; align-items: center; gap: 10px; }
.sheet-title::before { content: ""; width: 18px; height: 7px; background: rgba(255, 255, 255, .75); transform: skewX(-30deg); border-radius: 2px; }
.sheet-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.sheet-close:hover { background: rgba(255, 255, 255, .24); }
.sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sheet-lead { padding: 16px 22px 4px; font-size: 15px; color: var(--muted); }
.sheet-list { padding: 8px 14px 16px; }
.sheet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 8px; border-bottom: 1px solid var(--line);
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-branch { display: flex; flex-direction: column; min-width: 0; }
.sheet-name { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; color: var(--navy); line-height: 1.4; }
.sheet-num { font-size: 15px; color: var(--muted); text-align: start; }
.sheet-acts { display: flex; gap: 8px; flex: none; }
.sheet-acts .act { height: 44px; padding: 0 14px; font-size: 14px; }

/* branch without a phone yet */
.branch-nophone { margin: 0 20px; padding: 10px 14px; border-radius: var(--r-sm); background: #FFF6E5; color: #7A5200; font-size: 14.5px; line-height: 1.6; }
.branch-actions.only-dir { grid-template-columns: 1fr; }

/* ticket: waiting for a branch */
.btn-wa.is-waiting { background: var(--navy); }
.btn-wa.is-waiting:hover { background: var(--ink); }
.pills.nudge { animation: nudge .45s ease; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

@media (max-width: 560px) {
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  .sheet-row { flex-wrap: wrap; }
  .sheet-acts { width: 100%; }
  .sheet-acts .act { flex: 1; }
}
