/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #172409;
  --card:      rgba(140,191,80,0.10);
  --card-h:    rgba(140,191,80,0.18);
  --pink:      #8CBF50;
  --pink-hi:   #A8D865;
  --pink-dim:  rgba(140,191,80,0.15);
  --text:      #EFF6EA;
  --muted:     #7A9060;
  --border:    rgba(140,191,80,0.22);
  --border-h:  rgba(140,191,80,0.55);
  --shadow:    rgba(140,191,80,0.08);
  --radius:    20px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font:      'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

/* ─── Skip Link ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ─── Animations ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes breathe {
    from { opacity: 0.5; transform: scale(1);    }
    to   { opacity: 1;   transform: scale(1.15); }
  }
}

/* ─── Body ──────────────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px max(56px, calc(56px + env(safe-area-inset-bottom)));
  padding-left:  max(16px, calc(16px + env(safe-area-inset-left)));
  padding-right: max(16px, calc(16px + env(safe-area-inset-right)));
  position: relative;
  overflow-x: hidden;
}

/* Overlay leve — imagem já é escura */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 4, 0.35);
  pointer-events: none;
  z-index: 0;
}

/* Glow rosa no fundo */
body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(140,191,80,0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 6s ease-in-out infinite alternate;
}

/* ─── Page container ────────────────────────────────────────────── */
.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ─── Header ────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px 12px;
}

.avatar-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--pink-dim), 0 0 20px rgba(140,191,80,0.18);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-label {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  opacity: 0.85;
}

.header-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ─── Grid ──────────────────────────────────────────────────────── */
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Card ──────────────────────────────────────────────────────── */
.card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 150px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  touch-action: manipulation;
  box-shadow: 0 2px 16px var(--shadow);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.card:hover {
  border-color: var(--border-h);
  background: var(--card-h);
  box-shadow: 0 6px 28px rgba(140,191,80,0.15);
  transform: translateY(-2px);
}

.card:focus-visible {
  outline: 2.5px solid var(--pink);
  outline-offset: 3px;
}

/* ─── Card Content (esquerda) ───────────────────────────────────── */
.card-content {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 12px 22px 20px;
  z-index: 1;
}

/* ─── Ícone ─────────────────────────────────────────────────────── */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
  transition: transform 0.22s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-icon--pink {
  background: rgba(236,168,152,0.16);
  color: var(--pink-hi);
  border: 1px solid rgba(236,168,152,0.28);
}

.card-icon--rose {
  background: rgba(236,168,152,0.16);
  color: var(--pink-hi);
  border: 1px solid rgba(236,168,152,0.28);
}

.card-icon--blush {
  background: rgba(236,168,152,0.16);
  color: var(--pink-hi);
  border: 1px solid rgba(236,168,152,0.28);
}

/* ─── Títulos dos cards ──────────────────────────────────────────── */
.card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-sub {
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

/* ─── Card Visual (direita) ─────────────────────────────────────── */
.card-visual {
  flex: 0 0 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(140,191,80,0.06) 0%, rgba(100,160,50,0.03) 100%);
}

/* ─── MOCKUP: Calculadora ────────────────────────────────────────── */
.mock-calc {
  background: rgba(140,191,80,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  width: 88%;
  box-shadow: 0 2px 12px rgba(140,191,80,0.06);
}

.calc-label {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.calc-name {
  font-family: var(--font);
  font-size: 0.58rem;
  color: var(--muted);
  width: 52px;
  flex-shrink: 0;
  font-weight: 500;
}

.calc-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(140,191,80,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.calc-bar {
  height: 100%;
  width: var(--w);
  border-radius: 99px;
}

.calc-bar--prot { background: linear-gradient(90deg, var(--pink), var(--pink-hi)); }
.calc-bar--carb { background: linear-gradient(90deg, var(--pink), var(--pink-hi)); opacity: 0.80; }
.calc-bar--fat  { background: linear-gradient(90deg, var(--pink), var(--pink-hi)); opacity: 0.50; }

.calc-val {
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.calc-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

.calc-kcal {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink-hi);
}

.calc-kcal-lbl {
  font-family: var(--font);
  font-size: 0.58rem;
  color: var(--muted);
  font-weight: 500;
}

/* ─── MOCKUP: Agenda ─────────────────────────────────────────────── */
.mock-agenda {
  background: rgba(140,191,80,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 11px 12px;
  width: 88%;
  box-shadow: 0 2px 12px rgba(140,191,80,0.06);
}

.agenda-header {
  margin-bottom: 8px;
}

.agenda-month {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 8px;
}

.agenda-day {
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 3px 0;
  border-radius: 5px;
}

.agenda-day--muted {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.55rem;
}

.agenda-day--active {
  background: var(--pink);
  color: #fff;
}

.agenda-day--dot::after {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  background: var(--pink);
  border-radius: 50%;
  margin: 1px auto 0;
}

.agenda-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(140,191,80,0.10);
  border-radius: 6px;
  padding: 4px 7px;
  border-left: 2px solid var(--pink);
}

.agenda-time {
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--pink-hi);
  flex-shrink: 0;
}

.agenda-event {
  font-family: var(--font);
  font-size: 0.55rem;
  color: var(--muted);
  font-weight: 500;
}

/* ─── MOCKUP: Video ──────────────────────────────────────────────── */
.mock-video {
  width: 88%;
}

.video-screen {
  background: linear-gradient(145deg, rgba(140,191,80,0.22), rgba(140,191,80,0.08));
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(140,191,80,0.16);
  border: 1.5px solid var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-hi);
}

.video-avatar svg {
  width: 22px;
  height: 22px;
}

.video-controls {
  background: rgba(140,191,80,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--border);
  border-top: none;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(140,191,80,0.06);
}

.video-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-btn svg {
  width: 12px;
  height: 12px;
}

.video-btn--red {
  background: #e53e3e;
  color: #fff;
}

.video-btn--pink {
  background: rgba(140,191,80,0.16);
  border: 1px solid var(--border);
  color: var(--pink-hi);
}

/* ─── MOCKUP: Ebook ──────────────────────────────────────────────── */
.mock-ebook {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
}

.ebook-img {
  height: 118px;
  width: auto;
  border-radius: 6px;
  box-shadow: -4px 4px 16px rgba(0,0,0,0.45), 4px 0 0 rgba(140,191,80,0.15);
  object-fit: cover;
  display: block;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
  padding: 20px 4px 0;
  text-align: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-family: var(--font);
  font-weight: 500;
  opacity: 0.75;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .card-title { font-size: 0.95rem; }
  .card-content { padding: 18px 10px 18px 14px; }
  .header-title { font-size: 1.25rem; }
  .card { min-height: 130px; }
  .mock-calc,
  .mock-agenda,
  .mock-video { width: 92%; }
}
