/* Hashvi landing page. Colours follow the app (src/index.css). */
:root {
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --ok: #15803d;
  --danger: #b91c1c;
  --radius: 10px;
  --font: 'Noto Sans Armenian', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: .8em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .55em 1.1em; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn--lg { padding: .8em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #1e293b; }
.btn--primary:disabled { opacity: .65; cursor: progress; }
.btn--outline { border-color: #cbd5e1; color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo-mark { height: 26px; width: auto; color: var(--ink); }
.top-nav { display: none; gap: 24px; margin-left: 24px; }
.top-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.top-nav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ico { width: 18px; height: 18px; flex: none; }
.langpick { position: relative; }
.langpick summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: .45em .7em; border-radius: 8px; color: var(--muted); font-weight: 500; cursor: pointer; user-select: none; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary:hover, .langpick[open] summary { color: var(--ink); background: var(--soft); }
.langpick .chev { width: 16px; height: 16px; transition: transform .15s; }
.langpick[open] .chev { transform: rotate(180deg); }
.langpick ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.14); }
.langpick li a, .langpick .current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .5em .75em; border-radius: 6px; text-decoration: none; color: var(--text); }
.langpick li a:hover { background: var(--soft); color: var(--ink); }
.langpick .current { font-weight: 600; color: var(--ink); }
.langpick .current .tick { margin-top: 0; }
@media (min-width: 900px) { .top-nav { display: flex; } }

/* Hero */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--soft), #fff); }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.lead { font-size: 1.15rem; color: #334155; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero-note { color: var(--muted); font-size: .95rem; max-width: 36em; }
/* Text above, product screenshot full width below: the app is a dense
   table and is unreadable at half width. */
.hero-text { max-width: 820px; }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 80px; }
  .hero-inner { gap: 48px; }
  .hero-text { text-align: center; margin: 0 auto; }
  .hero-text .lead, .hero-note { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(15,23,42,.12); background: #fff; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 64px 0; }
.section--muted { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: #334155; max-width: 46em; margin-top: -.4em; margin-bottom: 32px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card p { color: #475569; margin: 0; }

.shots { display: grid; gap: 32px; }
@media (min-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps p { color: #475569; margin: 0; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.plans { display: grid; gap: 20px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
  /* Keep the prices on one line across the cards. */
  .plan-for { min-height: 4.8em; }
}
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--ink); box-shadow: 0 10px 30px rgba(15,23,42,.1); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: .2em; }
.plan-for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price strong { font-size: 2rem; color: var(--ink); }
.price span { color: var(--muted); }
.price .price-text { font-size: 1.3rem; }
.price { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.plan li.users { font-weight: 600; color: var(--ink); }
.plan-intro { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 8px; font-size: .95rem; }
.tick { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }

.offers-title { margin-top: 48px; font-size: 1.25rem; }
.offer { display: flex; gap: 12px; background: var(--accent-soft); border-radius: var(--radius); padding: 20px; }
.offer .tick { color: var(--accent); width: 22px; height: 22px; }
.offer strong { color: var(--ink); display: block; margin-bottom: 4px; }
.offer p { margin: 0; color: #57534e; font-size: .95rem; }

/* FAQ */
.faq { margin: 0; }
.faq dt { font-weight: 600; color: var(--ink); margin-top: 24px; }
.faq dd { margin: 6px 0 0; color: #475569; }

/* Demo */
.section--dark { background: var(--ink); color: #cbd5e1; }
.section--dark h2 { color: #fff; }
.demo { display: grid; gap: 32px; }
.demo-mail a { color: #fff; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.demo-box { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: .65em .8em; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 2px solid #bfdbfe; outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.phone-row { display: grid; gap: 8px; }
.field-error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; }
.form-error { color: var(--danger); background: #fef2f2; border-radius: 8px; padding: 12px 14px; }
.form-error a { color: var(--danger); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { text-align: center; padding: 24px 8px; outline: none; }
.form-done .tick { width: 48px; height: 48px; margin: 0 auto 12px; }
.form-done p { color: #475569; margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

.short { display: none; }
@media (max-width: 480px) {
  .top .btn { padding: .45em .8em; }
  .top-inner { gap: 10px; }
  .top-actions { gap: 10px; }
  .langpick .long { display: none; }
  .langpick .short { display: inline; font-weight: 600; font-size: .9rem; }
  .hero-actions .btn { width: 100%; }
}
