/* Yoza public site. Palette from app/lib/core/theme/app_colors.dart. */
:root {
  --ground: #f5f4ef;
  --surface: #fcfbf8;
  --line: #e3e1d9;
  --ink: #14211f;
  --muted: #56635f;
  --brand: #0a6b66;
  --brand-ink: #ffffff;
  --brand-tint: #e3f1ef;
  --link: #0a6b66;
  --tile: #fcfbf8;
  --tile-moon: #0a6b66;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0a1a1c;
    --surface: #12292b;
    --line: #1e3b3d;
    --ink: #eaf3f1;
    --muted: #9db3af;
    --brand: #064e4a;
    --brand-tint: #cfe7e3;
    --link: #2fb8ae;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.75 system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
html[lang="en"] body { line-height: 1.6; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

/* Mark: the splash tile (cream square, teal moon) + wordmark */
.mark { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }
.tile {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 0.7rem;
  background: var(--tile); color: var(--tile-moon);
}
.tile svg { width: 62%; height: 62%; }
.word { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; direction: ltr; }

/* Top bar on document pages */
.bar { background: var(--brand); color: var(--brand-ink); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; }
.lang { color: var(--brand-ink); font-size: 0.9375rem; text-decoration: none; padding: 0.5rem 0.25rem; }
.lang:hover { text-decoration: underline; }

/* Document pages */
.doc { padding-block: 2rem 3rem; }
.doc h1 { font-size: 1.75rem; line-height: 1.3; margin: 0 0 0.25rem; }
.doc .updated { color: var(--muted); font-size: 0.875rem; margin: 0 0 1.5rem; }
.doc .lead { font-size: 1.0625rem; }
.doc h2 { font-size: 1.1875rem; line-height: 1.4; margin: 2.25rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1rem; margin: 1.25rem 0 0.25rem; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-inline-start: 1.25rem; }
.doc li + li { margin-top: 0.35rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 0.75rem 0; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--muted); font-size: 0.8125rem; }
.note {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1rem 1.125rem; margin: 1rem 0;
}
.note p { margin: 0; }
.note p + p { margin-top: 0.5rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 2.5rem; min-height: 1.75rem; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0.1rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-tint); color: #064e4a; font-weight: 700; font-size: 0.875rem;
}
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; direction: ltr; unicode-bidi: isolate; }

/* Landing */
.hero { background: var(--brand); color: var(--brand-ink); }
.hero .wrap { display: flex; flex-direction: column; align-items: flex-start; padding-block: 1rem 3rem; }
.hero .top { width: 100%; display: flex; justify-content: flex-end; }
.hero .tile { width: 5.5rem; height: 5.5rem; border-radius: 1.7rem; margin-top: 2.5rem; }
.hero h1 { margin: 1.25rem 0 0; font-size: 3rem; line-height: 1; direction: ltr; }
.hero .tag { margin: 0.75rem 0 0; font-size: 1.25rem; color: var(--brand-tint); }
.soon {
  display: inline-flex; align-items: center; gap: 0.65rem; margin-top: 2rem;
  padding: 0.6rem 1.1rem 0.6rem 1rem; border-radius: 0.75rem;
  background: #0b1514; color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.soon svg { width: 1.4rem; height: 1.4rem; flex: none; }
.soon small { display: block; font-size: 0.75rem; opacity: 0.8; line-height: 1.2; }
.soon b { display: block; font-size: 1.0625rem; line-height: 1.3; direction: ltr; }
.about { padding-block: 2.25rem 0.5rem; }
.about p { margin: 0 0 0.75rem; max-width: 60ch; }
.links { list-style: none; padding: 0; margin: 1rem 0 2.5rem; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0.25rem; color: var(--ink); text-decoration: none; }
.links a span:last-child { color: var(--muted); font-size: 0.875rem; }
.links a:hover span:first-child { color: var(--link); text-decoration: underline; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot .wrap { padding-block: 1.5rem 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.75rem; }
.foot nav a { color: var(--muted); }
.foot p { margin: 0.25rem 0; }

@media (min-width: 48rem) {
  .doc { padding-block: 3rem 4rem; }
  .doc h1 { font-size: 2.125rem; }
  .hero .wrap { padding-block: 1.25rem 4rem; }
  .hero h1 { font-size: 3.75rem; }
}
