:root {
  --bg: #f4f2e9;
  --panel: #fffdf6;
  --ink: #10231a;
  --muted: #53655b;
  --green: #174d35;
  --green-2: #2d7652;
  --mint: #b7e4c7;
  --gold: #b48b36;
  --border: #dcdaca;
  --shadow: 0 24px 70px rgba(16, 35, 26, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 5%, rgba(183, 228, 199, .55), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(244, 242, 233, .88);
  border-bottom: 1px solid rgba(23, 77, 53, .12);
  backdrop-filter: blur(18px);
}
.logo, .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}
header nav { display: flex; gap: 26px; }
header nav a { color: var(--muted); font-size: 15px; font-weight: 650; text-decoration: none; }
header nav a:hover { color: var(--green); }

main { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(46px, 8vw, 105px);
  align-items: center;
  min-height: 720px;
  padding: 76px 0 88px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: -.03em; }
.hero h1 {
  margin: 0 0 24px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: .98;
}
.lede { max-width: 670px; margin: 0; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(23, 77, 53, .22);
  font-weight: 760;
  text-decoration: none;
}
.store-link:hover { background: #0f3b28; transform: translateY(-1px); }

/* App Store launch gate — driven by <html data-store-status="pending|live">.
   Default (missing attribute or "pending") shows the non-clickable pending
   state, so the live CTA can never ship pointing at a listing that is not
   public yet. Flip the attribute in index.html to go live. */
.store-cta { display: contents; }
.store-cta__live { display: none; }
.store-link--pending {
  background: transparent;
  color: var(--green);
  border: 2px dashed var(--border);
  box-shadow: none;
  cursor: default;
}
.store-link--pending:hover { background: transparent; transform: none; }
[data-store-status="live"] .store-cta__live { display: inline-flex; }
[data-store-status="live"] .store-cta__pending { display: none; }
.text-link { font-size: 15px; font-weight: 700; }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}
.trust-list li::before { content: "✓"; margin-right: 8px; color: var(--green-2); font-weight: 900; }
.hero-visual { position: relative; padding: 18px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -12% 3%;
  z-index: -1;
  border-radius: 52% 48% 44% 56%;
  background: linear-gradient(145deg, var(--mint), #dce8bc);
  transform: rotate(-4deg);
}
.phone-shot {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 8px solid #142019;
  border-radius: 44px;
  background: #142019;
  box-shadow: var(--shadow);
  line-height: 0;
}
.phone-shot img { display: block; width: 100%; height: auto; border-radius: 35px; }

.features, .screens-section { padding: 88px 0; }
.features > h2, .section-heading h2 {
  max-width: 720px;
  margin: 0 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
}
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 253, 246, .82);
}
.feature-card h3 { margin: 38px 0 8px; font-size: 21px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-mark { color: var(--green-2); font-size: 12px; font-weight: 850; letter-spacing: .12em; }

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 460px; margin: 0 0 4px; color: var(--muted); }
.screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.screen-card { margin: 0; }
.screen-card .phone-shot { border-width: 5px; border-radius: 30px; }
.screen-card .phone-shot img { border-radius: 24px; }
.screen-card figcaption { display: grid; gap: 3px; padding: 16px 5px 0; }
.screen-card figcaption strong { font-size: 17px; }
.screen-card figcaption span { color: var(--muted); font-size: 14px; }

.highlights {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin: 80px 0 100px;
  padding: 50px;
  border-radius: 30px;
  color: #fff;
  background: var(--green);
  box-shadow: var(--shadow);
}
.highlights .eyebrow { color: #e5cb85; }
.highlights h2 { margin: 0; font: 600 clamp(2rem, 4vw, 3.25rem)/1.04 Georgia, serif; }
.highlights > p { margin: 0; color: rgba(255,255,255,.78); }
.cta { padding: 70px 20px 100px; text-align: center; }
.cta h2 { margin: 0 0 28px; font: 600 clamp(2rem, 5vw, 4rem)/1.05 Georgia, serif; }

footer {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: 44px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 25px; margin: 0; padding: 0; list-style: none; }
footer a { color: var(--muted); }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr minmax(230px, 310px); min-height: 650px; gap: 40px; }
  .card-grid, .screen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  header { min-height: 62px; padding: 12px 18px; }
  header nav { gap: 14px; }
  header nav a:nth-child(-n+2) { display: none; }
  main { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 50px 0 70px; }
  /* Headline and CTA render before the screenshot on phones (no order: -1). */
  .hero-visual { width: min(64vw, 250px); margin: 28px auto 0; }
  .hero-visual::before { inset-inline: 0; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .features, .screens-section { padding: 62px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .section-heading, .highlights { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { align-items: start; }
  .screen-card figcaption span { font-size: 12px; }
  .highlights { margin: 50px 0 70px; padding: 32px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
