/* ERPRoom marketing site — light direction (A). The theme is the custom
   properties below. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #0f172a;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --accent: #2457f5;
  --accent-hover: #1a3fb8;
  --accent-soft: #eaf0ff;
  --on-accent: #ffffff;
  --on-dark: #ffffff;
  --on-dark-muted: #cbd5e1;
  --on-dark-accent: #8fb0ff;
  --ok: #15803d;
  --warn: #c2410c;
  --danger: #b91c1c;
  --font: 'Manrope', system-ui, sans-serif;
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--faint);
  color: var(--text);
}

.btn-plain {
  color: var(--text);
}

.btn-plain:hover {
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text);
}

.brand b {
  font-weight: 800;
}

.brand span {
  font-weight: 500;
}

.brand img {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: #334155;
  font-weight: 600;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--accent);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 0;
  font-size: 14px;
  color: var(--faint);
}

/* Product mock */
.mock {
  flex: 1 1 520px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock-bar span {
  margin-left: 10px;
}

.mock-body {
  display: flex;
}

.mock-side {
  width: 150px;
  flex: none;
  padding: 14px 10px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #334155;
}

.mock-side span {
  padding: 7px 10px;
  border-radius: 8px;
}

.mock-side .on {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 700;
}

.mock-main {
  flex: 1;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-hello {
  font-size: 18px;
  font-weight: 800;
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mock-tile,
.mock-list {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.mock-tile b {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.mock-tile small {
  font-size: 12px;
  color: var(--muted);
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.mock-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.st-ok {
  color: var(--ok);
  font-weight: 700;
}

.st-warn {
  color: var(--warn);
  font-weight: 700;
}

.st-danger {
  color: var(--danger);
  font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 40px;
}

.contrast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.contrast h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contrast p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.card-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.card h3 {
  font-size: 19px;
  font-weight: 800;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.route li {
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route span {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-dark-accent);
}

.route b {
  font-size: 17px;
}

.section-dark .lead {
  color: var(--on-dark-muted);
}

.section-dark h2 {
  color: var(--on-dark);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.split > div {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.facts {
  flex: 1 1 420px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facts li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.role {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--bg);
}

.role h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.role p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- Form ---------- */

.form-section .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.form-intro {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-form {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.lead-form .wide {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 500;
}

.lead-form textarea {
  min-height: 96px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.lead-form .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

.lead-form .consent input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.lead-form .trap {
  position: absolute;
  left: -9999px;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.5em;
}

.form-status.error {
  color: var(--danger);
}

.form-status.ok {
  color: var(--ok);
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px;
  color: var(--faint);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Text pages (privacy) ---------- */

.doc {
  padding: 56px 0 88px;
}

.doc .wrap {
  max-width: 820px;
}

.doc h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 24px;
}

.doc h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}

.doc p,
.doc li {
  color: var(--muted);
}

/* ---------- Login dialog ---------- */

.login-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
}

.login-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}

.login-form h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.login-form label {
  font-size: 14px;
  font-weight: 700;
}

.login-address {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding-right: 14px;
}

.login-address:focus-within {
  border-color: var(--accent);
}

.login-address input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 0 0 14px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: right;
  outline: none;
}

.login-address span {
  color: var(--faint);
}

.login-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .site-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.open .wrap {
    flex-wrap: wrap;
    padding-bottom: 16px;
  }

  .site-header.open .site-nav,
  .site-header.open .header-actions {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    gap: 12px;
    margin: 0;
  }

  .mock-side {
    display: none;
  }

  .lead-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
