:root {
  --bg: #f2faf7;
  --surface: #ffffff;
  --ink: #14192e;
  --muted: #6b7590;
  --mint: #21b385;
  --pine: #0d7054;
  --coral: #f25c47;
  --line: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 2px 8px rgba(20, 25, 46, 0.05);
  --shadow-lift: 0 12px 28px rgba(20, 25, 46, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: rgba(242, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

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

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

.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:not(.btn):hover {
  color: var(--pine);
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

/* Official App Store badge */
.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: scale(1.03);
}

.store-badge img {
  height: 56px;
  width: auto;
}

.store-badge.badge-small img {
  height: 48px;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 84px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(33, 179, 133, 0.14), transparent);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero img.hero-logo {
  width: 172px;
  height: 172px;
  filter: drop-shadow(0 16px 28px rgba(13, 112, 84, 0.25));
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 740px;
  margin: 0 auto 20px;
}

.hero h1 .highlight {
  color: var(--pine);
}

.hero p.sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero .fine {
  font-size: 14px;
  color: var(--muted);
}

/* Sections */
section {
  padding: 72px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 800;
  color: var(--mint);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 44px;
  font-size: 17px;
}

/* Cards */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
}

.card .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(33, 179, 133, 0.13);
  color: var(--pine);
  margin-bottom: 18px;
}

.card .feature-icon svg {
  width: 23px;
  height: 23px;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

/* Settlements table */
.settlements-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.settlements-header h2 {
  margin-bottom: 0;
}

.view-all {
  color: var(--pine);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  padding-bottom: 4px;
}

.view-all:hover {
  text-decoration: underline;
}

.settlements-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.settlements-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.settlements-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.settlements-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.settlements-table tbody tr:last-child td {
  border-bottom: none;
}

.settlements-table tbody tr:hover {
  background: rgba(33, 179, 133, 0.045);
}

.cell-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-logo {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.row-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.row-logo-fallback {
  font-size: 14px;
  font-weight: 800;
  color: var(--pine);
  background: rgba(33, 179, 133, 0.1);
}

.row-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.cell-payout {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.payout-varies {
  color: var(--muted);
  font-weight: 700;
}

.cell-deadline .due-text {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.days-chip {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--coral);
  background: rgba(242, 92, 71, 0.1);
  border: 1px solid rgba(242, 92, 71, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.cell-action {
  text-align: right;
}

.row-view {
  color: var(--pine);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.row-view:hover {
  text-decoration: underline;
}

.loading-row td {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 34px 20px;
}

.table-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .settlements-table {
    min-width: 0;
  }

  .settlements-table .col-deadline {
    display: none;
  }

  .settlements-table th,
  .settlements-table td {
    padding: 14px 14px;
  }

  .cell-payout {
    font-size: 16px;
  }
}

/* Disclaimer card */
.disclaimer-section {
  padding: 8px 0 72px;
}

.disclaimer-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: var(--ink);
  border-radius: 18px;
  padding: 34px 36px;
  box-shadow: 0 18px 40px rgba(20, 25, 46, 0.18);
}

.disclaimer-card .shield {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(33, 179, 133, 0.18);
  color: #4fd6ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.disclaimer-card .shield svg {
  width: 26px;
  height: 26px;
}

.disclaimer-card h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.disclaimer-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
}

@media (max-width: 640px) {
  .disclaimer-card {
    flex-direction: column;
    padding: 28px 24px;
  }
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

details summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--pine);
  border-bottom: 2.5px solid var(--pine);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -4px;
}

details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

details p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

details a {
  color: var(--pine);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 88px 0;
}

.final-cta img.cta-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 18px rgba(13, 112, 84, 0.22));
}

.final-cta .section-sub {
  margin: 0 auto 30px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--pine);
}

footer .legal {
  color: var(--muted);
  font-size: 13px;
  max-width: 760px;
}

/* Legal document pages */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-doc h1 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 6px;
}

.legal-doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal-doc h2 {
  font-size: 21px;
  margin: 36px 0 10px;
}

.legal-doc p,
.legal-doc li {
  color: #3a4257;
  font-size: 16px;
  margin-bottom: 12px;
}

.legal-doc ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-doc a {
  color: var(--pine);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links .nav-hide-mobile {
    display: none;
  }

  section {
    padding: 52px 0;
  }

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

  .hero img.hero-logo {
    width: 136px;
    height: 136px;
  }

  .disclaimer-band .container {
    flex-direction: column;
  }
}
