/* Horário do Remédio — site
   Paleta e tokens herdados do redesign V2 do app (Theme.swift). */

:root {
  --bg:     #f3f3ef;
  --card:   #ffffff;
  --line:   #ececea;
  --ink1:   #15171a;
  --ink2:   #54585f;
  --ink3:   #8a8f97;
  --accent: #2563eb;
  --accent-soft: #e8eefc;
  --radius: 24px;
  --radius-sm: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 243, 239, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink1);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-size: 1.02rem; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink1); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink2);
  margin: 0 0 32px;
  max-width: 30ch;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-size: .9rem; color: var(--ink3); margin-top: 16px; }

/* Phone screenshot */
.phone {
  justify-self: center;
  max-width: 300px;
  width: 100%;
}
.phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 38px;
  border: 1px solid var(--line);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 18px 50px rgba(40, 30, 30, 0.14);
}

/* ---------- App Store badge ---------- */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink1);
  color: #fff;
  padding: 11px 18px;
  border-radius: 14px;
  transition: transform .15s ease, opacity .15s ease;
}
.appstore-badge:hover { text-decoration: none; transform: translateY(-1px); opacity: .92; }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .b-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore-badge .b-small { font-size: .68rem; opacity: .85; }
.appstore-badge .b-big { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 36ch; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p { color: var(--ink2); font-size: 1.05rem; margin: 0; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 3px 12px rgba(20,20,30,0.04);
}
.feature .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { color: var(--ink2); font-size: .96rem; margin: 0; }

/* Privacy callout */
.privacy-callout {
  background: var(--ink1);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.privacy-callout .ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
}
.privacy-callout .ico svg { width: 30px; height: 30px; color: #fff; }
.privacy-callout h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.privacy-callout p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 auto 26px; font-size: 1.05rem; }
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 500;
  transition: background .15s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* "Ideal para" chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: .98rem;
  color: var(--ink2);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 24px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand span { font-weight: 600; }
.site-footer .f-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .f-links a { color: var(--ink2); font-size: .92rem; }
.site-footer .copy { color: var(--ink3); font-size: .88rem; width: 100%; }

/* ---------- Legal / privacy page ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--ink3); font-size: .92rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.18rem; margin: 2em 0 .4em; letter-spacing: -0.01em; }
.legal p { color: var(--ink2); margin: 0 0 1em; }
.legal strong { color: var(--ink1); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink2); font-size: .95rem; font-weight: 500; margin-bottom: 28px;
}
.back-link:hover { color: var(--ink1); text-decoration: none; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(20, 20, 30, 0.16);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-bar.show { opacity: 1; transform: translateY(0); }
.cookie-text {
  margin: 0;
  flex: 1 1 260px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink2);
}
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s ease, background .15s ease;
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { opacity: .9; }
.cookie-decline { background: transparent; color: var(--ink2); border-color: var(--line); }
.cookie-decline:hover { background: var(--bg); }

@media (max-width: 480px) {
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { max-width: none; }
  .hero-cta { justify-content: center; }
  .phone { grid-row: 1; max-width: 260px; }
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .brand span { display: none; }
  .privacy-callout { padding: 36px 24px; }
}
