:root {
  --bg: #fbfaf5;
  --surface: #ffffff;
  --surface-soft: #f0f7f2;
  --ink: #16221d;
  --muted: #5d6a63;
  --line: #d9e5dc;
  --primary: #165c4a;
  --primary-dark: #0f4034;
  --accent: #d99b21;
  --accent-soft: #fff4cf;
  --blue: #1d6f8f;
  --shadow: 0 18px 50px rgba(22, 34, 29, 0.11);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-7px);
}

.nav-toggle-line::after {
  transform: translateY(5px);
}

.section {
  padding: 72px 0;
}

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

.hero {
  padding: 76px 0 68px;
  background:
    linear-gradient(135deg, rgba(22, 92, 74, 0.1), rgba(217, 155, 33, 0.14)),
    var(--bg);
}

.hero-grid,
.split,
.contact-panel,
.cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  max-width: 780px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 14px;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 700px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(22, 92, 74, 0.2);
}

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

.button-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line);
}

.button-light {
  background: #ffffff;
  color: var(--primary);
}

.trust-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.app-icon-large {
  width: 180px;
  border-radius: 22px;
  margin: 0 auto 22px;
  box-shadow: 0 16px 35px rgba(22, 34, 29, 0.18);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-row span {
  min-height: 70px;
  display: grid;
  align-content: center;
  background: var(--accent-soft);
  border: 1px solid #f1d98e;
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-row strong {
  display: block;
  color: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

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

.feature-card,
.info-grid article,
.guide-item,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(22, 34, 29, 0.06);
  min-width: 0;
}

.feature-card {
  padding: 20px;
}

.feature-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.feature-card p,
.info-grid p,
.guide-item p,
.contact-card li,
.legal-page li {
  color: var(--muted);
}

.feature-card h3 {
  margin-bottom: 8px;
}

.notice-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-grid article {
  padding: 26px;
}

.info-grid h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
}

.cta-band {
  background: var(--primary);
  color: #ffffff;
  padding: 42px 0;
}

.cta-band p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  background: #12251f;
  color: #ffffff;
  padding: 42px 0 24px;
}

.footer-grid,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid {
  align-items: flex-start;
}

.footer-grid p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-grid a {
  color: #ffffff;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 0.92rem;
}

.page-main {
  padding: 58px 0 80px;
}

.page-hero {
  margin-bottom: 32px;
}

.legal-page {
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.legal-page section + section {
  margin-top: 30px;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.legal-page ul,
.contact-card ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.legal-page li + li,
.contact-card li + li {
  margin-top: 8px;
}

.guide-list {
  display: grid;
  gap: 16px;
}

.guide-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
}

.guide-item img {
  width: 52px;
  height: 52px;
}

.guide-item h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.contact-panel {
  min-height: 420px;
}

.contact-card {
  padding: 26px;
}

.contact-card h2 {
  font-size: 1.35rem;
}

@media (max-width: 920px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split,
  .contact-panel,
  .cta-content,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    gap: 22px;
  }
}

@media (max-width: 740px) {
  body {
    overflow-x: hidden;
  }

  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .section,
  .hero {
    padding: 52px 0;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.45rem);
    overflow-wrap: break-word;
  }

  h2,
  h3,
  p,
  a {
    overflow-wrap: break-word;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .guide-item {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-grid nav {
    justify-content: flex-start;
  }
}
