:root {
  --ink: #142323;
  --muted: #637170;
  --line: #dfe8e5;
  --paper: #ffffff;
  --soft: #f4faf7;
  --mint: #dff5ec;
  --green: #0f7b63;
  --green-deep: #075143;
  --teal: #0b9386;
  --gold: #d9a441;
  --danger: #a84335;
  --shadow: 0 18px 46px rgba(15, 78, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(223, 232, 229, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--green), var(--teal));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 123, 99, 0.24);
  font-size: 16px;
  overflow: hidden;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #304240;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  background: var(--mint);
  color: var(--green-deep);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #304240;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "⌄";
  font-size: 13px;
}

.nav-dropdown[open] summary,
.nav-dropdown summary[aria-current="page"],
.nav-dropdown summary:hover {
  background: var(--mint);
  color: var(--green-deep);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu a {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-deep);
  font-size: 22px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--soft);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(130deg, #0b4e43 0%, #0f7b63 54%, #2fb98d 100%);
  color: #ffffff;
}

.hero-inner {
  display: grid;
  min-height: calc(100svh - 72px);
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 58px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 76px);
}

h2 {
  font-size: clamp(30px, 4.4vw, 48px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 740px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  background: #ffffff;
  color: var(--green-deep);
}

.btn.green {
  background: var(--green);
  color: #ffffff;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.btn.light {
  border-color: var(--line);
  background: #ffffff;
  color: var(--green-deep);
}

.phone-stage {
  display: grid;
  justify-items: center;
}

.phone {
  width: min(360px, 88vw);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.phone-screen {
  min-height: 650px;
  overflow: hidden;
  border-radius: 26px;
  background: #f7fbf8;
  color: var(--ink);
}

.app-top {
  padding: 28px;
  background: linear-gradient(150deg, #e9fff4, #ffffff);
}

.app-balance {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  background: var(--green-deep);
  color: #ffffff;
}

.amount {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-weight: 900;
}

.app-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.app-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 35, 35, 0.05);
}

.card strong {
  color: var(--green-deep);
}

.metric {
  font-size: 34px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 20px 20px 20px 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.step::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  content: counter(step);
  counter-increment: step;
  font-weight: 900;
}

.rate-box {
  border-left: 4px solid var(--green);
  background: #f6fbf9;
}

.quote {
  display: grid;
  gap: 14px;
}

.avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 900;
}

.faq {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--green-deep);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.legal-doc {
  max-width: 920px;
}

.doc-page {
  background: #ffffff;
}

.standalone-doc {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 28px 0 52px;
}

.standalone-doc .legal-doc {
  max-width: none;
}

.standalone-doc .legal-doc h2 {
  font-size: clamp(28px, 8vw, 42px);
}

.legal-doc h2 {
  margin-bottom: 16px;
  color: var(--green-deep);
}

.legal-doc h3 {
  margin-top: 28px;
  color: var(--green-deep);
  font-size: 22px;
}

.legal-doc h4 {
  margin: 20px 0 8px;
  color: #263937;
  font-size: 18px;
}

.legal-doc p {
  margin: 12px 0;
  color: #40504f;
}

.doc-note {
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--soft);
}

.doc-meta {
  color: var(--muted);
  font-weight: 800;
}

.legal-table {
  width: 100%;
  margin: 18px 0 26px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 28%;
  background: var(--soft);
  color: var(--green-deep);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.notice {
  padding: 18px;
  border: 1px solid #eed7ce;
  border-radius: 8px;
  background: #fff8f5;
  color: var(--danger);
}

.footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  background: #0d2f2a;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.copyright {
  width: 100%;
  max-width: none;
  margin: 26px 0 0;
  padding: 18px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  text-align: center;
}

.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  min-width: 148px;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--green), var(--teal));
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(7, 81, 67, 0.28);
  font: inherit;
  font-weight: 900;
}

.chat-agent {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.86);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 18px rgba(4, 49, 41, 0.2);
}

.chat-copy {
  display: grid;
  gap: 0;
  text-align: left;
  line-height: 1.15;
}

.chat-copy small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.floating-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(7, 81, 67, 0.34);
}

.floating-chat:active {
  transform: translateY(0);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero-inner,
  .split,
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    gap: 32px;
    padding: 42px 0;
  }

  .phone-screen {
    min-height: 560px;
  }

  .section {
    padding: 52px 0;
  }

  .footer-inner {
    display: grid;
  }

  .floating-chat {
    right: 16px;
    bottom: 16px;
  }

  .footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 520px) {
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .wrap {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 40px;
  }

  .actions,
  .tabs {
    display: grid;
  }

  .btn,
  .tab-button {
    width: 100%;
  }

  .floating-chat {
    min-width: 138px;
    padding: 9px 12px 9px 9px;
  }

  .chat-agent {
    width: 42px;
    height: 42px;
  }

  .standalone-doc {
    width: min(100% - 24px, 920px);
    padding: 22px 0 40px;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    border-bottom: 1px solid var(--line);
  }

  .legal-table tr:last-child {
    border-bottom: 0;
  }

  .legal-table th,
  .legal-table td {
    border-bottom: 0;
  }
}
