/* Match the My Medication splash screen. */
:root {
  --medication-background-top: rgb(2% 20% 53%);
  --medication-background-bottom: rgb(4% 13% 30%);
  --medication-background-gradient: linear-gradient(
    to bottom,
    var(--medication-background-top),
    var(--medication-background-bottom)
  );
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: #212121;
  background-image: none;
}

/* Default background for the marketing page hero. */
.hero {
  background-color: var(--medication-background-bottom);
  background-image: var(--medication-background-gradient);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #92d6ff; outline-offset: 5px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 32px; }
.preview-note { text-align: center; padding: 9px 20px; background: #181818; font-size: 12px; letter-spacing: .035em; color: #e3e3e3; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: 18px; white-space: nowrap; }
.brand img { border-radius: 10px; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav a:hover, .text-link:hover { color: #9ecbff; }
.nav-action { border: 1px solid #666666; padding: 9px 17px; border-radius: 8px; }
.hero-layout { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 60px; padding-block: 65px 84px; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 700; color: #8ebfff; margin: 0 0 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.08; letter-spacing: -.05em; margin-bottom: 28px; }
h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.16; letter-spacing: -.035em; margin-bottom: 24px; }
h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 15px; }
.lead, .section-intro { font-size: 18px; max-width: 540px; color: #eeeeee; }
.hero-actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-block: 32px 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 25px; padding: 14px 20px; min-height: 48px; border-radius: 8px; font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; border: 1px solid transparent; }
.primary { background: #f3f8ff; color: #0a2859; }
.primary:hover { background: #d6edff; }
.secondary { background: #303030; border-color: #8b8b8b; color: white; }
.secondary:hover { background: #555555; }
.text-link { font-size: 14px; }
.availability { color: #dedede; font-size: 13px; }
.app-figure { margin: 0; text-align: center; }
.phone { width: 245px; margin: auto; padding: 7px; border: 1px solid #8da7c1; background: #0a0c13; border-radius: 36px; }
.phone img { display: block; width: 100%; border-radius: 29px; }
figcaption { color: #dedede; font-size: 11px; margin-top: 18px; }
.section { padding-block: 90px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 45px; }
.feature-grid p { color: #eeeeee; font-size: 15px; }
.feature-number { display: block; color: #8dcfff; font-size: 13px; margin-bottom: 24px; }
.privacy-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; border-top: 1px solid #606060; padding-top: 32px; margin-top: 40px; }
.privacy-strip p { margin-bottom: 0; color: #eeeeee; }
.small { font-size: 13px; color: #dedede; }
.pricing-section { background: #282828; border-block: 1px solid #555555; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.price-card { border: 1px solid #686868; border-radius: 16px; padding: 36px; background: #424242; }
.price-card.pro { background: #424242; border-color: #67adff; }
.price { font-size: 46px; line-height: 1.2; font-weight: 700; letter-spacing: -.03em; margin: 23px 0; }
.price span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: #eeeeee; }
ul { list-style: none; padding: 0; margin-bottom: 30px; }
li { margin: 12px 0; padding-left: 24px; position: relative; font-size: 15px; }
li::before { content: '✓'; position: absolute; left: 0; color: #9dd7ff; }
.tag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #aaaaaa; padding: 1px 6px; border-radius: 4px; margin-left: 5px; }
.pricing-footnote { font-size: 12px; color: #dedede; margin: 24px 0 0; max-width: 760px; }
.updates-layout, .ideas-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.ideas-layout { border-top: 1px solid #606060; }
.form-card { padding: 32px; background: #424242; border: 1px solid #686868; border-radius: 16px; }
label { display: block; font-size: 14px; margin: 20px 0 8px; }
input[type=email], textarea { display: block; width: 100%; padding: 13px 14px; font: inherit; color: #fff; border: 1px solid #929292; border-radius: 7px; background: #292929; }
input::placeholder, textarea::placeholder { color: #dedede; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-block: 20px 24px; }
.check input { margin-top: 5px; accent-color: #9dd7ff; }
.form-card .button { width: 100%; margin-bottom: 18px; }
.form-card .small { margin-bottom: 0; }
.form-status { color: #b8e2ff; font-size: 14px; margin: 12px 0 0; }
.roadmap { margin-top: 32px; border-left: 2px solid #8dcfff; padding-left: 22px; }
.roadmap h3 { font-size: 17px; }
.roadmap p { font-size: 15px; color: #eeeeee; }
.roadmap p.small { font-size: 12px; }
footer { border-top: 1px solid #606060; padding-block: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { font-size: 12px; margin: 0; }
footer .small { flex-basis: 100%; }
@media (max-width: 760px) {
 .wrap { padding-inline: 24px; }
 .site-header { align-items: flex-start; flex-wrap: wrap; }
 nav { gap: 18px; flex-wrap: wrap; }
 .hero-layout { grid-template-columns: 1fr; gap: 42px; padding-block: 40px 60px; }
 .hero-copy { max-width: 550px; }
 .phone { width: 215px; }
 .section { padding-block: 60px; }
 .feature-grid, .pricing-grid, .updates-layout, .ideas-layout, .privacy-strip { grid-template-columns: 1fr; gap: 28px; }
 .feature-grid { gap: 20px; }
 .feature-number { margin-bottom: 12px; }
 .price-card, .form-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Approved pill artwork paired with the real app preview. */
.app-figure { position: relative; padding-left: 56px; }
.hero-pill { width: 220px; position: absolute; left: -25px; top: 95px; border-radius: 38px; transform: rotate(-10deg); }
.phone { position: relative; }
@media (max-width: 760px) {
 .app-figure { width: min(100%, 350px); margin-inline: auto; padding-left: 54px; }
 .hero-pill { width: 165px; left: 0; top: 95px; border-radius: 29px; }
}

/* Neutral app-like surfaces; blue stays in the hero and actions. */
.feature-grid article { background: #424242; border: 1px solid #606060; border-radius: 16px; padding: 28px; }
.primary { background: #5ca6ff; color: #101c2b; }
.primary:hover { background: #8fc2ff; }
.form-card input[type=email], .form-card textarea { color: #f2f2f2; }

/* Website Help uses the app's existing topics and fictional screenshots. */
nav a[aria-current=page] { color: #9ecbff; }
.help-main { padding-block: 55px 80px; }
.help-main h1 { font-size: clamp(36px, 5vw, 58px); }
.help-contents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; padding: 30px; margin-block: 38px 55px; background: #424242; border: 1px solid #606060; border-radius: 16px; }
.help-contents h2 { grid-column: 1 / -1; font-size: 25px; margin-bottom: 10px; }
.help-contents a { display: flex; align-items: center; min-height: 44px; color: #9ecbff; }
.help-topic { padding-block: 45px; border-top: 1px solid #606060; scroll-margin-top: 24px; }
.help-topic h2 { font-size: 32px; }
.help-topic > p { max-width: 800px; color: #eeeeee; font-size: 17px; }
.help-screenshots { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 30px; align-items: start; }
.help-screenshots figure { width: 250px; margin: 0; }
.help-screenshots .phone { width: 250px; }
.help-screenshots figcaption { color: #dedede; font-size: 13px; }
@media (max-width: 760px) { .help-contents { grid-template-columns: 1fr; padding: 24px; } .help-screenshots { justify-content: center; } }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; width: 100%; }
footer.wrap { width: 100%; }

.site-header { width: 100%; }

.benefit-detail { display: block; font-size: 13px; line-height: 1.6; color: #dedede; margin-top: 6px; }
.pro-benefits li { margin-block: 20px; }

/* White text on the Pro notification button. */
.pro .button.primary { color: #ffffff; background: #1666c2; }
.pro .button.primary:hover { background: #1256a6; }

/* All website button labels use white on blue. */
.button.primary, .button.secondary, .nav-action {
  color: #ffffff;
  background: #1666c2;
  border-color: #1666c2;
}
.button.primary:hover, .button.secondary:hover, .nav-action:hover {
  color: #ffffff;
  background: #1256a6;
  border-color: #1256a6;
}
nav a.nav-action { color: #ffffff; }
nav a.nav-action:hover { color: #ffffff; }

/* Help table of contents: dark-blue buttons with white labels. */
.help-contents a {
  color: #ffffff;
  background: #164b86;
  border: 1px solid #326599;
  border-radius: 8px;
  padding: 12px 16px;
}
.help-contents a:hover {
  color: #ffffff;
  background: #123e70;
}

/* Shared dark-blue/white button treatment across the website. */
.button.primary, .button.secondary, .pro .button.primary, nav a.nav-action {
  color: #ffffff;
  background: #164b86;
  border-color: #326599;
}
.button.primary:hover, .button.secondary:hover, .pro .button.primary:hover, nav a.nav-action:hover {
  color: #ffffff;
  background: #123e70;
  border-color: #326599;
}

.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-legal a { color: #9ecbff; }
.footer-legal a:hover { color: #ffffff; }

/* Centered footer brand with copyright below. */
footer.wrap {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
footer .small { flex-basis: auto; }
footer .footer-legal { justify-content: center; }

/* Text links start white and turn blue on hover or keyboard focus. */
a:not(.button):not(.nav-action):not(.help-contents a),
nav a[aria-current=page]:not(.nav-action) { color: #ffffff; }
a:not(.button):not(.nav-action):not(.help-contents a):hover,
a:not(.button):not(.nav-action):not(.help-contents a):focus-visible { color: #5ca6ff; }

/* The linked brand retains its color on hover and keyboard focus. */
a.brand:not(.button):not(.nav-action):not(.help-contents a),
a.brand:not(.button):not(.nav-action):not(.help-contents a):hover,
a.brand:not(.button):not(.nav-action):not(.help-contents a):focus-visible {
  color: #ffffff;
}

/* Center the main website menu independently of the brand. */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.site-header > .brand { justify-self: start; }
.site-header > nav { grid-column: 2; justify-content: center; }
@media (max-width: 1100px) {
  .site-header { display: flex; flex-direction: column; align-items: center; }
  .site-header > nav { justify-content: center; width: 100%; }
}

/* Keep the header brand left-aligned when the centered menu wraps below it. */
@media (max-width: 1100px) {
  .site-header { align-items: stretch; }
  .site-header > .brand { align-self: flex-start; }
}

/* Match the Privacy link's blue hover color on The app page. */
#features > .eyebrow, #features .feature-number { color: #5ca6ff; }

/* One shared accent blue for section labels, numbers, and roadmap details. */
.eyebrow, .feature-number { color: #5ca6ff; }
.roadmap { border-left-color: #5ca6ff; }
li::before { color: #5ca6ff; }

/* Full-width footer divider; footer content stays centered. */
footer.wrap { position: relative; border-top: none; }
footer.wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 1px;
  background: #606060;
}

/* Form submission controls and spam trap. */
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.button:disabled { opacity: .55; cursor: default; }
