/* RXH site system. One stylesheet for the homepage, the solution finder and every server-rendered page.
 * Palette: RXH navy and teal, with soft tints for cards. Light surfaces with deep navy bands.
 * Rules: no inline styles or scripts (strict CSP). Motion is optional: it is off under reduced-motion. */

:root {
  --navy: #0b2a40;
  --navy-2: #123a55;
  --navy-deep: #071d2d;
  --ink: #0b2a40;
  --ink-2: #3b5366;
  --muted: #5b7183;
  --paper: #f5f7f6;
  --white: #ffffff;
  --line: #dbe4e8;
  --teal: #00a8b8;
  --teal-2: #37d5c8;
  --teal-ink: #00717c;
  --teal-soft: #dff5f4;
  --coral: #ff6f61;
  --t-teal: #dff5f4;
  --t-sand: #f8eadc;
  --t-sky: #e3eefb;
  --t-mint: #e0f5ea;
  --t-lilac: #ebe7fb;
  --t-coral: #ffe6e1;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(11, 42, 64, .05), 0 14px 34px -16px rgba(11, 42, 64, .22);
  --shadow-lift: 0 2px 4px rgba(11, 42, 64, .06), 0 28px 50px -22px rgba(11, 42, 64, .34);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Manrope", "Tajawal", system-ui, sans-serif;
  --body: "Manrope", "Tajawal", system-ui, sans-serif;
  color-scheme: light;
}
html[lang="ar"] { --display: "Tajawal", "Manrope", system-ui, sans-serif; --body: "Tajawal", "Manrope", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.wrap.narrow { width: min(820px, calc(100% - 48px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 99; text-decoration: none; }
.skip:focus { top: 12px; }

/* language: each text pair is one span per language; the address sets the language */
html[lang="ar"] .en, html:not([lang="ar"]) .ar { display: none; }
html[lang="ar"] body { font-family: var(--body); }

/* ---------- arrows that mirror in Arabic ---------- */
.arr { display: inline-block; width: .9em; height: .9em; position: relative; top: .08em; }
.arr::before { content: ""; position: absolute; inset: 0; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
[dir="rtl"] .arr::before { transform: scaleX(-1); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(245, 247, 246, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.top.scrolled { border-bottom-color: var(--line); background: rgba(245, 247, 246, .95); }
.top-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font: 800 1.05rem var(--display); letter-spacing: .08em; }
.brand-text small { font-size: .76rem; color: var(--ink-2); }
.nav { display: flex; gap: clamp(10px, 1.6vw, 22px); margin-inline-start: auto; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.nav a { position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 6px 0; transition: color .2s var(--ease); }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
/* Staff sign-in: an outlined pill on wide screens, so it reads as an action rather than a page. */
.nav .nav-login { border: 1px solid var(--teal); border-radius: 999px; padding: 6px 16px; color: var(--teal); font-weight: 700; }
.nav .nav-login::after { display: none; }
.nav .nav-login:hover { background: var(--teal); color: var(--white); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { font: 700 .88rem var(--body); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.lang:hover { border-color: var(--teal); transform: translateY(-1px); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 26px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 .98rem var(--body); text-decoration: none; border-radius: 999px; padding: 14px 24px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }

.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px -12px rgba(11, 42, 64, .6); }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--teal-2); color: var(--navy-deep); box-shadow: 0 10px 28px -12px rgba(55, 213, 200, .7); }
.btn-accent:hover { background: #5fe3d8; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-2); }
.btn:focus-visible { outline-color: var(--teal-2); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-ink); text-decoration: none; }
.more::after { content: ""; }
.more:hover .arr { transform: translateX(4px); }
[dir="rtl"] .more:hover .arr { transform: translateX(-4px); }
.more .arr { transition: transform .3s var(--ease); }

/* ---------- back link: one design on every page ---------- */
.back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 .92rem var(--body); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 14px; margin-bottom: 26px; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.back .arr { transform: scaleX(-1); }
[dir="rtl"] .back .arr { transform: none; }
.back:hover { border-color: var(--teal); transform: translateX(-3px); }
[dir="rtl"] .back:hover { transform: translateX(3px); }

/* ---------- sections ---------- */
.block { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.block.band { background: var(--navy); color: #e9f2f6; }
.block.band h2, .block.band h3 { color: #fff; }
.block.tinted { background: linear-gradient(180deg, var(--paper), #eef5f4); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 800; max-width: 18ch; }
.section-head .intro { color: var(--muted); font-size: 1.05rem; max-width: 46ch; justify-self: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .86rem var(--body); color: var(--teal-ink); margin: 0 0 14px; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.block.band .eyebrow, .hero .eyebrow, .contact .eyebrow { color: var(--teal-2); }

/* ---------- reveal (progressive: content is visible without JavaScript) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .cards3 > .reveal:nth-child(2), html.js .statements > .reveal:nth-child(2) { --d: 120ms; }
html.js .cards3 > .reveal:nth-child(3), html.js .statements > .reveal:nth-child(3) { --d: 240ms; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--shadow); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; isolation: isolate; }

.card.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 168, 184, .14), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: -1; }
.card.spot:hover::before { opacity: 1; }
.tint-teal { background: var(--t-teal); border-color: #c4ebe9; }
.tint-sand { background: var(--t-sand); border-color: #efd9c1; }
.tint-sky { background: var(--t-sky); border-color: #cddff5; }
.tint-mint { background: var(--t-mint); border-color: #c5e8d5; }
.tint-lilac { background: var(--t-lilac); border-color: #d6cff5; }
.tint-coral { background: var(--t-coral); border-color: #f7cbc4; }
.icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--white); color: var(--teal-ink); box-shadow: 0 6px 18px -10px rgba(11, 42, 64, .35); margin-bottom: 22px; transition: transform .4s var(--ease); }
.icon svg { width: 26px; height: 26px; }
.card:hover .icon { transform: rotate(-6deg) scale(1.05); }
[dir="rtl"] .card:hover .icon { transform: rotate(6deg) scale(1.05); }
.card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.card p, .card .meta { color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem var(--body); color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 5px 12px; margin: 0 0 14px; text-decoration: none; }
.kicker { display: inline-block; font: 700 .8rem var(--body); color: var(--teal-ink); background: var(--teal-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.meta { font-size: .9rem; color: var(--muted); }
.pmeta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 22px; color: var(--ink-2); font-size: .95rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #e9f2f6; padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 116px); isolation: isolate; }
.hero-bg { position: absolute; inset: -10%; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 80% 20%, rgba(55, 213, 200, .22), transparent 60%), radial-gradient(50% 45% at 10% 90%, rgba(0, 168, 184, .18), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0a2236 60%, var(--navy-deep) 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.o1 { width: 420px; height: 420px; background: #1ec9bd; top: -120px; inset-inline-end: 6%; }
.o2 { width: 300px; height: 300px; background: #3d7fb8; bottom: -90px; inset-inline-start: 4%; }
.o3 { width: 180px; height: 180px; background: #ff8f7f; top: 45%; inset-inline-start: 46%; opacity: .25; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font: 800 clamp(2.5rem, 1.2rem + 4.6vw, 5.4rem) / 1.02 var(--display); color: #fff; max-width: 16ch; letter-spacing: -.02em; }
.hero .lede { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: #c3d6e0; max-width: 56ch; margin: 26px 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 420px); justify-self: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(55, 213, 200, .28); }
.ring.r1 { inset: 4%; border-style: dashed; animation: spin 60s linear infinite; }
.ring.r2 { inset: 16%; border-color: rgba(255, 255, 255, .12); animation: spin 38s linear infinite reverse; }
.hero-mark { width: 52%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: float 7s var(--ease) infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-20px, 16px, 0); } }
.orb { animation: drift 16s ease-in-out infinite; }

/* ---------- homepage: focus, statements, products, posts ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.statements { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.statement h3 { font: 800 .9rem var(--body); color: var(--teal-ink); margin-bottom: 14px; }
.statement p { font: 700 clamp(1.25rem, 1rem + .8vw, 1.7rem) / 1.35 var(--display); color: var(--ink); }
.statement p.pre { white-space: pre-line; font-weight: 600; font-size: 1.05rem; }
.statement.card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.statements .statement:first-child { grid-row: span 1; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.product { display: grid; grid-template-rows: auto 1fr; padding: 0; }
.product-media { display: grid; place-items: center; min-height: 230px; padding: 28px; border-bottom: 1px solid rgba(11, 42, 64, .06); }
.product-media img { max-height: 170px; width: auto; max-width: 78%; transition: transform .6s var(--ease); }
.product:hover .product-media img { transform: scale(1.06) rotate(-1deg); }
.product-body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.product-body h3 { font-size: 1.5rem; font-weight: 800; }
.product-body p { color: var(--ink-2); margin: 0; }
.product-body .more { margin-top: auto; padding-top: 8px; }
.product:nth-child(3n+1) .product-media { background: var(--t-teal); }
.product:nth-child(3n+2) .product-media { background: var(--t-sky); }
.product:nth-child(3n+3) .product-media { background: var(--t-sand); }
.product-media.fallback { background: var(--t-lilac); }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.post { display: flex; flex-direction: column; gap: 10px; }
.post h3 { font-size: 1.22rem; font-weight: 800; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { color: var(--ink-2); margin: 0; }
.post .more { margin-top: auto; }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.figures li { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); background: rgba(255, 255, 255, .04); transition: background .4s, transform .4s var(--ease); }
.figures li:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.figures li:nth-child(2) { background: rgba(55, 213, 200, .1); }
.figures strong { display: block; font: 800 clamp(2.2rem, 1.4rem + 2.2vw, 3.6rem) / 1 var(--display); color: #fff; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.figures span { color: #b9ccd7; font-size: 1rem; }

.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.cards2 li { display: flex; flex-direction: column; gap: 10px; }
.cards2 h3 { font-size: 1.2rem; font-weight: 800; }
.cards2 li > a { font-weight: 700; color: var(--teal-ink); word-break: break-word; }
.badge { align-self: flex-start; font: 800 .82rem var(--body); color: var(--navy); background: var(--t-sand); padding: 5px 12px; border-radius: 999px; }

.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.logos li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 112px; display: grid; place-items: center; padding: 18px; transition: transform .35s var(--ease), box-shadow .35s; }
.logos li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logos img { max-height: 56px; width: auto; max-width: 100%; filter: grayscale(1) contrast(.9); opacity: .8; transition: filter .35s, opacity .35s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.people li { display: flex; flex-direction: column; gap: 10px; }
.people img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: var(--shadow); margin-bottom: 8px; }
.people strong { font: 800 1.2rem var(--display); }
.people .role { color: var(--teal-ink); font-weight: 700; margin: 0; }
.people p { color: var(--ink-2); }
.people a { font-weight: 700; color: var(--teal-ink); text-decoration: none; }
.people li.card { padding: clamp(22px, 2.4vw, 30px); border-radius: 22px; }
.people .avatar { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; font: 800 1.9rem / 1 var(--display); color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy)); box-shadow: var(--shadow); }

/* ---------- contact (dark band with a light form card) ---------- */
.contact { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e5eef3; overflow: hidden; }
.contact h2 { color: #fff; font-size: clamp(2.2rem, 1.2rem + 3vw, 3.8rem); font-weight: 800; }
.contact-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact .lede { color: #c3d6e0; font-size: 1.1rem; margin-top: 18px; }
.contact .direct { color: #c3d6e0; margin-top: 26px; }
.contact .direct a { color: var(--teal-2); font-weight: 700; }
.form { background: var(--white); color: var(--ink); border-radius: 26px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form .field-wide { grid-column: 1 / -1; }
.form label { font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.form label b { color: var(--teal-ink); }
.form input, .form select, .form textarea { font: 500 1rem var(--body); color: var(--ink); background: #f4f8f9; border: 1.5px solid transparent; border-radius: 14px; padding: 13px 15px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0, 168, 184, .14); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--coral); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: .92rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); background: #f4f8f9; border-radius: 12px; padding: 11px 12px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal-ink); flex: none; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fmsg { margin: 0; font-weight: 700; font-size: .95rem; }
.fmsg.ok { color: var(--teal-ink); }
.fmsg.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.form .btn-primary { background: var(--teal-ink); }
.form .btn-primary:hover { background: var(--navy); }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: #b9ccd7; padding: 64px 0 36px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand strong { color: #fff; font: 800 1.1rem var(--display); letter-spacing: .08em; }
.foot-brand p { margin: 6px 0 0; color: #9db3c1; max-width: 32ch; }
.foot-nav { display: grid; gap: 12px; }
.foot-nav a { color: #d6e4ec; text-decoration: none; font-weight: 600; width: fit-content; }
.foot-nav a:hover { color: var(--teal-2); }
.foot-meta { display: grid; gap: 12px; font-size: .92rem; }
.foot-meta p { margin: 0; }
.flegal a { color: #9db3c1; }
.flegal a:hover { color: var(--teal-2); }
.foot a:focus-visible { outline-color: var(--teal-2); }

/* ---------- shared list / detail pages ---------- */
.phero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.phero h1 { font: 800 clamp(2.3rem, 1.2rem + 3.6vw, 4.2rem) / 1.05 var(--display); max-width: 20ch; letter-spacing: -.02em; }
.phero h1 b { color: var(--teal-ink); font-weight: 800; }
.plead { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--teal-ink); text-decoration: none; font-weight: 600; }
.crumbs i { font-style: normal; opacity: .5; }
.plist { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chips .chip { font-size: .92rem; padding: 9px 16px; background: var(--white); color: var(--ink-2); border: 1px solid var(--line); }
.chips .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.igrid, .cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.icard, .ccard { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.icard:hover, .ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.icard-link { position: absolute; inset: 0; z-index: 2; }
.icard-img, .ccard-img, .ph { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--t-teal), var(--t-sky)); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.icard:hover .ph img, .ccard:hover .ph img { transform: scale(1.05); }
.icard-body, .ccard-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.icard h3, .ccard h3 { font-size: 1.32rem; font-weight: 800; }
.icard p, .ccard p { color: var(--ink-2); margin: 0; }
.icard.feature { grid-column: span 2; }
.icard.compact { flex-direction: row; }
.icard.compact .icard-img { width: 40%; aspect-ratio: auto; }
.hins { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 2vw, 24px); }
.hins-list { display: grid; gap: clamp(16px, 2vw, 24px); }
.more-wrap { margin-top: 24px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; font-weight: 700; }
.pager a { color: var(--teal-ink); text-decoration: none; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.pager span { color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; background: var(--white); border: 1px dashed #c6d5db; border-radius: var(--radius); }
.empty h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.empty p { color: var(--ink-2); margin: 0; }
.langnote { display: inline-block; font-size: .9rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.pvbar { background: #fff4d6; color: #5c4200; text-align: center; padding: 10px 16px; font-weight: 700; border-bottom: 1px solid #efd98e; }
.phero + .art, .pgal-wrap + .art { margin-top: 0; }
.art { padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 7vw, 100px); }
.ahero { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow); }
.alead { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); color: var(--ink-2); margin-bottom: 30px; font-weight: 500; }
.prose { font-size: 1.08rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.3rem; font-weight: 800; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-inline-start: 1.3em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-inline-start: 1.3em; margin-bottom: 1em; }
.prose a { color: var(--teal-ink); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--teal-soft); border-inline-start: 4px solid var(--teal); border-radius: 12px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.tagl { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.tagl li { font-size: .88rem; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.cflow { display: grid; gap: 18px; margin-top: 10px; }
.cflow li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); }
.cflow li:nth-child(1) { background: var(--t-sand); border-color: #efd9c1; }
.cflow li:nth-child(2) { background: var(--t-sky); border-color: #cddff5; }
.cflow li:nth-child(3) { background: var(--t-mint); border-color: #c5e8d5; }
.cstep { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.cstep small { font: 800 .9rem var(--body); color: var(--teal-ink); background: var(--white); border-radius: 999px; padding: 4px 10px; }
.cstep h2 { font-size: 1.4rem; font-weight: 800; }
.pgal-wrap { padding: 0 0 clamp(20px, 3vw, 36px); }
.pgal-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 62%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.pgal-track li { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pgal-track img { width: 100%; height: auto; }
.pgal-empty { padding: 40px; border: 1px dashed #c6d5db; border-radius: var(--radius); color: var(--muted); text-align: center; background: var(--white); }
.plogo-lg { width: 72px; height: 72px; object-fit: contain; background: var(--white); border-radius: 18px; padding: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; }
.atitle { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.8rem); font-weight: 800; }
.soon { font-weight: 700; color: var(--muted); }
.pcta { background: var(--navy); color: #e9f2f6; padding: clamp(64px, 8vw, 100px) 0; text-align: center; position: relative; overflow: hidden; }
.pcta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(55, 213, 200, .12); filter: blur(40px); top: -200px; inset-inline-end: -120px; }
.pcta h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); font-weight: 800; margin-bottom: 26px; position: relative; }
.pcta h2 b { color: var(--teal-2); }
.pcta .btn { position: relative; }
.pcta .btn { background: var(--teal-2); color: var(--navy-deep); }
.pcta .btn:hover { background: #5fe3d8; }
.related { background: var(--white); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 800; margin-bottom: 30px; }
.draft-note { background: #fff4d6; border: 1px solid #efd98e; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px; font-weight: 600; color: #5c4200; }
.rxh-page .prose { max-width: 74ch; }

/* ---------- solution finder ---------- */
.finder-hero { background: var(--navy); color: #e9f2f6; padding: clamp(56px, 8vw, 100px) 0 clamp(70px, 9vw, 120px); position: relative; overflow: hidden; isolation: isolate; }
.finder-hero h1 { font: 800 clamp(2.4rem, 1.2rem + 4vw, 4.8rem) / 1.04 var(--display); color: #fff; max-width: 18ch; letter-spacing: -.02em; }
.finder-hero .plead { color: #c3d6e0; }
.finder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 36px); margin-top: -54px; position: relative; z-index: 2; align-items: start; }
.finder-form { background: var(--white); border-radius: 26px; padding: clamp(24px, 3.2vw, 44px); box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.finder-form h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; margin-bottom: 10px; }
.finder-form .hint { color: var(--muted); margin-bottom: 26px; }
.step { border: 0; padding: 0; margin: 0 0 30px; }
.step legend { font: 800 1.05rem var(--display); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.step legend .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: .9rem; flex: none; }
.options { display: grid; gap: 10px; }
.option { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; background: #fbfcfc; transition: border-color .2s, background .25s, transform .25s var(--ease), box-shadow .25s; }
.option:hover { border-color: #b6dfe0; transform: translateY(-1px); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8c9cf; flex: none; margin-top: 3px; position: relative; transition: border-color .2s; }
.option:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 4px rgba(0, 168, 184, .12); }
.option:has(input:checked) .dot { border-color: var(--teal-ink); }
.option:has(input:checked) .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal-ink); }
.option:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.option strong { display: block; font-size: 1rem; color: var(--ink); }
.option small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.result { position: sticky; top: 100px; background: var(--navy); color: #e5eef3; border-radius: 26px; padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-lift); overflow: hidden; }
.result::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(55, 213, 200, .18); filter: blur(50px); top: -140px; inset-inline-end: -120px; }
.result > * { position: relative; }
.result .pill { display: inline-block; font: 700 .8rem var(--body); color: var(--navy-deep); background: var(--teal-2); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.result h2 { font: 800 clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem) / 1.1 var(--display); color: #fff; margin-bottom: 14px; }
.result p { color: #c3d6e0; }
.result ul { margin: 18px 0 26px; display: grid; gap: 12px; }
.result li { display: flex; gap: 12px; align-items: flex-start; color: #e5eef3; }
.result li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--teal-2); flex: none; margin-top: 4px; }
.result .btn { width: 100%; margin-bottom: 14px; }
.result .note { font-size: .85rem; color: #9db3c1; margin: 18px 0 0; }
.result .result-block[hidden] { display: none; }
.result-block { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.finder-foot { text-align: center; color: var(--muted); padding: 40px 0 60px; font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 14px; font-size: .92rem; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { position: fixed; inset: 76px 16px auto 16px; flex-direction: column; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lift); display: none; gap: 2px; white-space: normal; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 1.02rem; }
  .nav a::after { display: none; }
  .nav a:hover { background: var(--paper); }
  .nav .nav-login { margin-top: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding: 18px 16px 14px; background: none; color: var(--teal); }
  .nav .nav-login:hover { background: var(--paper); color: var(--teal); }
  .top-actions { gap: 18px; }
  .burger { display: block; }
  .brand-text small { display: none; }
  .hero-in, .contact-in, .finder { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(70%, 320px); order: -1; }
  .statements, .cards3, .posts, .igrid, .cgrid, .people { grid-template-columns: 1fr 1fr; }
  .statements .statement.card:first-child { grid-column: 1 / -1; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .intro { justify-self: start; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .result { position: relative; top: auto; }
  .finder { margin-top: -36px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .top-in { min-height: 68px; gap: 12px; }
  .brand img { width: 34px; height: 34px; }
  .lang { padding: 8px 12px; font-size: .82rem; }
  .nav { inset-block-start: 68px; }
  .statements, .cards3, .posts, .igrid, .cgrid, .people, .cards2, .products, .products > *, .hins, .figures, .logos { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .checks { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .icard.feature { grid-column: auto; }
  .icard.compact { flex-direction: column; }
  .icard.compact .icard-img { width: 100%; aspect-ratio: 16 / 10; }
  .pgal-track { grid-auto-columns: 84%; }
  .card, .ccard-body, .icard-body { padding: 22px; }
  .hero h1, .atitle { overflow-wrap: anywhere; }
  .ring.r2 { display: none; }
  .btn { white-space: normal; text-align: center; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* ---------- motion: optional, never required ---------- */
/* ---------- interaction layer ----------
   Hover lift uses the translate property and tilt uses transform, so the two never fight. Pointer values are
   written by shell.js through CSS variables. reduced-motion users never get them (shell.js and the block below). */
.card { transition: translate .45s var(--ease), transform .35s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.card:hover { translate: 0 -5px; box-shadow: var(--shadow-lift); border-color: transparent; }
.card.spot { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.btn { transition: translate .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { translate: var(--tx, 0px) calc(var(--ty, 0px) - 2px); }
.btn-accent, .btn-primary { translate: var(--tx, 0px) var(--ty, 0px); }
.hero-mark { translate: var(--px, 0px) var(--py, 0px); transition: translate .7s var(--ease); }

.progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; background: linear-gradient(90deg, var(--teal), var(--teal-2)); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
.totop { position: fixed; inset-inline-end: 20px; inset-block-end: 22px; z-index: 55; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--navy); box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--teal-ink); }
.totop:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; }
.totop svg { width: 20px; height: 20px; }

.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; box-shadow: var(--shadow); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow-lift); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 800 1.08rem / 1.3 var(--display); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-inline-end: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(45deg); transition: transform .3s var(--ease); margin-inline-start: 8px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; animation: fade .4s var(--ease); }
.faq a { color: var(--teal-ink); font-weight: 700; }
.people .avatar { transition: transform .4s var(--ease); }
.people li.card:hover .avatar { transform: scale(1.06); }

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