/* Landing + OAuth pages — light theme, no build step */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e4e8ef;
  --primary: #2156d9;
  --primary-hover: #1a46b3;
  --primary-soft: #eaf0fd;
  --green: #0f8a5f;
  --green-soft: #e3f6ee;
  --radius: 14px;
  --font: "Inter", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); text-align: center; letter-spacing: -0.01em; }
h3 { font-size: 17px; }
p { margin: 0 0 10px; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.small svg { width: 16px; height: 16px; vertical-align: -3px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.nav { display: flex; gap: 22px; margin-left: 12px; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 12px; font-weight: 600; }
.langs a { padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.langs a.active { background: var(--primary-soft); color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; font-family: inherit; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: #c7cfdc; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, #f3f6fd 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.badge-green { background: var(--green-soft); color: var(--green); margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 600px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.chat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, .08); padding: 18px; }
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chat-tool { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; }
.bubble { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 10px; }
.bubble.user { background: var(--bg-alt); margin-left: 15%; }
.bubble.ai { border: 1px solid var(--line); margin-right: 8%; }
.tool-line { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; margin-bottom: 10px; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.stat-row strong { color: var(--text); font-size: 22px; }
.bar { height: 9px; border-radius: 6px; background: linear-gradient(90deg, var(--primary), #6f95ee); width: var(--w); margin-bottom: 7px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { font-size: 14.5px; }
.card-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.prompt { font-size: 15px; font-style: italic; color: var(--text); background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.client { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.client img { width: 40px; height: 40px; flex: none; color: #000; }
.client p { font-size: 14px; margin: 4px 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { border-top: 3px solid var(--primary); padding-top: 16px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; margin-right: 8px; }
.steps p { font-size: 14.5px; margin-top: 8px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; margin-bottom: 18px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(33, 86, 217, .12); }
.price-head { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 15px; margin: 6px 0 4px; }
.price strong { font-size: 38px; letter-spacing: -0.02em; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 10px; }
.checks svg { color: var(--green); flex: none; width: 18px; height: 18px; margin-top: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.footer-row { display: flex; flex-direction: column; gap: 6px; }
.payment-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 10px; }
.payment-logos img { display: block; height: 28px; width: auto; object-fit: contain; }

/* OAuth authorize page */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg-alt); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 16px 40px rgba(15, 23, 42, .06); }
.auth-card .brand { margin-bottom: 20px; }
.auth-card h1 { font-size: 22px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
/* Authority declaration (OAuth confirm page, downloadable copy, legal pages) */
.consent-card { max-width: 640px; }
.consent-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 18px 0; padding: 14px; background: var(--bg-alt); border-radius: 10px; font-size: 14px; }
.consent-facts dt { color: var(--muted); }
.consent-facts dd { margin: 0; font-weight: 600; }
.consent-input { width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.consent-h { font-size: 15px; margin: 18px 0 8px; }
.consent-scopes { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.consent-scopes li { margin-bottom: 8px; }
.consent-scopes label { display: flex; gap: 10px; align-items: flex-start; }
.consent-scopes input { margin-top: 4px; }
.link { color: var(--primary); text-decoration: underline; }
.cap-first::first-letter { text-transform: uppercase; }
.role-radio { position: absolute; opacity: 0; pointer-events: none; }
.role-card { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.role-radio:checked + .role-card { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.role-radio:focus-visible + .role-card { box-shadow: 0 0 0 3px var(--primary-soft); }
.decl { display: none; }
#role-director:checked ~ .decl-director, #role-representative:checked ~ .decl-representative { display: block; }
#role-director:checked ~ .decl-none, #role-representative:checked ~ .decl-none { display: none; }
.decl-text { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; background: #fff; }
.decl-text p { margin-bottom: 10px; }
.decl-accept { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; font-size: 14px; }
.decl-accept input { margin-top: 4px; }
.decl-accept input:disabled + strong { color: var(--muted); }
.decl-link-row { margin: 0 0 10px 26px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: underline; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.decl-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); }
.decl-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.decl-dialog .decl-text { max-height: calc(100vh - 220px); }
.decl-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.legal-doc { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.legal-doc h1 { font-size: 30px; }

.alert-ok { background: var(--green-soft) !important; color: var(--green) !important; }
.alert { background: #fdecec; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 14px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4, .clients-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-actions .btn-ghost { display: none; }
  .header-row { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .langs a { padding: 4px 6px; }
  .brand { font-size: 16px; }
  .grid-4, .grid-3, .clients-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0; }
}
