/* ============================ Junto landing ============================
   Design tokens mirror Junto/Sources/Theme.swift (tema Clássico).        */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --canvas: #f2ece1;
  --surface: #fffdf9;
  --surface-alt: #f6f1e8;
  --ink: #2b2620;
  --muted: #857b6e;
  --faint: #a89e8f;
  --hairline: rgba(43, 38, 32, 0.08);
  --track: #efe7da;
  --budget-card: #2b3b34;
  --on-dark: #f2ece1;
  --budget-bar: #e0a56a;
  --terracotta: #c56a44;
  --terracotta-soft: #f3ddcf;
  --deep-green: #315f4f;
  --green-soft: #dbe6df;
  --success: #2f6b57;
  --success-soft: #d7e8df;
  --destructive: #b25536;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -24px rgba(43, 38, 32, 0.25);

  /* Tab-bar glyphs (stroke SVGs used as masks, tinted via currentColor) */
  --ico-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11.5 12 5l8 6.5V20a1 1 0 0 1-1 1h-4v-6h-6v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  --ico-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 8h11l-1 12h-9z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M4 12h9M4 17h6'/%3E%3Cpath d='m16 8 2.4 2.4L23 6'/%3E%3C/svg%3E");
  --ico-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 21V4h11l-2.5 4L18 12H7'/%3E%3C/svg%3E");
  --ico-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
  /* chart.pie — matches the app's Resumo tab */
  --ico-pie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.21 15.89A10 10 0 1 1 8 2.83'/%3E%3Cpath d='M22 12A10 10 0 0 0 12 2v10z'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

h1, h2, .brand-word, .budget-amount {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

/* =============================== Nav ================================= */

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-sun {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: block;
  /* lift off the matching cream page so the icon tile stays visible */
  box-shadow: 0 4px 10px -3px rgba(43, 38, 32, 0.28), 0 1px 2px rgba(43, 38, 32, 0.12);
}

.brand-word { font-size: 1.45rem; }

.nav-cta {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-dark);
  background: var(--deep-green);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: #27493d; transform: translateY(-1px); }

/* =============================== Hero ================================ */

main { overflow-x: clip; }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  margin-bottom: 20px;
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

/* --------------------------- Offer badge ---------------------------- */

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 18px 9px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--terracotta);
  background: var(--terracotta-soft);
  border: 1px solid rgba(197, 106, 68, 0.16);
  border-radius: 999px;
}
.offer-badge strong { font-weight: 700; }
.offer-ico {
  flex: none;
  width: 19px; height: 19px;
  background: currentColor;
  -webkit-mask: var(--ico-gift) center / contain no-repeat;
  mask: var(--ico-gift) center / contain no-repeat;
}
/* On the dark CTA card the pastel fill would vanish — warm it up.
   Double class beats the `.cta-card > p` colour/typography rule. */
.offer-badge.offer-badge-dark {
  position: relative;
  margin: 0 auto 20px;
  font-size: 0.98rem;
  max-width: none;
  color: #eab787;
  background: rgba(224, 165, 106, 0.15);
  border-color: rgba(224, 165, 106, 0.3);
}

/* --------------------------- Waitlist form --------------------------- */

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.waitlist input {
  flex: 1 1 220px;
  font: 500 1rem var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 14px 22px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist input::placeholder { color: var(--faint); }
.waitlist input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-soft);
}

.waitlist button {
  font: 700 1rem var(--body);
  color: #fff;
  background: var(--terracotta);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.waitlist button:hover { background: #b25b37; transform: translateY(-1px); }
.waitlist button:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-note {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--faint);
}
.form-note.is-success { color: var(--success); font-weight: 600; }
.form-note.is-error { color: var(--destructive); font-weight: 600; }

/* --------------------------- Phone mockup ---------------------------- */

.hero-phone { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 310px;
  border-radius: 48px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 3;
}

.screen {
  position: relative;
  height: 542px;
  background: var(--canvas);
  border-radius: 40px;
  overflow: hidden;
}

/* Four tab screens stacked in one frame; they crossfade in a loop. */
.slides { position: absolute; inset: 0 0 54px 0; }
.slide {
  position: absolute;
  inset: 0;
  padding: 54px 16px 8px;
  overflow: hidden;
  opacity: 0;
  animation: slideCycle 16s ease-in-out infinite;
}
.slide-1 { animation-delay: 0s; }
.slide-2 { animation-delay: 4s; }
.slide-3 { animation-delay: 8s; }
.slide-4 { animation-delay: 12s; }

@keyframes slideCycle {
  0%   { opacity: 0; transform: translateY(12px) scale(0.985); }
  4%   { opacity: 1; transform: translateY(0) scale(1); }
  22%  { opacity: 1; transform: translateY(0) scale(1); }
  27%  { opacity: 0; transform: translateY(-12px) scale(0.985); }
  100% { opacity: 0; transform: translateY(12px) scale(0.985); }
}

.screen-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  padding: 0 4px;
}
.screen-month { font-size: 0.72rem; font-weight: 600; color: var(--terracotta); text-transform: lowercase; }
.screen-title { font-family: var(--display); font-size: 1.35rem; }

.budget-card {
  background: var(--budget-card);
  color: var(--on-dark);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.budget-label { font-size: 0.72rem; opacity: 0.75; }
.budget-amount { font-size: 1.7rem; }
.budget-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(242, 236, 225, 0.18);
  overflow: hidden;
  margin-top: 4px;
}
.budget-fill {
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: var(--budget-bar);
  animation: grow-budget 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.4s;
}
@keyframes grow-budget { from { width: 8%; } to { width: 68%; } }
.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  opacity: 0.8;
}

.mini-section {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
}
.mini-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.cat-amt { font-weight: 600; font-size: 0.82rem; }

/* Chips — category accents from Theme.swift */
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.chip-mercado { background: #f3ddcf; color: #c56a44; }
.chip-casa    { background: #e6ead6; color: #7a8b5a; }
.chip-lazer   { background: #eddee9; color: #9a6b8c; }
.chip-pet     { background: #ece0d2; color: #9c7350; }
.chip-pix     { background: var(--success-soft); color: var(--success); }
.chip-card    { background: #f0dccb; color: #9a5b3a; }
.chip-curto   { background: var(--terracotta-soft); color: var(--terracotta); }
.chip-medio   { background: #f4e6cf; color: #cf9445; }
.chip-longo   { background: var(--green-soft); color: var(--deep-green); }
.chip-contas  { background: #f0d8cd; color: #b25536; }

/* Rows inside the cycling tab screens (Gastos / Tarefas / Metas) */
.p-exp, .p-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.p-exp + .p-exp, .p-task + .p-task { border-top: 1px solid var(--hairline); }
.p-name {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-name.struck { text-decoration: line-through; color: var(--faint); }
.p-amt { flex: none; font-size: 0.8rem; font-weight: 700; }

.p-check {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 2px solid #c8bda9;
  position: relative;
}
.p-check.done { background: var(--deep-green); border-color: var(--deep-green); }
.p-check.done::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid var(--on-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.due-chip {
  flex: none;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
}
.p-payers { display: flex; gap: 8px; margin-top: 12px; padding: 0 2px; }

.p-goal { display: flex; flex-direction: column; gap: 6px; padding: 9px 0; }
.p-goal + .p-goal { border-top: 1px solid var(--hairline); }
.p-goal .goal-info { align-items: center; }
.p-goal .goal-name { font-size: 0.82rem; }
.p-goal .goal-progress { font-size: 0.68rem; }

/* Glass tab bar; the active tab's color cycles in step with the slides. */
.tabbar {
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: 0 8px 20px -12px rgba(43, 38, 32, 0.3);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--faint);
  animation: tabCycle 16s ease-in-out infinite;
}
.tab-1 { animation-delay: 0s; }
.tab-2 { animation-delay: 4s; }
.tab-3 { animation-delay: 8s; }
.tab-4 { animation-delay: 12s; }
.tab-ico {
  width: 17px; height: 17px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.tab-1 .tab-ico { -webkit-mask-image: var(--ico-pie); mask-image: var(--ico-pie); }
.tab-3 .tab-ico { -webkit-mask-image: var(--ico-check); mask-image: var(--ico-check); }
.tab-4 .tab-ico { -webkit-mask-image: var(--ico-flag); mask-image: var(--ico-flag); }
/* Gastos uses the "R$" glyph (app's brazilianrealsign), rendered as text */
.tab-ico-brl {
  width: auto;
  background: none;
  -webkit-mask: none;
  mask: none;
  font: 700 12px/17px var(--display);
}

@keyframes tabCycle {
  0%   { color: var(--faint); }
  4%   { color: var(--terracotta); }
  22%  { color: var(--terracotta); }
  27%  { color: var(--faint); }
  100% { color: var(--faint); }
}

/* Tap a tab to drive the frame manually — this stops the auto-cycle. */
.tab { cursor: pointer; }
.slides.manual .slide {
  animation: none;
  opacity: 0;
  transform: none;
  transition: opacity 0.35s ease;
}
.slides.manual .slide.is-active { opacity: 1; }
.tabbar.manual .tab { animation: none; color: var(--faint); }
.tabbar.manual .tab.is-active { color: var(--terracotta); }

.goal-row { display: flex; flex-direction: column; gap: 8px; }
.goal-info { display: flex; justify-content: space-between; align-items: baseline; }
.goal-name { font-weight: 600; font-size: 0.85rem; }
.goal-progress { font-size: 0.72rem; color: var(--muted); }
.goal-track {
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  width: var(--p, 50%);
  border-radius: 999px;
  background: var(--deep-green);
}

/* Realtime push banner over the hero phone */
.push-banner {
  position: absolute;
  top: 54px;
  left: 50%;
  width: 88%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 12px 30px -12px rgba(43, 38, 32, 0.35);
  opacity: 0;
  animation: banner-drop 9s ease-in-out infinite;
  animation-delay: 2s;
  z-index: 4;
}
@keyframes banner-drop {
  0%, 6%   { opacity: 0; transform: translate(-50%, -18px); }
  10%, 42% { opacity: 1; transform: translate(-50%, 0); }
  48%, 100%{ opacity: 0; transform: translate(-50%, -18px); }
}
.push-dot {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: url("assets/icon.png") center / cover no-repeat;
  box-shadow: 0 3px 8px -3px rgba(43, 38, 32, 0.28), 0 1px 2px rgba(43, 38, 32, 0.12);
}
.push-text { display: flex; flex-direction: column; line-height: 1.3; }
.push-text strong { font-size: 0.72rem; }
.push-text span { font-size: 0.7rem; color: var(--muted); }

/* ============================= Sections ============================== */

section { padding: 0 24px; }

.features, .themes {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }

.section-lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38em;
  margin: 0 auto 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px -22px rgba(43, 38, 32, 0.3);
}

.feature-art {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 128px;
  justify-content: center;
}

.fc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-amt { font-weight: 700; font-size: 0.9rem; }

.payer {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.payer-you { background: var(--terracotta-soft); color: var(--terracotta); }
.payer-partner { background: var(--green-soft); color: var(--deep-green); }

.fc-task { display: flex; align-items: center; gap: 10px; }
.fc-check {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 7px;
  border: 2px solid #c8bda9;
  position: relative;
}
.fc-check.done { background: var(--deep-green); border-color: var(--deep-green); }
.fc-check.done::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--on-dark);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.fc-task-name { font-size: 0.9rem; font-weight: 500; }
.fc-task-name.struck { text-decoration: line-through; color: var(--faint); }

.fc-goal { display: flex; align-items: center; gap: 12px; }
.fc-goal .goal-track { flex: 1; }

.feature-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.feature-card p { color: var(--muted); font-size: 0.98rem; }

/* ------------------------- Magic / split rows ------------------------ */

.magic, .realtime {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.magic-copy p, .realtime-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32em;
}

/* Magic: cards on the left, copy on the right (desktop). */
.magic-demo { order: -1; }
.magic-copy { order: 0; }

.magic-demo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: 0 10px 30px -22px rgba(43, 38, 32, 0.3);
  text-align: left; /* keep rows left-aligned even when the section centers on mobile */
}
.demo-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.demo-task-row, .demo-expense-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-task-name { flex: 1; font-weight: 500; font-size: 0.95rem; }
.demo-task-amt { font-weight: 700; font-size: 0.95rem; }

/* A valueless task sits above the one that carries an amount, so the
   "tasks CAN have a value" point reads at a glance. */
.demo-task-plain { margin-bottom: 12px; }
.demo-box {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 8px;
  border: 2px solid #c8bda9;
}

.demo-check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 8px;
  border: 2px solid #c8bda9;
  position: relative;
  animation: check-fill 6s ease-in-out infinite;
}
.demo-check::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid var(--on-dark);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  animation: check-mark 6s ease-in-out infinite;
}
@keyframes check-fill {
  0%, 18%  { background: transparent; border-color: #c8bda9; }
  26%, 88% { background: var(--deep-green); border-color: var(--deep-green); }
  96%, 100%{ background: transparent; border-color: #c8bda9; }
}
@keyframes check-mark {
  0%, 18%  { transform: rotate(45deg) scale(0); }
  26%, 88% { transform: rotate(45deg) scale(1); }
  96%, 100%{ transform: rotate(45deg) scale(0); }
}
.demo-task-value .demo-task-name {
  animation: strike-name 6s ease-in-out infinite;
}
@keyframes strike-name {
  0%, 18%  { color: var(--ink); text-decoration-color: transparent; }
  26%, 88% { color: var(--faint); text-decoration: line-through; }
  96%, 100%{ color: var(--ink); text-decoration: none; }
}

.demo-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--terracotta);
  transform: rotate(90deg);
  animation: arrow-pulse 6s ease-in-out infinite;
}
@keyframes arrow-pulse {
  0%, 26%  { opacity: 0.25; }
  34%, 88% { opacity: 1; }
  96%, 100%{ opacity: 0.25; }
}

.demo-expense {
  animation: expense-in 6s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes expense-in {
  0%, 30%  { opacity: 0.35; transform: translateY(6px) scale(0.98); }
  40%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100%{ opacity: 0.35; transform: translateY(6px) scale(0.98); }
}

/* ------------------------- Calm / manual ----------------------------- */

.calm {
  /* soft card band so it reads as a pause in the scroll */
  max-width: 1120px;
  margin: 8px auto;
  padding: 64px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 32px;
}
.calm .eyebrow { color: var(--deep-green); }
.calm h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.calm .section-lede { margin-bottom: 32px; }

.calm-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.calm-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deep-green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 9px 18px;
}
.calm-pill::before {
  content: "";
  flex: none;
  width: 17px; height: 17px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23315f4f'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.2 7 10.6 11.5 5.4'/%3E%3C/svg%3E");
}

/* ----------------------------- Realtime ------------------------------ */

.realtime-art {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left; /* notifications stay left-aligned when the section centers on mobile */
}
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px -22px rgba(43, 38, 32, 0.3);
}
.notif:nth-child(2) { margin-left: 26px; }
.notif:nth-child(3) { margin-left: 8px; }
.notif-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: url("assets/icon.png") center / cover no-repeat;
  box-shadow: 0 3px 8px -3px rgba(43, 38, 32, 0.28), 0 1px 2px rgba(43, 38, 32, 0.12);
}
.notif div { display: flex; flex-direction: column; line-height: 1.35; }
.notif strong { font-size: 0.8rem; }
.notif span { font-size: 0.85rem; color: var(--muted); }

/* ------------------------------ Themes ------------------------------- */

.theme-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.theme-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  transition: transform 0.15s ease;
}
.theme-dot:hover { transform: translateY(-2px); }
/* Real app-icon render per theme (assets/themes/*.svg). */
.theme-ico {
  display: block;
  width: 30px; height: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px -3px rgba(43, 38, 32, 0.28), 0 1px 2px rgba(43, 38, 32, 0.12);
}

/* ----------------------------- Final CTA ------------------------------ */

.cta {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 96px;
}
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--budget-card);
  color: var(--on-dark);
  border-radius: 32px;
  padding: 72px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-sun {
  position: absolute;
  left: 50%; bottom: -260px;
  transform: translateX(-50%);
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terracotta) 0 56%, var(--budget-bar) 56% 74%, transparent 74%);
  opacity: 0.18;
  pointer-events: none;
}
.cta-card h2 { color: var(--on-dark); }
.cta-card > p {
  position: relative;
  color: rgba(242, 236, 225, 0.78);
  font-size: 1.1rem;
  max-width: 34em;
  margin: 0 auto 32px;
}
.cta-card .waitlist {
  position: relative;
  justify-content: center;
  margin: 0 auto;
}
.waitlist-dark input {
  background: rgba(242, 236, 225, 0.1);
  border-color: rgba(242, 236, 225, 0.25);
  color: var(--on-dark);
}
.waitlist-dark input::placeholder { color: rgba(242, 236, 225, 0.55); }
.waitlist-dark input:focus {
  border-color: var(--budget-bar);
  box-shadow: 0 0 0 4px rgba(224, 165, 106, 0.25);
}
.waitlist-dark .form-note { color: rgba(242, 236, 225, 0.6); }
.waitlist-dark .form-note.is-success { color: #a8d5c2; }
.waitlist-dark .form-note.is-error { color: #eba98f; }

/* ------------------------------ Footer -------------------------------- */

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: baseline;
  color: var(--faint);
  font-size: 0.9rem;
  border-top: 1px solid var(--hairline);
}
.footer .brand-word { font-size: 1.1rem; color: var(--muted); }

/* --------------------------- Scroll reveal ---------------------------- */

/* Only hide-for-reveal when JS is running (main.js stamps html.js),
   so the page never renders blank without scripts. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .push-banner, .demo-check, .demo-check::after,
  .demo-task-value .demo-task-name, .demo-arrow, .demo-expense, .budget-fill,
  .slide, .tab {
    animation: none !important;
  }
  /* Freeze the frame on the Resumo tab. */
  .slide-1 { opacity: 1 !important; transform: none !important; }
  .tab-1 { color: var(--terracotta) !important; }
  .push-banner { opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 64px;
    gap: 56px;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .waitlist { justify-content: center; }
  .hero-phone { text-align: left; }

  .feature-grid { grid-template-columns: 1fr; }

  .magic, .realtime {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
    padding-bottom: 56px;
    text-align: center;
  }
  .magic-copy p, .realtime-copy p { margin: 0 auto; }
  /* Stack copy first on mobile. */
  .magic-demo, .magic-copy { order: 0; }

  /* Match the CTA card's 24px screen gutter instead of bleeding to the edges. */
  .calm {
    margin-left: 24px;
    margin-right: 24px;
    padding: 56px 20px;
  }

  .cta-card { padding: 56px 20px; }
}
