:root {
  --bg: #faf2e0;
  --bg-2: #f4e7c8;
  --ink: #2a2418;
  --ink-2: #6a5e44;
  --gold: #b8923a;
  --gold-2: #8a6a26;
  --rule: rgba(184, 146, 58, 0.18);
  --max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -200px, var(--bg) 0%, var(--bg-2) 100%);
  background-repeat: no-repeat;
  background-color: var(--bg-2);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body { background-attachment: scroll; }

main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

nav.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.top .brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}

nav.top .brand:hover { color: var(--gold-2); }

h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--gold-2);
}

h1.small { font-size: 32px; margin-bottom: 24px; color: var(--ink); }

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--ink);
}

p { margin: 0 0 16px; color: var(--ink); }
p.sub { color: var(--ink-2); font-size: 19px; margin-bottom: 40px; }
p.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 400;
}

ul { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }

a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

code { font-family: "SF Mono", Menlo, monospace; font-size: 0.92em; background: rgba(184, 146, 58, 0.10); padding: 1px 5px; border-radius: 3px; }

hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

footer {
  border-top: 1px solid var(--rule);
  padding: 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}

footer a { color: var(--ink-2); margin: 0 10px; }
footer a:hover { color: var(--gold-2); }

/* Hero icon */
.hero-icon {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  display: block;
  margin: 0 0 32px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(184, 146, 58, 0.18);
  border: 1px solid rgba(184, 146, 58, 0.12);
}

/* Feature bullets */
.features { list-style: none; padding: 0; margin: 32px 0; }
.features li {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-bottom: 10px;
}
.features li strong { color: var(--gold-2); }

/* Screenshots gallery */
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}

@media (max-width: 720px) {
  .screens {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.screen {
  margin: 0;
  text-align: center;
}

.screen img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(184, 146, 58, 0.12);
  background: var(--bg);
  display: block;
}

.screen figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* Crisis box */
.crisis {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}
.crisis h2 { margin-top: 0; }

/* App Store CTA */
.appstore-cta {
  margin: 36px 0 12px;
}

.appstore-btn {
  display: inline-block;
  text-decoration: none;
  /* Apple's badge guidelines: maintain clear space around badge equal
     to at least 1/10 of its height. No drop shadow, no glow, no other
     visual effects per Apple's spec. */
  transition: opacity 120ms ease;
}

.appstore-btn:hover { opacity: 0.88; }

.appstore-badge {
  /* Apple minimum size: 40px tall (≈ 120px wide at the spec 3:1 ratio).
     We size larger for hero CTA emphasis but preserve the aspect ratio. */
  width: 168px;   /* renders the badge at 56px tall, well above minimum */
  height: auto;
  display: block;
}
