:root {
  color-scheme: light;
  --bg: #ececec;
  --text: #0f1729;
  --muted: #414b5b;
  --accent: #3b5944;
  --badge: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 26;
  border-bottom: 1px solid rgba(15, 23, 41, 0.12);
  background: rgba(236, 236, 236, 0.9);
  backdrop-filter: blur(8px);
  overflow: visible;
}

.site-header-inner {
  width: min(1260px, calc(100% - 80px));
  margin: 0 auto;
  min-height: 86px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: visible;
}

.brand-link {
  color: #0f1729;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-link:hover {
  color: #294133;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

.site-header-cta {
  flex: 0 0 auto;
}

.site-header .store-badge--top {
  min-width: 204px;
  min-height: 62px;
  height: 62px;
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.site-header .store-badge--top .badge-icon {
  width: 32px;
  flex: 0 0 32px;
  font-size: 24px;
}

.site-header .store-badge--top .badge-icon.apple {
  font-size: 28px;
  margin-top: 0;
}

.site-header .store-badge--top .badge-text small {
  font-size: 0.72rem;
  line-height: 1.1;
}

.site-header .store-badge--top .badge-text strong {
  font-size: 1.58rem;
  line-height: 1.05;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #25324a;
  text-decoration: none;
}

.nav-link:hover {
  border-color: rgba(59, 89, 68, 0.24);
  background: rgba(59, 89, 68, 0.08);
}

.nav-link.is-active {
  border-color: rgba(59, 89, 68, 0.32);
  background: rgba(59, 89, 68, 0.12);
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 360px at 50% 21%, rgba(255, 255, 255, 0.88), rgba(233, 233, 233, 0.2) 72%, transparent 100%),
    linear-gradient(180deg, #f0f0f0 0%, #ececec 58%, #ececec 100%);
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 52%),
    radial-gradient(circle at 62% 23%, rgba(255, 255, 255, 0.6), transparent 46%),
    linear-gradient(transparent 0, rgba(219, 219, 219, 0.65) 48%, transparent 100%);
  mix-blend-mode: screen;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.08) 0.7px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.42) 0.7px, transparent 0.7px);
  background-position: 0 0, 7px 7px;
  background-size: 14px 14px;
}

.hero {
  width: min(1260px, calc(100% - 80px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 32px 0 56px;
}

.visuals {
  position: relative;
  height: min(72vh, 760px);
  min-height: 560px;
}

.phone {
  position: absolute;
  margin: 0;
  width: min(31vw, 355px);
  border-radius: 44px;
  overflow: hidden;
  background: #0b0d13;
  border: 4px solid #0e1017;
  box-shadow: 0 26px 48px rgba(24, 24, 24, 0.34);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-left {
  left: 1%;
  top: 12%;
  z-index: 2;
  transform: rotate(-11.5deg);
}

.phone-right {
  left: 37%;
  top: 21%;
  z-index: 1;
  transform: rotate(9deg);
}

.copy {
  max-width: 530px;
  padding-left: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.1rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.accent {
  color: var(--accent);
  font-weight: 500;
}

.subtitle {
  margin: 28px 0 36px;
  max-width: 490px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.42vw, 1.17rem);
  line-height: 1.5;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge {
  min-width: 216px;
  height: 70px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--badge);
  color: #fff;
  border: 1px solid #202020;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.store-badge--compact {
  min-width: 0;
  width: auto;
  min-height: 50px;
  height: auto;
  padding: 7px 11px;
  gap: 9px;
  border-radius: 9px;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: visible;
}

.store-badge--compact .badge-icon {
  width: 26px;
  flex: 0 0 26px;
  font-size: 20px;
  line-height: 1.1;
}

.store-badge--compact .badge-icon.apple {
  font-size: 24px;
  margin-top: 0;
}

.store-badge--compact .badge-text small {
  font-size: 0.62rem;
  line-height: 1.15;
}

.store-badge--compact .badge-text strong {
  font-size: 1.25rem;
  line-height: 1.12;
}

.site-header .store-badge--compact {
  width: auto;
  max-width: none;
  min-height: 54px;
  height: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.badge-icon {
  width: 38px;
  flex: 0 0 38px;
  text-align: center;
  font-size: 30px;
  line-height: 1;
}

.badge-icon.apple {
  margin-top: -2px;
  font-size: 34px;
}

.badge-icon.play {
  font-size: 28px;
}

.badge-text {
  display: grid;
  gap: 2px;
  align-content: center;
}

.badge-text small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.88;
}

.badge-text strong {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.app-store .badge-text strong {
  font-size: 2.1rem;
}

.play-store .badge-text strong {
  font-size: 1.76rem;
}

/* Keep compact header badge text size from being overridden by generic app-store rules. */
.site-header .store-badge.store-badge--compact.app-store .badge-text small {
  font-size: 0.62rem;
  line-height: 1.15;
}

.site-header .store-badge.store-badge--compact.app-store .badge-text strong {
  font-size: 1.25rem;
  line-height: 1.12;
}

.is-disabled {
  opacity: 0.94;
  cursor: default;
  pointer-events: none;
}

.helper {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: #5f6572;
}

.legal-disclaimer {
  margin: 10px 0 0;
  max-width: 520px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #636b78;
}

.blog-link-wrap {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: #5f6572;
}

.support-link-wrap {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #5f6572;
}

.blog-link {
  color: #204f3d;
  font-weight: 600;
}

.blog-link:hover {
  text-decoration: underline;
}

.featured-articles {
  position: relative;
  z-index: 5;
  margin: 0 0 34px;
}

.featured-articles-inner {
  position: relative;
  width: min(1260px, calc(100% - 80px));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(59, 89, 68, 0.24);
  border-radius: 18px;
  background: rgba(247, 248, 247, 0.88);
  box-shadow: 0 12px 26px rgba(28, 46, 35, 0.1);
  overflow: hidden;
}

.featured-articles-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(59, 89, 68, 0.65), rgba(59, 89, 68, 0.1));
}

.featured-articles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.featured-articles-head h2 {
  margin: 0;
  font-size: 1.26rem;
  letter-spacing: -0.01em;
}

.featured-articles-head p {
  margin: 6px 0 0;
  max-width: 760px;
  color: #4f5a69;
  font-size: 0.95rem;
}

.featured-articles-all {
  border: 1px solid rgba(59, 89, 68, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: #1f4f3d;
  background: rgba(59, 89, 68, 0.08);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.featured-articles-all:hover {
  background: rgba(59, 89, 68, 0.14);
}

.featured-articles-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.featured-article-card a {
  min-height: 126px;
  display: grid;
  gap: 10px;
  grid-template-rows: auto 1fr auto;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid rgba(31, 79, 61, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(238, 243, 239, 0.94));
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.featured-article-card a:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 79, 61, 0.32);
  box-shadow: 0 8px 18px rgba(31, 79, 61, 0.14);
}

.featured-article-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #355946;
  background: rgba(59, 89, 68, 0.1);
}

.featured-article-title {
  color: #163326;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.featured-article-cta {
  color: #1f4f3d;
  font-size: 0.85rem;
  font-weight: 600;
}

.featured-article-cta::after {
  content: " \2192";
}

@media (max-width: 1200px) {
  .site-header-inner {
    width: min(1120px, calc(100% - 52px));
  }

  .hero {
    width: min(1120px, calc(100% - 52px));
    grid-template-columns: 1.08fr 1fr;
  }

  .copy {
    padding-left: 0;
  }

  .phone {
    width: min(34vw, 320px);
  }

  .phone-left {
    left: 2%;
    top: 14%;
  }

  .phone-right {
    left: 40%;
    top: 23%;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    width: min(640px, calc(100% - 28px));
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 0 10px;
  }

  .site-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
  }

  .nav-link {
    white-space: nowrap;
    padding: 5px 9px;
    font-size: 0.84rem;
  }

  .store-badge--compact {
    min-height: 46px;
    height: auto;
    padding: 6px 9px;
    gap: 8px;
  }

  .site-header .store-badge--compact {
    width: auto;
    max-width: none;
    min-height: 50px;
    height: auto;
  }

  .site-header .store-badge--top {
    min-width: 176px;
    min-height: 54px;
    height: 54px;
    padding: 7px 11px;
  }

  .site-header .store-badge--top .badge-icon {
    width: 26px;
    flex: 0 0 26px;
    font-size: 20px;
  }

  .site-header .store-badge--top .badge-icon.apple {
    font-size: 24px;
  }

  .site-header .store-badge--top .badge-text small {
    font-size: 0.62rem;
  }

  .site-header .store-badge--top .badge-text strong {
    font-size: 1.24rem;
    line-height: 1.08;
  }

  .store-badge--compact .badge-icon {
    width: 22px;
    flex: 0 0 22px;
    font-size: 17px;
  }

  .store-badge--compact .badge-icon.apple {
    font-size: 20px;
  }

  .store-badge--compact .badge-text small {
    font-size: 0.58rem;
  }

  .store-badge--compact .badge-text strong {
    font-size: 1.05rem;
  }

  .hero {
    width: min(640px, calc(100% - 28px));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 0
      calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .visuals {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    padding: 4px 0 10px;
  }

  .phone {
    position: relative;
    width: min(42vw, 230px);
    border-radius: 34px;
    left: auto;
    top: auto;
  }

  .phone-left {
    transform: rotate(-8deg) translateY(14px);
    z-index: 2;
  }

  .phone-right {
    margin-left: -10px;
    transform: rotate(6deg);
    z-index: 1;
  }

  .copy {
    max-width: 100%;
    padding-left: 0;
  }

  h1 {
    font-size: clamp(2rem, 8.6vw, 3.1rem);
  }

  .subtitle {
    margin: 20px 0 28px;
    font-size: 1rem;
  }

  .stores {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .store-badge {
    min-width: 0;
    width: min(100%, 332px);
    height: 64px;
    padding: 9px 14px;
  }

  .badge-text strong,
  .app-store .badge-text strong,
  .play-store .badge-text strong {
    font-size: 1.58rem;
  }

  .site-header .store-badge.store-badge--compact.app-store .badge-text small {
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .site-header .store-badge.store-badge--compact.app-store .badge-text strong {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .featured-articles-inner {
    width: min(640px, calc(100% - 28px));
    padding: 18px 14px;
  }

  .featured-articles-head {
    align-items: flex-start;
  }

  .featured-articles-head p {
    margin-top: 4px;
    font-size: 0.9rem;
  }

  .featured-articles-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .featured-article-card a {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    width: calc(100% - 20px);
    gap: 8px;
  }

  .brand-link {
    font-size: 0.95rem;
  }

  .hero {
    width: calc(100% - 20px);
    gap: 12px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 0
      calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .visuals {
    gap: 8px;
    padding: 2px 0 8px;
  }

  .phone {
    width: min(44vw, 180px);
    border-radius: 30px;
    border-width: 3px;
  }

  .phone-left {
    transform: rotate(-7deg) translateY(10px);
  }

  .phone-right {
    margin-left: -8px;
    transform: rotate(5deg);
  }

  .copy {
    max-width: 100%;
    padding-left: 0;
  }

  h1 {
    font-size: clamp(1.76rem, 10vw, 2.52rem);
    line-height: 1;
  }

  .subtitle {
    margin: 14px 0 20px;
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .stores {
    gap: 10px;
  }

  .store-badge {
    width: min(100%, 304px);
    height: 58px;
    padding: 8px 11px;
    gap: 10px;
    border-radius: 9px;
  }

  .badge-icon {
    width: 30px;
    flex: 0 0 30px;
    font-size: 22px;
  }

  .badge-icon.apple {
    font-size: 26px;
  }

  .badge-icon.play {
    font-size: 20px;
  }

  .featured-articles-inner {
    width: calc(100% - 20px);
    padding: 16px 12px;
  }

  .featured-articles-head h2 {
    font-size: 1.1rem;
  }

  .featured-articles-all {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .featured-article-title {
    font-size: 0.94rem;
  }

  .badge-text small {
    font-size: 0.67rem;
  }

  .badge-text strong,
  .app-store .badge-text strong,
  .play-store .badge-text strong {
    font-size: 1.36rem;
    line-height: 0.98;
  }

  .site-header .store-badge.store-badge--compact.app-store .badge-text small {
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .site-header .store-badge.store-badge--compact.app-store .badge-text strong {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .helper {
    margin-top: 14px;
    font-size: 0.85rem;
  }

  .site-header .store-badge--compact {
    width: auto;
    max-width: none;
    min-height: 50px;
    height: auto;
  }

  .site-header .store-badge--top {
    min-width: 168px;
    min-height: 50px;
    height: 50px;
    padding: 6px 10px;
  }

  .site-header .store-badge--top .badge-text small {
    font-size: 0.58rem;
  }

  .site-header .store-badge--top .badge-text strong {
    font-size: 1.08rem;
    line-height: 1.08;
  }
}

@media (max-width: 420px) {
  .site-header-inner {
    width: calc(100% - 16px);
  }

  .hero {
    width: calc(100% - 16px);
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }

  .visuals {
    justify-content: space-between;
    padding-inline: 2px;
  }

  .phone {
    width: min(43vw, 160px);
    border-radius: 28px;
  }

  .phone-left {
    transform: rotate(-6deg) translateY(8px);
  }

  .phone-right {
    margin-left: -6px;
    transform: rotate(4deg);
  }

  h1 {
    font-size: clamp(1.62rem, 10.4vw, 2.02rem);
  }

  .store-badge {
    width: 100%;
    max-width: none;
    height: 54px;
    padding: 7px 10px;
  }

  .site-header .store-badge--compact {
    width: auto;
    max-width: none;
    min-height: 50px;
    height: auto;
  }

  .site-header .store-badge--top {
    min-width: 160px;
    min-height: 48px;
    height: 48px;
    padding: 6px 9px;
  }

  .site-header .store-badge--top .badge-text small {
    font-size: 0.56rem;
  }

  .site-header .store-badge--top .badge-text strong {
    font-size: 1rem;
    line-height: 1.06;
  }
}
