:root {
  color-scheme: light dark;
  --teal-soft: #63c0b1;
  --teal-core: #4fafa4;
  --iris-blue: #4385c7;
  --blue-deep: #2b5b9e;
  --bg-main: #f4f5f7;
  --bg-alt: #edeef1;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --divider: #e2e5ea;
  --text-primary: #1f2933;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --nutrition-amber: #d08740;
  --hydration-blue: #4d9fe8;
  --symptom-lilac: #9b7bc4;
  --note-slate: #6b7280;
  --iris-warning: #b85c2a;
  --shadow-card: 0 1px 2px rgba(31, 41, 51, 0.05);
  --shadow-raised: 0 18px 34px rgba(31, 41, 51, 0.12), 0 2px 4px rgba(31, 41, 51, 0.06);
  --brand-gradient: linear-gradient(135deg, #63c0b1 0%, #4dafbd 35%, #4385c7 72%, #2b5b9e 100%);
  --radius-card: 10px;
  --radius-panel: 12px;
  --radius-hero: 12px;
  --page: min(1120px, calc(100% - 40px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Rounded", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal-soft: #7dd4c5;
    --teal-core: #5ec5b8;
    --iris-blue: #74aee5;
    --blue-deep: #3e6aaa;
    --bg-main: #0c0e12;
    --bg-alt: #15181d;
    --bg-card: #1b1e23;
    --bg-raised: #23272e;
    --divider: #2c2f37;
    --text-primary: #e8ecf0;
    --text-secondary: #98a0aa;
    --text-muted: #71767e;
    --nutrition-amber: #e8a363;
    --hydration-blue: #7ec4f2;
    --symptom-lilac: #bb9ed9;
    --note-slate: #98a0aa;
    --iris-warning: #e07a4f;
    --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    --shadow-raised: 0 18px 34px rgba(0, 0, 0, 0.46), 0 2px 3px rgba(0, 0, 0, 0.62);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(67, 133, 199, 0.22);
}

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

a:hover {
  color: var(--iris-blue);
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-alt) 52%, transparent), transparent 360px),
    var(--bg-main);
}

.page {
  width: var(--page);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg-main) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--divider) 76%, transparent);
}

.site-header-inner {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.08);
}

.brand-name {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 9px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  background-clip: padding-box;
}

.button-primary {
  color: #ffffff;
  background: var(--iris-blue);
  box-shadow: none;
}

.button-primary:hover {
  color: #ffffff;
  background: var(--blue-deep);
}

.button-secondary {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border-color: var(--divider);
  box-shadow: var(--shadow-card);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.82fr);
  gap: clamp(32px, 7vw, 78px);
  align-items: center;
  padding: clamp(28px, 5vw, 50px) 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 780;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-core);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.1vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions .button,
.cta-panel .button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 15px;
}

.microcopy {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.status-strip {
  width: min(100%, 760px);
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.status-strip span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--bg-alt) 72%, transparent);
  font-size: 13px;
  font-weight: 720;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
}

.proof-strip {
  padding: 0 0 34px;
}

.trust-item {
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.trust-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
}

.app-device {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 42px;
  background: #11151b;
  box-shadow: var(--shadow-raised);
}

.app-screen {
  overflow: hidden;
  height: 540px;
  border-radius: 32px;
  background: var(--bg-alt);
  color: var(--text-primary);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 760;
}

.phone-content {
  padding: 16px 18px 18px;
}

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

.phone-title {
  font-size: 27px;
  font-weight: 760;
}

.private-pill {
  color: var(--teal-core);
  font-size: 12px;
  font-weight: 760;
}

.command-tile,
.phone-tile {
  border: 1px solid var(--divider);
  border-radius: var(--radius-hero);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.command-tile {
  padding: 18px;
  margin-bottom: 10px;
}

.kicker {
  color: var(--iris-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dose-line {
  margin: 8px 0 6px;
  font-size: 29px;
  line-height: 1;
  font-weight: 780;
}

.tile-meta {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 620;
}

.mini-cta {
  margin-top: 16px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--iris-blue);
  font-weight: 760;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.phone-tile {
  min-height: 88px;
  padding: 12px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 720;
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.metric-value {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 780;
}

.rail {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.rail span {
  width: 25px;
  height: 7px;
  border-radius: 999px;
  background: var(--divider);
}

.rail span.active {
  background: var(--teal-core);
}

.phone-list {
  padding: 16px;
}

.phone-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--divider);
  font-size: 13px;
}

.phone-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.row-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
}

.row-time {
  color: var(--text-muted);
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

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

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
}

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

.feature-card {
  min-height: 214px;
  padding: 20px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 42px;
  height: 38px;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  background: var(--iris-blue);
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.feature-icon-home {
  background: var(--iris-blue);
}

.feature-icon-home::before {
  inset: 10px 11px 11px;
  border: 3px solid #ffffff;
  border-top: 0;
  border-radius: 3px;
}

.feature-icon-home::after {
  width: 18px;
  height: 18px;
  left: 12px;
  top: 7px;
  border-left: 3px solid #ffffff;
  border-top: 3px solid #ffffff;
  border-radius: 2px;
  transform: rotate(45deg);
}

.feature-icon-dose {
  background: var(--teal-core);
}

.feature-icon-dose::before {
  width: 24px;
  height: 12px;
  left: 9px;
  top: 13px;
  border: 3px solid #ffffff;
  transform: rotate(-25deg);
}

.feature-icon-dose::after {
  width: 3px;
  height: 15px;
  left: 21px;
  top: 11px;
  background: #ffffff;
  transform: rotate(-25deg);
}

.feature-icon-symptom {
  background: var(--symptom-lilac);
}

.feature-icon-symptom::before {
  width: 20px;
  height: 20px;
  left: 11px;
  top: 9px;
  border: 3px solid #ffffff;
}

.feature-icon-symptom::after {
  width: 12px;
  height: 3px;
  left: 15px;
  top: 18px;
  background: #ffffff;
  box-shadow: 0 -6px 0 rgba(255, 255, 255, 0.72), 0 6px 0 rgba(255, 255, 255, 0.72);
}

.feature-icon-progress {
  background: var(--hydration-blue);
}

.feature-icon-progress::before {
  width: 4px;
  height: 21px;
  left: 12px;
  bottom: 9px;
  background: #ffffff;
  box-shadow: 9px -7px 0 #ffffff, 18px -13px 0 #ffffff;
}

.feature-icon-progress::after {
  width: 24px;
  height: 3px;
  left: 9px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-icon-visit {
  background: var(--blue-deep);
}

.feature-icon-visit::before {
  width: 22px;
  height: 24px;
  left: 10px;
  top: 7px;
  border: 3px solid #ffffff;
  border-radius: 4px;
}

.feature-icon-visit::after {
  width: 12px;
  height: 3px;
  left: 15px;
  top: 15px;
  background: #ffffff;
  box-shadow: 0 7px 0 #ffffff;
}

.feature-icon-plus {
  background: var(--note-slate);
}

.feature-icon-plus::before {
  width: 22px;
  height: 3px;
  left: 10px;
  top: 18px;
  background: #ffffff;
}

.feature-icon-plus::after {
  width: 3px;
  height: 22px;
  left: 20px;
  top: 9px;
  background: #ffffff;
}

.feature-card p,
.text-block p,
.legal-card p,
.legal-card li {
  color: var(--text-secondary);
}

.workflow {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.workflow-panel {
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--divider);
}

.workflow-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--iris-blue) 13%, var(--bg-card));
  color: var(--blue-deep);
  font-weight: 820;
}

.timeline-card {
  padding: 22px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
}

.timeline-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--divider);
}

.timeline-row:first-child {
  border-top: 0;
}

.timeline-date {
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}

.safety-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--blue-deep) 28%, var(--divider));
  border-radius: var(--radius-hero);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--iris-blue));
}

.safety-band ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.company-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-hero);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.company-panel p {
  color: var(--text-secondary);
}

.company-panel p + p {
  margin-top: 10px;
}

.company-panel .button {
  margin-top: 18px;
}

.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.company-panel .company-actions .button {
  margin-top: 0;
}

.company-panel-wide {
  width: 100%;
}

.company-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 24px;
}

.company-detail-card {
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.company-detail-card p {
  color: var(--text-secondary);
}

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

.faq-card {
  padding: 20px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.faq-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-hero);
  background: var(--text-primary);
  color: var(--bg-main);
}

.cta-panel p {
  color: color-mix(in srgb, var(--bg-main) 74%, transparent);
}

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 34px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.legal-hero {
  padding: 54px 0 22px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 64px;
}

.legal-meta {
  position: sticky;
  top: 102px;
  padding: 20px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.legal-meta p {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.legal-card {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--divider);
  border-radius: var(--radius-hero);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.legal-card section {
  padding: 24px 0;
  border-top: 1px solid var(--divider);
}

.legal-card section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-card ul {
  padding-left: 20px;
}

.notice {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--iris-warning) 32%, var(--divider));
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--iris-warning));
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
  z-index: 100;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .site-header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero,
  .workflow,
  .safety-band,
  .company-panel,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-meta {
    position: static;
  }

  .card-grid,
  .faq-grid,
  .company-detail-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  :root {
    --page: min(100% - 28px, 1120px);
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .nav .button {
    display: none;
  }

  .hero-actions .button,
  .cta-panel .button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .app-device {
    padding: 9px;
    border-radius: 34px;
  }

  .app-screen {
    height: 560px;
    border-radius: 26px;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .status-strip {
    align-items: stretch;
    flex-direction: column;
  }
}
