:root {
  --bg: #ffffff;
  --surface: #f6f8f4;
  --surface-strong: #edf5ef;
  --ink: #17201d;
  --muted: #5c6862;
  --quiet: #8a968f;
  --line: #dbe3da;
  --green: #0f6b4f;
  --green-dark: #093d30;
  --coral: #c45f43;
  --blue: #2f6097;
  --gold: #f4bd63;
  --shadow: 0 22px 60px rgba(23, 32, 29, 0.1);
  --soft-shadow: 0 14px 34px rgba(23, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(219, 227, 218, 0.82);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 107, 79, 0.16);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.65fr);
  align-items: center;
  gap: clamp(34px, 7vw, 84px);
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0 clamp(34px, 6vw, 62px);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy > p,
.section-heading p,
.support-hero p,
.app-copy > p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 107, 79, 0.2);
}

.button.primary:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--soft-shadow);
}

.trust-strip div {
  padding: 18px;
  background: #ffffff;
}

dt {
  color: var(--ink);
  font-weight: 800;
}

dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.hero-media {
  margin: 0;
  justify-self: center;
}

.phone-frame {
  position: relative;
  width: min(316px, 74vw);
  padding: 12px;
  border: 1px solid #19241f;
  border-radius: 36px;
  background: #101713;
  box-shadow:
    0 30px 80px rgba(9, 61, 48, 0.25),
    0 8px 22px rgba(23, 32, 29, 0.14);
}

.phone-frame::before {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 82px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: #101713;
  content: "";
  transform: translateX(-50%);
  z-index: 1;
}

.phone-frame img {
  width: 100%;
  border-radius: 27px;
  background: #ffffff;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(46px, 8vw, 82px) 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin-bottom: 28px;
}

.feature-band {
  border-top: 1px solid var(--line);
}

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

.feature-grid article,
.info-card,
.legal-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
}

.feature-number {
  display: block;
  margin-bottom: 32px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 820;
}

.feature-grid p,
.info-card p,
.muted {
  color: var(--muted);
}

.app-showcase {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(237, 245, 239, 0.74), rgba(255, 255, 255, 0.9)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.app-icon {
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-facts {
  display: grid;
  gap: 1px;
  max-width: 850px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.app-facts div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  background: #ffffff;
}

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

.info-card {
  display: grid;
  align-content: start;
  min-height: 176px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.info-card span {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 820;
}

.info-card p {
  margin-bottom: 0;
}

.info-card:hover {
  border-color: var(--green);
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.support-hero {
  min-height: 330px;
  padding-bottom: 46px;
}

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

.support-grid .section-heading {
  grid-column: 1 / -1;
}

.legal-page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 72px) 0;
}

.policy {
  display: grid;
  gap: 30px;
}

.policy-hero {
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.policy-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
}

.effective-date {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.legal-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(280px, 0.5fr);
  gap: 18px;
  align-items: start;
}

.summary-panel,
.policy section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.05);
}

.summary-panel {
  padding: clamp(20px, 4vw, 28px);
}

.summary-panel h2,
.policy section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 2.3vw, 1.65rem);
  line-height: 1.2;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  padding-left: 16px;
  border-left: 3px solid var(--green);
  color: var(--muted);
}

.legal-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-nav strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.legal-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--green-dark);
}

.policy section {
  padding: clamp(20px, 4vw, 30px);
}

.policy h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.policy p:last-child,
.policy li:last-child {
  margin-bottom: 0;
}

.policy ul,
.policy ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.policy li + li {
  margin-top: 8px;
}

.policy code {
  padding: 0.12rem 0.28rem;
  border-radius: 6px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 0.94em;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

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

.policy-table th {
  width: 26%;
  background: var(--surface);
  color: var(--ink);
}

.policy-table td {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .feature-grid,
  .link-grid,
  .legal-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    justify-self: start;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .button-row,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .button {
    flex: 1 1 190px;
  }

  .support-grid {
    display: grid;
  }
}

@media (max-width: 540px) {
  .hero,
  .section,
  .legal-page {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 14px;
  }

  .nav a {
    padding-inline: 10px;
  }

  .app-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .policy-table tr + tr {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
