:root {
  --green: #22a447;
  --green-dark: #147a33;
  --green-soft: #e8f8ed;
  --navy: #062b2b;
  --navy-2: #083b38;
  --text: #102020;
  --muted: #667085;
  --line: #d9e1e1;
  --soft: #f6faf7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(6, 43, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  line-height: 1.5;
}

.topbar {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: white;
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand span {
  color: #4ade80;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.92;
}

nav a:hover {
  color: #86efac;
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  padding: 82px 8% 62px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid #c8efd3;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  max-width: 780px;
}

.hero p {
  font-size: 19px;
  color: #344;
  max-width: 660px;
}

.buttons,
.actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn,
button.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  padding: 13px 23px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 22px rgba(34, 164, 71, 0.22);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: white;
}

.secondary:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.demo-card {
  display: flex;
  justify-content: center;
}

.screen {
  background: white;
  border: 14px solid #0b3535;
  border-radius: 24px;
  padding: 28px;
  width: min(380px, 100%);
  min-height: 320px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.mini-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.screen h3 {
  font-size: 32px;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.pill {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 800;
  margin-bottom: 10px;
}

.screen ul {
  padding-left: 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 24px 8% 50px;
}

.features div,
.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: white;
  box-shadow: 0 8px 24px rgba(6, 43, 43, 0.04);
}

.features h3,
.card h3,
.panel h2,
.card h2 {
  margin-top: 0;
}

.page {
  padding: 48px 8%;
}

.page h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -0.035em;
}

.page h2 {
  letter-spacing: -0.025em;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 760px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label {
  display: block;
  font-weight: 800;
  margin: 16px 0 7px;
}

input,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  background: white;
}

input:focus,
select:focus {
  outline: 3px solid #d8f5e0;
  border-color: var(--green);
}

.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf2f2;
  padding: 12px 0;
  gap: 18px;
}

.check-row input {
  width: auto;
  transform: scale(1.15);
}

.paircard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  margin-top: 24px;
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  height: fit-content;
  background: white;
  box-shadow: 0 8px 24px rgba(6, 43, 43, 0.04);
}

.sidebar div {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar div:last-child {
  border-bottom: 0;
}

.sidebar div:first-child {
  background: var(--green-soft);
  font-weight: 800;
  color: var(--green-dark);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table td,
.table th {
  border-bottom: 1px solid #edf2f2;
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.lookup-box {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
}

.bid-input {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.result-title {
  color: var(--green-dark);
  font-size: 34px;
  line-height: 1.1;
  margin: 10px 0 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.agreement-questions {
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: #fffbea;
  border: 1px solid #f1dda2;
}

.agreement-questions h3 {
  margin: 0 0 8px;
}

.agreement-questions p {
  margin-top: 0;
  color: #67510f;
}

.agreement-questions ul {
  margin-bottom: 0;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 8%;
  font-size: 14px;
  background: white;
}

@media print {
  .topbar,
  .buttons,
  .actions,
  footer {
    display: none !important;
  }

  body {
    background: white;
  }

  .page {
    padding: 20px;
  }

  .card,
  .panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .topbar {
    display: block;
  }

  nav {
    margin-top: 14px;
  }

  .hero,
  .form-grid,
  .paircard-layout,
  .card-grid,
  .lookup-box,
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .screen {
    transform: none;
  }
}