/*
 * Ombok static-site styles.
 * Mirrors the mobile app light theme (lib/core/theme/app_colors.dart),
 * pulled toward calmer surfaces so long-form legal text stays readable.
 */
:root {
  --cobalt: #2962FF;
  --cobalt-deep: #1034A6;
  --cyan: #00E5FF;

  --bg: #F8FAFF;          /* lightCard — page background, calmer than lightBg */
  --surface: #FFFFFF;      /* elevated card surface */
  --surface-tint: #F2F5FF; /* lightSurface — section accents */
  --header-tint: #EAEFFF;  /* lightBg — used for the header strip */

  --text: #0A0E30;         /* lightText */
  --muted: #5A6396;        /* between lightText and lightTextDim for body legibility */
  --muted-soft: #8890B8;   /* lightTextDim */
  --border: #C8D0EA;       /* lightCardBorder */
  --border-soft: #DEE4F4;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  --max-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--header-tint), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  padding: 2rem 1.25rem 4rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────── */

header.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 4px 10px rgba(10, 14, 48, 0.18);
}

.brand:hover {
  color: var(--cobalt);
}

.lang-switch {
  font-size: 0.8125rem;
  color: var(--muted-soft);
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.125rem;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch a.active {
  background: var(--cobalt);
  color: #ffffff;
}

.lang-switch a:hover:not(.active) {
  color: var(--text);
  background: var(--surface-tint);
}

/* ── Typography ─────────────────────────────────────────── */

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--cobalt-deep), var(--cobalt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.hero-mark {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(10, 14, 48, 0.25);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.005em;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

p {
  margin: 0.75rem 0;
  color: var(--text);
}

ul, ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
}

ul li::marker {
  color: var(--cobalt);
}

li {
  margin: 0.25rem 0;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.lead {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--muted-soft);
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Links ──────────────────────────────────────────────── */

a {
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1px solid rgba(41, 98, 255, 0.25);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  color: var(--cobalt-deep);
  border-bottom-color: var(--cobalt);
}

/* ── Components ─────────────────────────────────────────── */

.placeholder {
  background: var(--header-tint);
  border: 1px dashed var(--cobalt);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  color: var(--cobalt-deep);
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 1px 0 rgba(10, 14, 48, 0.02);
}

.contact-block p {
  margin: 0.25rem 0;
}

.notice {
  background: var(--surface-tint);
  border-left: 3px solid var(--cobalt);
  padding: 0.875rem 1.125rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.translation {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9375rem;
}

/* ── Footer ─────────────────────────────────────────────── */

footer.page-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.875rem;
  color: var(--muted-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
}

footer.page-footer a {
  color: var(--muted);
  border-bottom: none;
}

footer.page-footer a:hover {
  color: var(--cobalt);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 480px) {
  body { padding: 1.25rem 1rem 3rem; }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.125rem; }
  header.page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ── Dark mode (auto, soft) ─────────────────────────────── */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08081A;            /* darkBg */
    --surface: #101438;       /* darkCard */
    --surface-tint: #0C1028;  /* darkSurface */
    --header-tint: #0F1538;

    --text: #E0E4FF;          /* darkText */
    --muted: #A8B0DC;
    --muted-soft: #8088B8;    /* darkTextDim */
    --border: #1A2258;        /* darkCardBorder */
    --border-soft: #141A40;
  }

  body {
    background:
      radial-gradient(1200px 600px at 50% -200px, rgba(41, 98, 255, 0.18), transparent 60%),
      var(--bg);
  }

  h1 {
    background: linear-gradient(135deg, var(--cyan), var(--cobalt));
    -webkit-background-clip: text;
    background-clip: text;
  }

  .lang-switch a.active { color: #ffffff; }
  .placeholder { color: var(--cyan); border-color: var(--cobalt); }
}
