:root {
  --brand: #1e3424;
  --off-white: #f8f2e6;
  --cream: #f7f5f0;
  --text-dark: #111b17;
  --text-muted: #4b6358;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
}

h2 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-heading {
  font-size: 28px !important;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

p.body-md {
  font-size: 15px;
}

.on-dark,
.on-dark p,
.on-dark h1,
.on-dark h2 {
  color: var(--off-white);
}

.section {
  padding: 56px 32px;
}

.hero .section {
  padding: 64px 32px;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 760px;
}

.section-inner.narrower {
  max-width: 620px;
}

.center {
  text-align: center;
}

@media (min-width: 761px) {
  h1 {
    font-size: 44px;
  }

  .hero-heading {
    font-size: 38px !important;
  }

  .section {
    padding: 80px;
  }

  .hero .section {
    padding: 100px 80px;
  }
}

/* ── Nav bar ── */

.navbar {
  background: var(--brand);
  padding: 16px 40px;
  display: flex;
  align-items: center;
}

.navbar .spacer {
  flex: 1;
}

.navbar a.nav-link {
  color: var(--off-white);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 12px;
}

.navbar a.nav-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--off-white);
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--off-white);
  stroke-width: 2;
}

/* ── Logo ── */

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--off-white);
}

.logo.dark span {
  color: var(--brand);
}

/* ── Hero ── */

.hero {
  background: var(--brand);
}

.hero .wordmark {
  height: 34px;
  width: auto;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--off-white);
  white-space: pre-line;
  max-width: 860px;
  margin: 0 auto 20px;
}

.hero p {
  max-width: 860px;
  margin: 0 auto;
  color: var(--off-white);
  font-size: 18px;
}

.hero .section-inner {
  max-width: 860px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.badges.center {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 12px 20px;
}

.badge svg {
  width: 26px;
  height: 26px;
  fill: var(--brand);
}

.badge .badge-text {
  display: flex;
  flex-direction: column;
}

.badge .sub {
  font-size: 11px;
  color: var(--text-muted);
}

.badge .label {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}

/* ── Eyebrow badge ── */

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--off-white);
  font-size: 13px;
  margin-bottom: 20px;
}

/* ── Step cards ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.step-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 28px;
}

.step-card .icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-card .num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--off-white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card svg.step-icon {
  width: 26px;
  height: 26px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
}

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

/* ── Feature grid ── */

.features {
  background: var(--cream);
}

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

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: #fff;
  border: 1px solid #e0e8e4;
  border-radius: 14px;
  padding: 24px;
  min-height: 210px;
}

.feature-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e6f2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

/* ── Stats ── */

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 40px;
  margin: 36px 0 40px;
}

.stat {
  text-align: center;
}

.stat .value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--off-white);
}

.stat .label {
  font-size: 13px;
  color: var(--off-white);
  margin-top: 4px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-light {
  background: #fff;
  color: var(--brand);
}

.btn-brand {
  background: var(--brand);
  color: var(--off-white);
  width: 100%;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
}

/* ── CTA / app store section ── */

.cta {
  background: #fff;
}

.cta .logo {
  justify-content: center;
  margin-bottom: 24px;
}

.cta .logo span {
  color: var(--brand);
}

.cta h2 {
  color: var(--text-dark);
}

.cta p {
  margin-top: 12px;
}

/* ── Footer ── */

.footer {
  background: var(--brand);
  padding: 32px 80px;
  display: flex;
  align-items: center;
}

.footer .copyright {
  color: var(--off-white);
  font-size: 12px;
}

@media (max-width: 760px) {
  .footer {
    padding: 24px 32px;
  }
}

/* ── Dialog ── */

dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 420px;
  width: 90vw;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dialog-inner {
  padding: 28px;
}

.dialog-eyebrow {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dialog-inner h3 {
  margin-bottom: 20px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #d7ddd9;
  border-radius: 8px;
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
}

.field .error-text {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-error {
  color: #c0392b;
  font-size: 14px;
  margin-top: 12px;
  display: none;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.dialog-actions > * {
  flex: 1;
}

.success-icon {
  width: 40px;
  height: 40px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.6;
  margin-bottom: 16px;
}

#sponsorSuccess {
  display: none;
}
