:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #17201b;
  --muted: #647067;
  --line: #dfe5dd;
  --green: #163f32;
  --green-2: #23614f;
  --amber: #c68b34;
  --blue: #235b7a;
  --shadow: 0 20px 60px rgba(20, 35, 28, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(22, 63, 50, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 63, 50, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 247, 244, .9);
  border-bottom: 1px solid rgba(223, 229, 221, .85);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(34px, 7vw, 86px) clamp(18px, 4vw, 56px) 28px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.primary-button {
  padding: 0 20px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  padding: 0 18px;
  color: var(--green);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
}

.trust-row span {
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.hero-media {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-band div {
  padding: 22px;
  background: var(--surface);
}

.status-band strong {
  display: block;
  font-size: 26px;
}

.status-band span {
  color: var(--muted);
}

.section,
.workspace,
.contact {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, .7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.service-grid,
.knowledge-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.knowledge article,
.workspace-panel {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(20, 35, 28, .06);
}

.card {
  min-height: 250px;
  padding: 22px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 46px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}

.card p,
.knowledge p,
.contact p,
#account-note {
  color: var(--muted);
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  background: #eaf0ed;
}

.workspace-panel {
  padding: clamp(18px, 3vw, 30px);
}

.form,
.contact-form,
.auth-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label,
.checks {
  display: grid;
  gap: 8px;
  color: #33433a;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7ded7;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(35, 97, 79, .14);
}

.full {
  grid-column: 1 / -1;
}

.checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checks legend {
  padding: 0 8px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checks input {
  width: auto;
  min-height: auto;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.consent-line input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.consent-line a,
.auth-note a {
  color: var(--green);
  text-decoration: underline;
}

.account-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.account-auth-button {
  min-width: 86px;
}

.account-logout {
  width: 100%;
  margin-top: 12px;
}

.case-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.case-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-item strong {
  display: block;
  margin-bottom: 4px;
}

.case-item small {
  color: var(--muted);
}

.case-item p {
  margin: 10px 0;
  color: #44544b;
  line-height: 1.45;
}

.case-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.knowledge {
  background: var(--surface);
}

.knowledge-grid article {
  min-height: 210px;
  padding: 22px;
  border-top: 5px solid var(--amber);
}

.pricing {
  background: #eef3ef;
}

.price-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 310px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(20, 35, 28, .06);
}

.price-card.featured {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.price-card.featured .eyebrow,
.price-card.featured p {
  color: rgba(255, 255, 255, .78);
}

.price-card strong {
  font-size: 30px;
}

.price-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.price-card .primary-button,
.price-card .secondary-button {
  align-self: end;
  width: fit-content;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.55;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: start;
  color: #fff;
  background: var(--green);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, .74);
}

.contact-form {
  padding: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}

.contact-form label {
  color: #fff;
}

.contact-form .primary-button {
  grid-column: 1 / -1;
  background: #fff;
  color: var(--green);
}

.modal {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(12, 20, 16, .5);
}

.auth-form {
  position: relative;
  grid-template-columns: 1fr;
  padding: 26px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #eef3ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.active {
  color: #fff;
  background: var(--green);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .workspace,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .knowledge-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 12px;
  }

  .ghost-button {
    min-height: 40px;
    padding: 0 12px;
  }

  h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .status-band,
  .service-grid,
  .knowledge-grid,
  .pricing-grid,
  .form,
  .contact-form,
  .checks {
    grid-template-columns: 1fr;
  }

  .status-band {
    margin: 0 18px;
  }

  .card {
    min-height: auto;
  }

  .card-icon {
    margin-bottom: 28px;
  }
}
