/* Landing page (/). Sempre no tema claro da marca (ADR 0006): creme e tinta de
   src/theme/palette.ts, Fraunces nos títulos e Source Sans 3 no texto. As fontes
   são recortes latinos (woff2) dos arquivos de @expo-google-fonts; licença OFL em
   site/fonts/. */

@font-face {
  font-family: Fraunces;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Fraunces_600SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/Fraunces_600SemiBold_Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/SourceSans3_400Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/SourceSans3_600SemiBold.woff2") format("woff2");
}

body.landing {
  --bg: #f1eef4;
  --surface: #ffffff;
  --text: #1b1a2e;
  --muted: #5c5870;
  --link: #8a6414;
  --accent: #1b1a2e;
  --on-accent: #f1eef4;
  --border: #d4cfda;
  --gold: #a97f24;
  --gold-soft: rgba(169, 127, 36, 0.14);
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 1px 2px rgba(27, 26, 46, 0.06), 0 18px 48px -18px rgba(27, 26, 46, 0.22);
  --serif: Fraunces, Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  display: block;
  padding: 0;
  overflow-x: hidden;
  font-size: 18px;
}

.landing a { color: var(--link); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 16px;
}

@media (min-width: 720px) {
  .wrap { padding-inline: 32px; }
}

/* Cabeçalho */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text) !important;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
}

.logo img { display: block; width: 32px; height: 32px; object-fit: contain; }

.beta { margin: 0; font-size: 15px; color: var(--muted); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 32px 72px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 7.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero h1 em { font-style: italic; color: var(--gold); }

.lede {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 32px;
}

.hero-actions { margin: 0 0 16px; }

.note { margin: 0; max-width: 40ch; font-size: 15px; color: var(--muted); }

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-accent) !important;
  background: var(--accent);
}

.button:hover { background: #33314d; }

/* Palco do celular */
.stage {
  position: relative;
  justify-self: center;
  width: min(300px, 78vw);
  padding: 24px 0;
}

.phone {
  position: relative;
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2b2a40, #0e0d17);
  box-shadow: 0 50px 90px -30px rgba(27, 26, 46, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
  transition: transform 0.8s var(--ease);
}

.stage:hover .phone { transform: rotate(0deg) translateY(-6px); }

.phone-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: #0e0d17;
  z-index: 2;
}

.screen {
  height: 100%;
  border-radius: 34px;
  padding: 56px 20px 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  /* Mesmo corpo de antes do redesign: o celular fica como estava. */
  font-size: 17px;
}

.screen-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.screen-title { font-weight: 700; font-size: 16px; margin: 4px 0 20px; }

.ring {
  --p: 0.575;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), var(--border) 0);
}

.ring-inner {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.ring-value {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ring-label { font-size: 11px; color: var(--muted); }

.week {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.week li {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--text);
  transition: background-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}

.week li.today { background: var(--gold); color: #1b1a2e; }

.entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: opacity 0.5s, transform 0.5s var(--ease);
}

.entry-photo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background:
    linear-gradient(150deg, transparent 55%, rgba(0, 0, 0, 0.18)),
    linear-gradient(135deg, var(--gold) 0 38%, #6b5a8a 38% 70%, #1b1a2e 70%);
}

.entry-text { line-height: 1.25; font-size: 12px; }

.entry-text strong, .entry-text small { display: block; }

.entry-text small { color: var(--muted); }

.chip {
  margin: auto 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  transition: opacity 0.5s, transform 0.5s var(--ease);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.float strong, .float small { display: block; }

.float small { color: var(--muted); }

.float-group { left: -20%; bottom: 20%; }

.float-milestone { right: -18%; top: 2%; animation-delay: -3s; }

.float-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1b1a2e;
  background: var(--gold);
}

.avatars { display: inline-flex; }

.avatars i {
  width: 26px;
  height: 26px;
  margin-left: -8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  border: 2px solid var(--bg);
}

.avatars i:first-child { margin-left: 0; }

.avatars i:nth-child(2) { background: var(--gold); color: #1b1a2e; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* O celular começa "vazio" só quando o JS está ativo e o sistema permite movimento. */
.motion .week li:not(.is-on) { background: var(--border); color: var(--muted); transform: scale(0.9); }

.motion .entry:not(.is-on) { opacity: 0; transform: translateY(8px); }

.motion .chip:not(.is-on) { opacity: 0; transform: translateY(8px); }

/* Seções */
.section {
  display: grid;
  gap: 24px;
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.section p { margin: 0; max-width: 60ch; color: var(--muted); }

.features { display: grid; margin: 0; }

.features div { padding-block: 18px; border-top: 1px solid var(--border); }

.features div:first-child { border-top: 0; padding-top: 0; }

.features dt { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }

.features dd { margin: 6px 0 0; color: var(--muted); }

.steps { margin: 0; padding-left: 1.2em; }

.steps li { padding-block: 10px; color: var(--muted); }

/* --link, não --gold: número de 18px precisa de contraste AA (4,5:1) sobre o creme. */
.steps li::marker { font-family: var(--serif); font-weight: 600; color: var(--link); }

.steps strong { font-weight: 600; color: var(--text); }

.invite .button { margin-top: 24px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-block: 28px 40px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer .links { margin-top: 0; }

.site-footer p { margin: 0; }

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding-block: 64px 104px; }
  .section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-block: 72px; }
  .features { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .features div:nth-child(2) { border-top: 0; padding-top: 0; }
}

@media (max-width: 519px) {
  .float-group { left: -8%; bottom: 18%; }
  .float-milestone { right: -8%; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .phone { transform: none; }
}
