/* PipeCheck site styles. Base copied from the PipeMeet site (same family system); PipeCheck additions at the end.
   Tokens from the approved brand sheet (pipecheck_project/brand/pipecheck-brand.html).
   Layout: stacked full-width bands, alternating Mist and White, one Ink band; the pipe now ends in the
   PipeCheck ring, which doubles as the health-score gauge. */
:root {
  --ink: #12262B;
  --ink-2: #3A5054;
  --slate: #56696C;
  --teal: #0B7F6A;
  --teal-dk: #096B59;
  --teal-lt: #3FBFA0;
  --wash: #D5EDE7;
  --gold: #B87A12;
  --gold-lt: #E2A63B;
  --gold-wash: #F5E6C8;
  --mist: #F3F6F5;
  --white: #FFFFFF;
  --line: #D2DDDA;
  --display: "Readex Pro", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  --r-card: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p, ul, ol, dl, dd { margin: 0; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); padding: 8px 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 16px;
  text-decoration: none; border-radius: 999px; padding: 14px 24px; border: 1.5px solid var(--teal); transition: background .15s, color .15s, transform .15s; }
.btn-p { background: var(--teal); color: var(--white); }
.btn-p:hover { background: var(--teal-dk); border-color: var(--teal-dk); }
.btn-s { background: transparent; color: var(--teal); }
.btn-s:hover { background: var(--wash); }
.btn-gold { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--ink); }
.btn-gold:hover { background: #F0B755; }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wm { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.wm span { font-weight: 400; }
.wm b { font-weight: 600; }
.logo-dk { color: var(--mist); }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(243, 246, 245, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 32px; padding-block: 14px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-family: var(--display); font-size: 15px; }
.nav a:hover { color: var(--teal); }
@media (max-width: 860px) { .nav { display: none; } .head-cta { margin-left: auto; } }
@media (max-width: 380px) { .head-cta { padding-inline: 12px; font-size: 13.5px; } }

/* hero */
.hero { position: relative; padding-block: 72px 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 span { color: var(--teal); font-weight: 500; }
.hero-sub { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 48px; } .hero { padding-block: 48px 80px; } }

.hero-pipe { position: absolute; left: 0; right: 0; bottom: 30px; width: 100%; height: 40px; }
.hero-pipe path { stroke: var(--teal); stroke-width: 10; stroke-linecap: round; fill: none; opacity: .9;
  stroke-dasharray: 1400; stroke-dashoffset: 0; animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) both; }
.hero::after { content: ""; position: absolute; left: calc(90.28% + 12px); bottom: 38px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--gold); animation: pop .5s 1.25s both; }
@keyframes draw { from { stroke-dashoffset: 1400; } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .hero-pipe path, .hero::after, .slot-on, .meet-card { animation: none; } }

/* trust */
.trust { background: var(--white); border-block: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 26px; }
.trust p { color: var(--ink-2); font-size: 15.5px; padding-left: 18px; position: relative; }
.trust p::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.trust b { font-family: var(--display); font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .trust-in { grid-template-columns: 1fr; gap: 10px; } }

/* sections */
.sec { padding-block: 104px; }
.sec-white { background: var(--white); border-block: 1px solid var(--line); }
@media (max-width: 700px) { .sec { padding-block: 64px; } }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.eyebrow-dk { color: var(--teal-lt); }
.sec h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.1; }
.sec-sub { font-size: 18px; color: var(--ink-2); }
.aside-line { margin-top: 32px; color: var(--slate); font-size: 15.5px; }

/* lists */
.dlist, .xlist { list-style: none; padding: 0; display: grid; gap: 10px; }
.dlist li, .xlist li { position: relative; padding-left: 24px; }
.dlist li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.xlist li::before { content: ""; position: absolute; left: 1px; top: .82em; width: 12px; height: 2px; border-radius: 2px; background: var(--slate); }

/* problem / solution */
.ps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .ps { grid-template-columns: 1fr; } }
.ps-card { border-radius: var(--r-card); padding: 34px; display: grid; gap: 16px; align-content: start; }
.ps-problem { background: var(--white); border: 1px solid var(--line); }
.ps-problem li { color: var(--ink-2); }
.ps-solution { background: var(--ink); color: var(--mist); }
.ps-solution .ps-label { color: var(--teal-lt); }
.ps-solution .dlist li::before { background: var(--gold-lt); }
.ps-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.ps-card h3 { font-size: 24px; font-weight: 500; line-height: 1.25; }
@media (max-width: 600px) { .ps-card { padding: 24px; } }

/* steps on a pipe */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 10px; right: 30px; top: 9px; height: 8px; border-radius: 8px; background: var(--teal); }
.steps li { position: relative; padding: 52px 28px 0 0; display: grid; gap: 8px; align-content: start; }
.steps li:not(.step-end)::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 5px solid var(--teal); }
.step-end::before { content: ""; position: absolute; right: 0; top: -5px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); }
.step-k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.steps h3 { font-size: 26px; font-weight: 500; }
.steps p:not(.step-k) { color: var(--ink-2); max-width: 30ch; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { left: 9px; right: auto; top: 10px; bottom: 30px; width: 8px; height: auto; }
  .steps li { padding: 0 0 0 52px; }
  .step-end { height: 30px; }
  .step-end::before { left: -4px; right: auto; top: 0; }
}

/* motions */
.motions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .motions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .motions { grid-template-columns: 1fr; } }
.motion { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: grid; gap: 8px;
  grid-template-rows: auto auto auto 1fr auto; transition: transform .2s, box-shadow .2s; }
.motion:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(18, 38, 43, .5); }
.motion svg { margin-bottom: 8px; }
.m-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.motion h3 { font-size: 22px; font-weight: 500; }
.motion > p:not(.m-k):not(.m-proof) { color: var(--ink-2); font-size: 15px; }
.m-proof { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 15px; }
.m-proof span { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }

/* case study placeholder */
.case { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.case-story { border: 1.5px dashed var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 20px; }
.case-client { font-family: var(--display); font-size: 20px; font-weight: 500; }
.case-client span { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.case-story dl { display: grid; gap: 14px; }
.case-story dt { font-family: var(--display); font-weight: 500; }
.case-story dd { color: var(--slate); }
.case-kpis { display: grid; gap: 12px; }
.kpi { border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px 20px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: repeating-linear-gradient(135deg, var(--white) 0 10px, #F8FAF9 10px 20px); }
.kpi b { font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--slate); }
.ph-note { margin-top: 16px; background: var(--gold-wash); color: #5C3D06; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }

.partners { margin-top: 72px; display: grid; gap: 24px; }
.logos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.logos li { height: 84px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--white); }
.logos img { max-height: 34px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .7; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ways */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
.way { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; display: grid; gap: 14px;
  grid-template-rows: auto auto auto 1fr auto auto; }
.way-rec { border: 2px solid var(--teal); box-shadow: 0 30px 60px -44px rgba(11, 127, 106, .7); }
.way-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.way-rec .way-k { color: var(--teal); }
.way h3 { font-size: 26px; font-weight: 500; }
.way-d { color: var(--ink-2); }
.way-price { font-family: var(--display); font-weight: 500; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.way .btn { justify-self: start; }

/* CTA */
.cta { background: var(--ink); color: var(--mist); padding-block: 96px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -20px; right: 30%; top: 48px; height: 10px; border-radius: 10px; background: var(--teal); opacity: .55; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
@media (max-width: 860px) { .cta-in { grid-template-columns: 1fr; gap: 28px; } .cta { padding-block: 72px; } }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 500; line-height: 1.08; margin-block: 14px; }
.cta-sub { color: rgba(243, 246, 245, .78); font-size: 18px; max-width: 56ch; }
.cta-act { display: grid; gap: 14px; justify-items: start; }
.cta-note { font-size: 14px; color: rgba(243, 246, 245, .6); }

/* footer */
.site-foot { background: #0E1D21; color: rgba(243, 246, 245, .75); padding-block: 56px 28px; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
@media (max-width: 800px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand { display: grid; gap: 14px; justify-items: start; }
.countries { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.countries li { border: 1px solid rgba(243, 246, 245, .2); border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols p { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-lt); margin-bottom: 4px; }
.foot-cols a, .foot-base a { color: rgba(243, 246, 245, .8); text-decoration: none; }
.foot-cols a:hover, .foot-base a:hover { color: var(--white); text-decoration: underline; }
.mail { user-select: all; word-break: break-all; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(243, 246, 245, .12); font-size: 13px; }
.logos .sq img { max-height: 48px; }
@media (max-width: 900px) { .hero { padding-bottom: 120px; } }
@media (max-width: 600px) {
  .hero::after { left: calc(90.28% - 2px); }
  .slot { font-size: 0; }
}

/* ---- inner pages ---- */
.page { padding-block: 72px 104px; }
@media (max-width: 700px) { .page { padding-block: 40px 72px; } }
.page h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }

/* message pages */
.msg { max-width: 640px; display: grid; gap: 20px; justify-items: start; }
.msg-art { width: 160px; height: auto; margin-bottom: 8px; }
.msg-when { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--teal); }
.msg-sub { font-size: 18px; color: var(--ink-2); }
.msg-box { width: 100%; }

/* legal */
.legal { max-width: 760px; display: grid; gap: 14px; }
.legal h2 { font-size: 22px; font-weight: 500; margin-top: 22px; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-date { font-family: var(--mono); font-size: 13px; color: var(--slate) !important; }
.legal-draft { background: var(--gold-wash); color: #5C3D06 !important; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }

/* ---- problem-first opening (v2) ---- */
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); }
.hero-answer { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 19px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px 10px 14px; }
.hero-answer svg { flex: none; }
.hero-answer b { color: var(--teal); font-weight: 600; }
@media (max-width: 600px) { .hero-answer { border-radius: 16px; font-size: 17px; align-items: flex-start; } }

.eyebrow-muted { color: #A2412B; }
.problem { padding-bottom: 72px; }
.broken-pipe { width: 100%; height: auto; max-height: 40px; display: block; margin: -8px 0 36px; }
.broken-pipe path { stroke: #B9C9C6; stroke-width: 10; stroke-linecap: round; fill: none; }
.broken-pipe circle { fill: none; stroke: #B9C9C6; stroke-width: 3; stroke-dasharray: 6 6; }
.problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .problems { grid-template-columns: 1fr; } }
.pr { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: grid; gap: 10px; align-content: start; }
.pr h3 { font-size: 20px; font-weight: 500; line-height: 1.25; }
.pr p { color: var(--ink-2); font-size: 15px; }
.pr-cost { margin-top: 32px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; line-height: 1.35; max-width: 40ch; }

.solution { position: relative; background: var(--ink); color: var(--mist); padding-block: 88px 112px; overflow: hidden; }
.sol-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .sol-in { grid-template-columns: 1fr; gap: 32px; } .solution { padding-block: 64px 96px; } }
.sol-head { display: grid; gap: 18px; justify-items: start; }
.solution h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.12; }
.sol-list { font-size: 18px; gap: 16px; padding-top: 6px; }
.sol-list li::before { background: var(--gold-lt); top: .62em; }
.sol-pipe { position: absolute; left: 0; right: 0; bottom: 36px; width: 100%; height: 28px; }
.sol-pipe path { stroke: var(--teal); stroke-width: 10; stroke-linecap: round; fill: none; }
.solution::after { content: ""; position: absolute; left: calc(90% + 14px); bottom: 30px; width: 40px; height: 40px; border-radius: 50%; border: 6px solid var(--teal); background: radial-gradient(circle, var(--gold-lt) 0 7px, transparent 7.5px); }
.legal-tbl { border-collapse: collapse; width: 100%; max-width: 620px; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal-tbl th, .legal-tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-tbl tr:last-child th, .legal-tbl tr:last-child td { border-bottom: 0; }
.legal-tbl th { font-family: var(--display); font-weight: 500; width: 38%; color: var(--ink); }
.legal-tbl td { color: var(--ink-2); }
@media (max-width: 480px) { .legal-tbl th, .legal-tbl td { display: block; width: auto; } .legal-tbl th { padding-bottom: 0; border-bottom: 0; } }

/* ---- language switch ---- */
.lang { font-family: var(--display); font-size: 14.5px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.lang:hover { color: var(--teal); border-color: var(--teal); }
.head-cta { margin-left: 0; }
@media (max-width: 860px) { .lang { margin-left: auto; } }

/* ---- Arabic (RTL) ---- */
[dir="rtl"] body, [dir="rtl"] .btn, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] body * { letter-spacing: 0 !important; }
[dir="rtl"] .wm { letter-spacing: -0.02em !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.3; }
[dir="rtl"] .hero h1 { line-height: 1.22; font-size: clamp(34px, 4.8vw, 58px); }
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .kicker, [dir="rtl"] .eyebrow, [dir="rtl"] .ps-label, [dir="rtl"] .step-k, [dir="rtl"] .m-k, [dir="rtl"] .m-proof span,
[dir="rtl"] .way-k, [dir="rtl"] .book-k, [dir="rtl"] .tag-ex, [dir="rtl"] .dn, [dir="rtl"] .case-client span, [dir="rtl"] .foot-cols p,
[dir="rtl"] .legal-date, [dir="rtl"] .mc-day, [dir="rtl"] .mc-time { font-family: var(--body); text-transform: none; font-size: 13.5px; }
[dir="rtl"] .mc-day { font-size: 11px; }
[dir="rtl"] .logo { direction: ltr; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
@media (max-width: 860px) { [dir="rtl"] .lang { margin-left: 0; margin-right: auto; } }
[dir="rtl"] .dlist li, [dir="rtl"] .xlist li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .dlist li::before { left: auto; right: 2px; }
[dir="rtl"] .xlist li::before { left: auto; right: 1px; }
[dir="rtl"] .trust p { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .trust p::before { left: auto; right: 0; }
[dir="rtl"] .hero-pipe, [dir="rtl"] .broken-pipe, [dir="rtl"] .sol-pipe, [dir="rtl"] .motion svg, [dir="rtl"] .msg-art { transform: scaleX(-1); }
[dir="rtl"] .hero::after { left: auto; right: calc(90.28% + 12px); }
@media (max-width: 600px) { [dir="rtl"] .hero::after { right: calc(90.28% - 2px); } }
[dir="rtl"] .solution::after { left: auto; right: calc(90% + 14px); }
[dir="rtl"] .cta::before { left: 30%; right: -20px; }
[dir="rtl"] .hero-answer { padding: 10px 14px 10px 20px; }
[dir="rtl"] .week-title span { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .meet-card { left: -18px; right: 22%; }
@media (max-width: 600px) { [dir="rtl"] .meet-card { left: 12px; right: 12px; } }
[dir="rtl"] .mc-q li { padding: 3px 22px 3px 10px; }
[dir="rtl"] .mc-q li::before { left: auto; right: 9px; }
[dir="rtl"] .steps::before { left: 30px; right: 10px; }
[dir="rtl"] .steps li { padding: 52px 0 0 28px; }
[dir="rtl"] .steps li:not(.step-end)::before { left: auto; right: 0; }
[dir="rtl"] .step-end::before { right: auto; left: 0; }
@media (max-width: 800px) {
  [dir="rtl"] .steps::before { left: auto; right: 9px; }
  [dir="rtl"] .steps li { padding: 0 52px 0 0; }
  [dir="rtl"] .step-end::before { left: auto; right: -4px; }
}
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .legal-tbl th, [dir="rtl"] .legal-tbl td { text-align: right; }
[dir="rtl"] .skip { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { right: 16px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.legal-note { background: var(--wash); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }
[dir="rtl"] .hero h1 { font-size: clamp(32px, 4vw, 50px); }
[dir="rtl"] .dn, [dir="rtl"] .dd { line-height: 1.3; }
[dir="rtl"] .dn { font-size: 11px; }
.head-cta, .lang { white-space: nowrap; }
@media (max-width: 600px) { .head-in { gap: 12px; } .lang { padding: 5px 10px; font-size: 13.5px; } }
@media (max-width: 420px) {
  .head-in { gap: 8px; }
  .logo { gap: 6px; }
  .logo svg { width: 28px; height: 28px; }
  .site-head .wm { font-size: 19px; }
  .lang { padding: 4px 8px; font-size: 12.5px; }
  .head-cta { padding: 8px 11px; font-size: 12.5px; }
}

/* ================= PipeCheck additions ================= */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:root { --fix: #A2412B; --fix-wash: #F4DDD6; --watch-ink: #8A5A0B; }
.wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* hero: the pipe ends in the ring */
.hero::after { left: calc(90.28% + 14px); bottom: 28px; width: 44px; height: 44px; background: radial-gradient(circle, var(--gold) 0 8px, transparent 8.5px);
  border: 6px solid var(--teal); }
@media (max-width: 600px) { .hero::after { left: calc(90.28% - 6px); bottom: 32px; width: 36px; height: 36px; border-width: 5px; } }
.hero-proof { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--slate); }
.hero-proof span { position: relative; padding-left: 16px; }
.hero-proof span::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* health report card */
.health { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 16px;
  box-shadow: 0 30px 60px -40px rgba(18, 38, 43, .45); max-width: 460px; width: 100%; justify-self: end; animation: rise .6s .3s both; }
@keyframes rise { from { transform: translateY(14px); } }  /* no fade: the card must be visible even if animations don't run */
@media (max-width: 900px) { .health { justify-self: start; } }
.h-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.h-title { font-family: var(--display); font-weight: 500; font-size: 16px; }
.h-top { display: flex; gap: 18px; align-items: center; }
.h-top svg { flex: none; }
.ring-arc { stroke-dasharray: var(--arc) 214; animation: fill 1.2s cubic-bezier(.4, 0, .2, 1); }  /* rests on the score if animations don't run */
@keyframes fill { from { stroke-dasharray: 0 214; } }
.h-score { display: grid; gap: 2px; font-size: 14px; color: var(--slate); }
.h-score b { font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--ink); }
.h-rows { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
.h-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.st { flex: none; font-family: var(--display); font-size: 12px; font-weight: 500; padding: 3px 10px 3px 21px; border-radius: 999px; position: relative; white-space: nowrap; }
.st::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-50%); background: currentColor; }
.st.ok { color: var(--teal-dk); background: var(--wash); }
.st.watch { color: var(--watch-ink); background: var(--gold-wash); }
.st.fix { color: var(--fix); background: var(--fix-wash); }
@media (prefers-reduced-motion: reduce) { .health { animation: none; } .ring-arc { animation: none; stroke-dasharray: var(--arc) 214; } }

/* problems: 3 columns */
.problems.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .problems.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .problems.six { grid-template-columns: 1fr; } }

/* two ways in (on Ink) */
.paths { display: grid; gap: 14px; }
.path { background: rgba(243, 246, 245, .06); border: 1px solid rgba(243, 246, 245, .14); border-radius: var(--r-card); padding: 22px; display: grid; gap: 12px; }
.path-k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-lt); }
.path-seq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--display); font-size: 20px; font-weight: 500; }
.path-seq span { display: inline-flex; align-items: center; gap: 8px; }
.path-seq i { font-style: normal; color: rgba(243, 246, 245, .45); }
.path p { color: rgba(243, 246, 245, .78); font-size: 15.5px; }

/* blocks + areas */
.blocks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .blocks { grid-template-columns: 1fr; } }
.blk { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 8px; align-content: start; }
.sec-white .blk { background: var(--mist); border-color: transparent; }
.blk-n { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.blk h3 { font-size: 19px; font-weight: 500; line-height: 1.25; }
.blk p { color: var(--ink-2); font-size: 15px; }
.blk.wide { grid-column: 1 / -1; background: var(--wash); border-color: transparent; }
.status-key { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; font-size: 14.5px; color: var(--ink-2); }
.status-key span.st { margin-right: 8px; }

/* sample report table */
.sample { margin-top: 56px; display: grid; gap: 16px; }
.sample-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.sample-h h3 { font-size: 24px; font-weight: 500; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.tbl { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); background: var(--mist); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-family: var(--display); font-weight: 500; }
.tbl td { color: var(--ink-2); }

/* health check form */
.hc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .hc { grid-template-columns: 1fr; gap: 36px; } }
.hc-copy { display: grid; gap: 20px; position: sticky; top: 110px; }
@media (max-width: 960px) { .hc-copy { position: static; } }
.hc-get { background: var(--mist); border-radius: var(--r-card); padding: 22px; display: grid; gap: 12px; }
.hc-get p { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.hc-form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 20px;
  box-shadow: 0 30px 60px -44px rgba(18, 38, 43, .45); min-width: 0; }
@media (max-width: 600px) { .hc-form { padding: 20px; } }
.hc-bar { display: grid; gap: 10px; }
.hc-k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.hc-track { height: 6px; border-radius: 6px; background: var(--wash); overflow: hidden; }
.hc-track span { display: block; height: 100%; width: 50%; background: var(--teal); border-radius: 6px; transition: width .3s; }
.hc-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field > label, .field legend, .lbl { font-family: var(--display); font-weight: 500; font-size: 15px; padding: 0; }
.opt { font-weight: 400; color: var(--slate); font-size: 13.5px; }
.inp { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.inp:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--wash); }
.inp[aria-invalid="true"] { border-color: var(--fix); }
textarea.inp { min-height: 96px; resize: vertical; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.phone { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; direction: ltr; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.err { color: var(--fix); font-size: 13.5px; }
.err:empty { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label, .checks label { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font-family: var(--display); font-size: 14.5px; transition: background .15s, border-color .15s; }
.seg input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.checks input, .consent input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.consent input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hc-actions .btn[disabled] { opacity: .6; cursor: progress; }
.btn-link { background: none; border: 0; padding: 8px 4px; font: inherit; font-family: var(--display); color: var(--slate); cursor: pointer; text-decoration: underline; }
.hc-small { font-size: 13.5px; color: var(--slate); }
.hc-status { font-size: 14.5px; color: var(--fix); }
.hc-status:empty { display: none; }
.hc-done { display: grid; gap: 14px; justify-items: start; padding-block: 12px; }
.hc-done h3 { font-size: 26px; font-weight: 500; }
.hc-done p { color: var(--ink-2); }
.ts-box { min-height: 0; }

/* packages: four cards */
.ways.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .ways.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ways.four { grid-template-columns: 1fr; } }
.ways.four .way { padding: 26px; grid-template-rows: auto auto auto 1fr auto; }
.way-ic { margin-bottom: 4px; }

/* how it works: two tracks */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }
.track { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 18px; align-content: start; }
.track h3 { font-size: 22px; font-weight: 500; }
.track ol { list-style: none; padding: 0; display: grid; gap: 0; position: relative; }
.track ol::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--wash); }
.track li { position: relative; padding: 0 0 18px 34px; display: grid; gap: 2px; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--teal); }
.track li:last-child::before { background: var(--gold); border-color: var(--gold); }
.track li b { font-family: var(--display); font-weight: 500; }
.track li span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.track li p { color: var(--ink-2); font-size: 15px; }
.pre { background: var(--ink); color: var(--mist); border-radius: var(--r-card); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pre p { max-width: 62ch; color: rgba(243, 246, 245, .82); }
.pre b { color: var(--mist); font-family: var(--display); font-weight: 500; }

/* CRMs */
.crm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .crm-cols { grid-template-columns: 1fr; } }
.crm-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 16px; align-content: start; }
.sec-white .crm-col { background: var(--mist); border-color: transparent; }
.crm-col h3 { font-size: 22px; font-weight: 500; }
.crm-col > p { color: var(--ink-2); font-size: 15px; }
.build-on { list-style: none; padding: 0; display: grid; gap: 10px; }
.build-on li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.build-on img { max-height: 30px; width: auto; }
.build-on .txt-logo { font-family: var(--display); font-weight: 600; font-size: 16px; }
.build-on p { font-size: 14.5px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--display); font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.small-print { font-size: 14px; color: var(--slate); }

/* partners */
.pgroups { display: grid; gap: 28px; }
.pgroup { display: grid; gap: 12px; }
.pgroup > p { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.ptiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ptiles li { min-height: 64px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--white);
  font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--ink); line-height: 1.25; }
.sec-white .ptiles li { background: var(--white); }
.ptiles img { flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.ptiles span { min-width: 0; }

/* measure + fit + faq */
.measure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; }
@media (max-width: 800px) { .measure { grid-template-columns: 1fr; } }
.promise { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 26px; max-width: 820px; color: var(--ink-2); }
.promise b { font-family: var(--display); font-weight: 500; color: var(--ink); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 500; font-size: 17.5px; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); max-width: 70ch; }
.ill { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; justify-self: start; }

/* RTL for PipeCheck parts */
[dir="rtl"] .hero::after { left: auto; right: calc(90.28% + 14px); }
@media (max-width: 600px) { [dir="rtl"] .hero::after { right: calc(90.28% - 6px); } }
[dir="rtl"] .hero-proof span { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .hero-proof span::before { left: auto; right: 0; }
[dir="rtl"] .st { padding: 3px 21px 3px 10px; }
[dir="rtl"] .st::before { left: auto; right: 8px; }
[dir="rtl"] .status-key span.st { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .tbl th, [dir="rtl"] .tbl td { text-align: right; }
[dir="rtl"] select.inp { background-position: 14px 52%, 20px 52%; padding-right: 14px; padding-left: 38px; }
[dir="rtl"] .hp { left: auto; right: -9999px; }
[dir="rtl"] .track ol::before { left: auto; right: 7px; }
[dir="rtl"] .track li { padding: 0 34px 18px 0; }
[dir="rtl"] .track li::before { left: auto; right: 0; }
[dir="rtl"] .faq summary { padding: 18px 0 18px 32px; }
[dir="rtl"] .faq summary::after { right: auto; left: 0; }
[dir="rtl"] .path-seq svg, [dir="rtl"] .way-ic { transform: scaleX(-1); }
[dir="rtl"] .hc-k, [dir="rtl"] .path-k, [dir="rtl"] .blk-n, [dir="rtl"] .pgroup > p, [dir="rtl"] .hc-get p, [dir="rtl"] .track li span,
[dir="rtl"] .tbl thead th, [dir="rtl"] .ill { font-family: var(--body); text-transform: none; font-size: 13.5px; }
.phone .inp[dir="ltr"] { text-align: left; }
