/* Landing page do Health365 — a marca leva o verde ao azul da própria logo. */
:root {
  --landing-navy: #08223b;
  --landing-ink: #173247;
  --landing-muted: #607484;
  --landing-surface: #ffffff;
  --landing-soft: #f4f9f7;
  --landing-line: #d8e6e1;
  --landing-green: #0f9e70;
  --landing-blue: #168dc2;
}

.landing-page {
  margin: 0;
  width: 100%;
  min-width: 0;
  color: var(--landing-ink);
  background:
    radial-gradient(circle at 91% 5%, rgba(22, 141, 194, 0.10), transparent 24rem),
    radial-gradient(circle at 7% 23%, rgba(15, 158, 112, 0.10), transparent 22rem),
    #f8fbfa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-page * { box-sizing: border-box; }

.landing-page a { color: inherit; }

.landing-header,
.landing-hero,
.feature-section,
.tracking-section,
.landing-cta,
.landing-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 2rem;
  background: transparent !important;
  box-shadow: none !important;
}

.landing-brand { display: inline-flex; width: 170px; }
.landing-brand img { width: 100%; height: auto; display: block; }
.landing-brand .landing-logo-night { display: none; }
html[data-theme=dark] .landing-brand .landing-logo-day { display: none; }
html[data-theme=dark] .landing-brand .landing-logo-night { display: block; }

.landing-nav { display: flex; align-items: center; gap: 1.8rem; color: #3d5969; font-size: 0.92rem; font-weight: 650; }
.landing-header .landing-nav a { color: #3d5969 !important; }
.landing-nav a { text-decoration: none; transition: color .2s ease, background .2s ease; }
.landing-header .landing-nav a:not(.landing-login):hover { color: #0f766e !important; }
.landing-header .landing-nav .landing-login { padding: .72rem 1.15rem; border: 1px solid #9ccfc0; border-radius: 999px; color: #0f766e !important; }
.landing-header .landing-nav .landing-login:hover { color: #ffffff !important; background: #0f766e; border-color: #0f766e; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  min-height: 620px;
  padding: 3rem 0 4.75rem;
}

.eyebrow { margin: 0 0 1rem; color: #0b8d82; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }

.hero-copy h1,
.section-intro h2,
.tracking-copy h2,
.landing-cta h2 {
  margin: 0;
  color: var(--landing-navy);
  letter-spacing: -.055em;
  line-height: 1.04;
}

.hero-copy h1 { max-width: 640px; font-size: clamp(2.85rem, 4.75vw, 4.45rem); }
.hero-description { max-width: 580px; margin: 1.55rem 0 0; color: var(--landing-muted); font-size: 1.13rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.15rem; }
.hero-note { margin: 1.25rem 0 0; color: #6d818c; font-size: .85rem; }

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.landing-button:hover { transform: translateY(-2px); }
.landing-button-primary { color: #ffffff; background: var(--brand-gradient); box-shadow: 0 12px 24px rgba(15, 118, 110, .2); }
.landing-button-primary:hover { background: var(--brand-gradient-hover); box-shadow: 0 15px 30px rgba(22, 96, 128, .27); }
.landing-button-secondary { color: #0e6e72; background: rgba(255, 255, 255, .68); border-color: #b8d8d2; }
.landing-button-secondary:hover { background: #ffffff; }
.landing-button-install { color: #ffffff; background: #135f82; border-color: #135f82; cursor: pointer; font-family: inherit; }
.landing-button-install:hover { background: #0f506f; box-shadow: 0 12px 24px rgba(19, 95, 130, .2); }
.landing-button-install[hidden], .pwa-install-status[hidden] { display: none; }
.pwa-install-status { margin: .8rem 0 0; color: #486674; font-size: .86rem; }

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.45rem, 3vw, 2.25rem);
  color: #eafaf7;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 28px;
  background: linear-gradient(136deg, #115e59 0%, #0f766e 41%, #197687 66%, #245b8a 100%);
  box-shadow: 0 26px 60px rgba(18, 72, 83, .25);
}

.hero-panel::before,
.hero-panel::after { position: absolute; content: ""; border-radius: 999px; pointer-events: none; }
.hero-panel::before { width: 300px; height: 300px; top: -145px; right: -120px; border: 1px solid rgba(255, 255, 255, .24); }
.hero-panel::after { width: 230px; height: 230px; right: -78px; bottom: -128px; background: rgba(255, 255, 255, .06); }
.hero-panel > * { position: relative; z-index: 1; }

.panel-topline { display: flex; flex-wrap:wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .85rem; font-weight: 700; }
.panel-status { padding: .42rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255,255,255,.18); font-size: .72rem; }
.panel-score { padding: 2.75rem 0 1.75rem; }
.panel-score strong { display: block; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.panel-score p { max-width: 260px; margin: .65rem 0 0; color: rgba(238, 255, 252, .78); line-height: 1.55; }
.panel-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.panel-metric { padding: 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(2, 39, 53, .15); }
.panel-metric span { display: block; color: rgba(233, 251, 248, .7); font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.panel-metric strong { display: block; margin-top: .6rem; font-size: 1.75rem; letter-spacing: -.04em; }
.panel-metric small { display: block; margin-top: .2rem; color: rgba(233, 251, 248, .78); font-size: .74rem; }
.panel-progress { margin-top: 1.35rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.16); }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(233, 251, 248, .82); }
.progress-label strong { color: #ffffff; }
.progress-track { height: 7px; margin-top: .6rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.16); }
.progress-track span { display: block; width: 75%; height: 100%; border-radius: inherit; background: #b9f5dc; }

.feature-section { padding: 6.25rem 0; }
.section-intro { max-width: 640px; }
.section-intro h2,
.tracking-copy h2,
.landing-cta h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
.section-intro > p:last-child,
.tracking-copy > p:last-of-type { margin: 1.15rem 0 0; color: var(--landing-muted); line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.feature-card { padding: 1.65rem; min-height: 230px; border: 1px solid var(--landing-line); border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: 0 12px 24px rgba(29, 67, 62, .04); }
.feature-number { color: #0b8d82; font-size: .75rem; font-weight: 850; letter-spacing: .11em; }
.feature-card h3 { margin: 2rem 0 .7rem; color: var(--landing-navy); font-size: 1.25rem; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--landing-muted); line-height: 1.65; font-size: .94rem; }

.tracking-section { display: grid; grid-template-columns: minmax(0, .95fr) minmax(370px, 1.05fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: 5.5rem clamp(1.25rem, 4vw, 4rem); border-radius: 30px; background: #e9f4f0; }
.tracking-copy .text-link { display: inline-flex; margin-top: 1.75rem; color: #0f766e; font-weight: 800; text-decoration: none; border-bottom: 1px solid #75bdae; padding-bottom: .25rem; }
.text-link span { margin-left: .5rem; font-size: 1.15rem; line-height: .8; }
.tracking-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.tracking-list li { display: grid; grid-template-columns: 16px minmax(128px, .7fr) 1fr; align-items: center; gap: .75rem; min-height: 58px; padding: .85rem 1rem; border-radius: 13px; background: rgba(255,255,255,.78); border: 1px solid rgba(190, 215, 207, .85); }
.tracking-list strong { color: #173247; font-size: .95rem; }
.tracking-list li > span:last-child { color: #6b7f88; font-size: .84rem; }
.tracking-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-sleep { background: #6d5bd0; }.dot-food { background: #4d7c0f; }.dot-water { background: #168dc2; }.dot-movement { background: #c2410c; }

.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 6.25rem; padding: clamp(2rem, 5vw, 4.25rem); color: #ffffff; border-radius: 28px; background: var(--brand-gradient); box-shadow: 0 20px 42px rgba(23, 86, 103, .19); }
.landing-cta .eyebrow { color: rgba(235, 255, 251, .74); }
.landing-cta h2 { max-width: 620px; color: #ffffff; }
.landing-button-light { flex: 0 0 auto; color: #0e666a; background: #ffffff; box-shadow: 0 10px 20px rgba(4, 57, 62, .14); }
.landing-button-light:hover { color: #0a4f57; }

.landing-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 3rem 0; color: #74848e; font-size: .84rem; }
.footer-brand { color: var(--landing-navy); font-size: 1.05rem; font-weight: 850; text-decoration: none; letter-spacing: -.035em; }
.landing-footer p { margin: 0; }
.footer-links { display: flex; gap: 1.15rem; }
.footer-links a { color: #4f6978; text-decoration: none; }
.footer-links a:hover { color: #0f766e; }

/* A faixa é injetada somente pelo servidor de testes local; a landing não a exibe. */
.landing-page > p[role="status"] { display: none !important; }

@media (max-width: 820px) {
  .landing-header, .landing-hero, .feature-section, .tracking-section, .landing-cta, .landing-footer { width: min(100% - 32px, 620px); }
  .landing-header { min-height: 76px; }
  .landing-brand { width: 145px; }
  .landing-nav { gap: .85rem; font-size: .82rem; }
  .landing-nav a:not(.landing-login) { display: none; }
  .landing-hero, .tracking-section { grid-template-columns: minmax(0,1fr); }
  .tracking-copy, .tracking-list, .tracking-list li > * { min-width:0; overflow-wrap:anywhere; }
  .tracking-copy .text-link { max-width:100%; }
  .landing-hero { gap: 2.5rem; min-height: 0; padding: 3rem 0 4rem; }
  .hero-copy { min-width: 0; }
  .hero-panel { max-width: 510px; width: 100%; }
  .feature-section { padding: 4.5rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: unset; }
  .feature-card h3 { margin-top: 1.25rem; }
  .tracking-section { padding: 2.4rem 1.25rem; }
  .landing-cta { margin-top: 4.5rem; align-items: flex-start; flex-direction: column; }
  .landing-footer { grid-template-columns: 1fr; gap: .85rem; padding: 2.2rem 0; }
}

@media (max-width: 600px) {
  .hero-copy h1 { max-width: 9.5ch; font-size: clamp(2.35rem, 11vw, 2.7rem); }
  .hero-description { max-width: 34ch; }
  .hero-actions { flex-direction: column; }
  .hero-description { font-size: 1rem; }
  .hero-actions, .landing-button { width: 100%; }
  .panel-metrics { grid-template-columns: 1fr; }
  .tracking-list li { grid-template-columns: 12px minmax(0,1fr); }
  .tracking-list li > span:last-child { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page *, .landing-page *::before, .landing-page *::after { transition-duration: 0.01ms !important; }
}
