:root {
  color-scheme: light;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --text: #061a3e;
  --muted: #5c6b7f;
  --line: #dce7ef;
  --brand: #009c95;
  --brand-dark: #04746f;
  --accent: #0b2447;
  --amber: #f5a623;
  --violet: #7667e8;
  --green: #5fbf73;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(6, 26, 62, 0.12);
  --soft-shadow: 0 16px 44px rgba(6, 26, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 231, 239, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 850;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 34px);
  font-size: 0.94rem;
}

.links a {
  color: #183153;
  font-weight: 720;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 156, 149, 0.2);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.nav-cta:hover,
.button:hover {
  background: var(--brand-dark);
  box-shadow: 0 16px 32px rgba(0, 156, 149, 0.28);
  text-decoration: none;
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  box-shadow: none;
}

.button-secondary:hover {
  background: #ffffff;
  color: var(--brand-dark);
}

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

.landing-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 24%, rgba(0, 156, 149, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 64%, var(--bg) 100%);
}

.landing-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 72px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(350px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 6vw, 92px);
}

.landing-copy h1,
h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3.05rem, 6.2vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-copy h1 {
  max-width: 740px;
}

.landing-copy p {
  max-width: 610px;
  margin: 26px 0 0;
  color: #31435c;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: min(470px, 80vw);
  height: min(470px, 80vw);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(0, 156, 149, 0.16), rgba(255, 255, 255, 0));
  filter: blur(6px);
}

.phone-preview {
  position: relative;
  width: min(365px, 88vw);
  min-height: 720px;
  padding: 22px;
  border: 10px solid #101827;
  border-radius: 44px;
  background: #f7fafc;
  box-shadow: 0 38px 100px rgba(6, 26, 62, 0.24);
  overflow: hidden;
}

.phone-preview::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 108px;
  height: 28px;
  border-radius: 999px;
  background: #080d18;
  transform: translateX(-50%);
}

.phone-bar,
.app-greeting,
.dose-card,
.schedule-card,
.adherence-card {
  position: relative;
  z-index: 1;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 850;
}

.phone-bar span:last-child {
  width: 42px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--text) 0 52%, transparent 52% 62%, var(--text) 62% 100%);
}

.app-greeting {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 850;
  text-align: center;
}

.dose-card,
.schedule-card,
.adherence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.dose-card {
  padding: 22px;
}

.dose-card span,
.adherence-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.dose-card strong {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-size: 2.1rem;
  line-height: 1;
}

.dose-card small {
  display: block;
  margin-top: 10px;
  color: #42536a;
  font-size: 0.86rem;
}

.dose-card button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: #e5fbf7;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.schedule-card {
  margin-top: 16px;
  padding: 18px;
}

.schedule-head,
.dose-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-head {
  margin-bottom: 10px;
}

.schedule-head strong {
  color: var(--text);
  font-size: 0.95rem;
}

.schedule-head span {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.dose-row {
  padding: 13px 0;
  border-top: 1px solid #eef3f7;
}

.dose-row i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.18);
  box-shadow: inset 0 0 0 7px rgba(245, 166, 35, 0.34);
  flex: 0 0 auto;
}

.dose-row:not(.due):not(.night) i {
  background: rgba(95, 191, 115, 0.18);
  box-shadow: inset 0 0 0 7px rgba(95, 191, 115, 0.34);
}

.dose-row.night i {
  background: rgba(118, 103, 232, 0.14);
  box-shadow: inset 0 0 0 7px rgba(118, 103, 232, 0.28);
}

.dose-row div {
  min-width: 0;
  flex: 1;
}

.dose-row strong,
.dose-row span {
  display: block;
}

.dose-row strong {
  color: var(--text);
  font-size: 0.86rem;
}

.dose-row span {
  overflow: hidden;
  color: #526174;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dose-row em {
  border-radius: 8px;
  padding: 6px 8px;
  background: #e8f8f6;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.adherence-card {
  margin-top: 16px;
  padding: 18px;
}

.adherence-card strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.progress-track {
  height: 9px;
  margin-top: 14px;
  border-radius: 999px;
  background: #eaf1f5;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.landing-section,
.split-section,
.family-section,
.landing-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-section,
.family-section,
.split-section {
  padding: 92px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading.centered {
  display: block;
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.split-section h2,
.landing-band h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.split-section p,
.landing-band p {
  margin: 14px 0 0;
  max-width: 430px;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading.centered p {
  max-width: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.feature-card {
  min-height: 260px;
  padding: 34px 28px;
  background: transparent;
  border-right: 1px solid var(--line);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-card svg,
.shield-mark svg {
  width: 44px;
  height: 44px;
  color: var(--brand);
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 34px 0 10px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.split-section a {
  display: inline-flex;
  margin-top: 26px;
}

.control-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.shield-mark {
  display: grid;
  place-items: center;
  width: 180px;
  height: 205px;
  border: 1px solid rgba(0, 156, 149, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #e9fbf8, #ffffff);
  box-shadow: var(--soft-shadow);
}

.shield-mark svg {
  width: 96px;
  height: 96px;
  color: var(--brand);
}

.control-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(6, 26, 62, 0.05);
}

.control-list strong,
.control-list span {
  display: block;
}

.control-list strong {
  color: var(--text);
  line-height: 1.25;
}

.control-list span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.workflow div {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.workflow span {
  display: block;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.workflow strong {
  display: block;
  margin-top: 52px;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.2;
}

.workflow p {
  margin: 12px 0 0;
  color: var(--muted);
}

.landing-band {
  margin-bottom: 80px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.landing-band h2,
.landing-band p {
  color: #ffffff;
}

.landing-band p {
  opacity: 0.8;
}

.landing-band .button {
  flex: 0 0 auto;
  background: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.landing-band .button:hover {
  color: var(--brand-dark);
}

.page {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 82px;
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 36px;
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.status-panel,
.document,
.form-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.status-panel {
  padding: 22px;
  background: var(--accent);
  color: #ffffff;
}

.status-panel strong,
.status-panel span {
  display: block;
}

.status-panel strong {
  font-size: 0.82rem;
  font-weight: 850;
  opacity: 0.74;
}

.status-panel span {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.document,
.form-panel {
  padding: clamp(24px, 5vw, 46px);
}

.document h2,
.form-panel h2,
.side-panel h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.25;
}

.document h2:not(:first-child) {
  margin-top: 34px;
}

.document p,
.document li,
.form-panel p,
.side-panel p {
  color: var(--muted);
}

.document ul {
  padding-left: 1.25rem;
}

.document strong {
  color: var(--text);
}

.side-panel {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.side-panel p {
  margin: 0 0 16px;
}

.side-panel .button {
  width: 100%;
}

.form-panel {
  max-width: 760px;
}

.field {
  margin-top: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 780;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfcfe;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(0, 156, 149, 0.17);
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  color: var(--muted);
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.note,
.error {
  margin-top: 18px;
  border-radius: 8px;
  padding: 14px 16px;
}

.note {
  background: #ecfdf7;
  color: #075e54;
}

.error {
  display: none;
  background: #fff1f0;
  color: var(--danger);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 26px 0;
  background: rgba(255, 255, 255, 0.54);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 16px 0;
  }

  .links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-cta {
    display: none;
  }

  .landing-inner,
  .split-section,
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .landing-inner {
    min-height: auto;
    padding: 54px 0 68px;
  }

  .phone-preview {
    min-height: 610px;
  }

  .feature-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .shield-mark {
    width: 100%;
  }

  .landing-band,
  .section-heading {
    display: grid;
    align-items: start;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav,
  .landing-inner,
  .landing-section,
  .split-section,
  .family-section,
  .landing-band,
  .page,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .links {
    gap: 10px 16px;
  }

  .landing-copy h1,
  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .landing-copy p {
    font-size: 1rem;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .phone-preview {
    width: 100%;
    min-height: 570px;
    padding: 18px;
    border-width: 8px;
    border-radius: 36px;
  }

  .dose-card strong {
    font-size: 1.72rem;
  }

  .dose-row em {
    display: none;
  }

  .landing-section,
  .family-section,
  .split-section {
    padding: 66px 0;
  }

  .feature-card,
  .workflow div,
  .landing-band,
  .document,
  .form-panel {
    padding: 24px;
  }

  .footer-inner {
    display: grid;
  }
}
