/* salmanyg.com design system — shared by every server-rendered page.
   Tokens, header, menu and section grid follow mockups/index.html (direction A: full blue canvas). */

:root {
  --blue: #142099;
  --navy: #0F176C;
  --deep: #0B1257;
  --ink: #011420;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .68);
  --faint: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .16);
  --lift: rgba(255, 255, 255, .06);
  --accent: #8E9AFF;           /* the Live Activity lavender on the home page */
  --ok: #30D158; --warn: #FFD60A; --info: #64D2FF; --danger: #FF9F94;
  --sans: "Thmanyah Sans", system-ui, -apple-system, sans-serif;
  --display: "Thmanyah Serif Display", Georgia, serif;
  --serif: "Thmanyah Serif Text", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.2, 1.25, .3, 1);
  --wrap: 920px;
  --wide: 1000px;
  --gutter: 28px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { background: var(--blue); -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--blue); color: var(--fg);
  font-family: var(--sans); font-size: 18px; line-height: 1.85;
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
bdi { unicode-bidi: isolate; }
b, strong { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wide { max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ───────── Glyphs ───────── */
.ic { flex: none; }
.riyal { unicode-bidi: isolate; white-space: nowrap; flex: none; } /* Thmanyah's «ر.س» ligature */
.money { display: inline-flex; align-items: baseline; gap: .22em; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.brand { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }

/* ───────── Header (as on the home page) ───────── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header); padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2));
  background: var(--blue); transition: box-shadow .3s;
}
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.mono { display: block; width: 40px; height: 40px; position: relative; z-index: 2; flex: none; }
.mono img { display: block; width: 100%; height: 100%; border-radius: 3px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.top nav { display: flex; gap: 30px; align-items: center; margin-inline-end: auto; margin-inline-start: 40px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 16px; transition: color .2s; display: inline-flex; align-items: center; gap: 7px; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; }
.soon-chip { font-size: 11px; font-weight: 500; line-height: 1; padding: 4px 7px 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.top-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding-inline: 18px 16px; border-radius: 999px;
  background: #fff; color: var(--blue); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.top-cta .money { gap: .18em; }
.show-cta .top-cta { opacity: 1; transform: none; pointer-events: auto; }
.menu-btn { display: none; }

/* Full-screen mobile menu, modelled on cohere.com (same as the home page) */
.mnav {
  position: fixed; inset: 0; z-index: 40; background: var(--blue);
  display: flex; flex-direction: column; padding: 108px 24px calc(28px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a {
  font-size: 32px; font-weight: 500; line-height: 1.25; padding-block: 14px; text-decoration: none;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.mnav nav a .soon-chip { font-size: 13px; padding: 5px 10px 4px; }
.mnav .mnav-ctas { margin-top: auto; display: grid; gap: 12px; opacity: 0; transition: opacity .4s var(--ease); }
.mpill { display: flex; align-items: center; justify-content: center; height: 58px; border-radius: 999px; font-size: 19px; font-weight: 500; text-decoration: none; }
.mpill.outline { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.mpill.solid { background: #fff; color: var(--blue); }
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.menu-open .mnav nav a { opacity: 1; transform: none; }
.menu-open .mnav nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mnav nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mnav nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mnav nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .mnav .mnav-ctas { opacity: 1; transition-delay: .26s; }

/* ───────── Buttons and chips ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding-inline: 26px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: var(--blue); font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 34px -16px rgba(1, 20, 32, .6); transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(-5px); }
.btn.lg { height: 60px; padding-inline: 32px 28px; font-size: 19px; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn.block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.busy { pointer-events: none; }
.btn.busy .arr { animation: nudge-l .8s var(--ease) infinite; }
@keyframes nudge-l { 50% { transform: translateX(-6px); } }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.6; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; white-space: nowrap; }
.chip.solid { background: #fff; color: var(--blue); }
.chip.accent { background: rgba(142, 154, 255, .18); color: #C9CFFF; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.live { background: var(--ok); box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }

.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: var(--line); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }

/* ───────── Sections: label column + content (as on the home page) ───────── */
.sec { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; padding-block: 88px; }
.sec + .sec, .sec.rule { border-top: 1px solid var(--line); }
.label { margin: 0; font-size: 15px; font-weight: 500; line-height: 2; color: var(--muted); align-self: start; position: sticky; top: 96px; }
.sec-h { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.3vw, 38px); line-height: 1.45; margin: 0 0 14px; max-width: 640px; text-wrap: balance; }
.sec-intro { color: var(--muted); max-width: 580px; margin: 0 0 40px; }
.sec-intro b, .sec-intro strong { color: #fff; font-weight: 500; }
.rich p + p { margin-top: 1em; }
.rich a { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, .4); }

/* Accordion rows (the experience list on the home page) */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: auto 1fr auto 20px; gap: 18px; align-items: center;
  padding-block: 18px; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease);
}
.row:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.row:hover { padding-inline-start: 8px; }
.plus { position: relative; width: 12px; height: 12px; align-self: center; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 5.25px 0 auto; height: 1.5px; background: var(--muted); border-radius: 1px; transition: transform .4s var(--ease); }
.plus::after { transform: rotate(90deg); }
.open > .row .plus::after { transform: rotate(0deg); }
.open > .row .plus::before { transform: rotate(180deg); }
.panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.open > .panel { grid-template-rows: 1fr; }
.panel-inner { overflow: hidden; }
.panel-inner > div { padding: 6px 0 30px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease); }
.open > .panel .panel-inner > div { opacity: 1; transform: none; transition-delay: .12s; }
.open > .row { border-bottom-color: transparent; }
.rows > li.open { border-bottom: 1px solid var(--line); }

/* Placeholder content: visible while developing, never in production (the server drops it) */
.is-placeholder { position: relative; outline: 1.5px dashed rgba(255, 214, 10, .55); outline-offset: 14px; border-radius: 4px; }
.ph-tag {
  position: absolute; top: -26px; inset-inline-end: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 10px 5px; border-radius: 999px; background: var(--warn); color: #1C1700;
}

/* ───────── Footer (as on the home page) ───────── */
.foot .sec { padding-bottom: 120px; border-top: 1px solid var(--line); }
.email { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); text-decoration: none; display: inline-block; margin-bottom: 16px; }
.email:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 10px; }
.links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.legal { margin-top: 40px; font-size: 13px; color: var(--faint); }

/* ───────── Forms on the blue canvas ───────── */
.field { display: grid; gap: 8px; }
.field > label, .field > .flabel { font-size: 15px; font-weight: 500; color: #fff; display: flex; gap: 6px; align-items: baseline; }
.field .optional { color: var(--faint); font-weight: 400; font-size: 13px; }
.help { font-size: 13.5px; line-height: 1.7; color: var(--faint); }
.input {
  width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 14px; border: 0; outline: 0;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); color: #fff; font-size: 17px; line-height: 1.6;
  transition: box-shadow .2s, background .2s;
}
.input::placeholder { color: rgba(255, 255, 255, .35); }
.input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.input:focus { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 4px rgba(255, 255, 255, .1); }
textarea.input { min-height: 104px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-opacity='.68' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: 18px 50%; background-size: 12px 8px; background-repeat: no-repeat; padding-inline-start: 18px; padding-inline-end: 44px; }
select.input option { color: var(--ink); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.err { font-size: 14px; color: var(--danger); display: none; }
.field.has-err .err { display: block; }
.phone-in { position: relative; direction: ltr; }
.phone-in .input { padding-left: 104px; direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
/* the country's code inside the field; the list of countries is a native select laid over it, so it opens the
   phone's own picker. Without scripts the code shown stays the default, but the chosen country is what's sent. */
.phone-in .cc { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 72px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 17px; padding-right: 12px; border-right: 1px solid var(--line); line-height: 1.2; font-variant-numeric: tabular-nums; transition: color .2s; }
.phone-in .cc::after { content: ""; width: 10px; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-opacity='.68' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.phone-in .cc:hover { color: #fff; }
.phone-in .cc select { position: absolute; inset: -12px -2px -12px -18px; width: auto; opacity: 0; cursor: pointer; font-size: 16px; }
.phone-in .cc:has(select:focus-visible) { color: #fff; outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }

/* Segmented radios (small choices) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .04); font-size: 16px; transition: background .2s, box-shadow .2s, color .2s;
}
.seg label:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.seg input:checked + label { background: #fff; color: var(--blue); box-shadow: none; font-weight: 500; }
.seg input:focus-visible + label { outline: 2px solid #fff; outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 3px 0 0; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: #fff; box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--blue); border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); }

/* ───────── Mobile ───────── */
@media (max-width: 760px) {
  :root { --gutter: 20px; --header: 68px; }
  body { font-size: 17px; }
  .top { padding-inline: var(--gutter); }
  .top nav { display: none; }
  .top-cta { display: none; }
  .menu-btn { all: unset; display: block; position: relative; z-index: 2; width: 40px; height: 40px; cursor: pointer; }
  .menu-btn span { position: absolute; right: 8px; height: 1.8px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease), width .45s var(--ease), top .45s var(--ease); }
  .menu-btn span:nth-child(1) { top: 15px; width: 24px; }
  .menu-btn span:nth-child(2) { top: 23px; width: 15px; }
  .menu-open .menu-btn span:nth-child(1) { top: 19px; width: 24px; transform: rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { top: 19px; width: 24px; transform: rotate(-45deg); }

  .sec { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 64px; }
  .label { position: static; }
  .row { grid-template-columns: auto 1fr 20px; gap: 4px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
