/* ==========================================================================
   workbuddymalaysia.com — design system
   Single stylesheet, no external requests (vhost CSP = default-src 'self').
   Direction: premium dark, extended from the original placeholder palette.
   ========================================================================== */

:root{
  /* ══ OFFICIAL BRAND PALETTE — sampled from the official logo assets 2026-10-10 ══
     WorkBuddy      #1BD1B4  hue 170°  (the official WorkBuddy mark)
     Tencent Cloud  #03A2FE  hue 202°  (the official Tencent Cloud mark)
     BigDomain      #BD0F49  hue 340°  (the official BigDomain mark)
     Never substitute an invented "AI blue" for these. */
  --brand-workbuddy:#1bd1b4;
  --brand-tencent:#03a2fe;
  --brand-bigdomain:#bd0f49;

  --bg:#04100e; --bg-2:#061714; --surface:#08201c; --card:#0b2924; --card-2:#0e332c;
  --text:#eafcf8; --muted:#8fb3ac; --muted-2:#6f918b;
  --accent:var(--brand-workbuddy);
  --accent-2:var(--brand-tencent);
  --accent-dark:#02110e;
  --accent-soft:rgba(27,209,180,.12);
  --line:rgba(27,209,180,.16); --line-2:rgba(27,209,180,.32);
  --grad:linear-gradient(92deg,var(--brand-workbuddy),var(--brand-tencent));
  --ok:#4ade80; --warn:#fbbf24; --bad:#f87171;
  --radius:16px; --radius-sm:10px; --radius-pill:999px;
  --maxw:1160px; --maxw-narrow:760px;
  --shadow:0 18px 50px -22px rgba(0,0,0,.8);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);background:var(--bg);color:var(--text);
  line-height:1.68;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:#6fe6d2;text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4,h5{margin:0 0 .55em;line-height:1.16;letter-spacing:-.02em;font-weight:700}
h1{font-size:clamp(2rem,5vw,3.3rem);letter-spacing:-.035em}
h2{font-size:clamp(1.5rem,3.4vw,2.2rem)}
h3{font-size:1.15rem}
p{margin:0 0 1.05em}
ul,ol{margin:0 0 1.1em;padding-left:1.3em}
li{margin:.36em 0}
hr{border:0;height:1px;background:var(--line);margin:2.6rem 0}
blockquote{margin:1.4rem 0;padding:.9rem 1.2rem;border-left:3px solid var(--accent);background:rgba(27,209,180,.06);border-radius:0 10px 10px 0;color:#cfe9e3}
code{font-family:var(--mono);font-size:.9em;background:rgba(27,209,180,.10);padding:.15em .45em;border-radius:6px;color:#c9f2e9}
pre{background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:1rem 1.1rem;overflow:auto;font-size:.88rem}
pre code{background:none;padding:0}
strong{color:#fff}
small{font-size:.86rem}

/* ---------- layout ---------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.wrap-narrow{max-width:var(--maxw-narrow);margin:0 auto;padding:0 22px}
.center{text-align:center}
.muted{color:var(--muted)}
.small{font-size:.87rem}
.nowrap{white-space:nowrap}
section{padding:4rem 0}
section.tight{padding:2.7rem 0}
.section-head{max-width:64ch;margin-bottom:2.2rem}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}
.section-head p{color:var(--muted);font-size:1.05rem;margin-bottom:0}
.skip{position:absolute;left:-999px;top:0;background:var(--card);padding:.6rem 1rem;border-radius:8px;z-index:99}
.skip:focus{left:12px;top:12px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:60;background:rgba(7,11,22,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;gap:1.3rem;height:68px;max-width:var(--maxw);margin:0 auto;padding:0 22px;position:relative}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:700;color:var(--text);font-size:1.02rem;text-decoration:none;flex:0 0 auto}
.brand:hover{text-decoration:none}
.brand svg{width:30px;height:30px;flex:0 0 auto}
.brand b{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.brand .bd{font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);font-weight:700;display:block;line-height:1}
.nav-links{display:flex;align-items:center;gap:1.05rem;margin-left:auto}
.nav-links a{color:var(--muted);font-size:.92rem;font-weight:500;text-decoration:none}
.nav-links a:hover,.nav-links a.active{color:var(--text)}
.nav-item{position:relative}
.nav-item>a::after{content:"";display:inline-block;width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:.35rem;opacity:.6}
/* HOVER BRIDGE — the dropdown sits 10px below the link; without this the pointer
   crosses a dead zone, hover is lost and the menu closes before it can be clicked. */
.nav-item::before{
  content:"";position:absolute;left:-12px;right:-12px;top:100%;height:14px;
  background:transparent;pointer-events:auto;
}
.nav-drop{
  display:none;position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);
  background:var(--card);border:1px solid var(--line-2);border-radius:12px;padding:.5rem;
  min-width:238px;box-shadow:var(--shadow);z-index:70;pointer-events:auto;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop,
.nav-item.open .nav-drop{display:block}
.nav-drop a{display:block;padding:.55rem .75rem;border-radius:8px;font-size:.9rem;white-space:nowrap}
.nav-drop a:hover,.nav-drop a:focus-visible{background:rgba(27,209,180,.10);text-decoration:none;color:var(--text)}
.nav-toggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:9px;padding:.5rem .6rem;cursor:pointer}
.nav-toggle span{display:block;width:20px;height:2px;background:var(--muted);margin:3px 0;border-radius:2px}
@media(max-width:980px){
  .nav-links{display:none;position:absolute;top:68px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--bg-2);border-bottom:1px solid var(--line);padding:.4rem 0;max-height:80vh;overflow:auto}
  .nav-links.open{display:flex}
  .nav-links a{padding:.8rem 22px;border-top:1px solid rgba(27,209,180,.07)}
  .nav-drop{position:static;transform:none;display:block;border:0;box-shadow:none;background:none;padding:0 0 .3rem 12px;min-width:0}
  .nav-item>a::after{display:none}
  .nav-cta{padding:.9rem 22px 1.1rem}
  .nav-toggle{display:block}
}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;justify-content:center;font-weight:600;font-size:.95rem;line-height:1;padding:.82rem 1.35rem;border-radius:11px;border:1px solid transparent;cursor:pointer;text-decoration:none;transition:transform .12s ease,filter .12s ease,background .12s ease,border-color .12s ease;white-space:nowrap}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn-primary{background:var(--grad);color:var(--accent-dark)}
.btn-primary:hover{filter:brightness(1.06)}
.btn-ghost{background:rgba(27,209,180,.06);color:var(--text);border-color:var(--line-2)}
.btn-ghost:hover{background:rgba(27,209,180,.13)}
.btn-lg{padding:1rem 1.7rem;font-size:1.03rem}
.btn-sm{padding:.55rem .95rem;font-size:.87rem}
.btn-block{width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}

/* ---------- hero ---------- */
.hero{
  position:relative;overflow:hidden;padding:5.5rem 0 5rem;border-bottom:1px solid var(--line);
  /* The art must stay VISIBLE. A heavy flat left scrim read as "blank" on desktop, so the
     scrim is now a soft vignette that peaks behind the headline column and clears quickly,
     and the image is anchored centre so the artwork spans the frame instead of sitting right. */
  background:
    radial-gradient(120% 130% at 8% 45%,rgba(4,16,14,.94) 0%,rgba(4,16,14,.82) 26%,rgba(4,16,14,.42) 52%,rgba(4,16,14,.12) 74%,rgba(4,16,14,.30) 100%),
    linear-gradient(90deg,rgba(4,16,14,.55) 0%,rgba(4,16,14,.18) 45%,rgba(4,16,14,.05) 100%),
    url('/assets/img/hero-1920.jpg') 62% center / cover no-repeat,
    var(--bg);
}
.hero::after{ /* faint grid so the left column has texture even where the art is calm */
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(27,209,180,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(27,209,180,.055) 1px,transparent 1px);
  background-size:52px 52px;
  -webkit-mask-image:radial-gradient(90% 120% at 12% 50%,#000 0%,transparent 62%);
          mask-image:radial-gradient(90% 120% at 12% 50%,#000 0%,transparent 62%);
}
.hero>.wrap{position:relative;z-index:1}
.hero.slim{padding:3.4rem 0 3rem}
.hero.slim{
  background:
    radial-gradient(130% 150% at 6% 50%,rgba(4,16,14,.95) 0%,rgba(4,16,14,.85) 30%,rgba(4,16,14,.48) 58%,rgba(4,16,14,.16) 82%,rgba(4,16,14,.34) 100%),
    url('/assets/img/hero-1920.jpg') 62% center / cover no-repeat,
    var(--bg);
}
@media(max-width:900px){
  .hero,.hero.slim{
    padding:4rem 0 3.4rem;
    background:
      radial-gradient(140% 120% at 50% 0%,rgba(4,16,14,.90) 0%,rgba(4,16,14,.94) 55%,rgba(4,16,14,.99) 100%),
      url('/assets/img/hero-1200.jpg') 65% top / cover no-repeat,
      var(--bg);
  }
  .hero::after{opacity:.35;background-size:40px 40px}
}
.eyebrow{display:inline-block;margin-bottom:1.1rem;padding:.4rem .9rem;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#6fe6d2;border:1px solid var(--line-2);border-radius:var(--radius-pill);background:var(--accent-soft)}
.hero .sub{font-size:clamp(1.02rem,2.1vw,1.22rem);color:var(--muted);max-width:58ch;margin:1.1rem 0 1.8rem}
.hero-note{margin-top:1.05rem;font-size:.87rem;color:var(--muted-2)}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:center}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;gap:2rem}}

/* ---------- breadcrumbs ---------- */
.crumbs{font-size:.83rem;color:var(--muted-2);margin-bottom:1.1rem}
.crumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.4rem}
.crumbs li::after{content:"/";margin-left:.4rem;opacity:.5}
.crumbs li:last-child::after{content:""}
.crumbs a{color:var(--muted)}
.crumbs [aria-current]{color:var(--muted-2)}

/* ---------- code pill ---------- */
.code-pill{display:inline-flex;align-items:center;gap:.7rem;background:rgba(27,209,180,.08);border:1px dashed rgba(27,209,180,.45);border-radius:12px;padding:.65rem .95rem}
.code-pill .lbl{font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:#6fe6d2;font-weight:700}
.code-pill code{font-size:1.05rem;font-weight:700;letter-spacing:.08em;background:none;padding:0;color:#eafcf8}
.copy-btn{background:rgba(255,255,255,.07);border:1px solid var(--line-2);color:var(--muted);font-size:.72rem;padding:.3rem .55rem;border-radius:7px;cursor:pointer}
.copy-btn:hover{color:var(--text)}

/* ---------- cards ---------- */
.panel{background:linear-gradient(180deg,var(--surface),var(--bg-2));border:1px solid var(--line);border-radius:var(--radius);padding:1.55rem;box-shadow:var(--shadow)}
.grid{display:grid;gap:1.1rem}
.g-2{grid-template-columns:repeat(2,1fr)}
.g-3{grid-template-columns:repeat(3,1fr)}
.g-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:980px){.g-3,.g-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.g-2,.g-3,.g-4{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.35rem;transition:border-color .15s ease,transform .15s ease}
.card:hover{border-color:var(--line-2);transform:translateY(-2px)}
.card h3{font-size:1.06rem;margin-bottom:.4rem}
.card p{color:var(--muted);font-size:.94rem;margin-bottom:0}
.card .more{display:inline-block;margin-top:.7rem;font-size:.88rem;font-weight:600}
.card.linkable{display:block;color:inherit}
.card.linkable:hover{text-decoration:none}
.ico{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);border:1px solid var(--line);margin-bottom:.85rem}
.ico svg{width:21px;height:21px;stroke:var(--accent-2);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- stats ---------- */
.stat{text-align:center;padding:1.2rem}
.stat .n{font-size:clamp(1.5rem,3.6vw,2.1rem);font-weight:800;background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.stat .l{color:var(--muted);font-size:.89rem;margin-top:.1rem}

/* ---------- tables ---------- */
.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:.93rem;min-width:620px}
th,td{padding:.9rem 1.05rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background:rgba(27,209,180,.06);font-size:.79rem;letter-spacing:.05em;text-transform:uppercase;color:#a7d8ce;font-weight:700}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:rgba(27,209,180,.035)}
td strong{color:#fff}
.yes{color:var(--ok);font-weight:700}
.no{color:var(--muted-2)}

/* ---------- steps ---------- */
.steps{counter-reset:step;list-style:none;padding:0;margin:0}
.steps li{position:relative;padding:0 0 1.6rem 3.1rem;counter-increment:step}
.steps li::before{content:counter(step);position:absolute;left:0;top:-2px;width:2.05rem;height:2.05rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.9rem;color:var(--accent-dark);background:var(--grad)}
.steps li::after{content:"";position:absolute;left:1rem;top:2.15rem;bottom:.2rem;width:1px;background:var(--line)}
.steps li:last-child{padding-bottom:0}
.steps li:last-child::after{display:none}
.steps h3{font-size:1rem;margin-bottom:.22rem}
.steps p{color:var(--muted);font-size:.94rem;margin-bottom:0}

/* ---------- callout ---------- */
.callout{border-radius:var(--radius);padding:1.2rem 1.35rem;border:1px solid var(--line-2);background:rgba(27,209,180,.07)}
.callout.warn{border-color:rgba(251,191,36,.4);background:rgba(251,191,36,.07)}
.callout.ok{border-color:rgba(74,222,128,.35);background:rgba(74,222,128,.07)}
.callout p:last-child{margin-bottom:0}
.callout h3{margin-bottom:.3rem;font-size:1rem}

/* ---------- FAQ ---------- */
.faq-list{max-width:840px;margin:0 auto}
.faq-item{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);margin-bottom:.7rem;overflow:hidden}
.faq-item summary{cursor:pointer;list-style:none;padding:1rem 1.25rem;font-weight:600;font-size:1.01rem;display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--accent-2);font-size:1.3rem;line-height:1;flex:0 0 auto}
.faq-item[open] summary::after{content:"\2212"}
.faq-item .a{padding:0 1.25rem 1.15rem;color:var(--muted);font-size:.96rem}
.faq-item .a p:last-child{margin-bottom:0}

/* ---------- prose (article pages) ---------- */
.prose{max-width:760px;margin:0 auto}
.prose h2{margin-top:2.2rem}
.prose h3{margin-top:1.6rem}
.prose img{border-radius:12px;border:1px solid var(--line);margin:1.2rem 0}
.prose table{min-width:520px}
.toc{border:1px solid var(--line);background:var(--card);border-radius:var(--radius);padding:1.1rem 1.3rem;margin-bottom:2rem}
.toc h2{font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);margin-bottom:.6rem}
.toc ol{margin:0;padding-left:1.2rem;font-size:.92rem}
.toc li{margin:.28rem 0}
.meta-line{color:var(--muted-2);font-size:.85rem;margin-bottom:1.4rem}
.updated{display:inline-block;padding:.2rem .6rem;border-radius:var(--radius-pill);background:rgba(27,209,180,.08);border:1px solid var(--line);font-size:.78rem;color:var(--muted)}

/* ---------- form ---------- */
form.lead{display:grid;gap:1rem}
.field{display:flex;flex-direction:column;gap:.38rem}
.field label{font-size:.89rem;font-weight:600;color:#bfe4dc}
.field input,.field select,.field textarea{background:var(--bg-2);border:1px solid var(--line-2);border-radius:10px;padding:.78rem .92rem;color:var(--text);font:inherit;font-size:.95rem;width:100%}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid rgba(27,209,180,.5);outline-offset:1px;border-color:var(--accent)}
.field textarea{min-height:118px;resize:vertical}
.field .hint{font-size:.8rem;color:var(--muted-2)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-msg{padding:.85rem 1rem;border-radius:10px;font-size:.93rem;display:none}
.form-msg.ok{display:block;background:rgba(74,222,128,.12);border:1px solid rgba(74,222,128,.4);color:#b6f3cb}
.form-msg.err{display:block;background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.4);color:#ffc9c9}
[hidden]{display:none !important}

/* ---------- CTA band ---------- */
.cta-band{background:radial-gradient(40rem 20rem at 12% 0%,rgba(27,209,180,.26),transparent 70%),radial-gradient(34rem 20rem at 92% 100%,rgba(3,162,254,.18),transparent 70%),var(--bg-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

/* ---------- blog ---------- */
.post-card{display:flex;flex-direction:column;height:100%}
.post-card .tag{font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-2);font-weight:700;margin-bottom:.5rem}
.post-card h3{font-size:1.05rem}
.post-card .date{font-size:.8rem;color:var(--muted-2);margin-top:auto;padding-top:.7rem}

/* ---------- footer ---------- */
.site-footer{background:var(--bg-2);border-top:1px solid var(--line);padding:3rem 0 1.8rem;font-size:.91rem}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2rem}
@media(max-width:860px){.footer-grid{grid-template-columns:1fr 1fr;gap:1.6rem}}
@media(max-width:520px){.footer-grid{grid-template-columns:1fr}}
.site-footer h4{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);margin-bottom:.75rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:.38rem 0}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--text)}
.footer-bottom{margin-top:2.2rem;padding-top:1.3rem;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;justify-content:space-between;color:var(--muted-2);font-size:.84rem}
.disclaimer{margin-top:1rem;font-size:.8rem;color:var(--muted-2);line-height:1.6}
.footer-legal{margin:.7rem 0 0;font-size:.8rem;color:var(--muted-2);border-top:1px solid var(--line);padding-top:.85rem}
.footer-legal strong{color:var(--muted)}

/* ---------- cross-promo band (bd-xp pattern) ----------
   House pattern: dark block, max 4 service cards, placed above the final CTA.
   Blue accent on Tencent-brand pages (this site), red elsewhere. */
.xp-band{background:#061714;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:3.2rem 0}
.xp-band h2{font-size:1.35rem;margin-bottom:.35rem}
.xp-band .lede{color:var(--muted);max-width:60ch;margin-bottom:1.8rem}
.xp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
@media(max-width:980px){.xp-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.xp-grid{grid-template-columns:1fr}}
.xp-card{display:flex;flex-direction:column;background:rgba(27,209,180,.05);border:1px solid var(--line);border-radius:14px;padding:1.2rem;text-decoration:none;color:inherit;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.xp-card:hover{border-color:var(--line-2);background:rgba(27,209,180,.10);transform:translateY(-2px);text-decoration:none}
.xp-card .kicker{font-size:.68rem;letter-spacing:.11em;text-transform:uppercase;color:var(--accent-2);font-weight:700;margin-bottom:.5rem}
.xp-card h3{font-size:1rem;margin-bottom:.35rem;color:#fff}
.xp-card p{color:var(--muted);font-size:.88rem;margin-bottom:.8rem}
.xp-card .go{margin-top:auto;font-size:.84rem;font-weight:600;color:#6fe6d2}

/* ---------- trust / partner bar ---------- */
.trust-bar{background:var(--bg-2);border-top:1px solid var(--line);padding:1.7rem 0}
.trust-inner{display:flex;align-items:center;justify-content:center;gap:2.2rem;flex-wrap:wrap}
.trust-logos{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;justify-content:center}
.trust-logos img{height:46px;width:auto;background:#fff;border-radius:10px;padding:5px 12px;display:block}
.trust-sep{width:1px;height:38px;background:var(--line);flex:0 0 auto}
.trust-text{font-size:.86rem;color:var(--muted);max-width:46ch}
.trust-text strong{color:#ddfaf4}
@media(max-width:720px){
  .trust-sep{display:none}
  .trust-logos img{height:38px}
  .trust-text{text-align:center}
}

/* ---------- product shot ---------- */
.shot{border:1px solid var(--line-2);border-radius:14px;overflow:hidden;background:var(--card);box-shadow:var(--shadow)}
.shot img{width:100%;display:block}
.shot figcaption{padding:.7rem 1rem;font-size:.82rem;color:var(--muted-2);border-top:1px solid var(--line)}

/* ---------- video cards ---------- */
.vid-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
@media(max-width:980px){.vid-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.vid-grid{grid-template-columns:1fr}}
.vid-card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;text-decoration:none;color:inherit;display:block;transition:border-color .15s ease,transform .15s ease}
.vid-card:hover{border-color:var(--line-2);transform:translateY(-2px);text-decoration:none}
.vid-thumb{position:relative;aspect-ratio:16/9;background:#061714 center/cover no-repeat}
.vid-thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(7,11,22,.85))}
.vid-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;z-index:2}
.vid-play svg{width:20px;height:20px;fill:var(--accent-dark);margin-left:3px}
.vid-meta{padding:.95rem 1.05rem}
.vid-meta h3{font-size:.98rem;margin-bottom:.25rem}
.vid-meta p{font-size:.85rem;color:var(--muted);margin:0}

/* ---------- logos row (inline, e.g. about page) ---------- */
.logo-row{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.logo-row img{height:52px;width:auto;background:#fff;border-radius:10px;padding:6px 14px}

/* ---------- MOBILE HARDENING ----------
   `overflow-x:hidden` on body alone does NOT stop horizontal scroll on iOS, and
   masking it hides the real cause. The cause was: grid/flex children default to
   `min-width:auto`, so a 620px table inside a grid forced the whole page wider.
   Fix the children, then keep the belt-and-braces rule. */
html{overflow-x:hidden}
.grid>*,.g-2>*,.g-3>*,.g-4>*,.footer-grid>*,.xp-grid>*,.vid-grid>*,.trust-inner>*,.hero-grid>*{min-width:0}
.tbl-wrap{max-width:100%}
.prose pre,pre{max-width:100%}
body{overflow-wrap:break-word}
@media(max-width:420px){
  .wrap,.wrap-narrow{padding:0 16px}
  .nav{padding:0 16px}
  .btn{white-space:normal}
  .btn-row .btn{width:100%}
  .code-pill{flex-wrap:wrap}
  .trust-logos img{height:34px;padding:4px 9px}
  .brand .bd{display:none}
  h1{font-size:clamp(1.7rem,8vw,2.4rem)}
}

/* ---------- AUTO-HIDE HEADER ----------
   Hide on scroll-down, bring back on scroll-up (Henry, 2026-10-10). */
.site-header{transition:transform .28s ease,box-shadow .28s ease}
.site-header.nav-hidden{transform:translateY(-100%)}
@media(prefers-reduced-motion:reduce){.site-header{transition:none}}

/* ---------- prominent download row (Henry: "display all download links clearly") ---------- */
.dl-row{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}
.dl-lbl{font-size:.8rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted-2);font-weight:700;margin-right:.15rem}
.dl-chip{
  display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .95rem;border-radius:var(--radius-pill);
  border:1px solid var(--line-2);background:rgba(27,209,180,.08);color:var(--text);
  font-size:.86rem;font-weight:600;text-decoration:none;transition:background .15s ease,border-color .15s ease,transform .12s ease;
}
.dl-chip:hover{background:rgba(27,209,180,.18);border-color:var(--accent);color:#fff;text-decoration:none;transform:translateY(-1px)}
.dl-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--grad);flex:0 0 auto}

/* ---------- utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}
.flex{display:flex;gap:1rem;flex-wrap:wrap}
.between{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.pill{display:inline-block;font-size:.76rem;padding:.22rem .68rem;border-radius:var(--radius-pill);border:1px solid var(--line);background:rgba(27,209,180,.07);color:var(--muted)}
.pill.p0{background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.35);color:#ffc9c9}
.pill.p1{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.35);color:#ffe3a3}
