/* MZADK public pages — tokens mirror the app (lib/core/design/tokens.dart): navy ink, warm paper, restrained gold. */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0E1A2E;
  --paper: #F6F4EF;
  --sunken: #EEEBE3;
  --surface: #FFFFFF;
  --line: #E5E1D8;
  --line-strong: #D2CCBF;
  --text: #0E1A2E;
  --text-2: #596272;
  --text-3: #646B76;
  --gold: #B38B4D;
  --gold-deep: #83632E;
  --gold-soft: #F3EBDC;
  --caution: #985A0D;
  --caution-soft: #FBEEDA;
  --positive: #1C7650;
  --error: #B02A21;
  --on-ink: #F7F5F0;
  --focus: #203250;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #F4F2ED; --paper: #0A1424; --sunken: #111E33; --surface: #111E33; --line: #233451; --line-strong: #2C3F60;
    --text: #F4F2ED; --text-2: #97A3B8; --text-3: #97A3B8; --gold-deep: #D8B87F; --gold-soft: #182842;
    --caution: #F2B560; --caution-soft: #2A2416; --positive: #63D39E; --error: #FF6A5E; --on-ink: #0E1A2E; --focus: #D8B87F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.7 "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 680px; margin-inline: auto; padding-inline: 20px; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { display: block; border-radius: 7px; }
.wordmark { font-weight: 600; font-size: 21px; letter-spacing: 0; color: var(--navy); line-height: 1; }
html[lang=en] .wordmark { font-size: 16px; letter-spacing: 2.2px; }
.lang { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; }
.lang:hover { color: var(--text); }

/* Heading */
.eyebrow { margin: 40px 0 6px; font-size: 13px; font-weight: 600; color: var(--gold-deep); }
html[lang=en] .eyebrow { letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lead { margin: 0 0 28px; color: var(--text-2); max-width: 56ch; }
h2 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }

/* The one interactive surface */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps { list-style: none; display: flex; gap: 20px; margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; }
.steps li.on { color: var(--text); font-weight: 600; }
.steps li.on .num { background: var(--navy); border-color: var(--navy); color: var(--on-ink); }
.steps li.done .num { border-color: var(--gold); color: var(--gold-deep); }

label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.field + .field { margin-top: 16px; }
input[type=email], input[type=text] {
  display: block; width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px;
}
input[type=email]:focus, input[type=text]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 14%, transparent); }
input.code { letter-spacing: .35em; font-variant-numeric: tabular-nums; text-align: center; font-size: 20px; }
input:disabled { color: var(--text-2); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--navy); color: var(--on-ink); }
.btn-primary:hover { opacity: .92; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-text { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 480px) { .actions .btn { width: 100%; } }

.verified { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; color: var(--text-2); }
.verified::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--positive); flex: none; }
.status { margin: 0 0 4px; }
.pill { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--caution-soft); color: var(--caution); }
.pill.neutral { background: var(--sunken); color: var(--text-2); }
.muted { color: var(--text-2); margin: 0 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 4px 0 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--navy); flex: none; }
.error { margin: 14px 0 0; color: var(--error); font-size: 14px; font-weight: 600; }
.note { margin: 14px 0 0; color: var(--text-2); font-size: 14px; }

/* Information */
.block { margin-top: 44px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-inline-start: 26px; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 9px; top: 24px; bottom: 2px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::before { background: var(--navy); }
.timeline strong { display: block; font-weight: 600; }
.timeline p { margin: 2px 0 0; color: var(--text-2); }

.split { display: grid; gap: 36px; grid-template-columns: 1fr; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding-inline-start: 22px; margin-bottom: 10px; color: var(--text-2); font-size: 15px; }
.list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 10px; height: 2px; border-radius: 1px; background: var(--text-3); }
.list.kept li::before { width: 6px; height: 6px; top: 9px; border-radius: 50%; background: var(--gold); }
.fine { margin: 24px 0 0; font-size: 14px; color: var(--text-3); }

/* Footer */
.footer { margin-top: 56px; padding-block: 24px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.placeholder { background: var(--gold-soft); color: var(--gold-deep); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* Landing */
.home { padding-block: 72px 48px; }
.home h1 { margin-bottom: 8px; }

/* Policy documents */
.doc { padding-bottom: 8px; }
.doc h2 { margin: 40px 0 4px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 20px; }
.doc h3 { margin: 24px 0 6px; font-size: 16px; font-weight: 600; }
.doc p { margin: 0 0 10px; max-width: 68ch; }
.doc .list li { color: var(--text); }
.doc a { color: var(--text); }

/* Shared auction link page (/auction/{id}) */
.auction .cover { display: block; width: 100%; max-height: 420px; object-fit: cover; margin: 24px 0 0; border-radius: var(--radius); background: var(--sunken); }
.auction .eyebrow { margin-top: 24px; }
.pill.live { background: var(--error); color: #FFFFFF; }
.auction .btn { text-decoration: none; }
