:root {
  color-scheme: light;
  --ink: #14211b;
  --muted: #596861;
  --soft: #edf4ef;
  --linen: #f8f5ef;
  --surface: #ffffff;
  --line: #dbe6de;
  --pine: #214b3d;
  --pine-strong: #143329;
  --copper: #b87535;
  --amber: #f2c16d;
  --sky: #d9e8ef;
  --shadow: 0 18px 50px rgba(20, 33, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 230, 222, 0.78);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

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

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

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

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

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

.site-nav a:hover,
.site-footer a:hover {
  color: var(--pine);
}

.site-nav a[aria-current="page"] {
  color: var(--pine-strong);
}

.home-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 18, 15, 0.86) 0%, rgba(20, 51, 41, 0.72) 36%, rgba(20, 51, 41, 0.22) 68%, rgba(20, 51, 41, 0.08) 100%),
    url("assets/ahsapp-hero-bungalow.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-layout {
  padding: 86px 0 88px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: var(--amber);
}

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

h1 {
  margin-bottom: 16px;
  font-size: 4.8rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  color: var(--pine-strong);
  font-size: 2.35rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  color: var(--pine-strong);
  font-size: 1.08rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.status-pill,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.status-pill {
  border: 1px solid rgba(242, 193, 109, 0.58);
  background: rgba(242, 193, 109, 0.16);
  color: #ffe3a3;
  padding: 0 16px;
}

.button {
  border: 1px solid transparent;
  padding: 0 18px;
}

.button-light {
  background: #fff;
  color: var(--pine-strong);
}

.button-dark {
  background: var(--pine-strong);
  color: #fff;
}

.hero-metrics {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 14px;
}

.hero-metrics dt {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.section {
  padding: 86px 0;
  background: var(--surface);
}

.section-light {
  background: var(--linen);
}

.section-forest {
  background: var(--pine-strong);
}

.section-forest h2,
.section-forest h3,
.section-forest .process-grid span {
  color: #fff;
}

.section-forest p {
  color: rgba(255, 255, 255, 0.74);
}

.section-grid,
.app-showcase,
.trust-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.section-copy p {
  max-width: 620px;
}

.section-copy.narrow {
  max-width: 720px;
}

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

.feature-card,
.process-grid article,
.link-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.feature-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--copper);
  font-size: 0.83rem;
  font-weight: 850;
}

.phone-preview {
  width: min(360px, 100%);
  margin: 0 auto;
  border-radius: 32px;
  background: linear-gradient(145deg, #1c2e27, #08110f);
  padding: 12px;
  box-shadow: 0 28px 70px rgba(20, 33, 27, 0.28);
}

.phone-screen {
  min-height: 640px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #f8f5ef;
  padding: 18px;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  color: var(--pine-strong);
  font-size: 0.94rem;
  font-weight: 800;
}

.search-row,
.listing-card,
.dashboard-card,
.mini-grid span {
  border-radius: 8px;
  background: #fff;
}

.search-row {
  margin: 22px 0 14px;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 700;
}

.listing-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(20, 33, 27, 0.1);
}

.listing-photo {
  min-height: 116px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(33, 75, 61, 0.12), rgba(184, 117, 53, 0.16)),
    url("assets/ahsapp-hero-bungalow.jpg") center / cover no-repeat;
}

.listing-card strong,
.dashboard-card strong {
  display: block;
  color: var(--pine-strong);
}

.listing-card span,
.dashboard-card span,
.dashboard-card small {
  display: block;
  color: var(--muted);
}

.dashboard-card {
  margin-top: 14px;
  padding: 18px;
  background: var(--pine);
}

.dashboard-card span,
.dashboard-card small {
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-card strong {
  margin: 8px 0 4px;
  color: #fff;
  font-size: 2rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-grid span {
  padding: 15px 12px;
  color: var(--pine);
  font-weight: 800;
  text-align: center;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--copper);
  content: "";
}

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

.process-grid article {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 24px;
}

.process-grid span {
  display: block;
  margin-bottom: 26px;
  font-size: 0.84rem;
  font-weight: 900;
}

.link-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.link-panel a {
  padding: 20px 22px;
  color: var(--pine-strong);
  font-weight: 850;
  text-decoration: none;
}

.link-panel a + a {
  border-top: 1px solid var(--line);
}

.final-cta {
  background: linear-gradient(135deg, var(--sky), #fff4dd);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta h2 {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-page {
  background: var(--linen);
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  padding-bottom: 30px;
}

.legal-hero h1 {
  color: var(--pine-strong);
  font-size: 3rem;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.4rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-panel a {
  color: var(--pine);
  font-size: 1.12rem;
  font-weight: 850;
}

@media (max-width: 900px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .home-hero {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(7, 18, 15, 0.9) 0%, rgba(20, 51, 41, 0.74) 54%, rgba(20, 51, 41, 0.3) 100%),
    url("assets/ahsapp-hero-bungalow.jpg") center / cover no-repeat;
  }

  .section-grid,
  .app-showcase,
  .trust-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    gap: 12px;
  }

  .home-hero {
    min-height: 520px;
  }

  .hero-layout {
    padding: 58px 0 64px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.68rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

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

  .page {
    padding-top: 40px;
  }

  .legal-hero h1 {
    font-size: 2.25rem;
  }
}
