/* ==========================================================================
   devware — estilos da landing page
   ========================================================================== */

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-soft: #2B2A28;
  --text: #3E3C38;
  --muted: #5C5A55;
  --line: #E3E1DA;
  --accent: #C2410C;
  --whats: #1F9D55;

  --dark-text: #EDEBE6;
  --dark-body: #CFCCC4;
  --dark-muted: #A8A59D;
  --dark-line: #33322F;

  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --container: 1120px;
  --gutter: 24px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; }

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

strong { font-weight: 600; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* Layout ----------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: 112px; padding-bottom: 112px; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 40rem;
  margin-bottom: 48px;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Typography ------------------------------------------------------------- */

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display em { color: var(--accent); }

.title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow { font-size: 14px; color: var(--muted); }
.lead { font-size: 19px; color: var(--text); max-width: 36rem; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: #FFFFFF; }
.btn--primary:hover { background: var(--ink-soft); }

.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn--ghost:hover { color: var(--accent); }

.btn--light { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn--light:hover { background: var(--dark-text); }

.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--lg { padding: 18px 30px; font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, .82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo span { color: var(--accent); }
.logo--sm { font-size: 14px; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }

.nav__link { position: relative; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 720px) {
  .nav__link { display: none; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 112px;
}

.hero__text { display: flex; flex-direction: column; gap: 26px; }

.hero__note { font-size: 15px; color: var(--muted); }
.hero__note strong { color: var(--ink); }

.hero__visual {
  position: relative;
  padding: 0 0 48px 56px;
}

.hero__photo {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 9 / 11;
  background: var(--line);
}

.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Celular com a página de exemplo */
.phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 190px;
  padding: 8px;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(17, 17, 17, .45);
}

.phone__screen {
  overflow: hidden;
  border-radius: 23px;
  background: var(--bg);
}

.mock__cover {
  height: 112px;
  background-size: cover;
  background-position: center;
}

.mock__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 16px;
}

.mock__name { font-family: var(--font-serif); font-size: 21px; line-height: 1.1; }
.mock__rating { font-size: 10px; color: #E8A317; letter-spacing: 1px; }
.mock__rating span { color: var(--muted); letter-spacing: 0; }
.mock__info { font-size: 10px; color: var(--muted); }

.mock__btn {
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: var(--whats);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.mock__line { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--line); }
.mock__line--short { width: 60%; margin-top: 2px; }

/* Notificação de WhatsApp */
.chat {
  position: absolute;
  top: 28px;
  right: -12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 270px;
}

.chat__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--whats);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.chat__bubble {
  position: relative;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px -16px rgba(17, 17, 17, .35);
  font-size: 14px;
  line-height: 1.4;
}

.chat__typing { display: none; gap: 4px; padding: 6px 2px; }
.chat__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
  }
  .hero__visual { max-width: 460px; width: 100%; margin: 0 auto; padding-left: 40px; }
  .chat { right: 0; }
}

@media (max-width: 480px) {
  .hero__visual { padding-left: 24px; padding-bottom: 36px; }
  .phone { width: 150px; border-radius: 24px; padding: 6px; }
  .phone__screen { border-radius: 19px; }
  .mock__cover { height: 84px; }
  .mock__name { font-size: 17px; }
  .chat { top: 16px; max-width: 220px; }
  .chat__bubble { font-size: 13px; }
}

/* Benefícios ------------------------------------------------------------- */

.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.benefits__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit {
  display: flex;
  gap: 16px;
  padding: 32px 28px 32px 0;
  color: var(--text);
}

.benefit + .benefit { padding-left: 28px; border-left: 1px solid var(--line); }
.benefit strong { color: var(--ink); }
.benefit__n { font-size: 14px; color: var(--accent); padding-top: 3px; }

@media (max-width: 820px) {
  .benefits__inner { grid-template-columns: 1fr; }
  .benefit { padding: 22px 0; }
  .benefit + .benefit { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Galeria ---------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  background: var(--line);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.tile:hover img { transform: scale(1.05); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, .65), rgba(17, 17, 17, 0) 45%);
}

.tile figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
}

@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile figcaption { font-size: 20px; left: 14px; bottom: 12px; }
}

/* Como funciona ---------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.step__n {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.step h3 { margin-top: 8px; font-size: 19px; font-weight: 600; }
.step p { color: var(--text); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* Planos ----------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(17, 17, 17, .25);
}

.plan--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--dark-text);
}

.plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.plan__tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}

.plan__price {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
}

.plan__price span {
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--muted);
}

.plan__note { font-size: 15px; color: var(--muted); }

.plan__list {
  flex-grow: 1;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.plan__list li { padding-left: 24px; position: relative; }
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.plan .btn { margin-top: 20px; align-self: flex-start; }

.plan--featured .plan__price { color: #FFFFFF; }
.plan--featured .plan__price span,
.plan--featured .plan__note { color: var(--dark-muted); }
.plan--featured .plan__list { color: var(--dark-body); }
.plan--featured .plan__list li::before { color: #F59E6B; }

.included {
  margin-top: 28px;
  max-width: 52rem;
  font-size: 15px;
  color: var(--muted);
}
.included strong { color: var(--ink); }

/* FAQ -------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.faq__list { border-top: 1px solid var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform .35s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 40px 22px 0;
  color: var(--text);
}

.faq details[open] p { animation: fade-down .45s var(--ease); }

@media (max-width: 820px) {
  .faq { grid-template-columns: 1fr; gap: 28px; }
}

/* CTA final -------------------------------------------------------------- */

.cta { background: var(--ink); color: #FFFFFF; }

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.display--cta { max-width: 46rem; }
.cta .display em { color: #F59E6B; }

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

.site-footer { background: var(--ink); border-top: 1px solid var(--dark-line); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--dark-muted);
}

.site-footer .logo { color: #FFFFFF; }

/* Animações -------------------------------------------------------------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes photo-in {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: none; }
}

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

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(.92); }
  to   { opacity: 1; transform: none; }
}

@keyframes blink {
  0%, 80%, 100% { opacity: .25; }
  40%           { opacity: 1; }
}

/* Entrada do hero */
.hero__in {
  animation: fade-up .9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 110ms + 100ms);
}

.hero__photo img { animation: photo-in 1.6s var(--ease) both; }
.hero__photo { animation: fade-up 1.1s var(--ease) .2s both; }

.phone {
  animation:
    fade-up 1s var(--ease) .6s both,
    float 7s ease-in-out 1.6s infinite;
}

/* Notificação: aparece, "digitando..." e depois a mensagem */
.chat { animation: pop-in .7s var(--ease) 1.2s both; }

.js .chat__typing { display: inline-flex; }
.js .chat__typing i { animation: blink 1.2s infinite; }
.js .chat__typing i:nth-child(2) { animation-delay: .15s; }
.js .chat__typing i:nth-child(3) { animation-delay: .3s; }
.js .chat__msg { display: none; }
.js .chat.is-done .chat__typing { display: none; }
.js .chat.is-done .chat__msg { display: inline; animation: fade-down .5s var(--ease); }

/* Revelar ao rolar */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Tile: a foto "abre" ao aparecer */
.js .tile[data-reveal] img { transform: scale(1.12); }
.js .tile[data-reveal].is-visible img { transform: none; }
.js .tile[data-reveal].is-visible:hover img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .tile[data-reveal] img { transform: none; }
  .js .chat__typing { display: none; }
  .js .chat__msg { display: inline; }
}

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section__head { margin-bottom: 32px; }
  .lead { font-size: 17px; }
  .plan { padding: 26px; }
  .plan__price { font-size: 52px; }
  .cta__inner { padding-top: 88px; padding-bottom: 88px; }
}

/* Mantém o "levantar" dos cartões depois da animação de entrada */
.js .plan[data-reveal].is-visible:hover { transform: translateY(-4px); transition-delay: 0s; }
