/* The public page. The identity is docs/DESIGN.md — plaster, kohl, an indigo band, terracotta for the one action —
   with the same IBM Plex faces as the product, served from this machine. Phone first: one column at 380px, two or
   three only where the screen is wide enough to read them side by side. Logical properties throughout, so Arabic
   lays out right to left with the same rules. */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("/static/fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url("/static/fonts/plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-arabic-400.woff2") format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 600; font-display: swap; src: url("/static/fonts/plex-arabic-600.woff2") format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 700; font-display: swap; src: url("/static/fonts/plex-arabic-700.woff2") format("woff2"); }

:root {
  --ink: #16130f; --ink-2: #3d3833; --ink-3: #6f6860; --ink-4: #a39b90;
  --paper: #f4f1ea; --card: #fffdf8; --line: #e4ddd1; --line-2: #eee8de;
  --band: #13182a; --band-2: #1c2338; --band-ink: #f4f1ea; --band-ink-2: #b9bccb;
  --signal: #b23a1e; --signal-ink: #86290f; --signal-bg: #f9e9e1;
  --good: #22665a;
  --radius: 10px;
  --font: "Plex", system-ui, sans-serif;
  color-scheme: light;
}
html[lang="ar"] { --font: "PlexAr", "Plex", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 16px/1.55 var(--font); }
html[lang="ar"] body { font-size: 17px; line-height: 1.7; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--band-2); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
section.wrap { padding-block: 28px 8px; }

.band { background: var(--band); color: var(--band-ink); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 12px; }
.mark { color: var(--band-ink); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: .02em; }
.lang { display: flex; gap: 4px; }
.lang a { color: var(--band-ink-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; min-width: 40px; text-align: center; }
.lang a[aria-current] { background: var(--band-ink); color: var(--band); font-weight: 600; }

.hero { background: var(--band); color: var(--band-ink); padding: 28px 0 36px; }
.hero h1 { color: var(--band-ink); }
.hero .lede { color: var(--band-ink-2); }
.lede { font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

.button { display: inline-block; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; min-height: 44px; }
.button.primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.button.primary:hover { background: var(--signal-ink); }
.button.ghost { background: transparent; color: var(--band-ink); border-color: var(--band-ink-2); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card p:last-child { margin-bottom: 0; }
.card.quiet { background: var(--line-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--band); color: var(--band-ink);
  display: grid; place-items: center; font-weight: 700; }
.steps p { margin: 0; }
.two { display: grid; gap: 12px; }
.ticks, .plain, .numbered { margin: 0; padding-inline-start: 20px; }
.ticks li, .plain li, .numbered li { margin-block: 6px; }
.ticks { list-style: none; padding-inline-start: 0; }
.ticks li { padding-inline-start: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .55em; width: 10px; height: 6px;
  border-inline-start: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
html[dir="rtl"] .ticks li::before { transform: rotate(45deg) scaleX(-1); }
.note { color: var(--ink-3); }
.example { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.example .button { align-self: flex-start; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; color: var(--ink); font-size: 15px; }
.field small { color: var(--ink-3); font-size: 14px; }
.star { color: var(--signal); }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; min-height: 46px; }
textarea { resize: vertical; }
.row { display: grid; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; }
.error { background: var(--signal-bg); color: var(--signal-ink); border-radius: 8px; padding: 10px 12px; margin: 0; }
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-list span { color: var(--ink-3); min-width: 90px; display: inline-block; }
.thanks { padding-block: 48px; }

.foot { padding-block: 32px 40px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); margin-top: 32px; }
.foot p { margin: 0 0 6px; }

@media (min-width: 720px) {
  h1 { font-size: 40px; }
  .hero { padding: 48px 0 56px; }
  .hero .lede { max-width: 680px; font-size: 19px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .two { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  #request .form, #contact .form { max-width: 720px; }
}
