/* 08 footer (footer-proof 2026-10-18): coral brand card + white proof card (CR QR, VAT, quiet ISO / Vision 2030 marks, HQ address and contact) + the giant «واتساب» word.
   Base rules = phone (stacked, same blocks and emphasis as desktop); @media (min-width: 769px) = desktop. Revert: cp backups/pre-footer-proof/08-footer.css css/sections/ */
[data-section="08-footer"] { background: var(--page); font-family: var(--f-ui); }
[data-section="08-footer"] .ft { padding: 16px 16px 20px; display: flex; flex-direction: column; background: #f2f3f5; }
[data-section="08-footer"] .ft__row { display: flex; flex-direction: column; gap: 12px; max-width: 1200px; width: 100%; margin: 0 auto; }
[data-section="08-footer"] p, [data-section="08-footer"] dl, [data-section="08-footer"] dd { margin: 0; }
[data-section="08-footer"] a { color: inherit; text-decoration: none; transition: color .2s; }

/* brand card */
[data-section="08-footer"] .ft__brand { display: flex; background: linear-gradient(165deg, #f26b6c 0%, #e66b6d 100%); border-radius: 24px; padding: 22px 22px; flex-direction: column; justify-content: space-between; gap: 22px; position: relative; overflow: hidden; }
[data-section="08-footer"] .ft__logo { display: flex; align-items: center; gap: 10px; width: max-content; direction: ltr; }
[data-section="08-footer"] .ft__logo img { width: 18px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); }
[data-section="08-footer"] .ft__logo span { font: 1000 24px/1 var(--f-sub); letter-spacing: -3px; color: #fff; }
[data-section="08-footer"] .ft__brandfoot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
[data-section="08-footer"] .ft__brand p { font-size: 19px; line-height: 1.4; }
[data-section="08-footer"] .ft__tag1 { font-weight: 600; color: #fff; }
[data-section="08-footer"] .ft__tag2 { font-weight: 400; color: rgba(255,255,255,.7); }
[data-section="08-footer"] .ft__cta { background: #0a0d12; border-radius: 100px; padding: 14px 28px; font: 600 16px var(--f-ui); color: #fff; display: inline-block; }

/* proof card */
[data-section="08-footer"] .ft__proof { background: #fff; border-radius: 24px; padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
[data-section="08-footer"] .ft__tile { display: none; /* owner 2026-10-18: no mark tile on the proof card */ position: absolute; top: -8px; inset-inline-end: -8px; width: 64px; height: 64px; background: linear-gradient(135deg, #f26b6c, #e66b6d); border-radius: 15px; align-items: center; justify-content: center; transform: rotate(calc(12deg * var(--dir, 1))); box-shadow: 0 6px 20px rgba(242,107,108,.3); }
[data-section="08-footer"] .ft__tile svg { width: 28px; height: 33px; }
[data-section="08-footer"] .ft__title { font: 400 22px/1.3 var(--f-display); color: #0a0d12; max-width: calc(100% - 64px); text-wrap: balance; }
[data-section="08-footer"] .ft__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
[data-section="08-footer"] .ft__regrow { display: flex; align-items: center; gap: 16px; }
[data-section="08-footer"] .ft__qr { flex: 0 0 auto; display: block; padding: 6px; border: 1px solid #e9eaeb; border-radius: 14px; background: #fff; }
[data-section="08-footer"] .ft__qr img { display: block; width: 117px; height: 117px; } /* 39 modules x 3px; the SVG carries a 1-module margin, the white frame padding completes the quiet zone */
[data-section="08-footer"] .ft__ids { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
[data-section="08-footer"] .ft__ids dt, [data-section="08-footer"] .ft__h { font: 500 14px/1.4 var(--f-ui); color: #535862; }
[data-section="08-footer"] .ft__ids dd { font: 600 17px/1.4 var(--f-ui); color: #0a0d12; font-variant-numeric: tabular-nums; }
[data-section="08-footer"] .ft__ids .ft__hint { font: 400 14px/1.4 var(--f-ui); color: #535862; }
[data-section="08-footer"] .ft__marks { display: flex; align-items: center; gap: 20px; margin-top: 12px; --h: 36px; }
/* the two source PNGs carry wide transparent padding: the box is the mark's own bounding box, the image is scaled and shifted inside it */
[data-section="08-footer"] .ft__mark { position: relative; display: block; overflow: hidden; height: var(--h); flex: 0 0 auto; }
[data-section="08-footer"] .ft__mark img { position: absolute; max-width: none; filter: grayscale(1); opacity: .6; }
[data-section="08-footer"] .ft__mark--iso { width: calc(var(--h) * 285 / 311); }
[data-section="08-footer"] .ft__mark--iso img { width: calc(var(--h) * 500 / 311); height: calc(var(--h) * 500 / 311); left: calc(var(--h) * -107 / 311); top: calc(var(--h) * -86 / 311); }
[data-section="08-footer"] .ft__mark--v2030 { width: calc(var(--h) * 524 / 354); }
[data-section="08-footer"] .ft__mark--v2030 img { width: calc(var(--h) * 1000 / 354); height: calc(var(--h) * 1000 / 354); left: calc(var(--h) * -238 / 354); top: calc(var(--h) * -323 / 354); opacity: .75; }
[data-section="08-footer"] .ft__reach { display: flex; flex-direction: column; gap: 4px; }
[data-section="08-footer"] .ft__addr { font: 600 17px/1.6 var(--f-ui); color: #0a0d12; }
[data-section="08-footer"] .ft__nw { white-space: nowrap; }
[data-section="08-footer"] .ft__lines { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
[data-section="08-footer"] .ft__lines p { font: 600 17px/1.6 var(--f-ui); color: #0a0d12; }
[data-section="08-footer"] .ft__sep { display: inline-block; width: 1px; height: 14px; background: #d5d7da; margin: 0 12px; vertical-align: middle; }
[data-section="08-footer"] .ft__proof a:hover { color: #f26b6c; }
[data-section="08-footer"] .ft__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 12px; border-top: 1px solid #e9eaeb; margin-top: auto; }
[data-section="08-footer"] .ft__copy, [data-section="08-footer"] .ft__legal { font: 400 13px/1.5 var(--f-ui); color: #535862; }
[data-section="08-footer"] .ft__legal { display: flex; gap: 16px; }
[data-section="08-footer"] .ft__legal a { cursor: pointer; }

/* giant «واتساب» word (copies the WhatsApp link, js/sections/08-footer.js) */
[data-section="08-footer"] .ft__mail { width: 100%; padding: 8px 16px 0; box-sizing: border-box; position: relative; }
[data-section="08-footer"] .ft__mail svg { width: 100%; height: auto; display: block; }
[data-section="08-footer"] .ft__mail text { font: 700 80px var(--f-ui); letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; fill: rgba(0,0,0,.06); transition: fill .3s; }
[data-section="08-footer"] .ft__mail.is-copied text { fill: #f26b6c; }
[data-section="08-footer"] .ft__tip { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; background: #0a0d12; color: #fff; border-radius: 100px; padding: 8px 20px; font: 600 13px var(--f-ui); white-space: nowrap; animation: copyTooltipIn .4s cubic-bezier(.34,1.56,.64,1) forwards; transition: background .2s; }
[data-section="08-footer"] .ft__tip[hidden] { display: none; }
[data-section="08-footer"] .ft__tip.is-copied { background: #f26b6c; }
@keyframes copyTooltipIn { 0% { scale: 0; opacity: 0; } 100% { scale: 1; opacity: 1; } }

@media (min-width: 769px) {
  [data-section="08-footer"] .ft { padding: 40px 40px 32px; }
  [data-section="08-footer"] .ft__row { flex-direction: row; gap: 24px; }
  [data-section="08-footer"] .ft__brand { flex: 0 0 380px; padding: 40px 32px; gap: normal; min-height: 360px; }
  [data-section="08-footer"] .ft__brand p { font-size: 18px; }
  [data-section="08-footer"] .ft__brandfoot { gap: 28px; }
  [data-section="08-footer"] .ft__cta { font-size: 14px; padding: 12px 28px; }
  [data-section="08-footer"] .ft__proof { flex: 1 1 0%; padding: 40px; gap: 32px; }
  [data-section="08-footer"] .ft__tile { top: -12px; inset-inline-end: -12px; width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 32px rgba(242,107,108,.3); }
  [data-section="08-footer"] .ft__tile svg { width: 42px; height: 50px; }
  [data-section="08-footer"] .ft__title { font-size: 28px; max-width: calc(100% - 110px); }
  [data-section="08-footer"] .ft__grid { grid-template-columns: auto minmax(0, 1fr); gap: 56px; }
  [data-section="08-footer"] .ft__regrow { gap: 20px; }
  [data-section="08-footer"] .ft__qr { padding: 8px; }
  [data-section="08-footer"] .ft__qr img { width: 156px; height: 156px; } /* 39 modules x 4px */
  [data-section="08-footer"] .ft__ids dt, [data-section="08-footer"] .ft__h { font-size: 13px; }
  [data-section="08-footer"] .ft__ids dd { font-size: 18px; }
  [data-section="08-footer"] .ft__ids { gap: 14px; }
  [data-section="08-footer"] .ft__reach { gap: 8px; }
  [data-section="08-footer"] .ft__lines { gap: 4px; }
  [data-section="08-footer"] .ft__ids .ft__hint { font-size: 13px; }
  [data-section="08-footer"] .ft__marks { --h: 44px; margin-top: 20px; }
  [data-section="08-footer"] .ft__bottom { flex-wrap: nowrap; padding-top: 20px; }
  [data-section="08-footer"] .ft__legal { gap: 20px; }
  [data-section="08-footer"] .ft__marks { gap: 20px; }
  [data-section="08-footer"] .ft__copy, [data-section="08-footer"] .ft__legal { font-size: 13px; }
  [data-section="08-footer"] .ft__mail { padding: 24px 40px 0; cursor: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-section="08-footer"] .ft__tip { animation: none; }
  [data-section="08-footer"] a, [data-section="08-footer"] .ft__mail text, [data-section="08-footer"] .ft__tip { transition: none; }
}
html.reduce-motion [data-section="08-footer"] .ft__tip { animation: none; }

/* mobile CRO r1 M5: 48px tap targets for contact and legal links (phone/tablet only; desktop rules untouched) */
@media (max-width: 768px) {
  [data-section="08-footer"] .ft__lines { gap: 0; }
  [data-section="08-footer"] .ft__lines p { display: flex; align-items: center; min-height: 48px; }
  [data-section="08-footer"] .ft__lines a { display: inline-flex; align-items: center; min-height: 48px; }
  [data-section="08-footer"] .ft__legal { gap: 24px; }
  [data-section="08-footer"] .ft__legal a { display: inline-flex; align-items: center; min-height: 48px; margin-block: -14px; padding-inline: 6px; margin-inline: -6px; }
}

/* mobile CRO r3 P2 / C1 */
@media (max-width: 400px) {
  [data-section="08-footer"] .ft__grid { grid-template-columns: minmax(0, 1fr); } /* P2: the QR row's min-content no longer overflows the track */
  [data-section="08-footer"] .ft__regrow { gap: 12px; }
  [data-section="08-footer"] .ft__qr img { width: 104px; height: 104px; }
  [data-section="08-footer"] .ft__ids dd { font-size: 16px; }
}
@media (min-width: 541px) and (max-width: 768px) {
  [data-section="08-footer"] .ft__lines a { min-height: 40px; } /* C1: rows stay 48 tall, the hit areas sit 8px apart (<= 540 uses the mcd icon rows below) */
}

/* mobile component design (mcd-faq-footer 2026-10-18, NOTES-mcd-faq-footer.md): the footer as one phone screen.
   Gated at 540px (phones) so 541-768 incl. 550 and desktop stay pixel-identical; base rules untouched.
   Three tiers in the proof card: title 20/28, labels 14/20 grey, values 16. Contact = three 48px icon rows, 8px apart.
   The giant email wordmark stays (owner, 2026-10-18). Revert: cp backups/pre-mcd-faq-footer/css/sections/08-footer.css css/sections/ */
@media (max-width: 540px) {
  /* brand card: logo, one-line tagline, full-width night CTA */
  [data-section="08-footer"] .ft__brand { padding: 20px; gap: 16px; }
  [data-section="08-footer"] .ft__brandfoot { align-items: stretch; gap: 16px; }
  [data-section="08-footer"] .ft__brand p.ft__tag1, [data-section="08-footer"] .ft__brand p.ft__tag2 { display: inline; font-size: 17px; line-height: 26px; }
  [data-section="08-footer"] .ft__brand p.ft__tag1 { margin-inline-end: .3em; }
  [data-section="08-footer"] .ft__brand p.ft__tag2 { color: rgba(255,255,255,.86); } /* .7 reads washed out on coral at 17px */
  [data-section="08-footer"] .ft__cta { height: 56px; padding: 0 24px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font: 700 17px/1 var(--f-ui); }
  /* proof card */
  [data-section="08-footer"] .ft__proof { padding: 20px 20px 16px; gap: 12px; }
  [data-section="08-footer"] .ft__tile { width: 52px; height: 52px; border-radius: 13px; }
  [data-section="08-footer"] .ft__tile svg { width: 23px; height: 27px; }
  [data-section="08-footer"] .ft__title { font-size: 20px; line-height: 28px; max-width: calc(100% - 52px); }
  [data-section="08-footer"] .ft__grid { gap: 16px; }
  [data-section="08-footer"] .ft__regrow { align-items: flex-start; gap: 16px; }
  [data-section="08-footer"] .ft__qr { padding: 6px; border-radius: 12px; }
  [data-section="08-footer"] .ft__qr img { width: 104px; height: 104px; }
  [data-section="08-footer"] .ft__ids { gap: 8px; }
  [data-section="08-footer"] .ft__ids dt, [data-section="08-footer"] .ft__h { font: 500 14px/20px var(--f-ui); color: #535862; }
  [data-section="08-footer"] .ft__ids dd { font: 600 16px/22px var(--f-ui); }
  [data-section="08-footer"] .ft__ids .ft__hint { font: 400 13px/18px var(--f-ui); margin-top: 2px; }
  [data-section="08-footer"] .ft__marks { --h: 28px; gap: 16px; margin-top: 12px; }
  [data-section="08-footer"] .ft__mark--v2030 { height: calc(var(--h) + 3px); } /* at 28px the crop shaved the «KINGDOM OF SAUDI ARABIA» line */
  [data-section="08-footer"] .ft__reach { gap: 4px; }
  [data-section="08-footer"] .ft__addr { display: block; min-height: 48px; font: 400 15px/24px var(--f-ui); color: #535862; } /* 48px tap even where it fits one line (about 400px and up) */
  /* contact: 48px icon rows, 8px apart, a hairline centred in each gap. Phone | WhatsApp share the first row as on desktop
     (one number, two channels, the divider kept); email is the second row. This is what fits the footer into one 800px screen at 360. */
  [data-section="08-footer"] .ft__lines { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid #e9eaeb; }
  [data-section="08-footer"] .ft__lines p { display: contents; }
  [data-section="08-footer"] .ft__sep { display: block; flex: none; width: 1px; height: 20px; margin: 0; background: #d5d7da; }
  [data-section="08-footer"] .ft__lines a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; font: 500 16px/24px var(--f-ui); color: #0a0d12; }
  [data-section="08-footer"] .ft__lines a[href^="tel:"] { flex: 0 0 auto; }
  [data-section="08-footer"] .ft__lines a[href^="https://wa.me"] { flex: 1 1 auto; } /* hit area runs to the card edge */
  [data-section="08-footer"] .ft__lines a[href^="mailto:"] { flex: 1 0 100%; }
  [data-section="08-footer"] .ft__lines a[href^="mailto:"]::after { content: ""; position: absolute; inset-inline: 0; top: -4.5px; height: 1px; background: #e9eaeb; pointer-events: none; }
  [data-section="08-footer"] .ft__lines a::before { content: ""; flex: none; width: 20px; height: 20px; background: #535862; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; transition: background .2s; }
  [data-section="08-footer"] .ft__lines a:hover::before { background: #f26b6c; }
  [data-section="08-footer"] .ft__lines a[href^="tel:"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
  [data-section="08-footer"] .ft__lines a[href^="https://wa.me"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12.04 2a9.9 9.9 0 0 0-8.5 14.95L2 22l5.2-1.5A9.9 9.9 0 1 0 12.04 2zm0 1.8a8.1 8.1 0 1 1-4.3 14.96l-.3-.2-3 .9.9-2.9-.2-.3A8.1 8.1 0 0 1 12.04 3.8zM8.6 7.4c-.2 0-.5.1-.7.3-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.2 4.9 4.4 2.4 1 2.9.8 3.4.7.6-.1 1.7-.7 2-1.4.2-.7.2-1.2.2-1.4-.1-.1-.3-.2-.6-.3l-2-1c-.3-.1-.5-.1-.7.2l-.9 1.1c-.2.2-.3.2-.6.1-.3-.1-1.2-.4-2.3-1.4-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.4.1-.6l.5-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.5-.4-.5-.6-.5z'/%3E%3C/svg%3E"); }
  [data-section="08-footer"] .ft__lines a[href^="mailto:"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
  /* legal: copyright over the two links, 14/22 */
  [data-section="08-footer"] .ft__bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; margin-top: 0; }
  [data-section="08-footer"] .ft__copy, [data-section="08-footer"] .ft__legal { font-size: 14px; line-height: 22px; }
  /* the giant email wordmark stays, 8px+ clear of the card */
  [data-section="08-footer"] .ft { padding-bottom: 12px; }
  [data-section="08-footer"] .ft__mail { padding-top: 0; margin-top: 10px; } /* margin, not padding: the tap-to-copy box starts 12px below the legal links' 48px hit areas */
  [data-section="08-footer"] .ft__mail::before { content: ""; position: absolute; inset-inline: 0; top: -4px; bottom: -12px; } /* hit zone: 4px up (keeps 8px clear of the legal links), 12px down (the page ends there) */
}

/* ---------- Owner batch 2026-10-18 (NOTES-owner-batch-ux.md) ----------
   A: the waving man, animated (assets/brand/waving-man.webp: 96 frames at 12 fps, an 8 s ping-pong loop cut from the owner's wave film, the
      same span as why-us card 1), sits between the card's header (mark + «Techtools») and the tagline: header, man, tagline, CTA.
      No background, shadow or frame. Reduced motion: the first frame as a still PNG (<picture> source for the OS, 08-footer.js for the site flag).
   B: the «واتساب» link beside the phone number is gone, so the phone row runs the full width on phone.
   C: the privacy / terms triggers are gone; the copyright line stays (the .ft__legal rules above are now unused). */
[data-section="08-footer"] .ft__figwrap { display: block; align-self: flex-start; line-height: 0; }
[data-section="08-footer"] .ft__fig { display: block; height: 96px; width: auto; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
@media (min-width: 769px) {
  [data-section="08-footer"] .ft__fig { height: 150px; } /* in flow between the header and the tagline; the card's space-between centres him in the empty middle */
}
@media (max-width: 768px) {
  /* stacked card (phone and tablet): a row of his own would push the fixed footer past the screen (one 800 px screen at 360; 550x900 went to
     910), so he stands on the inline-end (left) side of the header band and an extra 26 px gap above the tagline, feet 6 px above its line. */
  [data-section="08-footer"] .ft__figwrap { position: absolute; top: 12px; inset-inline-end: 22px; }
  [data-section="08-footer"] .ft__fig { height: 76px; }
  [data-section="08-footer"] .ft__brandfoot { margin-top: 26px; }
}
@media (max-width: 540px) {
  /* the tagline stays one line and the CTA full width */
  [data-section="08-footer"] .ft__figwrap { inset-inline-end: 20px; }
  [data-section="08-footer"] .ft__fig { height: 68px; }
  [data-section="08-footer"] .ft__lines a[href^="tel:"] { flex: 1 0 100%; }  /* B: the phone row is alone now */
}

/* footer man, phone (2026-10-18s): <= 540 only. A tall clipped column on the card's left edge (top of the card down to its bottom edge; CTA sits beside it);
   the image is cropped to its top (head, shemagh, raised hand). Text column keeps >= 16px from it. Revert: cp backups/pre-footer-man-phone/08-footer.css css/sections/ */
@media (max-width: 540px) {
  [data-section="08-footer"] .ft__brand { --manw: 104px; --cta-h: 56px; }
  [data-section="08-footer"] .ft__figwrap { top: 0; bottom: 0; inset-inline-end: auto; left: 0; align-self: stretch; width: var(--manw); overflow: hidden; line-height: 0; }
  [data-section="08-footer"] .ft__fig { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  [data-section="08-footer"] .ft__logo, [data-section="08-footer"] .ft__brandfoot > div, [data-section="08-footer"] .ft__cta { margin-left: calc(var(--manw) - 4px); }
  [data-section="08-footer"] .ft__brandfoot { margin-top: 0; }
}

/* privacy-page (2026-10-19, BRAND-SWAP-NOTES.md "privacy-page"): one quiet line opposite the copyright, same 13/14px grey type; the policy
   name is the link (night, thin underline, coral on hover). Phone: stacked under the copyright like the old legal row. Revert: cp backups/pre-privacy/08-footer.css */
[data-section="08-footer"] .ft__notice { font: 400 13px/1.5 var(--f-ui); color: #535862; }
[data-section="08-footer"] .ft__notice a { color: #0a0d12; text-decoration: underline; text-decoration-color: #d5d7da; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
[data-section="08-footer"] .ft__notice a:hover { color: #f26b6c; text-decoration-color: currentColor; }
@media (max-width: 768px) {
  [data-section="08-footer"] .ft__notice { font-size: 14px; line-height: 22px; }
}
