:root {
  --blue: #1463ff;
  --blue-2: #3927ff;
  --cyan: #11c7d7;
  --teal: #18d0bb;
  --violet: #7c4dff;
  --pink: #ff5f98;
  --amber: #ffab37;
  --navy: #08143a;
  --muted: #5e6b91;
  --soft: #f6f9ff;
  --line: #dfe8fb;
  --white: #ffffff;
  --on-accent: #ffffff;
  --shadow: 0 22px 60px rgba(21, 53, 120, 0.13);
  --page-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --hero-wash: rgba(17, 199, 215, 0.1);
  --card-bg: #ffffff;
  --panel-bg: #f8fbff;
  --badge-bg: rgba(20, 99, 255, 0.06);
  --phone-bg: linear-gradient(180deg, #ffffff, #f5f8ff);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #f8fbff;
  --muted: #a8b5d6;
  --soft: #101a38;
  --line: rgba(132, 159, 221, 0.26);
  --white: #111b3a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --page-bg: #05091a;
  --header-bg: rgba(5, 9, 26, 0.88);
  --hero-wash: rgba(17, 199, 215, 0.17);
  --card-bg: #0c1530;
  --panel-bg: #0f1a37;
  --badge-bg: rgba(20, 99, 255, 0.18);
  --phone-bg: linear-gradient(180deg, #111b3a, #0b132b);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: radial-gradient(circle at 72% 12%, var(--hero-wash), transparent 34%), var(--page-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6.8vw, 90px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span,
h2 span {
  color: var(--blue);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 16px clamp(22px, 6vw, 96px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 230px;
}

html[data-theme="dark"] .brand img,
html[data-theme="dark"] .site-footer img {
  border-radius: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.4vw, 24px);
}

.site-nav a {
  position: relative;
  padding: 10px 2px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
body[data-page="home"] [data-nav="home"]::after,
body[data-page="features"] [data-nav="features"]::after,
body[data-page="solutions"] [data-nav="solutions"]::after,
body[data-page="family"] [data-nav="family"]::after,
body[data-page="health"] [data-nav="health"]::after,
body[data-page="pricing"] [data-nav="pricing"]::after,
body[data-page="contact"] [data-nav="contact"]::after {
  transform: scaleX(1);
}

body[data-page="home"] [data-nav="home"],
body[data-page="features"] [data-nav="features"],
body[data-page="solutions"] [data-nav="solutions"],
body[data-page="family"] [data-nav="family"],
body[data-page="health"] [data-nav="health"],
body[data-page="pricing"] [data-nav="pricing"],
body[data-page="contact"] [data-nav="contact"] {
  color: var(--blue);
}

.download-pill,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.download-pill {
  min-height: 50px;
  padding: 0 24px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--blue-2), var(--cyan));
  box-shadow: 0 14px 32px rgba(20, 99, 255, 0.28);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--card-bg);
  box-shadow: 0 10px 24px rgba(21, 53, 120, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(42px, 7vw, 96px) clamp(22px, 6vw, 96px);
  overflow: hidden;
}

.hero.slim {
  min-height: 650px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-copy > p {
  max-width: 650px;
  font-size: clamp(18px, 1.45vw, 22px);
}

.kicker,
.section-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--badge-bg);
  font-size: 14px;
  font-weight: 900;
}

.section-note {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 8px;
}

.action-row,
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.action-row {
  margin: 34px 0 30px;
}

.btn {
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.btn.primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--blue-2), var(--cyan));
  box-shadow: 0 18px 42px rgba(20, 99, 255, 0.28);
}

.btn.secondary {
  color: var(--navy);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(21, 53, 120, 0.1);
}

.store-badge {
  display: grid;
  align-content: center;
  min-width: 150px;
  min-height: 48px;
  padding: 7px 16px 7px 48px;
  border-radius: 8px;
  color: var(--on-accent);
  background: #050505;
  position: relative;
}

.store-badge small {
  font-size: 9px;
  line-height: 1;
}

.store-badge strong {
  font-size: 17px;
  line-height: 1.05;
}

.store-icon {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 23px;
  height: 23px;
  color: var(--on-accent);
}

.hero-art {
  position: relative;
  min-height: 560px;
}

.orbit {
  position: absolute;
  inset: 9% 2% 10% 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 45%, rgba(20, 99, 255, 0.16), transparent 35%),
    linear-gradient(115deg, transparent 0 38%, rgba(20, 99, 255, 0.08) 38% 100%);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 16% 4%;
  border: 2px solid rgba(20, 99, 255, 0.24);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.orbit::after {
  inset: 27% 13%;
}

.spark {
  position: absolute;
  z-index: 2;
  color: var(--blue);
  font-size: 30px;
}

.s1 {
  left: 12%;
  top: 18%;
}

.s2 {
  right: 4%;
  top: 28%;
}

.phone {
  position: absolute;
  width: 270px;
  min-height: 485px;
  padding: 34px 18px 18px;
  border: 8px solid #10172f;
  border-radius: 38px;
  background: var(--phone-bg);
  box-shadow: 0 30px 55px rgba(11, 20, 49, 0.26);
}

.phone-main {
  z-index: 3;
  right: 30%;
  top: 2%;
}

.phone-side {
  z-index: 2;
  right: 6%;
  top: 16%;
  width: 230px;
  min-height: 430px;
  transform: rotate(8deg);
}

.triple .phone-main {
  right: 28%;
}

.triple .phone-side.left {
  left: 2%;
  right: auto;
  top: 18%;
  transform: rotate(-5deg);
}

.triple .phone-side.right {
  right: 0;
}

.notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 88px;
  height: 20px;
  border-radius: 0 0 15px 15px;
  background: #10172f;
  transform: translateX(-50%);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mini-card,
.offer-card,
.tip-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 10px 24px rgba(21, 53, 120, 0.07);
}

.mini-card p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  font-size: 12px;
}

.mini-card a,
.feature-card a,
.feature-matrix a,
.contact-cards a,
.four-grid a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.mini-card strong {
  display: block;
  margin-top: 9px;
  font-size: 20px;
}

.up,
em {
  color: #0bbf79;
  font-style: normal;
}

.down,
i {
  color: #ff4e73;
  font-style: normal;
}

.offer-card {
  color: #09a979;
  background: #dffbef;
  font-size: 28px;
  font-weight: 900;
}

.offer-card span,
.tip-card span {
  color: var(--muted);
  font-size: 12px;
}

.tip-card {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.tip-card span {
  color: rgba(255, 255, 255, 0.82);
}

.benefit-strip,
.download-cta,
.app-banner,
.subscribe-band,
.dashboard-section,
.story-section {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 36px;
  transform: translateY(-28px);
}

.benefit-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: center;
  min-width: 0;
}

.benefit-strip article .icon {
  grid-row: 1 / span 2;
}

.benefit-strip article strong {
  align-self: end;
  line-height: 1.25;
}

.benefit-strip p {
  grid-column: 2;
  align-self: start;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-weight: 900;
}

.icon-svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blue { color: var(--blue); background: rgba(20, 99, 255, 0.12); }
.teal { color: #079b91; background: rgba(24, 208, 187, 0.16); }
.cyan { color: #0aa3b8; background: rgba(17, 199, 215, 0.15); }
.violet { color: var(--violet); background: rgba(124, 77, 255, 0.13); }
.pink { color: var(--pink); background: rgba(255, 95, 152, 0.15); }
.amber { color: #bc6d00; background: rgba(255, 171, 55, 0.18); }
.slate { color: #56627e; background: #eef2fb; }

.section {
  padding: clamp(58px, 7vw, 96px) clamp(22px, 6vw, 96px);
}

.center {
  text-align: center;
}

.six-grid,
.four-grid,
.testimonial-grid,
.pricing-grid {
  display: grid;
  gap: 24px;
}

.six-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.four-grid article,
.testimonial-grid article,
.pricing-grid article,
.audience-grid article,
.feature-matrix article,
.contact-form,
.contact-cards article,
.faq-list,
.family-board article,
.health-board article,
.timeline-list article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 18px 40px rgba(21, 53, 120, 0.08);
}

.feature-card,
.four-grid article,
.testimonial-grid article {
  padding: 26px;
  text-align: left;
}

body[data-page="home"] .feature-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 245px;
  text-align: center;
}

body[data-page="home"] .feature-card .icon {
  margin-bottom: 4px;
}

body[data-page="home"] .feature-card h3 {
  margin: 0;
  line-height: 1.25;
}

body[data-page="home"] .feature-card p {
  max-width: 190px;
  min-height: 0;
  margin: 0;
  line-height: 1.55;
}

body[data-page="home"] .feature-card a {
  align-self: end;
  margin-top: 2px;
}

.feature-card p,
.four-grid p {
  min-height: 68px;
}

.steps,
.timeline-steps,
.flow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.timeline-steps,
.flow-row {
  grid-template-columns: repeat(5, 1fr);
}

.steps article,
.timeline-steps article,
.flow-row article {
  position: relative;
  text-align: center;
}

.steps article > span,
.timeline-steps article > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--blue);
  font-weight: 900;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin: 12px auto 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  color: var(--blue);
  background: var(--card-bg);
  box-shadow: 0 14px 34px rgba(21, 53, 120, 0.08);
  font-size: 34px;
}

.step-icon .icon-svg {
  width: 42px;
  height: 42px;
}

.dashboard-section {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 36px;
  align-items: center;
  padding: 48px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.web-dashboard {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-bg);
}

.web-dashboard aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: var(--card-bg);
}

.web-dashboard aside img {
  width: 34px;
}

.web-dashboard aside span {
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.web-dashboard aside span:first-of-type {
  color: var(--blue);
  background: rgba(20, 99, 255, 0.1);
}

.web-dashboard section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.dash-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
}

.dash-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  min-height: 16px;
}

.dash-card strong {
  display: block;
  margin: 0;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}

.dash-card > em {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.dash-card p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.dash-card p em,
.dash-card p i {
  flex: 0 0 auto;
  font-weight: 900;
  text-align: right;
}

.dash-card.chart div {
  align-self: end;
}

.dash-card.promo,
.dash-card.points {
  align-content: center;
}

.dash-card.promo small,
.dash-card.points small {
  min-height: 0;
}

.chart div,
.bars,
.weight-chart,
.wave {
  height: 58px;
  border-radius: 12px;
  background: repeating-linear-gradient(90deg, rgba(20, 99, 255, 0.2) 0 10px, rgba(17, 199, 215, 0.7) 10px 18px, transparent 18px 28px);
}

.download-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  margin-bottom: 42px;
  padding: 34px 58px;
  color: var(--on-accent);
  background: linear-gradient(120deg, var(--blue-2), var(--blue), var(--cyan), var(--teal));
}

.download-cta h2,
.download-cta p {
  color: var(--on-accent);
  margin-bottom: 6px;
}

.download-cta img {
  width: 76px;
  float: left;
  margin-right: 20px;
}

.qr {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 12px;
  color: var(--navy);
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 20px 20px,
    var(--white);
  border: 8px solid var(--white);
  font-size: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 38px;
  padding: 44px clamp(22px, 6vw, 96px) 56px;
}

.site-footer.compact {
  grid-template-columns: 1.6fr repeat(4, 1fr);
}

.site-footer img {
  width: 190px;
  margin-bottom: 16px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer a,
.site-footer p,
.site-footer small {
  color: var(--muted);
  font-size: 14px;
}

.site-footer b {
  color: var(--navy);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--on-accent);
  background: #9ba7c0;
  font-size: 12px;
  font-weight: 900;
}

.feature-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-matrix article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 18px 16px;
  min-height: 310px;
  padding: 24px;
  text-align: left;
  min-width: 0;
}

.feature-matrix article > .icon {
  grid-column: 1;
  grid-row: 1;
}

.feature-matrix article > div {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: 10px;
}

.feature-matrix article h3 {
  margin: 0;
  line-height: 1.25;
}

.feature-matrix article div > p {
  min-height: 70px;
  margin: 0;
  line-height: 1.55;
}

.feature-matrix article div > a {
  align-self: end;
  margin-top: 2px;
}

.feature-matrix aside {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-bg);
  min-width: 0;
}

.feature-matrix aside b,
.feature-matrix aside small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.feature-matrix aside strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.feature-matrix aside > em,
.feature-matrix aside > i {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.feature-matrix aside p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
}

.feature-matrix aside p em,
.feature-matrix aside p i {
  text-align: right;
  font-weight: 900;
}

.feature-matrix aside .bars {
  height: 48px;
}

.feature-matrix aside *,
.feature-matrix div {
  min-width: 0;
}

.flow-row {
  align-items: start;
}

.flow-row article {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 18px 40px rgba(21, 53, 120, 0.08);
}

.flow-row article .icon {
  margin-bottom: 4px;
}

.flow-row article b {
  display: block;
  max-width: 180px;
  font-size: 16px;
  line-height: 1.25;
}

.flow-row article p {
  max-width: 190px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.flow-row img {
  width: 72px;
  margin: 0 auto 4px;
}

body[data-page="family"] .four-grid article,
body[data-page="solutions"] .four-grid article,
body[data-page="health"] .four-grid article,
body[data-page="pricing"] .four-grid article,
body[data-page="contact"] .four-grid article {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  text-align: center;
}

body[data-page="contact"] .four-grid article {
  min-height: 260px;
}

body[data-page="family"] .four-grid article .icon,
body[data-page="solutions"] .four-grid article .icon,
body[data-page="health"] .four-grid article .icon,
body[data-page="pricing"] .four-grid article .icon,
body[data-page="contact"] .four-grid article .icon {
  margin-bottom: 4px;
}

body[data-page="family"] .four-grid article h3,
body[data-page="solutions"] .four-grid article h3,
body[data-page="health"] .four-grid article h3,
body[data-page="pricing"] .four-grid article h3,
body[data-page="contact"] .four-grid article h3 {
  margin: 0;
  line-height: 1.25;
}

body[data-page="family"] .four-grid article p,
body[data-page="solutions"] .four-grid article p,
body[data-page="health"] .four-grid article p,
body[data-page="pricing"] .four-grid article p,
body[data-page="contact"] .four-grid article p {
  max-width: 230px;
  min-height: 0;
  margin: 0;
  line-height: 1.55;
}

body[data-page="contact"] .four-grid article a {
  margin-top: 2px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.audience-grid article {
  padding: 26px;
}

.audience-grid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.audience-grid li::before {
  content: "⊙";
  color: var(--blue);
  margin-right: 8px;
}

.person {
  height: 150px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(20, 99, 255, 0.12), rgba(17, 199, 215, 0.16));
  position: relative;
}

.person::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 0;
  width: 84px;
  height: 118px;
  border-radius: 48px 48px 12px 12px;
  background: linear-gradient(180deg, #1b315e 0 34%, #2c8dff 34% 100%);
}

.person.family::after {
  width: 150px;
  background: linear-gradient(90deg, #1b315e 0 32%, #ffbd86 32% 66%, #19bdb2 66% 100%);
}

.person.remittance::after {
  background: linear-gradient(180deg, #8edcff 0 44%, #f7bd3d 44% 100%);
}

.person.health::after {
  background: linear-gradient(180deg, #252f56 0 38%, #ff6fa2 38% 100%);
}

.story-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 58px;
}

.story-section article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--card-bg), var(--panel-bg));
}

.value-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.value-row span {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  min-height: 118px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--soft-shadow);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.value-row span:last-child {
  grid-column: 1 / -1;
  min-height: 104px;
}

.value-row i {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--badge-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.value-row b {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.value-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1.05fr);
  gap: 40px;
  padding: 0 clamp(22px, 6vw, 96px) 52px;
}

.contact-form {
  padding: 34px;
}

.form-head {
  display: flex;
  gap: 18px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: var(--card-bg);
  font: inherit;
}

textarea {
  min-height: 150px;
  padding-top: 16px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 16px;
}

.contact-form small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-cards article {
  padding: 28px;
}

.faq {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.faq-list {
  overflow: hidden;
  text-align: left;
}

.faq-list button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 18px 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  background: var(--card-bg);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  display: none;
  padding: 0 28px 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.faq-list button.open + p {
  display: block;
}

.app-banner,
.subscribe-band {
  display: grid;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 32px 42px;
}

.app-banner {
  grid-template-columns: 1fr auto auto auto;
  background: linear-gradient(105deg, var(--panel-bg), var(--card-bg));
  overflow: hidden;
}

.phone.tiny {
  position: relative;
  right: auto;
  top: auto;
  width: 132px;
  min-height: 170px;
  display: grid;
  place-items: center;
  padding-top: 44px;
}

.phone.tiny img {
  width: 58px;
}

.subscribe-band {
  grid-template-columns: 1fr minmax(280px, 0.8fr);
}

.subscribe-band form {
  display: flex;
  gap: 12px;
}

.subscribe-band input {
  margin: 0;
}

.family-board,
.health-board {
  display: grid;
  gap: 18px;
}

.family-board article,
.health-board article {
  padding: 26px;
}

.family-board article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}

.family-board article b {
  grid-column: 1;
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.family-board article p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.family-board article em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--badge-bg);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.health-board {
  grid-template-columns: repeat(3, 1fr);
}

.health-board.large {
  width: 100%;
}

.health-board strong {
  display: block;
  margin: 8px 0;
  font-size: 42px;
}

.timeline-panel {
  max-width: 1100px;
  margin: 0 auto;
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 22px;
  padding: 22px;
  min-width: 0;
}

.timeline-list span {
  grid-column: 1;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--badge-bg);
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.timeline-list h3 {
  grid-column: 2;
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}

.timeline-list p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-hero {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-grid {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid article {
  box-sizing: border-box;
  min-width: 0;
  padding: 34px;
}

.pricing-grid .featured {
  color: var(--on-accent);
  background: linear-gradient(150deg, var(--blue-2), var(--blue), var(--cyan));
  transform: translateY(-18px);
}

.pricing-grid .featured p,
.pricing-grid .featured li,
.pricing-grid .featured small,
.pricing-grid .featured h2 {
  color: var(--on-accent);
}

.pricing-grid article > strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0;
  font-size: 54px;
  white-space: nowrap;
}

.pricing-grid article > strong small {
  font-size: 18px;
  line-height: 1;
}

.pricing-grid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.pricing-grid li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--teal);
  font-weight: 900;
}

.donut {
  width: 80px;
  height: 80px;
  margin: 16px auto 4px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 42%, var(--pink) 42% 66%, var(--teal) 66% 82%, var(--amber) 82%);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .brand img {
    width: 190px;
  }

  .site-nav {
    gap: 12px;
  }

  .six-grid,
  .feature-matrix {
    grid-template-columns: repeat(3, 1fr);
  }

  .four-grid,
  .audience-grid,
  .benefit-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .download-pill {
    display: none;
  }

  .theme-toggle span {
    display: none;
  }

  .theme-toggle {
    width: 46px;
    padding: 0;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero,
  .dashboard-section,
  .story-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 520px;
  }

  .phone-main {
    left: 7%;
    right: auto;
  }

  .phone-side {
    right: 7%;
  }

  .six-grid,
  .feature-matrix,
  .pricing-grid,
  .site-footer,
  .site-footer.compact,
  .health-board {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-steps,
  .flow-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .app-banner,
  .subscribe-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding: 12px 16px;
  }

  .brand img {
    width: 154px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 31px;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  .hero-art {
    min-height: 630px;
  }

  .phone {
    width: 245px;
    min-height: 440px;
  }

  .phone-main {
    left: 0;
  }

  .phone-side {
    right: 0;
    top: 160px;
    width: 210px;
    min-height: 390px;
  }

  .triple .phone-side.left {
    display: none;
  }

  .triple .phone-main {
    left: 0;
    right: auto;
  }

  .six-grid,
  .four-grid,
  .audience-grid,
  .feature-matrix,
  .pricing-grid,
  .benefit-strip,
  .testimonial-grid,
  .contact-cards,
  .input-grid,
  .web-dashboard section,
  .site-footer,
  .site-footer.compact,
  .health-board {
    grid-template-columns: 1fr;
  }

  .benefit-strip,
  .download-cta,
  .dashboard-section,
  .story-section,
  .app-banner,
  .subscribe-band {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 24px;
    border-radius: 22px;
  }

  .story-section,
  .story-section > *,
  .story-section article {
    min-width: 0;
  }

  .story-section article {
    padding: 24px;
  }

  .value-row {
    grid-template-columns: 1fr;
  }

  .value-row span {
    min-height: auto;
  }

  .download-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .web-dashboard {
    grid-template-columns: 1fr;
  }

  .web-dashboard aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-list article {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 18px;
  }

  .timeline-list span {
    width: 64px;
    min-height: 40px;
    font-size: 14px;
  }

  .timeline-list h3 {
    font-size: 17px;
  }

  .timeline-list p {
    font-size: 14px;
  }

  .subscribe-band form {
    flex-direction: column;
  }

  .btn,
  .store-badge {
    width: 100%;
  }
}
