:root {
  --navy: #0F2942;
  --navy-soft: #1E3A56;
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --teal-tint: #F4FCFB;
  --bg: #FFFFFF;
  --surface: #FAFBFC;
  --line: #ECEFF3;
  --line-strong: #DCE2EA;
  --ink: #111827;
  --muted: #64748B;
  --muted-soft: #94A3B8;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --success: #059669;
  --success-soft: #ECFDF5;
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--teal-dark);
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--navy);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg);
}

.lang-toggle a {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: 999px;
}

.lang-toggle a.active {
  background: var(--navy);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-soft);
  color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--teal-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 12px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 104px 0 92px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 22px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: 46px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.hero p.lead {
  margin: 0 0 34px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted-soft);
  font-weight: 400;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-card-top {
  background: var(--bg);
  color: var(--navy);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-card-body {
  padding: 24px 22px;
  font-size: 13.5px;
  line-height: 1.75;
}

.ai-preview-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 96px 0;
}

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

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
}

/* Pricing */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--teal);
}

.badge-top {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--bg);
  color: var(--teal-dark);
  border: 1px solid var(--teal);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 2px 10px;
  border-radius: 999px;
}

.price {
  font-size: 36px;
  font-weight: 300;
  color: var(--navy);
  margin: 18px 0 6px;
  letter-spacing: 0.03em;
}

.price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
}

.feature-list li::before {
  content: "—";
  color: var(--teal);
  margin-right: 10px;
}

/* Forms & Auth */
.auth-wrap, .form-wrap {
  min-height: calc(100vh - 76px);
  background: var(--surface);
  padding: 56px 20px 80px;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.quote-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.quote-card-header {
  background: var(--bg);
  color: var(--navy);
  padding: 36px 36px 24px;
  border-bottom: 1px solid var(--line);
}

.quote-card-header h1 {
  margin: 8px 0 8px;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.quote-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

.quote-card-body {
  padding: 30px 36px 38px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 0.16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  cursor: pointer;
}

.gdpr-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--muted);
  margin: 22px 0 24px;
}

.gdpr-box input {
  margin-top: 4px;
}

.alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}

.alert.show { display: block; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #FECACA; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #A7F3D0; }
.alert-info { background: var(--teal-tint); color: var(--navy); border: 1px solid var(--line); }

/* Dashboard */
.dash-main {
  background: var(--bg);
  min-height: calc(100vh - 76px);
  padding: 40px 0 72px;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.dash-top h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.dash-sub {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-soft);
}

.kpi-value {
  font-size: 30px;
  font-weight: 300;
  color: var(--navy);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.links-bar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.link-item code {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  padding: 10px 2px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--teal);
}

.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filters-bar input, .filters-bar select {
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.filters-bar input {
  flex: 1;
  min-width: 220px;
}

.table-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-soft);
  background: var(--surface);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}

tr:last-child td { border-bottom: none; }
tr.clickable:hover { background: var(--surface); cursor: pointer; }

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.badge-AI_PROCESSED { background: var(--teal-tint); color: var(--teal-dark); border-color: rgba(20, 184, 166, 0.35); }
.badge-QUOTED { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.badge-WON { background: var(--success-soft); color: var(--success); border-color: #A7F3D0; }
.badge-lang { font-size: 10px; letter-spacing: 0.1em; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--bg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.modal-head {
  background: var(--bg);
  color: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.modal-body { padding: 24px; }

.ai-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  white-space: pre-wrap;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted-soft);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 300;
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4, .links-bar { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .grid-2, .field-row, .checkbox-grid { grid-template-columns: 1fr; }
  .quote-card-header, .quote-card-body, .auth-card { padding: 24px 20px; }
}

/* ---------- Marketing additions ---------- */
.free-strip {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.free-strip strong { color: var(--navy); font-weight: 600; }

/* Product preview */
.mock-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.mock-window, .mock-phone {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px -24px rgba(15, 41, 66, 0.35);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); display: inline-block; }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 14px 16px 18px; }
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.mock-row strong { display: block; color: var(--navy); font-weight: 500; }
.mock-row span { color: var(--muted); font-size: 12.5px; }
.mock-reply {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--teal-tint);
}
.mock-reply p { margin: 6px 0 8px; font-size: 13.5px; color: var(--ink); line-height: 1.65; }
.mock-reply small { color: var(--teal-dark); font-size: 12px; }
.mock-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
}
.mock-phone { padding: 18px 18px 20px; max-width: 300px; justify-self: center; width: 100%; border-radius: 22px; }
.mock-phone-title { color: var(--navy); font-weight: 500; font-size: 15px; margin: 6px 0 14px; line-height: 1.4; }
.mock-field { margin-bottom: 10px; }
.mock-field span { font-size: 11.5px; color: var(--muted); }
.mock-field div { height: 30px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.mock-field-tall div { height: 58px; }
.mock-submit {
  margin-top: 14px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 9px;
  font-size: 13px;
}

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 12px;
  background: var(--bg);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  position: relative;
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 15px;
  font-size: 20px;
  color: var(--teal-dark);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-more { text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { padding: 48px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.footer-grid a, .footer-grid span { display: block; color: var(--muted); font-size: 13px; letter-spacing: 0.01em; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--teal-dark); }
.footer-grid .brand span { display: inline; margin: 0; }
.footer-grid .brand .brand-mark { display: inline-flex; }
.footer-title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); margin-bottom: 10px; }
.footer-tagline { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.01em; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-soft); }

/* Legal pages */
.legal-wrap { padding: 64px 0 88px; }
.legal { max-width: 760px; }
.legal h1 { font-size: 34px; font-weight: 300; color: var(--navy); margin: 0 0 6px; }
.legal-updated { color: var(--muted-soft); font-size: 13px; margin: 0 0 32px; }
.legal h2 { font-size: 18px; font-weight: 500; color: var(--navy); margin: 34px 0 10px; }
.legal p, .legal li { color: #334155; font-size: 14.5px; line-height: 1.8; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--teal-dark); text-decoration: underline; }
.legal-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.legal-note a, .gdpr-box a { color: var(--teal-dark); text-decoration: underline; }
mark.todo { background: #FEF3C7; color: #92400E; padding: 0 4px; border-radius: 4px; }

@media (max-width: 900px) {
  .mock-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links .nav-link[href*="#faq"] { display: none; }
}
