:root {
  --bg: #f3f5f1;
  --ink: #17211d;
  --muted: #65716b;
  --panel: #ffffff;
  --line: #dce3dd;
  --green: #1f8a5b;
  --lime: #d9f26f;
  --red: #b94848;
  --amber: #b77924;
  --blue: #2d6fb7;
  --shadow: 0 18px 50px rgba(23, 33, 29, .09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  min-width: 0;
  width: 100vw;
  max-width: 100vw;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  height: 42px;
  width: auto;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

nav a,
.text-link,
.cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: #fff;
}

nav a[aria-current="page"],
.cta {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.store-link {
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 0;
  width: 142px;
  height: 38px;
  overflow: hidden;
}

.store-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  max-width: calc(100vw - 32px);
  overflow: visible;
}

.hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: end;
  padding: 34px 0 28px;
  min-width: 0;
  max-width: 100%;
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
}

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

h1,
h2,
h3 {
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

p,
a,
span {
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(54px, 11vw, 132px);
  line-height: .86;
  letter-spacing: 0;
}

.pulse-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(35, 190, 105, .45));
  stroke: #16b86f;
  stroke-width: 6;
  stroke-dasharray: 70 430;
  animation: pulseTrace 2.15s linear infinite;
}

@keyframes pulseTrace {
  from {
    stroke-dashoffset: 500;
  }
  to {
    stroke-dashoffset: 0;
  }
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  max-width: 690px;
  color: #405048;
  font-size: clamp(18px, 2vw, 24px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.meta-row span,
.tag,
.score-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e4ebe5;
  color: #334038;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
  align-self: start;
  margin-top: 26px;
  min-height: 176px;
  position: relative;
  overflow: hidden;
}

.hero-panel p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: #405048;
  font-size: 18px;
}

.panel-pulse {
  position: absolute;
  inset: 0;
  opacity: .34;
  pointer-events: none;
}

.panel-pulse svg {
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  width: calc(100% + 16px);
  height: 88px;
  transform: translateY(-50%);
}

.lead-story,
.pulse-card,
.source-card,
.app-card,
.blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.lead-story > *,
.pulse-card > *,
.app-card > *,
.blog-card > *,
.pulse-grid > *,
.blog-strip > * {
  min-width: 0;
  max-width: 100%;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 420px;
}

.lead-story img,
.pulse-card img,
.blog-card img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e4ebe5;
}

.lead-image {
  min-height: 420px;
}

.lead-copy {
  padding: 30px;
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  overflow: visible;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.tag {
  background: #edf2ee;
}

.tag.source {
  background: #e6eef8;
  color: var(--blue);
}

.score-pill {
  background: #e0f5e9;
  color: var(--green);
}

.takeaway {
  border-left: 4px solid var(--green);
  padding-left: 14px;
  color: #38473f;
  font-size: 17px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.story-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.story-actions a {
  border-radius: 8px;
  min-height: 38px;
  padding: 9px 12px;
  text-decoration: none;
  font-weight: 900;
}

.story-actions .primary {
  background: var(--green);
  color: #fff;
}

.story-actions .secondary {
  background: #eef2ed;
}

.section-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 46px 0 16px;
  min-width: 0;
  max-width: 100%;
}

.section-headline > p {
  max-width: 380px;
  margin-bottom: 0;
  color: var(--muted);
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.pulse-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
}

.pulse-card .card-image {
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.pulse-card .card-copy {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.pulse-card h3 {
  font-size: 20px;
}

.pulse-card p {
  margin-bottom: 0;
  color: #3d4b44;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.split-section {
  display: block;
  margin-top: 34px;
  min-width: 0;
  max-width: 100%;
}

.source-card {
  padding: 22px;
}

.source-card p:last-child {
  margin-bottom: 0;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  align-items: center;
  gap: 22px;
  padding: 24px;
}

.app-copy {
  min-width: 0;
}

.app-copy h2 {
  margin-bottom: 12px;
}

.app-shot {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 8px;
  background: #eef3ef;
  overflow: hidden;
}

.app-shot img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  object-position: center bottom;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.store-row a {
  display: inline-flex;
  width: 158px;
  height: 48px;
  min-width: 0;
  overflow: hidden;
}

.store-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reading-head {
  align-items: center;
}

.blog-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}

.blog-card {
  text-decoration: none;
  color: inherit;
}

.blog-card .blog-image {
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.blog-card div:last-child {
  padding: 14px;
}

.blog-card h3 {
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  padding: 24px;
}

@media (max-width: 960px) {
  .hero,
  .lead-story,
  .app-card,
  .pulse-grid,
  .blog-strip {
    grid-template-columns: 1fr;
  }

  .lead-image {
    min-height: 280px;
  }

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

@media (max-width: 620px) {
  .site-header,
  .section-headline,
  .site-footer {
    display: grid;
  }

  .site-header {
    padding: 14px 16px;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .brand img {
    height: 36px;
  }

  .store-link img {
    height: 100%;
  }

  .store-link {
    width: 132px;
    height: 36px;
  }

  nav {
    justify-content: start;
  }

  main {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero {
    min-height: 0;
    padding-top: 24px;
  }

  .hero-panel {
    margin-top: 0;
    min-height: 150px;
  }

  .lead-copy {
    padding: 20px;
  }

  .blog-strip {
    grid-template-columns: 1fr;
  }

  .app-card {
    padding: 18px;
  }

  .app-shot img {
    max-height: 360px;
  }

  .store-row img {
    height: 100%;
  }

  .store-row a {
    width: 142px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-line {
    animation: none;
  }

  .pulse-line {
    stroke-dasharray: none;
  }
}
