/* misehq.net — the marketing site. Colours are docs/BRAND.md's; the type is the console's (Assistant). */
:root {
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --amber: #f59e0b;
  --amber-text: #b45309;
  --amber-50: #fffbeb;
  --teal: #0d9488;
  --teal-text: #0f766e;
  --teal-50: #f0fdfa;
  --danger-text: #b91c1c;
  --dark: #0b0f17;
  --radius-card: 16px;
  --radius-input: 24px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 32px -12px rgb(15 23 42 / 0.18);
  --font: "Assistant", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }

/* One page, two languages: html[lang] hides the other one's text. */
html[lang="en"] body [lang="he"],
html[lang="he"] body [lang="en"] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons — the console's pill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-300); color: var(--blue); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn[disabled] { opacity: .65; cursor: progress; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 24px; height: 28px; }
.wordmark { font: 800 21px/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); direction: ltr; }
.wordmark b { color: var(--blue); font-weight: 800; }
.nav { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav a { color: var(--muted); font-weight: 600; text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.signin { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 16px; }
.signin:hover { color: var(--blue); }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.lang-switch button, .lang-switch a {
  min-width: 38px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 700 14px/30px var(--font);
  cursor: pointer; text-align: center; text-decoration: none;
}
.lang-switch [aria-pressed="true"], .lang-switch [aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(15 23 42 / .12); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--blue-100), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, var(--blue-50), transparent 60%),
    #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: 88px 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px; border-radius: 999px; background: var(--teal-50); color: var(--teal-text);
  font-weight: 700; font-size: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.025em; }
html[lang="he"] .hero h1 { letter-spacing: 0; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-top: 22px; font-size: 20px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* The quote card in the hero — a drawing of the product, not a screenshot. */
.quote-stage { position: relative; padding: 28px 8px 36px; }
.quote-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 26px 26px 22px; max-width: 460px; margin-inline: auto;
}
.qc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.qc-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.qc-logo i { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--blue-700)); }
.qc-no { font-size: 13px; color: var(--muted); }
.qc-for { margin-top: 14px; font-size: 14px; color: var(--muted); }
.qc-for strong { color: var(--ink); }
.qc-lines { list-style: none; margin: 14px 0 0; padding: 0; }
.qc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.qc-lines li span:first-child { color: var(--ink); font-weight: 600; }
.qc-lines li small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.qc-lines .discount { background: var(--amber-50); margin-inline: -10px; padding-inline: 10px; border-radius: 8px; border-bottom-color: transparent; }
.qc-lines .discount span:first-child { color: var(--amber-text); }
.qc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.qc-total span:first-child { font-weight: 700; color: var(--ink); }
.qc-total .num { font-size: 24px; font-weight: 700; color: var(--ink); }
.qc-monthly { text-align: end; font-size: 13px; color: var(--muted); }
.qc-sign { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qc-sign svg { width: 130px; height: 40px; color: var(--blue-700); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip-signed { background: #ccfbf1; color: var(--teal-text); }
.chip-signed::before { content: "✓"; }
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 700; color: var(--ink);
}
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.float-opened { top: 0; inset-inline-end: 0; }
.float-approved { bottom: 6px; inset-inline-start: 0; }
.float-approved .dot { background: var(--amber); box-shadow: 0 0 0 4px #fef3c7; }

/* Sections */
.section { padding-block: 96px; }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
html[lang="he"] .section-head h2 { letter-spacing: 0; }
.section-head p { margin-top: 14px; font-size: 19px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue); font: 700 18px/1 var(--mono); margin-bottom: 18px;
}
.step h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: var(--blue-100); box-shadow: var(--shadow); }
.feature .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; background: var(--blue-50); color: var(--blue); }
.feature .icon svg { width: 22px; height: 22px; }
.feature:nth-child(3) .icon { background: var(--amber-50); color: var(--amber-text); }
.feature:nth-child(5) .icon { background: var(--teal-50); color: var(--teal-text); }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }

.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 44px; color: var(--muted); font-weight: 600; font-size: 15px; }
.strip > span { display: inline-flex; align-items: center; gap: 8px; }
.strip > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.contact-copy p { margin-top: 14px; font-size: 19px; color: var(--muted); }
.contact-copy .mail { margin-top: 26px; font-size: 16px; }
.contact-copy .mail a { font-weight: 700; text-decoration: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field input {
  height: 48px; padding: 0 18px; border-radius: var(--radius-input); border: 1px solid #cbd5e1;
  font: 400 16px var(--font); color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.field input[aria-invalid="true"] { border-color: var(--danger-text); }
.field-error { min-height: 20px; font-size: 14px; color: var(--danger-text); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions .btn { min-width: 140px; }
.form-status { font-size: 15px; }
.form-status.error { color: var(--danger-text); }
.form-done { display: none; text-align: center; padding: 28px 8px; }
.form-done .tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #ccfbf1; color: var(--teal-text); font-size: 26px; font-weight: 800; }
.form-done h3 { font-size: 24px; font-weight: 800; }
.form-done p { margin-top: 8px; color: var(--muted); }
.form-card.sent form { display: none; }
.form-card.sent .form-done { display: block; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding-block: 40px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark b { color: #60a5fa; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: #cbd5e1; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }

/* Privacy pages */
.policy-main { padding-block: 56px 80px; }
.policy-main h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.updated { margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.policy { max-width: 760px; margin-top: 36px; }
.policy h2 { font-size: 26px; font-weight: 800; margin: 44px 0 12px; }
.policy h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.policy p { color: var(--text); line-height: 1.85; margin-bottom: 14px; }
.policy ul { padding-inline-start: 22px; margin: 0 0 14px; color: var(--text); }
.policy li { line-height: 1.85; margin-bottom: 6px; }
.policy a { font-weight: 700; }
.policy strong { color: var(--ink); }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 56px 64px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .contact .wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .site-header .wrap { gap: 10px; height: 64px; }
  .header-end { gap: 10px; }
  .header-end .btn { display: none; }
  .hero .lead { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .quote-card { padding: 20px 18px 18px; }
  .float-chip { font-size: 13px; padding: 7px 12px; }
  .section { padding-block: 64px; }
  .steps, .features, .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
