/* notifyme — design tokens. Primary: indigo (trust, structure). Accent: siren orange (the alert). */
:root {
  --bg: #f6f7fb;
  --bg-2: #eef0f8;
  --fg: #15172b;
  --muted: #5f6484;
  --line: #e2e5f0;
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-deep: #3730a3;
  --primary-soft: #e0e7ff;
  --primary-ink: #ffffff;
  --accent: #f97316;
  --accent-deep: #c2410c;
  --accent-soft: #ffedd5;
  --ok: #0f9d58;
  --warn: #b45309;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 23, 43, 0.04), 0 8px 24px -12px rgba(21, 23, 43, 0.18);
  --shadow-lg: 0 2px 4px rgba(21, 23, 43, 0.05), 0 24px 48px -16px rgba(79, 70, 229, 0.28);
  --font: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120;
    --bg-2: #141731;
    --fg: #eef0fa;
    --muted: #a3a8c6;
    --line: #272b47;
    --card: #171a2f;
    --primary: #818cf8;
    --primary-deep: #a5b4fc;
    --primary-soft: #26295a;
    --primary-ink: #0f1120;
    --accent: #fb923c;
    --accent-deep: #fdba74;
    --accent-soft: #3b2412;
    --danger: #f87171;
    --danger-soft: #3b1a1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Soft brand glow behind the top of every page; spans the body exactly, so it never widens the page. */
body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(720px 420px at 30% 160px, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%);
}
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5.2vw, 50px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 12px; }
p.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 580px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--primary-ink);
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px; font-family: inherit; border: 0; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, 0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(79, 70, 229, 0.7); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary-soft); box-shadow: none; }
.btn.secondary:hover { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }
.logo-mark { flex: none; }
.logo-rays line { transform-origin: 16px 16px; animation: rays 2.4s ease-in-out infinite; }
.logo-rays line:nth-child(2), .logo-rays line:nth-child(4) { animation-delay: 0.3s; }
.logo-rays line:nth-child(3), .logo-rays line:nth-child(5) { animation-delay: 0.6s; }
@keyframes rays { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
header.top nav.nav { display: flex; gap: 4px; margin-left: auto; }
header.top nav.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: color 0.15s, background 0.15s;
}
header.top nav.nav a:hover { color: var(--fg); background: var(--bg-2); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.lang {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang:hover { color: var(--fg); }
.lang.active { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }

/* ---------- sections ---------- */
main > section { padding: 64px 0; }
main > section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head p { max-width: 560px; }
.section-head.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.page { max-width: 760px; }
.privacy h2 { font-size: 20px; margin: 28px 0 6px; }
.cf-turnstile { margin: 12px 0 4px; min-height: 65px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px;
  padding: 56px 0 72px !important;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { max-width: 600px; overflow-wrap: anywhere; }
html[lang="hy"] .hero h1 { font-size: clamp(26px, 4vw, 40px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-copy > * { animation: rise 0.7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-visual { animation: rise 0.9s var(--ease) 0.15s both; }
.hero-art { width: 100%; height: auto; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(21, 23, 43, 0.12)); }
.float { animation: float 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.float.slow { animation-duration: 9s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.alert-card { animation: slide-in 0.6s var(--ease) both; animation-delay: calc(0.5s + var(--d, 0s)); }
@keyframes slide-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.siren .ring { transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
.siren .ring.r2 { animation-delay: 1.1s; }
@keyframes ring { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.slider circle { animation: nudge 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 16px; overflow: hidden; }
.step:hover, .feature:hover, .tender:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.step-pic { border-radius: var(--radius-sm); background: var(--bg-2); margin-bottom: 16px; overflow: hidden; }
.step-art { width: 100%; height: auto; }
.step-num {
  position: absolute; top: 28px; left: 28px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow);
}
.features { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.feature h3 { grid-column: 2; margin-top: 4px; }
.feature p { grid-column: 2; margin: 0; font-size: 15px; }
.feature-icon-wrap { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 16px; background: var(--bg-2); display: grid; place-items: center; }
.feature-icon { width: 34px; height: 34px; }
.card h3 { overflow-wrap: anywhere; }

/* ---------- tenders ---------- */
.tender-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tender { display: flex; flex-direction: column; gap: 10px; }
.tender-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tender h3 { margin: 0; font-size: 17px; }
.tender h3 a { color: var(--fg); text-decoration: none; }
.tender h3 a::after { content: ""; position: absolute; inset: 0; }
.tender { position: relative; }
.tender h3 a:hover { color: var(--primary); }
.tender .meta { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.tender .meta b { color: var(--fg); font-weight: 600; }
.tender-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-2); }
.pill.source { background: var(--primary-soft); color: var(--primary-deep); border-color: transparent; }
.pill.deadline { color: var(--fg); }
.pill.deadline.urgent { border-color: var(--primary); color: var(--primary-deep); }
.pill.deadline.expired { color: var(--muted); text-decoration: line-through; }
.pill.warn { background: transparent; white-space: normal; line-height: 1.3; font-weight: 500; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
table.kv { border-collapse: collapse; width: 100%; font-size: 15px; }
table.kv th, table.kv td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv th { color: var(--muted); font-weight: 600; width: 160px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid transparent; color: var(--primary-deep); }

/* ---------- form ---------- */
form.subscribe { display: grid; gap: 8px; padding: 8px 24px 24px; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 20px 0 6px; margin: 0; min-width: 0; }
fieldset:first-of-type { border-top: 0; }
legend { font-weight: 800; font-size: 17px; padding: 0 0 2px; float: left; width: 100%; }
legend + * { clear: both; }
.hint { font-size: 13.5px; color: var(--muted); margin: 4px 0 10px; }
label.block { display: block; font-size: 14px; font-weight: 600; margin-top: 6px; }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--bg); color: var(--fg); margin-top: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input[aria-invalid="true"] { border-color: var(--danger); }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; font-size: 14px; background: var(--bg); user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.chips label:hover { border-color: var(--primary); }
.chips label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; }
.chips label:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--primary-soft); }
.chips input { margin: 0; accent-color: var(--primary); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin-top: 10px; cursor: pointer; }
.check input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.choice:hover { border-color: var(--primary); }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--primary-soft); }
.choice-text { display: grid; line-height: 1.3; }
.choice-text b { font-size: 16px; }
.choice-text small { color: var(--muted); font-size: 13px; }
.chan-icon { flex: none; }
.field { margin-top: 14px; }
.channel-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-2); }
/* Show the email field only for the email channel (works without JavaScript). */
form.subscribe:has(input[name="channel"][value="telegram"]:checked) [data-channel-field="email"] { display: none; }
form.subscribe:has(input[name="channel"][value="email"]:checked) [data-channel-field="telegram"] { display: none; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); flex-wrap: wrap; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background 0.15s, color 0.15s; }
.segmented label:has(input:checked) span { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.segmented label:has(input:focus-visible) span { box-shadow: 0 0 0 3px var(--primary-soft); }
.field-error { color: var(--danger); font-size: 13.5px; margin: 6px 0 0; font-weight: 600; }
.error.banner { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-weight: 600; margin-top: 16px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.submit-hint { margin: 0; }

/* keyword badges (tag input); upgraded by app.js, plain text input without it */
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 8px; margin-top: 6px; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: text; transition: border-color 0.15s, box-shadow 0.15s; }
.tags:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tags .tags-source { border: 0; background: transparent; margin: 0; padding: 6px; box-shadow: none; }
.js .tags .tags-source { display: none; }
.tags .tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-deep); font-size: 14px; font-weight: 600;
  animation: pop 0.2s var(--ease);
}
.tags.exclude .tag { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); }
.tags .tag button { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: inherit; opacity: 0.7; }
.tags .tag button:hover, .tags .tag button:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.1); }
.tags .tags-input { flex: 1 1 160px; min-width: 120px; border: 0; background: transparent; margin: 0; padding: 7px 6px; font: inherit; color: var(--fg); }
.tags .tags-input:focus-visible { outline: 0; box-shadow: none; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
details.card { padding: 0; }
details.card summary { list-style: none; cursor: pointer; font-weight: 700; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary .chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s var(--ease); flex: none; }
details.card[open] summary .chev { transform: rotate(225deg); }
details.card p { padding: 0 20px 16px; margin: 0; animation: rise 0.3s var(--ease); }
details.card[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }

/* ---------- footer ---------- */
footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); background: var(--card); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.footer-brand p { margin: 10px 0 0; max-width: 320px; }
footer b { color: var(--fg); display: block; margin-bottom: 4px; }
footer a { font-weight: 600; }

/* ---------- scroll reveal (only when app.js is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 48px !important; }
  .hero-visual { order: -1; }
  .hero-art { max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  /* Two rows on phones: brand and language switch, then the menu as a scrollable strip. */
  header.top .wrap { gap: 4px 10px; flex-wrap: wrap; min-height: 56px; }
  header.top .lang-switch { margin-left: auto; }
  header.top nav.nav {
    order: 3; width: 100%; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none;
    justify-content: space-between;
  }
  header.top nav.nav::-webkit-scrollbar { display: none; }
  header.top nav.nav a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  main > section { padding: 44px 0; }
  form.subscribe { padding: 4px 16px 18px; }
  .brand-name { font-size: 17px; }
}

@media (max-width: 380px) {
  /* Flags only, so the brand and the language switch share the first row; the label stays for screen readers. */
  header.top .lang > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  header.top .lang { padding: 5px 8px; }
  header.top nav.nav { gap: 0; }
  header.top nav.nav a { padding: 6px 5px; font-size: 12.5px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
