/* Misdaq website. Brand from the app: governance navy, paper for the claim document only, gold only for what falls due
   and for the stamps. Fonts are local (OFL): Alexandria for headings, IBM Plex Sans (Arabic) for text. No outside files. */
@font-face { font-family: "Alexandria"; src: url("../fonts/Alexandria-Arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; src: url("../fonts/Alexandria-Latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0b1d3a; --navy-2: #12284c; --grid: rgb(140 170 220 / .09); --on-navy: #ffffff; --on-navy-2: #b9c6dc;
  --paper: #fbfaf7; --ink: #141b2a; --ink-2: #4b5468; --line: #e2ddd1; --line-2: #cfc8b8;
  --gold: #d9b25a; --gold-ink: #6f4f08; --gold-soft: #f6ecd2; --got: #2f6f57; --got-soft: #dcefe6;
  --page: #ffffff; --focus: #1d4f91;
  --r: 6px; --wrap: 1120px;
  --ff-head: "Alexandria", "Plex Arabic", "Plex", system-ui, sans-serif;
  --ff-text: "Plex Arabic", "Plex", system-ui, sans-serif;
}
html[lang="en"] { --ff-text: "Plex", "Plex Arabic", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root { --page: #0e1524; --ink: #e8ecf3; --ink-2: #a9b3c6; --line: #263043; --line-2: #39455c; --focus: #9cc0f0; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.75 var(--ff-text); }
html[lang="en"] body { line-height: 1.6; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 10; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: var(--ff-head); line-height: 1.25; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.lead { color: var(--ink-2); max-width: 62ch; }

/* ---------- header (on navy) ---------- */
.top { background: var(--navy); color: var(--on-navy); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--ff-head); font-weight: 700; font-size: 1.35rem; }
.mark svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: .95rem; }
.nav a { color: var(--on-navy-2); text-decoration: none; }
.nav a:hover { color: var(--on-navy); }
.lang { color: var(--on-navy); text-decoration: none; font-size: .9rem; border: 1px solid rgb(255 255 255 / .28); padding: 4px 12px; border-radius: 99px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--ff-text); padding: 13px 22px; border-radius: var(--r); border: 0; cursor: pointer; text-decoration: none; }
.btn-gold { background: var(--gold); color: #241a03; }
.btn-gold:hover { background: #e4c173; }
.btn-line { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.btn-line:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
@media (max-width: 860px) { .nav { display: none; } .top-in { gap: 12px; } .top .btn { display: none; } .lang { margin-inline-start: auto; } }

/* ---------- hero: the claim sheet on a blueprint ---------- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.35rem); font-weight: 700; letter-spacing: -.015em; max-width: 15ch; }
html[lang="en"] .hero h1 { max-width: 17ch; }
.hero .lead { color: var(--on-navy-2); margin-top: 18px; font-size: 1.12rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--on-navy-2); font-size: .93rem; }
.hero-facts li { display: flex; gap: 8px; align-items: center; }
.hero-facts .ico { color: var(--gold); width: 18px; height: 18px; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; gap: 36px; } }

/* the document */
.sheet { background: var(--paper); color: #141b2a; border-radius: var(--r); padding: 22px 22px 18px; box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 30px 60px -28px rgb(0 0 0 / .65); position: relative; }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid #e2ddd1; padding-bottom: 12px; }
.sheet-title { font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; }
.sheet-sub { color: #586174; font-size: .85rem; }
.seal { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; transform: rotate(-12deg); flex: none; font: 700 .62rem/1.15 var(--ff-head); text-align: center; opacity: .35; transition: opacity .3s, transform .3s; }
.seal.on { opacity: 1; transform: rotate(-6deg); }
.ctl { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; margin: 14px 0 6px; }
.ctl label { font-weight: 600; font-size: .92rem; }
.ctl output { font: 700 1.5rem/1 var(--ff-head); color: #0b1d3a; min-width: 3.5ch; text-align: end; font-variant-numeric: tabular-nums; }
.ctl input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: #0b1d3a; height: 28px; margin: 0; }
.ticks { position: relative; height: 18px; margin: 0 9px; font-size: .7rem; color: #586174; }
.ticks span { position: absolute; transform: translateX(50%); white-space: nowrap; }
html[dir="ltr"] .ticks span { transform: translateX(-50%); }
.grid { display: grid; grid-template-columns: auto repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 8px; font-size: .74rem; }
.grid .gh { color: #586174; text-align: center; padding-bottom: 2px; }
.grid .rl { color: #4b5468; padding-inline-end: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell { height: 22px; border-radius: 3px; background: #efece4; transition: background-color .25s; }
.cell.got { background: var(--got-soft); box-shadow: inset 0 0 0 1px #b9dccb; }
.cell.due { background: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .78rem; color: #4b5468; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-inline-end: 6px; background: #efece4; }
.legend .l-got i { background: var(--got-soft); box-shadow: inset 0 0 0 1px #b9dccb; } .legend .l-due i { background: var(--gold); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid #0b1d3a; margin-top: 14px; padding-top: 10px; }
.total span { font-size: .88rem; color: #4b5468; }
.total strong { font: 700 1.55rem/1 var(--ff-head); color: #0b1d3a; font-variant-numeric: tabular-nums; }
.total small { font: 500 .8rem var(--ff-text); color: #586174; }
.sheet-note { font-size: .78rem; color: #586174; margin-top: 8px; }
.sheet-more { margin-top: 12px; border-top: 1px dashed #d8d2c4; padding-top: 10px; }
.sheet-more summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: #1d4f91; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.fields label { display: grid; gap: 4px; font-size: .78rem; color: #4b5468; }
.fields input, .fields select { font: 500 .95rem var(--ff-text); padding: 7px 9px; border: 1px solid #cfc8b8; border-radius: 4px; background: #fff; color: #141b2a; width: 100%; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr 1fr; } .grid { font-size: .66rem; } .sheet { padding: 16px 14px 14px; } .cell { height: 18px; } }

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 70ch; }

/* the route: a real sequence, so it is numbered */
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.route::before { content: ""; position: absolute; top: 27px; inset-inline: 10%; border-top: 2px dashed var(--line-2); }
.route li { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 0 10px; }
.stamp { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--page); border: 2px solid var(--gold); color: var(--gold-ink); font: 700 1.2rem var(--ff-head); position: relative; }
@media (prefers-color-scheme: dark) { .stamp { color: var(--gold); } }
.route b { font-family: var(--ff-head); font-weight: 600; }
.route small { color: var(--ink-2); font-size: .92rem; line-height: 1.6; max-width: 24ch; }
.route-note { margin-top: 28px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 22px; }
  .route::before { top: 10px; bottom: 10px; inset-inline: auto; inset-inline-start: 27px; border-top: 0; border-inline-start: 2px dashed var(--line-2); }
  .route li { grid-template-columns: 56px 1fr; justify-items: start; text-align: start; column-gap: 16px; padding: 0; }
  .route li .stamp { grid-row: span 2; }
}

/* parties: four columns separated by rules, no cards */
.parties { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.party { padding: 4px 24px 8px; border-inline-start: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.party:first-child { border-inline-start: 0; padding-inline-start: 0; }
.party .ico { width: 28px; height: 28px; color: var(--gold-ink); }
@media (prefers-color-scheme: dark) { .party .ico { color: var(--gold); } }
.party ul { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: .97rem; display: grid; gap: 6px; }
@media (max-width: 980px) { .parties { grid-template-columns: 1fr 1fr; row-gap: 36px; } .party:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } }
@media (max-width: 560px) { .parties { grid-template-columns: 1fr; } .party { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); padding-top: 22px; } .party:first-child { border-top: 0; padding-top: 0; } }

/* rules the platform enforces, each with its source */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.rule { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.rule .ico { color: var(--got); margin-top: 4px; }
.rule dt { font-weight: 600; }
.rule dd { margin: 0; grid-column: 2; color: var(--ink-2); font-size: .97rem; }
.rule cite { display: block; font-style: normal; font-size: .85rem; color: var(--gold-ink); margin-top: 4px; }
@media (prefers-color-scheme: dark) { .rule cite { color: var(--gold); } .rule .ico { color: #7fc3a6; } }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* questions */
.faq { max-width: 78ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--ink-2); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* interest form (on navy, like the header) */
.join { background: var(--navy); color: var(--on-navy); }
.join .sec-head p { color: var(--on-navy-2); }
.join-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.join-in > .sec-head { display: block; }
.join ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--on-navy-2); }
.join li { display: flex; gap: 10px; }
.join li .ico { color: var(--gold); }
.form { background: var(--navy-2); border-radius: var(--r); padding: 26px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.f { display: grid; gap: 6px; }
.f.wide { grid-column: 1 / -1; }
.f label { font-size: .92rem; font-weight: 500; }
.f .opt { color: var(--on-navy-2); font-weight: 400; }
.f input { font: 400 1rem var(--ff-text); padding: 11px 12px; border-radius: 4px; border: 1px solid #3b5583; background: #0d2142; color: #fff; width: 100%; }
.f input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.f input[aria-invalid="true"] { border-color: #ff9d8a; }
.f .help { font-size: .82rem; color: var(--on-navy-2); }
.f .err { font-size: .85rem; color: #ffb4a6; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--on-navy-2); grid-column: 1 / -1; }
.consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--on-navy); }
.form-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { font-size: .95rem; }
.form-msg.bad { color: #ffb4a6; } .form-msg.good { color: #b8e4cf; }
.form .ts { grid-column: 1 / -1; min-height: 0; }
.form[hidden], .done[hidden] { display: none; }
.done { background: var(--navy-2); border-radius: var(--r); padding: 30px; display: grid; gap: 10px; }
.done h3 { font-size: 1.35rem; }
@media (max-width: 900px) { .join-in { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; padding: 18px; } }

/* footer */
.foot { background: #081429; color: var(--on-navy-2); font-size: .9rem; padding: 28px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot a { color: var(--on-navy); }
.foot .demo { margin-inline-start: auto; }

/* text page (privacy) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-inline-start: 20px; }
.doc .stamp-line { font-size: .9rem; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
