:root {
  --cream: #fbf2d3;
  --cream-soft: #f6ead0;
  --olive: #7c8a45;
  --olive-deep: #5e6a32;
  --olive-ink: #2f3618;
  --mustard: #e8b34a;
  --mustard-deep: #c98a1f;
  --olive-light: #a8b075;
  --ink: #1f2410;
  --ink-soft: #4b5238;
  --bezel: #15170c;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 60px -28px rgba(40, 44, 18, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--olive-deep);
  text-decoration: none;
}

a:hover {
  color: var(--mustard-deep);
}

em {
  font-style: italic;
  color: var(--mustard-deep);
}

/* ---------- Nav ---------- */

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 22.37%; /* iOS squircle approximation */
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.25);
}

.brand-name {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--olive-deep);
}

.nav-cta {
  background: var(--olive);
  color: var(--cream) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--olive-deep);
}

@media (max-width: 640px) {
  .nav {
    padding: 18px 20px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero-copy h1 em {
  white-space: nowrap;
}

.lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 0 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta-primary {
  background: var(--ink);
  color: var(--cream) !important;
}

.cta-primary:hover {
  background: var(--olive-deep);
}

.cta-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}

.cta-ghost:hover {
  background: var(--ink);
  color: var(--cream) !important;
}

/* Official App Store badge — keep clean, only scale + lift */
.badge-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.badge-link img {
  height: 48px;
  width: auto;
}

.badge-link-lg img {
  height: 60px;
}

.badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.hero-foot {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

/* ---------- Device mockup (pre-composited PNG) ---------- */

.device {
  width: 300px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(40, 44, 18, 0.28));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 24px 56px;
    text-align: center;
  }
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .device {
    width: 260px;
  }
}

/* ---------- Topic pills ---------- */

.topics {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  text-align: center;
}

.eyebrow {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-deep);
  margin: 0 0 18px;
}

.topic-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.topic-pills li {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-deep);
  background: var(--mustard);
  /* In-app pill style: narrow dark olive border inside, wider light olive ring outside. */
  border: 2px solid var(--olive-deep);
  box-shadow: 0 0 0 4px var(--olive-light);
  padding: 9px 16px;
  border-radius: 999px;
}

.topics-caption {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 17px;
  font-style: italic;
}

/* ---------- How it works ---------- */

.how {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.step {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
  align-items: center;
}

.step-reverse {
  grid-template-columns: 1fr 0.9fr;
}

.step-reverse .step-phone {
  order: 2;
}

.step-reverse .step-copy {
  order: 1;
}

.step-phone {
  display: flex;
  justify-content: center;
}

.step-phone .device {
  width: 280px;
}

.step-num {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--mustard-deep);
  display: block;
  margin-bottom: 10px;
}

.step-copy h2 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}

.step-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .step,
  .step-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .step-reverse .step-phone {
    order: 0;
  }
  .step-reverse .step-copy {
    order: 0;
  }
  .step-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .how {
    gap: 64px;
  }
}

/* ---------- Get it ---------- */

.get {
  background: var(--olive);
  color: var(--cream);
  text-align: center;
  padding: 80px 32px;
  margin: 32px 0 0;
}

.get h2 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.get p {
  margin: 0 0 28px;
  color: rgba(251, 242, 211, 0.85);
  font-size: 18px;
}

.get-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.get .cta-primary {
  background: var(--cream);
  color: var(--ink) !important;
}

.get .cta-primary:hover {
  background: var(--mustard);
}

.get-foot {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: rgba(251, 242, 211, 0.75);
}

.get-foot a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.foot {
  background: var(--olive-deep);
  color: rgba(251, 242, 211, 0.7);
  padding: 22px 32px;
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 13px;
}

.foot-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot a {
  color: rgba(251, 242, 211, 0.85);
}
