/* =========================================================
   Health Flow Daily™ — Sleep Reset 28 (Google Search LP)
   style.css — FINAL SAFE VERSION
   - Compact, mature, premium
   - Desktop columns / Mobile-first
   - Editorial legal pages
   - Legacy helpers preserved (no risk)
   ========================================================= */

/* =========================
   TOKENS
========================= */
:root{
  --headline: #3A3430;
  --subheadline: #4A4542;
  --text: #5A5552;

  --bg: #F8F5F0;
  --surface: #FFFFFF;
  --surfaceTint: rgba(255,255,255,0.92);

  --line: rgba(58, 52, 48, 0.12);
  --shadow: 0 14px 44px rgba(58, 52, 48, 0.06);

  --accent: #E8DFD8;
  --accent-hover: #D9CDC5;

  --radius-card: 14px;
  --radius-btn: 10px;

  --lp-max: 1040px;
  --text-max: 72ch;

  --pad-x: 18px;
  --pad-top: 28px;
  --pad-bottom: 48px;

  --card-pad-y: 22px;
  --card-pad-x: 20px;
  --card-gap: 12px;
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible{
  outline: 2px solid rgba(58, 52, 48, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* =========================
   LAYOUT
========================= */
.page{ min-height: 100%; }

.container{
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
}

/* =========================
   TOP BAR
========================= */
.topbar{
  display: flex;
  align-items: center;
  padding: 6px 2px 14px;
}

.brand{ display: inline-flex; }
.brand-logo{ width: 172px; opacity: 0.92; }

/* =========================
   CARDS
========================= */
.card{
  background: var(--surfaceTint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--card-pad-y) var(--card-pad-x);
  box-shadow: var(--shadow);
}

.card + .card{ margin-top: var(--card-gap); }
.card-hero{ padding: calc(var(--card-pad-y) + 2px) var(--card-pad-x); }

/* =========================
   TYPOGRAPHY
========================= */
h1{
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(30px, 4.6vw, 44px);
  color: var(--headline);
}

h2{
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  color: var(--headline);
}

p{
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--text);
}

p:last-child{ margin-bottom: 0; }

strong{ font-weight: 600; color: var(--headline); }

.section-title{ margin-bottom: 12px; }
.section-kicker{ margin-bottom: 8px; }

/* =========================
   LISTS
========================= */
ul{ margin: 0; padding-left: 18px; }

li{
  margin: 7px 0;
  font-size: 16px;
  line-height: 1.55;
}

.list-tight{ margin-top: 6px; }
.simple-list{ padding-left: 18px; }
.list-columns{ column-gap: 28px; }

/* =========================
   CTA
========================= */
.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(420px, 100%);
  min-height: 52px;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--headline);
  border-radius: var(--radius-btn);
  border: 1px solid rgba(58, 52, 48, 0.18);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn-primary:hover{
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* =========================
   HERO
========================= */
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.hero-subtitle{
  margin: 10px 0 8px;
  color: var(--subheadline);
}

.hero-micro{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.hero-bullets{ margin: 0 0 12px 18px; }

.product-cover{
  width: min(360px, 100%);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(58, 52, 48, 0.10);
  margin: 0 auto;
}

/* =========================
   TWO COL / STEPS
========================= */
.two-col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.steps-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.step{
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 245, 240, 0.60);
}

.step-compact{ padding: 12px; }

/* =========================
   FINAL CTA
========================= */
.closing{
  margin-top: 10px;
  text-align: center;
}

.authority-inline{
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--subheadline);
}

/* =========================
   FOOTER
========================= */
.site-footer{
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}

.footer-nav a{
  font-size: 14px;
  color: var(--subheadline);
}

/* =========================
   LEGAL PAGES (EDITORIAL)
========================= */
.legal-back{ margin-bottom: 18px; }

.legal-back a{
  font-size: 14px;
  color: var(--subheadline);
}

main.page .container p,
main.page .container ul{
  max-width: var(--text-max);
}

/* =========================
   LEGACY HELPERS (SAFE)
========================= */
.card-center{ text-align: center; }
.spacer{ margin-top: 20px; }

.lead{
  margin-top: 14px;
  font-size: 18px;
  color: var(--subheadline);
  line-height: 1.6;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 640px){
  .btn-primary{ width: 100%; }
  .list-columns{ column-count: 1; }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 900px){
  .hero-grid{ grid-template-columns: 1.15fr 0.85fr; }
  .two-col{ grid-template-columns: 1fr 1fr; }
  .steps-grid{ grid-template-columns: repeat(3, 1fr); }
  .list-columns{ column-count: 2; }
  .footer-nav{ justify-content: flex-end; }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce){
  .btn-primary{ transition: none; transform: none; }
}

/* =========================
   FINAL CTA — MICRO-SEAL FIX
========================= */
.closing{
  margin-top: 6px !important;   /* mais compacto */
  padding: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;

  text-align: center !important;
}

.closing .authority-inline{
  max-width: none !important;   /* remove regra editorial */
  margin: 0 0 10px 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--subheadline) !important;
}
