/* ═════════════════════════════════════════════════════════════════════
   PAGES.CSS — shared kit for all inner pages (loaded after cinema.css).
   Page hero, billing toggle, FAQ, timeline, flow diagrams, CTA card,
   sticky mobile CTA. Same dark navy × gold language as the homepage.
   ═════════════════════════════════════════════════════════════════════ */

/* ── page hero ── */
.page-hero { min-height: auto; padding: 168px 32px 84px; text-align: center;
  display: block; background: transparent; }
.page-hero .ph-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.ph-eyebrow { display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px; }
.ph-eyebrow::before, .ph-eyebrow::after { content: ''; width: 18px; height: 2px;
  background: var(--gold); border-radius: 1px; opacity: .7; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 900;
  letter-spacing: -0.035em; line-height: 1.04; color: var(--text); margin-bottom: 18px; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.ph-sub { font-size: clamp(17px, 1.9vw, 20px); color: var(--text2); font-weight: 400;
  max-width: 620px; margin: 0 auto 38px; line-height: 1.75; }
.ph-sub strong { color: var(--text); font-weight: 500; }
.ph-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.page-hero .hero-aura { top: 10%; width: 70vmin; height: 70vmin; opacity: 0;
  animation: auraIn 1.8s ease-out .2s forwards; }

/* ── generic split (text + visual) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.rev > :first-child { order: 0; } }

/* ── check list ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px;
  color: var(--text2); line-height: 1.65; font-weight: 400; }
.check-list li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.check-list li strong { color: var(--text); font-weight: 600; }

/* ── billing toggle ── */
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; margin: 34px 0 -18px;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 100px; padding: 5px; }
.bt-opt { border: none; background: none; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; color: var(--text2); padding: 9px 22px;
  border-radius: 100px; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.bt-opt.active { background: var(--accent-dk); color: #fff; }
.bt-save { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(240,180,41,.16); color: var(--gold); border-radius: 100px; padding: 3px 9px; }
.bt-opt.active .bt-save { background: rgba(240,180,41,.28); }
.plan-note .pn-annual strong { color: var(--gold); }

/* ── "view all plans" button under a plans grid ── */
.plans-more { text-align: center; margin-top: 40px; }

/* ── FAQ (native details/summary — no JS needed) ── */
.faq { max-width: 780px; margin-top: 48px; }
/* centered FAQ sections (site-wide) */
.faq-inner { text-align: center; }
.faq-inner .section-label { justify-content: center; }
.faq-inner .section-label::before { display: none; }
.faq-inner .section-sub { margin-inline: auto; }
.faq-inner .faq { margin-inline: auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; padding: 22px 6px;
  font-size: 16.5px; font-weight: 600; color: var(--text); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary .chev { flex-shrink: 0; color: var(--text3); transition: transform .25s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--gold); }
.faq .faq-a { padding: 0 6px 24px; max-width: 66ch; }
.faq .faq-a p { font-size: 15.5px; color: var(--text2); line-height: 1.8; font-weight: 400; }
.faq .faq-a p + p { margin-top: 10px; }
.faq .faq-a a { color: var(--gold); }

/* ── timeline (e.g. migration steps) ── */
.timeline { position: relative; max-width: 720px; margin-top: 48px; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--gold), var(--accent-dk)); border-radius: 1px; opacity: .5; }
.tl-step { position: relative; padding: 0 0 34px 26px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ''; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(240,180,41,.14); }
.tl-step h4 { font-size: 16.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tl-step h4 span { color: var(--gold); margin-right: 8px; }
.tl-step p { font-size: 15px; color: var(--text2); line-height: 1.7; font-weight: 400; max-width: 60ch; }

/* ── flow diagram (request path: visitor → edge → origin, etc.) ── */
.diag-flow { display: flex; align-items: stretch; justify-content: center; gap: 0;
  flex-wrap: wrap; margin-top: 46px; }
.df-node { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r2);
  padding: 22px 24px; text-align: center; min-width: 150px; flex: 1; max-width: 220px; }
.df-node.hl { border-color: rgba(240,180,41,.5); background: linear-gradient(160deg, rgba(240,180,41,.08), var(--surface) 70%); }
.df-ico { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 11px;
  background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.df-node.hl .df-ico { background: rgba(240,180,41,.14); color: var(--gold); }
.df-node h5 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.df-node p { font-size: 13px; color: var(--text3); line-height: 1.55; font-weight: 400; }
.df-arrow { display: flex; align-items: center; padding: 0 14px; color: var(--gold); flex-shrink: 0; }
@media (max-width: 860px) {
  .diag-flow { flex-direction: column; align-items: center; }
  .df-node { width: 100%; max-width: 340px; }
  .df-arrow { transform: rotate(90deg); padding: 10px 0; }
}

/* ── stat strip: minimal editorial row — hairlines, gradient numerals, no boxes ── */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ss-item { position: relative; padding: 26px 18px 24px; text-align: center; }
.ss-item + .ss-item::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: linear-gradient(transparent, var(--border2), transparent); }
.ss-num { font-size: clamp(30px, 3.6vw, 42px); font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(180deg, #ffd977, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ss-lbl { font-size: 11.5px; color: var(--text3); margin-top: 10px; line-height: 1.55;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
[data-theme="light"] .ss-num { background-image: linear-gradient(180deg, #e0a41f, var(--gold) 55%, var(--gold-deep)); }
@media (max-width: 880px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .ss-item:nth-child(3)::before { display: none; }
  .ss-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ── simple CTA card (inner pages — not the pinned homepage CTA) ── */
.cta-simple { padding: 110px 32px 130px; background: transparent; }
.cta-card { max-width: none; margin: 0 auto; text-align: center; position: relative;
  border: 1px solid rgba(240,180,41,.28); border-radius: var(--r3);
  padding: clamp(44px, 7vw, 76px) clamp(24px, 6vw, 64px);
  background: radial-gradient(120% 140% at 50% 0%, rgba(240,180,41,.09), rgba(13,20,36,.6) 55%);
  overflow: hidden; }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; letter-spacing: -0.03em;
  color: var(--text); line-height: 1.1; margin-bottom: 16px; }
.cta-card h2 em { font-style: normal; color: var(--gold); }
.cta-card p { font-size: 17px; color: var(--text2); font-weight: 400; line-height: 1.75;
  max-width: 54ch; margin: 0 auto 36px; }
.cta-card .cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── sticky mobile CTA ── */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 180;
  display: none; opacity: 0; transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease; }
.sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-dk); color: #fff; text-decoration: none;
  font-family: var(--font); font-size: 15.5px; font-weight: 700;
  padding: 15px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.sticky-cta.show { opacity: 1; transform: none; }
@media (max-width: 760px) { .sticky-cta { display: block; pointer-events: none; }
  .sticky-cta.show { pointer-events: auto; } }

/* ── misc ── */
.notice-card { display: flex; gap: 18px; align-items: flex-start; max-width: 860px;
  background: linear-gradient(120deg, rgba(240,180,41,.09), rgba(240,180,41,.03));
  border: 1px solid rgba(240,180,41,.3); border-radius: var(--r2); padding: 26px 28px;
  margin: 46px auto 0; }   /* centred in its section */
/* icon-less notices (a lone paragraph) read better centred */
.notice-card.nc-center { display: block; text-align: center; }
.notice-card .nc-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px;
  background: rgba(240,180,41,.15); color: var(--gold);
  display: flex; align-items: center; justify-content: center; }
.notice-card h4 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.notice-card p { font-size: 15px; color: var(--text2); line-height: 1.7; font-weight: 400; }
.notice-card p strong { color: var(--gold); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.contact-form label { font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text3); display: block; margin-bottom: 7px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--border2); border-radius: var(--r);
  padding: 12px 14px; font-family: var(--font); font-size: 14.5px; color: var(--text);
  outline: none; transition: border-color .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ── footer contact / social / legal ── */
.f-contact { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.f-contact li { display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  color: rgba(255,255,255,0.72); font-weight: 400; }
.f-contact li svg { flex-shrink: 0; opacity: .85; }
.f-contact a { color: inherit; text-decoration: none; transition: color .15s; }
.f-contact a:hover { color: rgba(255,255,255,0.85); }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); transition: all .2s; }
.f-social a:hover { color: var(--gold); border-color: rgba(240,180,41,.4); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.68); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ── theme switcher ── */
.theme-toggle { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.22); background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7);
  transition: all .2s; }
.theme-toggle:hover { color: var(--gold); border-color: rgba(240,180,41,.5); }
.theme-toggle .ico-sun { display: block; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }

/* ── legal pages ── */
.legal-body { max-width: 800px; margin: 0 auto; }
.legal-body h2 { font-size: 22px; font-weight: 800; color: var(--text); margin: 44px 0 12px;
  letter-spacing: -0.01em; }
.legal-body h2 span { color: var(--gold); margin-right: 10px; }
.legal-body p, .legal-body li { font-size: 15.5px; color: var(--text2); line-height: 1.85; font-weight: 400; }
.legal-body p + p { margin-top: 10px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 7px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--gold); }
.legal-meta { font-size: 12.5px; color: var(--text3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }

/* contact form status banner */
.form-status { border-radius: var(--r); padding: 13px 16px; font-size: 14px; display: none; }
.form-status.ok { display: block; background: var(--green-bg); color: var(--green); border: 1px solid rgba(74,222,128,.3); }
.form-status.err { display: block; background: var(--red-bg); color: var(--red); border: 1px solid rgba(248,113,113,.3); }

/* infra cluster diagram */
.cluster-diagram { background: #0b0f1a; border: 1px solid var(--border);
  border-radius: var(--r2); padding: 34px; overflow: hidden; }
.cluster-diagram svg { width: 100%; height: auto; display: block; }
.cd-caption { text-align: center; font-size: 12px; color: var(--text3); margin-top: 16px; letter-spacing: .04em; }

/* ── value strip: "free, worth $X" under plans ── */
.value-strip { max-width: 980px; margin: 40px auto 0; border: 1px solid rgba(240,180,41,.28);
  border-radius: var(--r2); background: linear-gradient(160deg, rgba(240,180,41,.07), rgba(13,20,36,.5) 70%);
  padding: 22px 26px; }
.value-strip .vs-head { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 16px; }
.value-strip .vs-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vs-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 14px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.vs-item .vs-badge { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--green);
  background: var(--green-bg); border-radius: 100px; padding: 2px 9px; }
.vs-item strong { font-size: 15px; color: var(--text); font-weight: 700; }
.vs-item span:last-child { font-size: 12.5px; color: var(--text3); }
@media (max-width: 760px) { .value-strip .vs-items { grid-template-columns: 1fr; } }
[data-theme="light"] .value-strip { background: linear-gradient(160deg, rgba(201,143,20,.07), #fff 70%); border-color: rgba(165,115,13,.28); }

/* ── CDN network graph (schema) ── */
.cdn-graph { max-width: 600px; margin: 40px auto 6px; }
.cg-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cg-ring { fill: none; stroke: var(--border2); stroke-dasharray: 3 8; opacity: .55; }
.cg-link { stroke: var(--gold); stroke-width: 1.4; opacity: .35; }
.cg-vlink { stroke: var(--accent); stroke-width: 1.4; opacity: .55; stroke-dasharray: 2 4; }
.cg-edge { fill: var(--accent-bg); stroke: var(--accent); stroke-width: 2.4; }
.cg-visitor { fill: var(--gold); }
.cg-label { fill: var(--text2); font-family: 'Tajawal', sans-serif; font-size: 12.5px; font-weight: 700; }
.cg-origin-ring { fill: var(--surface); stroke: var(--gold); stroke-width: 2.6; }
.cg-origin-ico rect, .cg-origin-ico circle { fill: var(--gold); }
.cg-origin-tag-bg { fill: var(--bg); }
.cg-origin-label { fill: var(--text); font-family: 'Tajawal', sans-serif; font-size: 12.5px; font-weight: 800; }

/* ── CDN edge-location board: flagged lists ── */
.pop-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 46px; }
.pop-region { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r2); padding: 20px 22px; }
.pop-region-h { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pop-region-h span { color: var(--text3); font-weight: 600; letter-spacing: 0; }
.pop-list { list-style: none; display: flex; flex-direction: column; }
.pop-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0;
  font-size: 14px; color: var(--text2); font-weight: 400; border-bottom: 1px solid var(--border); }
.pop-list li:last-child { border-bottom: none; }
.pop-list .flag { font-size: 18px; line-height: 1; width: 24px; text-align: center; flex-shrink: 0;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.pop-grow p { font-size: 14.5px; color: var(--text3); line-height: 1.65; font-weight: 400; margin: 0; }

/* ── hero "unlimited traffic" wedge ── */
.ph-wedge { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px;
  padding: 10px 20px; border: 1px solid rgba(240,180,41,.38); border-radius: 999px;
  background: rgba(240,180,41,.09); color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.ph-wedge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── HF positioning line above plan grid ── */
.pos-line { max-width: 660px; margin: 2px 0 26px; padding-left: 14px; border-left: 2px solid var(--gold);
  font-size: 15.5px; color: var(--text2); line-height: 1.65; font-weight: 400; }
[dir="rtl"] .pos-line { padding-left: 0; padding-right: 14px; border-left: none; border-right: 2px solid var(--gold); }

/* ── wide competitor table: scroll on small screens ── */
.ctable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable.cmp4 { min-width: 760px; }
.cmp-note { margin-top: 16px; font-size: 13px; color: var(--text3); line-height: 1.6; font-weight: 400; max-width: 820px; }

/* ── plan feature list: Show-more toggle + bulk-pricing note ── */
.plan-feats li.pf-extra[hidden], .plan-feats li.pf-annual[hidden] { display: none; }  /* author display:flex would otherwise beat [hidden] */
.pf-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; padding: 4px 0;
  background: none; border: none; cursor: pointer; color: var(--accent);
  font-family: var(--font); font-size: 13px; font-weight: 600; }
.pf-toggle:hover { color: var(--gold); }
.pf-toggle .chev { transition: transform .2s ease; }
.pf-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.bulk-note { text-align: center; margin-top: 34px; font-size: 14.5px; color: var(--text2); }
.bulk-note a { color: var(--gold); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(240,180,41,.35); }
.bulk-note a:hover { border-bottom-color: var(--gold); }
.pf-toggle .pf-less-t { display: none; }
.pf-toggle[aria-expanded="true"] .pf-more-t { display: none; }
.pf-toggle[aria-expanded="true"] .pf-less-t { display: inline; }

/* ── flow diagram: keep nodes on one row on desktop (they stack < 861px) ── */
@media (min-width: 861px) {
  .diag-flow { flex-wrap: nowrap; }
  .diag-flow .df-node { min-width: 0; padding-left: 15px; padding-right: 15px; }
  .diag-flow .df-arrow { padding: 0 8px; }
}

/* ── domains: "we register every extension" note under the TLD chips ── */
.tld-note { margin-top: 16px; font-size: 14px; color: var(--text2); line-height: 1.65; text-align: center; }
.tld-note strong { color: var(--gold); font-weight: 600; }

/* ── Home link in the top nav + drawer (icon sits before the label) ── */
.nav-links .nav-home { display: inline-flex; align-items: center; gap: 7px; }
.nav-home-ico { flex-shrink: 0; opacity: .85;
  /* Optical alignment: flex centres the BOXES, but a label like "Home" has no
     descenders, so its glyphs sit high inside the line box and the icon reads low.
     Measured ideal nudge: EN -0.31em, FR -0.316em, AR -0.258em → -0.29em fits all
     three within half a pixel, and scales with font-size. */
  transform: translateY(-0.29em); }
.mobile-drawer .drawer-link { display: flex; align-items: center; gap: 10px; }
/* RTL needs no reversal: flex-direction:row already flows right-to-left,
   so the icon (first child) lands on the right on its own. */

/* ── language switcher is now real <a> links (crawlable, one URL per language) ── */
.lang-switch a, .drawer-lang a { text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; }

/* ═══ APP-LIKE NAVIGATION ═══════════════════════════════════════════════
   Cross-document view transitions. Paired with the speculation rules in
   <head> (hover prerenders the target), a click reads as an in-app
   transition rather than a page load. Unsupported browsers just navigate.  */
@view-transition { navigation: auto; }

/* The sticky bar is the one element that should feel continuous across pages,
   so it is lifted out of the page transition and simply stays put. */
nav { view-transition-name: site-header; }
::view-transition-old(site-header),
::view-transition-new(site-header) { animation: none; mix-blend-mode: normal; }

/* The outgoing page is held at full opacity and the incoming one is drawn over
   it. Cross-fading BOTH would dip through the transparent backdrop mid-way,
   which on a dark theme reads as a flicker. Holding the old page removes it.
   mix-blend-mode: normal for the same reason — the UA default (plus-lighter)
   brightens the overlap, which is very visible against near-black. */
::view-transition-old(root) { animation: none; opacity: 1; mix-blend-mode: normal; }
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation: vt-page-in .34s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes vt-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Reduced motion: keep the transition, drop the travel. A cross-fade is the
   standard substitute for movement — switching the transition off entirely
   just gives back a hard page load. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: vt-page-fade .3s ease both; }
  @keyframes vt-page-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ═══════════════════════════════════════════════════════════════════════
   ABOUT — the milestone road
   A vertical trail whose glow fills as the section scrolls past. Stops sit
   alternately either side of the line on desktop and stack under it on
   mobile; in RTL the whole thing mirrors because it is built on a grid and
   logical inset properties, not left/right offsets.
   ═══════════════════════════════════════════════════════════════════════ */
.road { position: relative; max-width: 1080px; margin: 0 auto; }

/* the line itself, and the lit portion that follows the scroll */
.road-line {
  position: absolute; inset-block: 10px 10px; height: auto;
  inset-inline-start: 50%; transform: translateX(-50%);
  width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--border2) 6%, var(--border2) 94%, transparent);
}
.road-fill {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--gold-deep));
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--gold) 45%, transparent);
  transition: height 0.18s linear;
}

.road-stop {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 1fr 64px 1fr;
  margin-bottom: 26px;
}
.road-stop:last-child { margin-bottom: 0; }
.road-stop > .road-card  { grid-column: 1; }
.road-stop > .road-dot   { grid-column: 2; justify-self: center; }
.road-stop:nth-child(odd) > .road-card { grid-column: 3; }

/* the station marker */
.road-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border2);
  position: relative; z-index: 2;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}
.road-stop.in > .road-dot {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent), 0 0 16px color-mix(in srgb, var(--gold) 55%, transparent);
  transform: scale(1.12);
}
.road-dot-now::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0;
}
.road-stop.in > .road-dot-now::after { animation: roadPulse 2.6s ease-out infinite; }
@keyframes roadPulse {
  0%   { opacity: 0.85; transform: scale(0.72); }
  70%  { opacity: 0;    transform: scale(1.5); }
  100% { opacity: 0; }
}

/* the card, with a short connector elbow drawn toward the line */
.road-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 26px 28px; position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.road-card:hover { transform: translateY(-2px); box-shadow: var(--sh2); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.road-card::after {
  content: ''; position: absolute; top: 50%; width: 22px; height: 1px;
  background: var(--border2); inset-inline-end: -23px;
  transform: scaleX(0); transform-origin: var(--road-elbow, left) center;
  transition: transform 0.5s ease 0.1s;
}
.road-stop:nth-child(odd) .road-card::after { inset-inline-end: auto; inset-inline-start: -23px; --road-elbow: right; }
.road-stop.in .road-card::after { transform: scaleX(1); }

.road-year {
  font-family: 'El Messiri', var(--font); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--gold);
  display: inline-block; padding: 3px 11px; margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 100px;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}
.road-card h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 9px; letter-spacing: -0.01em; }
.road-card p  { font-size: 14.5px; line-height: 1.65; color: var(--text2); font-weight: 300; }
.road-card-now { border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 6%, transparent), transparent 60%), var(--surface); }

@media (max-width: 820px) {
  .road-line { inset-inline-start: 7px; transform: none; }
  .road-stop { grid-template-columns: 16px 1fr; gap: 18px; margin-bottom: 20px; }
  .road-stop > .road-dot, .road-stop:nth-child(odd) > .road-dot { grid-column: 1; justify-self: start; }
  .road-stop > .road-card, .road-stop:nth-child(odd) > .road-card { grid-column: 2; }
  .road-card::after, .road-stop:nth-child(odd) .road-card::after { display: none; }
  .road-card { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .road-fill { transition: none; }
  .road-stop.in > .road-dot-now::after { animation: none; opacity: 0; }
}

/* the office photograph */
.office-shot { margin: 0; }
.office-shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r2); border: 1px solid var(--border);
  box-shadow: var(--sh2);
}
.office-shot figcaption {
  margin-top: 12px; font-size: 12.5px; color: var(--text3);
  font-weight: 300; text-align: center;
}

/* the logo shown on a milestone card */
.road-logo { margin: 0 0 14px; }
.road-logo img {
  height: 26px; width: auto; display: block;
  opacity: 0.95;
}
[data-theme="light"] .road-logo img { filter: none; }
.road-logo figcaption {
  margin-top: 6px; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text3); font-weight: 400;
}
/* the station that hasn't happened yet */
.road-stop-next .road-card { border-style: dashed; }
.road-stop.road-stop-next > .road-card { grid-column: 1; }   /* must outweigh :nth-child(odd) */
.road-stop.road-stop-next .road-card::after { inset-inline-start: auto; inset-inline-end: -23px; --road-elbow: left; }

/* theme-aware mark on the milestone cards */
/* `.road-logo img` also sets display, so these need the same weight to win */
.road-logo img.road-logo-d { display: none; }
[data-theme="light"] .road-logo img.road-logo-l { display: none; }
[data-theme="light"] .road-logo img.road-logo-d { display: block; }
/* the 2016 mark ships transparent and keeps its original colours — no plate */
.road-logo-2016 img { height: 34px; }

/* "Today" — the break between what runs now and what is coming */
.road-now-mark {
  grid-column: 1 / -1; display: flex; justify-content: center;
  margin: 40px 0 38px; position: relative; z-index: 3;
}
.road-now-mark span {
  font-family: 'El Messiri', var(--font); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 100px; padding: 6px 18px;
  box-shadow: 0 0 0 6px var(--bg), 0 0 22px color-mix(in srgb, var(--gold) 25%, transparent);
}
/* everything past the marker is drawn as a dashed road */
.road-stop-next::before {
  content: ''; position: absolute; z-index: 1;
  inset-inline-start: 50%; transform: translateX(-50%);
  top: -78px; bottom: -6px; width: 2px;
  background: repeating-linear-gradient(to bottom,
              var(--border2) 0 5px, transparent 5px 11px);
}
@media (max-width: 820px) {
  .road-now-mark { justify-content: flex-start; margin: 30px 0 28px; padding-inline-start: 0; }
  .road-stop-next::before { inset-inline-start: 7px; transform: none; top: -62px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Section intros are centred — in LTR and RTL alike.
   Two-column intros (inside .split) keep their alignment, because they are
   paired with content in the opposite column.
   ═══════════════════════════════════════════════════════════════════════ */
.section-inner > .section-h2,
.section-inner > .section-sub,
.section-inner > div[style*="max-width"] {
  text-align: center;
}
/* The label is inline-flex (a 16px rule + the text). Centre the BOX, not its
   contents: shrink it to its content and let auto margins do the centring.
   Never put margin-inline:auto on the ::before — it is a flex item, so auto
   margins there eat the free space and fling the rule and the text apart. */
.section-inner > .section-label,
.section-inner > div[style*="max-width"] > .section-label {
  display: flex; width: fit-content; margin-inline: auto;
}
.section-inner > .section-sub,
.section-inner > div[style*="max-width"],
.section-inner > div[style*="max-width"] > .section-sub {
  margin-inline: auto;
}

/* ── legal line under the contact form ──
   Was an inline style on one <p>; it is two paragraphs now (the CNDP
   authorisation has to read as its own statement, not a trailing clause). */
.form-legal { font-size: 12px; line-height: 1.6; color: var(--text3);
  text-align: center; margin: 2px 0 0; }
.form-legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="light"] .form-legal a { color: var(--gold-deep); }

/* ═══ COOKIE NOTICE ═══
   A notice, not a chooser: one sentence, a link to the policy, and a close
   button. The X is positioned rather than laid out, so it mirrors by itself
   in Arabic (inset-inline-end) and can never push the sentence around. */
.cc { position: fixed; inset-inline: 0; bottom: 0; z-index: 1200;
  padding: 0 clamp(12px, 3vw, 28px) clamp(12px, 3vw, 24px);
  opacity: 0; transform: translateY(14px);
  transition: opacity .32s var(--ease), transform .32s var(--ease); }
.cc.cc-in { opacity: 1; transform: none; }
.cc-inner { position: relative; max-width: 1120px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r2);
  box-shadow: 0 10px 40px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.25);
  padding: 15px clamp(18px, 2.6vw, 28px) 14px; }
[data-theme="light"] .cc-inner { box-shadow: var(--sh2); border-color: var(--border2); }
.cc-body { font-size: 14px; line-height: 1.6; color: var(--text2); margin: 0;
  /* every line, not just the first: keeps the sentence clear of the X in
     both writing directions without a float or a second column */
  padding-inline-end: 36px; }
.cc-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="light"] .cc-body a { color: var(--gold-deep); }

.cc-x { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--text3); transition: color .2s, background .2s; }
.cc-x:hover { color: var(--text); background: var(--bg2); }
.cc-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .cc { padding: 0 10px 10px; }
  .cc-inner { padding: 13px 15px 12px; }
  .cc-body { font-size: 13px; line-height: 1.5; padding-inline-end: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc { transition: none; transform: none; }
}

/* ═══ DOMAIN PRICE TABLE (98 extensions) ═══
   Numbers are bare in the cells and the currency lives in the header, which
   is what keeps this out of the dictionaries: a translated "149 MAD/yr" per
   cell would have meant ~300 new keys per language for one table. */
.tldt-wrap { max-width: 920px; margin: 0 auto; }
.tldt-filter { width: 100%; font-family: var(--font); font-size: 15px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border2); border-radius: var(--r);
  padding: 13px 16px; margin-bottom: 14px; }
.tldt-filter::placeholder { color: var(--text3); }
.tldt-filter:focus { outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,143,20,.18); }

.tldt-scroll { border: 1px solid var(--border2); border-radius: var(--r2);
  background: var(--surface); overflow: auto; max-height: 620px;
  -webkit-overflow-scrolling: touch; }
.tldt { width: 100%; border-collapse: collapse; font-size: 14px; }
.tldt thead th { position: sticky; top: 0; z-index: 1;
  background: var(--surface); border-bottom: 1px solid var(--border2);
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text3); padding: 13px 14px; text-align: end; white-space: nowrap; }
.tldt thead th:first-child, .tldt thead th.tldt-cat { text-align: start; }
.tldt tbody th { font-weight: 700; color: var(--text); text-align: start;
  font-variant-ligatures: none; }
.tldt td { color: var(--text2); text-align: end;
  /* figures line up column-wise instead of jittering per row */
  font-variant-numeric: tabular-nums; }
.tldt th, .tldt td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.tldt tbody tr:last-child th, .tldt tbody tr:last-child td { border-bottom: 0; }
.tldt tbody tr:hover th, .tldt tbody tr:hover td { background: var(--bg2); }
.tldt td.tldt-cat { text-align: start; color: var(--text3); font-size: 12.5px; }
/* the renewal column is the point of the table, so it reads as strongly as
   the extension itself */
.tldt tbody td:last-child { color: var(--text); font-weight: 600; }
.tldt-none { text-align: center; color: var(--text3); font-size: 14px;
  margin: 16px 0 0; }
.tldt-wrap .tld-note { margin-top: 12px; }

@media (max-width: 720px) {
  .tldt { font-size: 13px; }
  .tldt th, .tldt td { padding: 10px 10px; }
  /* category is the first thing to go: it is browsing help, not price data */
  .tldt .tldt-cat { display: none; }
  .tldt-scroll { max-height: 70svh; }
}

/* Below ~440px the four remaining columns no longer fit the card, and the
   table started scrolling sideways inside its own box. Transfer is the one
   to lose: it equals the registration price on 95 of the 98 extensions, and
   the three exceptions are free transfers — a bonus, not a cost. */
@media (max-width: 440px) {
  .tldt .tldt-xfer { display: none; }
  .tldt th, .tldt td { padding: 10px 9px; }
}
