:root {
  --paper: #f7f4ee;
  --paper-strong: #fffdf8;
  --ink: #1d2528;
  --muted: #657174;
  --line: #d8d1c4;
  --green: #27745a;
  --green-dark: #18523f;
  --blue: #2f5f9f;
  --coral: #d65f4f;
  --gold: #c9922e;
  --shadow: 0 18px 50px rgba(29, 37, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

body.auth-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 209, 196, 0.85);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(14px);
}

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

.site-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 8px;
  color: white;
  background: var(--green-dark);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--green-dark);
  background: rgba(39, 116, 90, 0.1);
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.site-button:hover {
  background: var(--green-dark);
}

.site-button.ghost {
  color: white;
  border-color: rgba(255, 253, 248, 0.74);
  background: rgba(255, 253, 248, 0.14);
}

.site-button.ghost:hover {
  background: rgba(255, 253, 248, 0.24);
}

.site-button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.site-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-link-button,
.footer-auth-button {
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 900;
}

.site-link-button {
  min-height: 38px;
  padding: 0 8px;
}

.site-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 78svh, 760px);
  padding: clamp(48px, 8vw, 90px) clamp(18px, 7vw, 96px);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(18, 38, 31, 0.88) 0%, rgba(18, 38, 31, 0.72) 44%, rgba(18, 38, 31, 0.22) 100%),
    url("assets/site-app-preview.png") center / cover no-repeat,
    var(--green-dark);
}

.hero-content {
  max-width: 710px;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-hero .eyebrow {
  color: #f0c36c;
}

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

h1 {
  margin: 10px 0 16px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.site-hero p {
  max-width: 660px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 19px;
}

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

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.mission-band {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.mission-grid p {
  margin-bottom: 0;
  font-size: 18px;
}

.feature-section,
.community-section {
  padding: 78px 0;
}

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

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

.feature-card,
.community-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 26px rgba(29, 37, 40, 0.07);
}

.feature-card {
  min-height: 235px;
  padding: 20px;
}

.feature-card span {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  margin-bottom: 24px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.feature-card p,
.community-grid p,
.price-card p {
  margin-bottom: 0;
}

.product-band {
  padding: 72px 0;
  color: white;
  background: #1f4e40;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: center;
}

.product-grid .eyebrow {
  color: #f0c36c;
}

.product-grid p {
  color: rgba(255, 253, 248, 0.82);
  font-size: 17px;
}

.product-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.product-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.community-grid article {
  padding: 22px;
  min-height: 185px;
}

.pricing-band {
  padding: 66px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(47, 95, 159, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 116, 90, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.45fr) minmax(220px, 0.45fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  padding: 22px;
}

.price-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin: 10px 0;
  font-size: 32px;
}

.price-card.accent {
  border-color: rgba(214, 95, 79, 0.35);
  background: rgba(214, 95, 79, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  background: var(--paper-strong);
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 900;
}

.auth-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 37, 40, 0.58);
}

.auth-overlay[hidden] {
  display: none;
}

.auth-dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  font-size: 22px;
  line-height: 1;
}

.auth-copy h2 {
  margin: 8px 42px 8px 0;
  font-size: 30px;
}

.auth-copy p {
  margin-bottom: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.auth-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 900;
}

.auth-tabs button.active {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.auth-form,
.auth-field {
  display: grid;
}

.auth-form {
  gap: 12px;
}

.auth-field {
  gap: 7px;
}

.auth-field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.auth-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-message {
  min-height: 20px;
  margin-bottom: 0;
  color: #8c2d24;
  font-size: 13px;
  font-weight: 900;
}

.auth-note {
  margin-bottom: 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .site-hero {
    min-height: clamp(540px, 82svh, 720px);
    background:
      linear-gradient(180deg, rgba(18, 38, 31, 0.9) 0%, rgba(18, 38, 31, 0.64) 66%, rgba(18, 38, 31, 0.28) 100%),
      url("assets/site-app-preview.png") center / cover no-repeat,
      var(--green-dark);
  }

  .mission-grid,
  .product-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 70px;
    gap: 12px;
  }

  .site-auth-actions {
    justify-content: stretch;
  }

  .site-auth-actions .site-button,
  .site-auth-actions .site-link-button {
    width: 100%;
  }

  .site-hero {
    padding-top: 54px;
  }

  .site-hero p {
    font-size: 17px;
  }

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

  .feature-section,
  .community-section {
    padding: 58px 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
