:root {
  --ink: #142027;
  --muted: #5a6971;
  --line: #d7e3e5;
  --paper: #ffffff;
  --wash: #eef7f6;
  --mist: #f5f8fb;
  --teal: #0d6d66;
  --teal-dark: #073f3d;
  --blue: #1b578d;
  --coral: #d86147;
  --gold: #c7952f;
  --shadow: 0 18px 42px rgba(10, 35, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 45, 52, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.brand strong,
.brand small {
  overflow-wrap: anywhere;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: clamp(12px, 2vw, 24px);
  color: #31434b;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav a,
.language-switcher a {
  text-decoration: none;
}

.nav a:hover,
.language-switcher a:hover,
.text-link:hover,
.footer a:hover {
  text-decoration: underline;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid rgba(13, 109, 102, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.language-switcher span {
  color: #9aa9ae;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(320px, 1fr);
  min-height: calc(100svh - 72px);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 80px) clamp(48px, 7vw, 84px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238, 247, 246, 0.98), rgba(255, 255, 255, 0.9)),
    url("/assets/demo-color-circles.png") center right / min(58vw, 760px) auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold));
}

.hero-copy,
.hero-visual,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.6rem, 9vw, 7.4rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: #354850;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--coral);
  color: #fff;
}

.button-primary:hover {
  background: #c64f37;
}

.button-secondary {
  color: var(--teal-dark);
  border: 1px solid #aacdc8;
  background: #fff;
}

.button-secondary-dark {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.button-light {
  background: #edf6f5;
  color: var(--teal-dark);
}

.hero-visual {
  min-height: 560px;
}

.phone {
  position: absolute;
  width: min(38vw, 330px);
  min-width: 230px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.phone-main {
  right: 10%;
  top: 4%;
  transform: rotate(4deg);
}

.phone-side {
  left: 0;
  bottom: 6%;
  transform: rotate(-7deg);
}

.logo-medallion-link {
  position: absolute;
  right: 0;
  bottom: 16%;
  display: block;
  border-radius: 26px;
  transition: transform 160ms ease;
}

.logo-medallion-link:hover {
  transform: translateY(-2px);
}

.logo-medallion {
  width: clamp(84px, 13vw, 132px);
  height: clamp(84px, 13vw, 132px);
  padding: 10px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 42px rgba(7, 36, 42, 0.18);
}

.platform-band {
  background: #10323a;
  color: #fff;
}

.band-inner {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-weight: 800;
}

.band-inner a {
  color: #b9eadf;
  text-decoration: none;
}

.band-inner a:hover {
  text-decoration: underline;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.split p,
.app-store-copy p,
.prose p {
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 47, 58, 0.06);
}

.user-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-copy p {
  max-width: 680px;
  font-size: 1.08rem;
}

.story-card {
  position: relative;
  padding: 28px;
  border: 1px solid #d3e8ef;
  border-radius: 26px 26px 26px 8px;
  background: #eef8fb;
  box-shadow: 0 18px 42px rgba(10, 35, 45, 0.11);
}

.story-card::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -11px;
  width: 22px;
  height: 22px;
  background: #eef8fb;
  border-right: 1px solid #d3e8ef;
  border-bottom: 1px solid #d3e8ef;
  transform: rotate(45deg);
}

.story-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-card p {
  margin: 0;
  color: #123047;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.18;
}

.story-card small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.story-note {
  grid-column: 1 / -1;
  margin: -18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
  color: #4f5558;
}

.research-snapshot {
  border-top: 1px solid var(--line);
}

.mini-stat-grid,
.evidence-grid,
.outline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-stat-grid div,
.evidence-grid article,
.outline-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 47, 58, 0.06);
}

.mini-stat-grid strong,
.evidence-grid strong,
.outline-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.08;
}

.mini-stat-grid span,
.evidence-grid span,
.outline-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-stat-grid span {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
}

.evidence-grid p,
.outline-grid p {
  margin-bottom: 0;
}

.outline-grid article {
  min-height: 220px;
}

.outline-grid p {
  font-size: 1rem;
}

.nutshell-section {
  border-top: 1px solid var(--line);
}

.research-article {
  max-width: 980px;
}

.detail-stack {
  display: grid;
  gap: 14px;
}

.research-detail {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 47, 58, 0.05);
}

.research-detail:nth-child(3n + 2) {
  border-left-color: var(--coral);
}

.research-detail:nth-child(3n + 3) {
  border-left-color: var(--gold);
}

.research-detail.is-emphasis {
  background: #eef7f6;
}

.research-detail h3 {
  margin-bottom: 12px;
  color: var(--teal-dark);
}

.research-detail p {
  margin: 0;
}

.research-detail p + p,
.research-detail ul + p,
.research-detail p + ul {
  margin-top: 14px;
}

.research-detail ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.research-detail li + li {
  margin-top: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.language-panel {
  display: grid;
  gap: 12px;
}

.language-panel a {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #d8e2ea;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-panel a:nth-child(2) {
  border-left-color: var(--coral);
}

.language-panel a:nth-child(3) {
  border-left-color: var(--blue);
}

.language-panel a:hover {
  transform: translateY(-1px);
  border-color: #b7c9d0;
  box-shadow: 0 12px 28px rgba(13, 47, 58, 0.08);
}

.language-panel strong,
.language-panel span {
  overflow-wrap: anywhere;
}

.language-panel span {
  color: var(--muted);
  font-size: 0.94rem;
}

.app-store-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(240px, 420px);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
  padding: 86px clamp(18px, 6vw, 80px);
  background: #10323a;
  color: #fff;
}

.app-store-section p {
  color: rgba(255, 255, 255, 0.78);
}

.app-store-section h2 {
  max-width: 760px;
}

.inline-screen {
  width: min(100%, 360px);
  justify-self: center;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 280px);
  align-items: center;
  gap: clamp(28px, 7vw, 92px);
  min-height: 58svh;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 6vw, 80px);
  background: var(--wash);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.98;
}

.page-hero > img,
.page-logo-link {
  justify-self: center;
  width: min(100%, 240px);
}

.page-hero > img,
.page-logo-link img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-logo-link {
  display: block;
  transition: transform 160ms ease;
}

.page-logo-link:hover {
  transform: translateY(-2px);
}

.support-hero {
  min-height: 46svh;
  background: linear-gradient(120deg, #eef7f6, #fff7f5);
}

.support-hero h1 {
  max-width: 820px;
  font-size: clamp(2.65rem, 5vw, 4.85rem);
}

.support-hero .lead {
  max-width: 760px;
}

.support-hero .page-logo-link {
  width: min(100%, 210px);
}

.research-hero {
  background: #f2f6fb;
}

.research-hero > img {
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid #fff;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: #10323a;
  color: #fff;
}

.stat strong {
  display: block;
  color: #b9eadf;
  font-size: clamp(2rem, 5.8vw, 4.7rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.stat span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.prose p:first-child {
  margin-top: 0;
}

.support-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 47, 58, 0.06);
}

.support-panel p:first-child {
  margin-top: 0;
}

.support-email {
  display: inline-flex;
  margin: 8px 0 16px;
  color: var(--teal);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.support-email:hover {
  text-decoration: underline;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.medical-note {
  width: min(980px, calc(100% - 36px));
  margin: 40px auto;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  background: #fff7f5;
}

.medical-note p {
  margin: 0;
  color: #4e5558;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #fff;
  background: #101a1f;
}

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

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    margin-left: 0;
  }

  .nav,
  .language-switcher {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .user-story,
  .app-store-section,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .story-note {
    margin-top: 0;
  }

  .phone {
    width: min(48vw, 300px);
    min-width: 190px;
  }

  .phone-main {
    right: 5%;
  }

  .card-grid,
  .mini-stat-grid,
  .evidence-grid,
  .outline-grid,
  .stats-section {
    grid-template-columns: 1fr;
  }

  .band-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 18px;
  }

  .language-switcher {
    flex-wrap: wrap;
    border-radius: 8px;
    white-space: normal;
  }

  .hero,
  .page-hero {
    padding: 42px 18px 54px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 3.9rem);
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .lead {
    font-size: 1.04rem;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 340px;
  }

  .phone {
    min-width: 158px;
    border-width: 7px;
    border-radius: 20px;
  }

  .logo-medallion-link {
    right: 4%;
    bottom: 12%;
  }

  .logo-medallion {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .section,
  .app-store-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .card {
    padding: 20px;
  }

  .language-panel a {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
