:root {
  --paper: #f7f5ee;
  --paper-strong: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #f0f5f2;
  --ink: #20282a;
  --muted: #66716f;
  --line: #dedbd2;
  --green: #5f927e;
  --green-dark: #40695d;
  --blue: #4d83a8;
  --coral: #b96767;
  --violet: #736a94;
  --amber: #b78a46;
  --teal: #438f91;
  --shadow: 0 18px 48px rgba(32, 40, 42, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper), #eef4f1 62%, #f7f5ee);
  line-height: 1.6;
}

body.locked-page {
  min-height: 100vh;
  background: #f2f0e8;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(222, 219, 210, 0.86);
  background: rgba(247, 245, 238, 0.92);
  backdrop-filter: blur(14px);
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a,
.button,
.button-secondary,
.button-quiet,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover,
.button-secondary:hover,
.button-quiet:hover {
  background: #ffffff;
  border-color: #cfcbbf;
  transform: translateY(-1px);
}

.button,
button {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #ffffff;
}

.button:hover,
button:hover {
  background: #34594f;
  border-color: #34594f;
  transform: translateY(-1px);
}

.button-quiet {
  background: transparent;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f1eee5;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(241, 238, 229, 0.98) 0%, rgba(241, 238, 229, 0.9) 44%, rgba(241, 238, 229, 0.28) 76%, rgba(241, 238, 229, 0.04) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 104px 0 92px;
}

.hero-copy {
  width: min(620px, 100%);
}

.hero-kicker,
.eyebrow {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 5.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.7rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: #4f5d5a;
  font-size: 1.35rem;
  line-height: 1.58;
}

.hero-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-row span,
.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(222, 219, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #53615e;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-media {
  position: absolute;
  top: 58px;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 22px;
  z-index: 0;
  width: min(48vw, 620px);
  pointer-events: none;
}

.phone-art {
  position: absolute;
  width: 260px;
  padding: 8px;
  border: 1px solid rgba(20, 26, 27, 0.16);
  border-radius: 34px;
  background: #111719;
  box-shadow: var(--shadow);
}

.phone-art img {
  width: 100%;
  border-radius: 26px;
}

.phone-art.main {
  right: 96px;
  top: 16px;
  width: 304px;
}

.phone-art.secondary {
  right: 0;
  top: 122px;
  width: 226px;
  opacity: 0.94;
}

.phone-art.tertiary {
  left: 4px;
  bottom: 0;
  width: 214px;
  opacity: 0.9;
}

.band {
  padding: 74px 0;
}

.band.alt {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card,
.feature-card,
.screen-card,
.legal-card,
.form-card,
.note-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(32, 40, 42, 0.055);
}

.card,
.feature-card,
.legal-card,
.form-card,
.note-card,
.stat-card {
  padding: 24px;
}

.feature-card p,
.screen-card p,
.legal-card p,
.note-card p,
.stat-card p,
.form-card p {
  color: var(--muted);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.icon-tile.blue {
  background: rgba(77, 131, 168, 0.12);
  color: var(--blue);
}

.icon-tile.coral {
  background: rgba(185, 103, 103, 0.12);
  color: var(--coral);
}

.icon-tile.violet {
  background: rgba(115, 106, 148, 0.12);
  color: var(--violet);
}

.icon-tile.amber {
  background: rgba(183, 138, 70, 0.14);
  color: var(--amber);
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.module-strip span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.module-hydration {
  background: var(--blue);
}

.module-medication {
  background: var(--violet);
}

.module-marker {
  background: #6f7674;
}

.module-reminder {
  background: var(--amber);
}

.module-symptom {
  background: var(--coral);
}

.module-therapy {
  background: var(--teal);
}

.screen-card {
  overflow: hidden;
  background: var(--surface);
}

.screen-card-copy {
  padding: 20px 20px 0;
}

.screen-crop {
  position: relative;
  height: 490px;
  margin-top: 18px;
  overflow: hidden;
  background: #eeeae0;
  border-top: 1px solid var(--line);
}

.screen-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screen-crop.settings img {
  object-position: top center;
}

.screen-crop.onboarding img {
  object-position: top center;
}

.product-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

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

.story-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.story-list strong {
  display: block;
  margin-bottom: 4px;
}

.story-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.step-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
}

.quote-band {
  padding: 54px 0;
  background: #253634;
  color: #ffffff;
}

.quote-band p {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: 1.8rem;
  line-height: 1.4;
}

.quote-band small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.cta-band {
  padding: 70px 0 84px;
  background: #e5eee9;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(64, 105, 93, 0.25);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.64);
}

.auth-wrap {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 46px;
  align-items: center;
  padding: 64px 0 76px;
}

.auth-copy h1 {
  font-size: 4.4rem;
}

.auth-visual {
  justify-self: center;
  width: min(100%, 310px);
  padding: 8px;
  border-radius: 34px;
  background: #111719;
  box-shadow: var(--shadow);
}

.auth-visual img {
  border-radius: 26px;
}

.form-card {
  background: var(--surface);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #4f5d5a;
  font-weight: 700;
}

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

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

input:focus,
textarea:focus {
  outline: 3px solid rgba(95, 146, 126, 0.22);
  border-color: var(--green);
}

.error {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(185, 103, 103, 0.12);
  color: #8f4545;
  font-weight: 800;
}

.page-intro {
  padding: 58px 0 34px;
}

.page-intro.narrow {
  max-width: 920px;
}

.page-intro h1 {
  font-size: 4rem;
}

.content-stack {
  display: grid;
  gap: 16px;
  padding-bottom: 70px;
}

.legal-card h2 {
  font-size: 1.7rem;
}

.legal-card p:last-child,
.feature-card p:last-child,
.screen-card p:last-child,
.note-card p:last-child,
.stat-card p:last-child,
.form-card p:last-child {
  margin-bottom: 0;
}

.placeholder {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(183, 138, 70, 0.16);
  color: #775820;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.footer-links a:hover {
  color: var(--green-dark);
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 76px;
  }

  .hero-media {
    width: 100%;
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    height: 390px;
    opacity: 0.5;
  }

  .phone-art.main {
    right: 40px;
    top: 0;
    width: 250px;
  }

  .phone-art.secondary {
    right: 250px;
    top: 58px;
    width: 194px;
  }

  .phone-art.tertiary {
    left: 34px;
    bottom: -22px;
    width: 188px;
  }

  .grid.three,
  .grid.two,
  .product-story,
  .auth-wrap,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }
}

@media (max-width: 760px) {
  .container,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 690px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(241, 238, 229, 0.98) 0%, rgba(241, 238, 229, 0.94) 54%, rgba(241, 238, 229, 0.34) 100%);
  }

  .hero-content {
    padding: 58px 0 330px;
  }

  h1,
  .auth-copy h1,
  .page-intro h1 {
    font-size: 3.25rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2.15rem;
  }

  .lead {
    font-size: 1.12rem;
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .trust-row span {
    width: 100%;
  }

  .phone-art.secondary,
  .phone-art.tertiary {
    display: none;
  }

  .phone-art.main {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 230px;
  }

  .band,
  .cta-band {
    padding: 48px 0;
  }

  .quote-band p {
    font-size: 1.35rem;
  }

  .module-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-crop {
    height: 420px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
