/* RetornaPSI — landing page
   Paleta herdada de propósito do produto real (Angular Material indigo-pink),
   pra que a transição da landing pro app pareça a mesma empresa. */

:root {
  --radius: 14px;

  --primary: oklch(0.478 0.159 271.4);        /* #3f51b5 */
  --primary-deep: oklch(0.416 0.156 271.2);   /* #303f9f */
  --primary-soft: oklch(0.939 0.016 278.5);   /* #e8eaf6 */
  --heading: oklch(0.321 0.151 270.3);        /* #1a237e */
  --tagline: oklch(0.556 0.132 273.8);        /* #5c6bc0 */
  --pink: oklch(0.672 0.228 5.7);             /* #ff4081 */
  --pink-soft: oklch(0.941 0.028 355.4);      /* #fce4ec */
  --chat-out: oklch(0.946 0.072 131.5);
  --chat-bg: oklch(0.955 0.012 85);

  --bg: oklch(0.985 0.004 278);
  --ink: oklch(0.32 0.01 270);
  --card: oklch(1 0 0);
  --muted: oklch(0.965 0.008 278);
  --muted-ink: oklch(0.5 0.015 270);
  --border: oklch(0.915 0.016 278);

  --gradient-brand-bg: linear-gradient(135deg, var(--primary-soft) 0%, var(--pink-soft) 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  --gradient-heading: linear-gradient(120deg, var(--primary) 0%, var(--pink) 110%);

  --shadow-soft: 0 1px 2px oklch(0.321 0.151 270.3 / 0.05), 0 10px 26px -12px oklch(0.321 0.151 270.3 / 0.16);
  --shadow-card: 0 2px 4px oklch(0.321 0.151 270.3 / 0.05), 0 20px 44px -18px oklch(0.321 0.151 270.3 / 0.24);
  --shadow-glow: 0 16px 34px -14px oklch(0.478 0.159 271.4 / 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

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

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; vertical-align: -1px; }

.wrap {
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
}
.wrap-narrow { max-width: 768px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.text-gradient {
  background-image: var(--gradient-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background-image: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-xl { padding: 15px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* ─────────────────────────── Header ─────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: oklch(0.985 0.004 278 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .row-between { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 20px; color: var(--heading); letter-spacing: -0.02em; }
.brand-name span { color: var(--primary); }

.site-nav { display: none; gap: 28px; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--muted-ink); }
.site-nav a:hover { color: var(--primary); }
@media (min-width: 768px) { .site-nav { display: flex; } }

/* ─────────────────────────── Hero ─────────────────────────── */

.hero { background-image: var(--gradient-brand-bg); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: 56px;
  padding-block: 56px 96px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; padding-block: 80px 112px; }
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid oklch(0.478 0.159 271.4 / 0.15);
  background: oklch(1 0 0 / 0.7);
  font-size: 12px;
  font-weight: 600;
  color: var(--tagline);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
}

.hero-lede {
  margin-top: 20px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-ink);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
}
.hero-price { font-size: 14px; color: var(--muted-ink); }
.hero-price strong { color: var(--heading); }

.hero-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-ink);
}
.hero-note .icon { color: var(--primary); }

/* Phone mockup */
.phone-mock {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 360px;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.phone-mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-image: var(--gradient-primary);
  color: #fff;
}
.phone-mock-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.2);
  font-size: 14px;
  font-weight: 700;
}
.phone-mock-name { font-size: 14px; font-weight: 600; margin: 0; }
.phone-mock-sub { font-size: 11px; opacity: .8; margin: 0; }

.phone-mock-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  background: var(--chat-bg);
}

.bubble {
  opacity: 0;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
  max-width: 82%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--shadow-soft);
}
.bubble-in { align-self: flex-start; background: var(--card); border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--chat-out); border-bottom-right-radius: 4px; }
.bubble-time {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 10px;
  color: var(--muted-ink);
}

.bubble-flag {
  opacity: 0;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--heading);
  font-size: 11px;
  font-weight: 600;
}
.bubble-flag .icon { color: var(--pink); }

.phone-mock-toast {
  opacity: 0;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
  position: absolute;
  left: -16px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .phone-mock-toast { left: -36px; } }
.phone-mock-toast .icon { color: var(--primary); background: var(--primary-soft); border-radius: 10px; padding: 8px; width: 36px; height: 36px; }
.toast-name { font-size: 12px; font-weight: 600; color: var(--heading); margin: 0; }
.toast-sub { font-size: 11px; color: var(--muted-ink); margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────── Sections (shared) ─────────────────────────── */

section { padding-block: 80px; }
@media (min-width: 768px) { section { padding-block: 112px; } }

.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; max-width: 640px; }
.section-title.center { margin-inline: auto; text-align: center; }
.section-sub { margin-top: 12px; color: var(--muted-ink); }
.section-sub.center { text-align: center; }

/* ─────────────────────────── Problemas ─────────────────────────── */

.problem-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin-inline: auto;
}
.problem-row {
  position: relative;
  display: flex;
  gap: 20px;
  padding-block: 28px;
}
.problem-row + .problem-row { border-top: 1px solid var(--border); }
.problem-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--pink);
}
.problem-title { font-weight: 700; font-size: 16px; color: var(--heading); }
.problem-solution { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted-ink); }

/* ─────────────────────────── Recursos ─────────────────────────── */

.features { background: var(--muted); }
.feature-grid { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

.feature-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.feature-card h3 { margin-top: 20px; font-size: 20px; font-weight: 700; }
.feature-card p { margin-top: 8px; color: var(--muted-ink); line-height: 1.6; }

.pill-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--muted);
  font-size: 12px;
  font-weight: 600;
  color: var(--heading);
}
.pill-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.feature-highlight {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-image: var(--gradient-primary);
  color: #fff;
  padding: 32px;
  display: grid;
  gap: 28px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .feature-highlight { grid-template-columns: 1.2fr 1fr; padding: 44px; align-items: center; } }

.feature-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.16);
  font-size: 12px;
  font-weight: 700;
}
.feature-highlight h3 { margin-top: 16px; color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.feature-highlight p { margin-top: 12px; max-width: 480px; color: oklch(1 0 0 / 0.85); line-height: 1.6; }

.transcript { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.transcript li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: oklch(1 0 0 / 0.1);
}
@media (min-width: 640px) { .transcript li { flex-direction: row; align-items: center; justify-content: space-between; } }
.transcript-msg { font-size: 14px; font-style: italic; }
.transcript-action { font-size: 12px; font-weight: 600; color: oklch(1 0 0 / 0.78); }

/* ─────────────────────────── Como funciona ─────────────────────────── */

.step-list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 40px;
  position: relative;
}
@media (min-width: 768px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step-list::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 16.6%;
    right: 16.6%;
    height: 1px;
    background: var(--border);
  }
}
.step-list li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-image: var(--gradient-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.step-list h3 { margin-top: 20px; font-size: 17px; font-weight: 700; }
.step-list p { margin-top: 8px; max-width: 260px; color: var(--muted-ink); line-height: 1.6; }

/* ─────────────────────────── Preço ─────────────────────────── */

.pricing { background-image: var(--gradient-brand-bg); }

.price-card {
  margin: 48px auto 0;
  max-width: 440px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.price-brand { font-size: 14px; font-weight: 600; color: var(--tagline); }
.price-value { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; color: var(--heading); }
.price-period { font-size: 18px; font-weight: 500; color: var(--muted-ink); }
.price-note { margin-top: 4px; font-size: 14px; color: var(--muted-ink); }

.check-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.price-card .btn { margin-top: 36px; }

/* ─────────────────────────── FAQ ─────────────────────────── */

.faq-list { margin-top: 40px; display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid var(--border); padding-block: 4px; }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  color: var(--heading);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -4px; }
.faq-list details p { padding-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--muted-ink); }

/* ─────────────────────────── Footer ─────────────────────────── */

.site-footer { border-top: 1px solid var(--border); background: var(--card); }
.site-footer .wrap { padding-block: 56px; }

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  background: var(--muted);
  padding: 28px;
}
@media (min-width: 768px) {
  .footer-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px; }
}
.footer-cta h2 { font-size: 24px; }
.footer-cta p { margin-top: 4px; color: var(--muted-ink); }

.footer-bottom {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px 24px; font-size: 14px; }
.footer-nav a { color: var(--muted-ink); display: inline-flex; align-items: center; gap: 6px; }
.footer-nav a:hover { color: var(--primary); }

.footer-copy { margin-top: 32px; font-size: 12px; color: var(--muted-ink); }

/* ─────────────────────────── Acessibilidade ─────────────────────────── */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .bubble, .bubble-flag, .phone-mock-toast { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
