/* otatel.com — design system "Graphit & Petrol".
   A GRC / information-security identity, deliberately distinct from the HADBA sales brand
   (cobalt + coral). Ink navy carries authority, petrol is the single action colour, amber is reserved
   for warnings. One file, plain CSS, no external fonts, no scripts — vendored into every tool. */

:root {
  --ot-ink: #0b1f33;
  --ot-ink-2: #12304d;
  --ot-primary: #0e7c86;
  --ot-primary-hover: #0a5f66;
  --ot-primary-soft: #e3f3f4;
  --ot-accent: #d97706;
  --ot-accent-soft: #fff4e5;
  --ot-success: #15803d;
  --ot-success-soft: #e6f4ea;
  --ot-error: #b91c1c;
  --ot-bg: #f4f6f9;
  --ot-surface: #ffffff;
  --ot-text: #0f172a;
  --ot-muted: #5b6b7c;
  --ot-border: #dde3ea;
  --ot-fill: #eef2f6;
  --ot-radius: 10px;
  --ot-radius-lg: 16px;
  --ot-shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 8px 24px -12px rgba(11, 31, 51, 0.18);
  --ot-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ot-mono: ui-monospace, "JetBrains Mono", Consolas, monospace;
  --ot-maxw: 72rem;
  --ot-hero-grid: rgba(255, 255, 255, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ot-bg: #0a1220; --ot-surface: #101b2d; --ot-text: #e6edf3; --ot-muted: #93a4b8;
    --ot-border: #1f2c3f; --ot-fill: #16233a; --ot-primary: #2aa7b1; --ot-primary-hover: #5cc3cb;
    --ot-primary-soft: #0f2a30; --ot-accent-soft: #2d1e08; --ot-success-soft: #0f2a18;
    --ot-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --ot-bg: #0a1220; --ot-surface: #101b2d; --ot-text: #e6edf3; --ot-muted: #93a4b8;
  --ot-border: #1f2c3f; --ot-fill: #16233a; --ot-primary: #2aa7b1; --ot-primary-hover: #5cc3cb;
  --ot-primary-soft: #0f2a30; --ot-accent-soft: #2d1e08; --ot-success-soft: #0f2a18;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ot-bg); color: var(--ot-text); font-family: var(--ot-font); font-size: 16px; line-height: 1.65; }
a { color: var(--ot-primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--ot-primary-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ot-primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ot-text); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.25rem; padding-top: 0.5rem; }
h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--ot-primary); border-radius: 2px; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
p { margin: 0 0 1em; }
code { font-family: var(--ot-mono); font-size: 0.9em; background: var(--ot-fill); padding: 1px 6px; border-radius: 4px; }
.ot-container { width: 100%; max-width: var(--ot-maxw); margin: 0 auto; padding: 0 16px; }
.ot-muted { color: var(--ot-muted); }
.ot-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ot-primary); margin-bottom: 0.6rem; }
.ot-lead { font-size: 1.15rem; color: var(--ot-muted); max-width: 46rem; }

/* header */
.ot-header { background: var(--ot-surface); border-bottom: 1px solid var(--ot-border); position: sticky; top: 0; z-index: 10; }
.ot-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.ot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ot-text); }
.ot-brand:hover { text-decoration: none; color: var(--ot-text); }
.ot-brand__mark { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--ot-ink) 0%, var(--ot-primary) 100%); display: inline-grid; place-items: center; color: #fff; font-size: 0.8rem; font-weight: 800; }
.ot-brand__dot { color: var(--ot-primary); }
.ot-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.ot-nav a { color: var(--ot-muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.ot-nav a:hover, .ot-nav a[aria-current="page"] { color: var(--ot-text); background: var(--ot-fill); text-decoration: none; }
.ot-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ot-primary); }

/* hero */
.ot-hero {
  background:
    linear-gradient(90deg, var(--ot-hero-grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, var(--ot-hero-grid) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(80% 120% at 100% 0%, rgba(14, 124, 134, 0.45), transparent 60%),
    linear-gradient(160deg, var(--ot-ink) 0%, var(--ot-ink-2) 100%);
  color: #fff; padding: 64px 0 56px;
}
.ot-hero h1 { color: #fff; max-width: 44rem; }
.ot-hero .ot-eyebrow { color: #8fd6dc; }
.ot-hero p { color: rgba(255, 255, 255, 0.82); max-width: 44rem; font-size: 1.15rem; }
.ot-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ot-hero .ot-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.ot-hero .ot-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.ot-trust { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
@media (min-width: 720px) { .ot-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ot-trust__item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.ot-trust__item svg { flex: 0 0 auto; width: 20px; height: 20px; color: #8fd6dc; margin-top: 2px; }
.ot-trust__item strong { color: #fff; display: block; }

/* main & sections */
.ot-main { padding: 40px 0 72px; }
.ot-section { margin-top: 40px; }
.ot-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ot-section__head h2 { margin: 0; padding-top: 0; }
.ot-section__head h2::before { display: none; }

/* cards */
.ot-card { background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: var(--ot-radius-lg); padding: 22px; box-shadow: var(--ot-shadow); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.ot-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: var(--ot-primary); }
.ot-card--soon::before { background: var(--ot-border); }
.ot-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ot-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ot-primary-soft); color: var(--ot-primary); display: grid; place-items: center; }
.ot-card__icon svg { width: 24px; height: 24px; }
.ot-card--soon .ot-card__icon { background: var(--ot-fill); color: var(--ot-muted); }
.ot-card h3 { margin: 4px 0 0; font-size: 1.15rem; }
.ot-card__law { font-size: 0.82rem; color: var(--ot-muted); font-family: var(--ot-mono); }
.ot-card p { margin: 0; }
.ot-card .ot-dl { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--ot-border); font-size: 0.9rem; }
.ot-card .ot-btn { align-self: flex-start; margin-top: auto; }
.ot-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ot-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ot-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* badges, buttons, notices */
.ot-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--ot-fill); color: var(--ot-muted); white-space: nowrap; }
.ot-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ot-badge--ok { background: var(--ot-success-soft); color: var(--ot-success); }
.ot-badge--soon { background: var(--ot-accent-soft); color: var(--ot-accent); }
.ot-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--ot-radius); font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.ot-btn--primary { background: var(--ot-primary); color: #fff; }
.ot-btn--primary:hover { background: var(--ot-primary-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.ot-btn--ghost { border-color: var(--ot-border); color: var(--ot-text); background: var(--ot-surface); }
.ot-btn--ghost:hover { background: var(--ot-fill); text-decoration: none; }
.ot-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.ot-notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(217, 119, 6, 0.35); border-left: 4px solid var(--ot-accent); background: var(--ot-accent-soft); border-radius: var(--ot-radius); padding: 14px 16px; margin: 20px 0; }
.ot-notice svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ot-accent); margin-top: 2px; }
.ot-notice--info { border-color: rgba(14, 124, 134, 0.35); border-left-color: var(--ot-primary); background: var(--ot-primary-soft); }
.ot-notice--info svg { color: var(--ot-primary); }

/* prose (legal + methodology pages) */
.ot-page-head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--ot-border); }
.ot-page-head h1 { margin-bottom: 0.25em; }
.ot-prose { max-width: 50rem; }
.ot-prose ul, .ot-prose ol { padding-left: 1.3rem; }
.ot-prose li { margin-bottom: 0.45em; }
.ot-prose li::marker { color: var(--ot-primary); font-weight: 700; }
.ot-stand { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 8px 12px; border-radius: 8px; background: var(--ot-fill); color: var(--ot-muted); font-size: 0.88rem; font-family: var(--ot-mono); }
.ot-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.ot-dl dt { color: var(--ot-muted); font-weight: 600; }
.ot-dl dd { margin: 0; }
.ot-table-wrap { overflow-x: auto; border: 1px solid var(--ot-border); border-radius: var(--ot-radius); background: var(--ot-surface); }
.ot-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ot-table th, .ot-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ot-border); vertical-align: top; }
.ot-table thead th { background: var(--ot-fill); color: var(--ot-muted); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ot-table tbody tr:last-child td { border-bottom: 0; }

/* footer */
.ot-footer { background: var(--ot-ink); color: rgba(255, 255, 255, 0.75); padding: 36px 0 28px; font-size: 0.92rem; }
.ot-footer__inner { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ot-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.ot-footer a { color: rgba(255, 255, 255, 0.85); }
.ot-footer a:hover { color: #fff; }
.ot-footer__brand { font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.ot-footer__links { display: flex; flex-direction: column; gap: 8px; }
.ot-footer__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8fd6dc; margin-bottom: 8px; }
.ot-devby { margin-top: 10px; }
.ot-devby a, .ot-devby strong { color: #fff; }
.ot-footer__bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
