/* The public page of rmt.tebyangroup.com, in the look of tebyangroup.com: light, navy and gold, Vazirmatn. */

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;
  --bg-alt: #edf2f8;
  --surface: #ffffff;
  --ink: #0f2742;
  --text: #334155;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --line-2: #d3dde9;
  --brand: #1b4b7c;
  --brand-700: #133a62;
  --brand-500: #2563a8;
  --brand-100: #d6e4f3;
  --brand-50: #eef4fb;
  --gold: #f5b30a;
  --gold-600: #e0a000;
  --gold-ink: #1a1300;
  --green: #1e8e3e;
  --red: #c62828;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 66, 0.05), 0 2px 6px rgba(15, 39, 66, 0.06);
  --shadow: 0 6px 16px rgba(15, 39, 66, 0.06), 0 18px 40px rgba(15, 39, 66, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 39, 66, 0.16);
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.9 Vazirmatn, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; display: block; }
.brand-name { padding-inline-start: 12px; border-inline-start: 1px solid var(--line-2); font-weight: 800; color: var(--ink); font-size: 15.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 24px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15.5px; line-height: 1.4;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn:hover { border-color: var(--brand-500); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn.main { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 22px rgba(245, 179, 10, 0.32); }
.btn.main:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--gold-ink); }
.btn.sm { min-height: 40px; padding: 6px 16px; font-size: 14.5px; box-shadow: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Sections and text ---------- */
.panel { padding-block: clamp(56px, 8vw, 96px); }
.panel.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 14px;
  font-size: 13.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.35; font-weight: 900; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(23px, 2.4vw, 32px); line-height: 1.5; font-weight: 800; color: var(--ink); text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.6; font-weight: 800; color: var(--ink); }
.g { color: var(--brand-500); background: linear-gradient(100deg, var(--brand) 0%, var(--brand-500) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { margin-top: 18px; font-size: clamp(16.5px, 1.25vw, 18px); line-height: 2.05; text-align: justify; }
.meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.head { text-align: center; max-width: 720px; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 88px); background:
  radial-gradient(48% 52% at 92% 0%, rgba(37, 99, 168, 0.10), transparent 70%),
  radial-gradient(40% 40% at 4% 40%, rgba(245, 179, 10, 0.08), transparent 70%); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.copy { max-width: 600px; }

/* A drawing without words: a laptop connected to a pharmacy's computer, with chat, voice and files. */
.art { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.art .glow-blue { fill: rgba(37, 99, 168, 0.08); }
.art .glow-gold { fill: rgba(245, 179, 10, 0.10); }
.art .body { fill: var(--surface); stroke: var(--line); }
.art .screen { fill: var(--brand-50); }
.art .win { fill: var(--surface); stroke: var(--brand-100); }
.art .win-bar { fill: var(--brand); }
.art .line { fill: var(--line-2); }
.art .accent { fill: var(--gold); }
.art .cursor { fill: var(--ink); stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.art .stand { fill: var(--line-2); }
.art .lid { fill: var(--brand); }
.art .lid-screen { fill: var(--brand-700); }
.art .mini { fill: var(--brand-100); }
.art .mini-win { fill: var(--surface); }
.art .deck { fill: #c5d3e3; }
.art .link { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; animation: flow 1.4s linear infinite; }
.art .node { fill: var(--gold); stroke: #fff; stroke-width: 3; }
.art .chip { fill: var(--surface); }
.art .chip-ico { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: 26px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card p { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.features .card { display: grid; justify-items: center; align-content: start; text-align: center; padding: 28px 18px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.features .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.features h3 { font-size: 16.5px; line-height: 1.8; }
.ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.features .card:nth-child(odd) .ico { background: #fff6dc; color: #8a6200; }
.center { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 28px 20px; font-size: 14.5px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; color: var(--ink); }
.foot-brand span { display: block; color: var(--muted); font-size: 13.5px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--brand-500); font-weight: 600; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.foot-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .copy { max-width: none; }
  .art { max-width: 440px; }
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .features .card { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 14px; text-align: start; padding: 14px 16px; }
  .features .ico { margin-bottom: 0; width: 46px; height: 46px; }
  .features h3 { font-size: 16px; }
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .features .card { transition: none; }
  .art .link { animation: none; }
}

/* ---------- Technician sign-in ---------- */
.btn.warm { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.warm:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn.block { width: 100%; }
.auth {
  min-height: calc(100vh - 72px - 160px); display: grid; place-items: center;
  padding-block: clamp(32px, 6vw, 72px);
  background:
    radial-gradient(48% 52% at 92% 0%, rgba(37, 99, 168, 0.10), transparent 70%),
    radial-gradient(40% 40% at 4% 60%, rgba(245, 179, 10, 0.08), transparent 70%);
}
.auth-card {
  width: min(440px, 100% - 2 * var(--gutter)); padding: clamp(24px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .ico { margin: 0 auto 14px; width: 56px; height: 56px; border-radius: 16px; }
.auth-head h1 { font-size: 23px; font-weight: 900; line-height: 1.5; }
.auth-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span, .field > label { font-size: 14px; font-weight: 700; color: var(--ink); }
.auth-form input:not([type="hidden"]) {
  width: 100%; min-height: 48px; padding: 8px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input::placeholder { color: #94a3b8; }
.auth-form input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50); }
.captcha-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.captcha-row img { display: block; height: 52px; width: auto; border: 1.5px solid var(--line-2); border-radius: 12px; }
.captcha-row input { min-height: 52px; text-align: center; letter-spacing: 0.2em; }
.refresh { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13.5px; font-weight: 600; color: var(--brand-500); }
.refresh:hover { color: var(--brand); }
.alert {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px;
  background: #fdecea; border: 1px solid #f5c2bd; color: #9b1c1c; font-size: 14.5px; line-height: 1.8;
}
.alert svg { flex: none; margin-top: 3px; }
.auth-form .btn { margin-top: 6px; min-height: 50px; font-size: 16px; }
@media (max-width: 420px) {
  .captcha-row { grid-template-columns: 1fr; }
  .captcha-row img { justify-self: center; }
}
