/* Hirz website. Same colors as the app (App/Theme.swift):
   blue = brand/trust, green = done, amber = needs attention, red = real danger only. */

:root {
  --brand: #1E4FA3;
  --brand-deep: #13306B;
  --safe: #1F8A4C;
  --attention: #B26A00;
  --danger: #C62828;

  --bg: #FFFFFF;
  --bg-soft: #F4F7FC;
  --card: #FFFFFF;
  --text: #0F1B2D;
  --muted: #5A6578;
  --line: #E1E7F0;
  --tint-brand: rgba(30, 79, 163, 0.08);
  --tint-safe: rgba(31, 138, 76, 0.10);
  --tint-attention: rgba(178, 106, 0, 0.10);
  --tint-danger: rgba(198, 40, 40, 0.09);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6B9BFF;
    --brand-deep: #0B1A3A;
    --safe: #4CD38A;
    --attention: #F5A524;
    --danger: #FF6B6B;

    --bg: #0B1220;
    --bg-soft: #101A2C;
    --card: #142035;
    --text: #EAF0FA;
    --muted: #9AA7BD;
    --line: #22314B;
    --tint-brand: rgba(107, 155, 255, 0.12);
    --tint-safe: rgba(76, 211, 138, 0.12);
    --tint-attention: rgba(245, 165, 36, 0.12);
    --tint-danger: rgba(255, 107, 107, 0.12);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

[lang="ar"] body { line-height: 1.8; }

a { color: var(--brand); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.logo svg { width: 32px; height: 32px; flex: none; }
/* Language menu (globe) */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--brand);
  font-size: 15px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--tint-brand); }
.lang-menu summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang-menu .globe { width: 18px; height: 18px; }
.lang-menu .chev { width: 14px; height: 14px; transition: transform 0.15s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px -16px rgba(19, 48, 107, 0.35);
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}
.lang-list a:hover, .lang-list a:focus-visible { background: var(--bg-soft); outline: none; }
.lang-list a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.lang-list .check { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--brand);
  background: var(--tint-brand);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
[lang="ar"] h1 { letter-spacing: 0; line-height: 1.35; }
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn-soon {
  background: var(--brand);
  color: #fff;
  opacity: 0.9;
  cursor: default;
}
@media (prefers-color-scheme: dark) { .btn-soon { color: #0B1220; } }
.cta-note { color: var(--muted); font-size: 15px; }

/* Phone preview */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 28px 22px 24px;
  box-shadow: 0 24px 60px -24px rgba(19, 48, 107, 0.35);
}
.ring-box { display: grid; place-items: center; margin-bottom: 18px; }
.ring { width: 160px; height: 160px; }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--attention); }
.ring text { fill: var(--text); font-family: inherit; }
.ring .num { font-size: 40px; font-weight: 700; }
.ring .of { font-size: 13px; fill: var(--muted); }
.phone h3 { font-size: 15px; margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.fix {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 15px;
  margin-bottom: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.attention { background: var(--attention); }
.dot.safe { background: var(--safe); }
.fix.done { color: var(--muted); text-decoration: line-through; }

/* Sections */
section { padding: 64px 0; }
.soft { background: var(--bg-soft); }
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
[lang="ar"] h2 { letter-spacing: 0; line-height: 1.4; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 36px; }

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.why p { margin: 0 0 14px; }
.test-title { font-size: 17px; margin: 0 0 12px; }
.test-note { margin: 12px 0 0; color: var(--brand); font-weight: 600; }
.gaps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gaps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.gaps .dot { margin-top: 9px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.card h3 { margin: 14px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.icon svg { width: 24px; height: 24px; }
.icon.brand { background: var(--tint-brand); color: var(--brand); }
.icon.danger { background: var(--tint-danger); color: var(--danger); }
.icon.safe { background: var(--tint-safe); color: var(--safe); }
.icon.attention { background: var(--tint-attention); color: var(--attention); }
.verdict {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  background: var(--tint-danger);
  padding: 3px 10px;
  border-radius: 999px;
}

.privacy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.privacy .card { border-color: transparent; background: var(--tint-safe); }
.privacy .card h3 { color: var(--safe); margin-top: 0; }
.privacy .card p { color: var(--text); }

.final { text-align: center; }
.final .cta-row { justify-content: center; }
.final .section-lead { margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.foot-langs { display: flex; gap: 16px; }

/* Phone width */
@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap, .why { grid-template-columns: 1fr; gap: 32px; }
  .cards, .privacy { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .wrap { padding-inline: 16px; }
  .lang-menu .lang-name { display: none; }
}
