/* Shared style of the robot pages. Generated by tools/build_robots.mjs; edit it there.
   Tokens, header, buttons, FAQ, contact and footer are copied from index.html (design 3, 2 Nov 2026). */
:root {
  --black: #00131F; --deep: #001A2B; --panel: #012D44; --panel-2: #033A55; --ink: #FFFFFF; --soft: #C4D9E5; --dim: #96B6C7; --teal: #4AD5FD; --logo: #00839B;
  --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .18);
  --display: "Tajawal", "Tahoma", sans-serif; --body: "Tajawal", "Tahoma", sans-serif;
  --wrap: min(1240px, calc(100% - 2 * clamp(20px, 5vw, 64px)));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 600' preserveAspectRatio='none'%3E%3Cpath fill='%234AD5FD' d='M58 0C30 90 18 170 48 250C80 340 38 430 78 520C93 560 116 588 128 600C150 540 172 470 152 380C132 290 192 200 176 110C169 60 160 30 166 0Z'/%3E%3C/svg%3E");
}
html[data-lang="en"] { --display: "Lato", sans-serif; --body: "Lato", sans-serif; }
* { box-sizing: border-box; }
html { background: var(--black); scroll-padding-top: 92px; }   /* 6 Nov 2026: jumps and keyboard focus stop below the fixed header */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }   /* smooth scrolling only for those who have not asked for less motion */
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html[data-lang="en"] body { line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
html[data-lang="ar"] [lang="en"], html[data-lang="en"] [lang="ar"] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* header (always solid here: there is no film behind it) */
header { position: fixed; inset: 0 0 auto 0; z-index: 30; border-bottom: 1px solid transparent; }
header.solid { background: rgba(0, 26, 43, .84); backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); border-color: var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 76px; width: var(--wrap); margin-inline: auto; }
.bar .logo img { width: 118px; }
nav.menu { display: flex; gap: 4px; margin-inline-start: auto; }
nav.menu a { text-decoration: none; font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--soft); padding: 8px 12px; border-radius: 999px; transition: color .25s; }
nav.menu a:hover { color: var(--ink); }
.lang { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--soft); background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 14px; cursor: pointer; transition: color .25s, border-color .25s; }
.lang:hover { color: var(--ink); border-color: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; white-space: nowrap; font-family: var(--display); font-size: 15.5px;
  padding: 15px 28px; border-radius: 10px; border: 1px solid var(--teal); background: var(--teal); color: #00243A; font-weight: 800; cursor: pointer; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:hover { transform: translateY(-1px); background: #7ae1ff; border-color: #7ae1ff; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); }
.btn.small { padding: 9px 18px; font-size: 13.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] a:hover .arrow { transform: scaleX(-1) translateX(4px); }
.kicker { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--teal); }
html[data-lang="en"] .kicker { font-weight: 300; font-style: italic; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; }

/* sections */
section { padding-block: clamp(72px, 9vw, 120px); position: relative; scroll-margin-top: 64px; }
.band-deep { background: var(--deep); }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.35; }
html[data-lang="en"] h2 { font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.05; letter-spacing: -.005em; }
.head p { color: var(--soft); font-size: clamp(16.5px, 1.2vw, 18.5px); max-width: 56ch; }

/* the robot hero: the robot on its flame, the words beside it */
.rhero { padding-top: calc(76px + clamp(28px, 5vw, 64px)); padding-bottom: clamp(56px, 8vw, 104px); background: radial-gradient(ellipse 60% 70% at 30% 40%, #03304A 0%, var(--black) 70%); }
html[dir="rtl"] .rhero { background: radial-gradient(ellipse 60% 70% at 70% 40%, #03304A 0%, var(--black) 70%); }
.rhero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.rhero.hub > .wrap { grid-template-columns: minmax(0, 1fr); }
.rhero.hub .copy { max-width: 760px; }
.stage2 { position: relative; height: min(70vh, 620px); min-height: 420px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 60%, #04476A 0%, var(--panel) 45%, var(--black) 100%); display: grid; }
.pic { display: grid; place-items: end center; position: relative; isolation: isolate; padding: 34px 24px 0; }
.pic::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; height: 82%; width: 44%; transform: translateX(-45%); background: var(--flame) center top / 100% 100% no-repeat; opacity: .95; }
.pic img { max-height: 300px; width: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); }
.pic.hero { position: absolute; inset: 0; padding: 40px 30px 0; }
.pic.hero::before { top: 6%; height: 80%; width: 34%; opacity: .9; }
.pic.hero img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 88%; width: auto; max-width: 92%; max-height: none; object-fit: contain; object-position: bottom; }
/* no photo yet: a defining number, set large, stands in for it (as the X2 tile on index.html) */
.pic.spec { place-items: center; align-content: center; gap: 0; font-family: "Lato", sans-serif; padding: 34px 24px; }
.pic.spec::before { display: none; }
.pic.spec b { font-weight: 900; font-style: italic; font-size: clamp(100px, 11vw, 170px); line-height: .9; letter-spacing: -.03em; background: linear-gradient(180deg, #4AD5FD 0%, #00839B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .06em; }
.pic.spec span { font-size: 15px; color: var(--dim); letter-spacing: .3em; text-transform: uppercase; }
.pic.spec.hero b { font-size: clamp(120px, 15vw, 230px); }
.rhero .copy { display: grid; gap: 0; align-content: center; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--display); font-size: 14px; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.rhero h1 { font-family: "Lato", sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(52px, 7vw, 104px); line-height: .95; letter-spacing: -.02em; margin-top: 14px; direction: ltr; unicode-bidi: isolate; text-align: start; overflow-wrap: anywhere; }
html[dir="rtl"] .rhero h1 { text-align: right; }
.rhero.hub h1 { font-family: var(--display); font-style: normal; text-transform: none; font-weight: 800; font-size: clamp(40px, 5.4vw, 78px); line-height: 1.3; direction: inherit; letter-spacing: 0; }
html[data-lang="en"] .rhero.hub h1 { font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.02; }
.rhero .full { margin-top: 12px; color: var(--dim); font-family: "Lato", sans-serif; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; justify-self: start; }
.rhero .lede { margin-top: 22px; font-size: clamp(17px, 1.3vw, 20px); color: #D3E3EC; max-width: 46ch; }
.rhero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.rhero .note { margin-top: 14px; font-size: 14px; color: var(--dim); }

/* use cases */
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.uses li { background: var(--deep); padding: 28px 26px 30px; display: grid; gap: 12px; align-content: start; transition: background .4s var(--ease); }
.uses li:hover { background: var(--panel); }
.uses .n { font-family: "Lato", sans-serif; font-weight: 900; font-style: italic; font-size: 40px; line-height: 1; color: var(--teal); justify-self: start; }
.uses p { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.55; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.specs > div { padding: 26px 0 30px; padding-inline-end: 24px; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); min-width: 0; }
.specs dt { color: var(--soft); font-size: 15px; line-height: 1.5; }
.specs dd { margin: 0; justify-self: start; max-width: 100%; }
.specs dd b { font-family: "Lato", sans-serif; font-weight: 900; font-style: italic; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #FFFFFF 0%, #4AD5FD 160%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .08em; }
.specs dd b.long { font-size: clamp(22px, 1.9vw, 29px); }
.specs dd i { font-style: normal; font-family: "Lato", sans-serif; font-weight: 700; font-size: 15px; color: var(--teal); margin-inline-start: 8px; }

/* before you buy */
.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.two .head { margin-bottom: 0; }
.know { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.know li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.know svg { width: 22px; height: 22px; color: var(--teal); margin-top: 4px; }
.know p { font-size: 17px; line-height: 1.75; }

/* FAQ, as on index.html */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary, .sources summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 0; font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.5; transition: color .25s; }
.faq summary::-webkit-details-marker, .sources summary::-webkit-details-marker { display: none; }
.faq summary::after, .sources summary::after { content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 1.5px solid var(--soft); border-bottom: 1.5px solid var(--soft); transform: rotate(45deg); transition: transform .35s var(--ease); margin-inline: 6px; }
.faq details[open] summary::after, .sources[open] summary::after { transform: rotate(225deg); }
.faq summary:hover, .sources summary:hover { color: var(--teal); }
.faq details p { padding: 0 0 26px; color: var(--soft); font-size: 16.5px; line-height: 1.8; max-width: 70ch; }
.sources { max-width: 900px; margin-top: 40px; }
.sources summary { font-size: 15px; color: var(--dim); padding: 14px 0; justify-content: flex-start; }
.sources ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.sources li { display: block; font-family: "Lato", sans-serif; font-size: 14px; color: var(--dim); text-align: start; overflow-wrap: anywhere; }
.sources a { color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--teal); }

/* robot cards (the index.html tile, as a link) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); min-height: 400px; display: grid; grid-template-rows: 1fr auto;
  text-decoration: none; transition: border-color .4s var(--ease), transform .6s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile .pic img { max-height: 240px; }
.tile .pic.spec b { font-size: clamp(90px, 8vw, 130px); }
.tile .txt { padding: 22px 26px 26px; display: grid; gap: 4px; align-content: start; }
.tile small { font-family: var(--display); font-size: 13.5px; color: var(--teal); }
html[data-lang="en"] .tile small { letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.tile h3 { font-weight: 800; font-size: 26px; }
html[data-lang="en"] .tile h3 { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.tile p { color: var(--soft); font-size: 15.5px; line-height: 1.65; }
.tile .more-link { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--teal); }
.all { margin-top: 28px; }
.all a { font-family: var(--display); font-weight: 800; color: var(--teal); text-decoration: none; }

/* contact strip and footer, as on index.html */
.final { text-align: center; padding-block: clamp(100px, 13vw, 170px); background: var(--deep); }
.final h2 { font-size: clamp(36px, 5vw, 76px); max-width: 16ch; margin-inline: auto; }
.final .steps-mini { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; margin-top: 26px; color: var(--ink); font-size: 17px; counter-reset: m; }
.final .steps-mini > span::before { content: counter(m) ". "; counter-increment: m; color: var(--teal); font-family: "Lato", sans-serif; font-weight: 900; font-style: italic; }
.final .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(70px, 9vw, 110px); text-align: start; }
.contact div { padding: 24px 0 0; padding-inline-end: 20px; display: grid; gap: 4px; }
.contact small { font-family: var(--display); font-size: 14px; color: var(--dim); }
.contact a, .contact b { font-family: var(--display); font-weight: 500; font-size: 17.5px; text-decoration: none; justify-self: start; }
.contact a:hover { color: var(--teal); }
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--dim); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: start; }
footer .about { max-width: 70ch; line-height: 1.8; }
footer .social { display: flex; gap: 20px; }
footer .social a { text-decoration: none; color: var(--soft); }
footer .social a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  nav.menu { display: none; }
  .theme { margin-inline-start: auto; }   /* the switch and the language button sit together at the end */
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
}
@media (max-width: 860px) {
  .rhero > .wrap, .two { grid-template-columns: minmax(0, 1fr); }
  .stage2 { height: 380px; min-height: 0; }
}
@media (max-width: 700px) {
  .bar { height: 64px; gap: 12px; }
  .bar .logo img { width: 96px; }
  .bar .btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }   /* hidden on small screens but still read out: the button keeps its name (6 Nov 2026) */
  .rhero { padding-top: calc(64px + 24px); }
  .stage2 { height: 320px; border-radius: 22px; }
  .rhero .cta .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .contact { grid-template-columns: 1fr; }
  .final .cta .btn { white-space: normal; }
}
@media (max-width: 520px) {
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs > div { padding: 20px 0 22px; }
}

/* ---------- 2 Nov 2026: robot photos in the cards share one height and one floor line; the names start on one line ---------- */
.tile { grid-template-rows: auto 1fr; }
.tile .pic:not(.spec) { height: 280px; }
.tile .pic:not(.spec) img { height: 240px; max-height: none; max-width: 100%; object-fit: contain; object-position: center bottom; }
.tile .pic.spec { height: 280px; }

/* ---------- light mode: the same switch and colours as index.html (remembered per visitor) ---------- */
html[data-theme="light"] {
  --black: #F3F7FA; --deep: #FFFFFF; --panel: #FFFFFF; --panel-2: #E7F0F5; --ink: #00243A; --soft: #34566A; --dim: #52707F; --teal: #00768C;   /* 6 Nov 2026: a shade darker so text passes 4.5:1 on every light surface (was #5A7889 / #00839B, 4.1-4.4) */
  --line: rgba(0, 36, 58, .10); --line-2: rgba(0, 36, 58, .18); color-scheme: light;
}
html[data-theme="light"] header.solid { background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 var(--line); }
html[data-theme="light"] .btn { color: #FFFFFF; }
html[data-theme="light"] .btn:hover { background: #006C80; border-color: #006C80; }
html[data-theme="light"] .btn.line { background: transparent; color: var(--ink); }
html[data-theme="light"] .rhero { background: radial-gradient(ellipse 60% 70% at 30% 40%, #DCEFF6 0%, var(--black) 70%); }
html[data-theme="light"][dir="rtl"] .rhero { background: radial-gradient(ellipse 60% 70% at 70% 40%, #DCEFF6 0%, var(--black) 70%); }
html[data-theme="light"] .rhero .lede { color: var(--soft); }
html[data-theme="light"] .stage2 { background: radial-gradient(ellipse 70% 60% at 50% 60%, #CFE8F2 0%, #E9F3F7 55%, #F8FBFC 100%); }
html[data-theme="light"] .pic img { filter: drop-shadow(0 24px 26px rgba(0, 36, 58, .22)); }
html[data-theme="light"] .specs dd b { background: linear-gradient(180deg, #00243A 0%, #00839B 160%); -webkit-background-clip: text; background-clip: text; }
.theme { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--soft); background: none; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; transition: color .25s, border-color .25s; }
.theme:hover { color: var(--ink); border-color: var(--soft); }
.theme svg { width: 18px; height: 18px; }
.theme .moon, html[data-theme="light"] .theme .sun { display: none; }
html[data-theme="light"] .theme .moon { display: block; }
/* the privacy link (6 Nov 2026) */
footer a.priv { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; } footer a.priv:hover { color: var(--ink); }
