/* ============================================================
   VISTORIA.AI — Landing Page (main.css)
   Requer common.css carregado antes
   ============================================================ */

:root { --maxw: 1120px; }

body { line-height: 1.7; }

/* ---- Eyebrow override (margem maior no hero da landing) ---- */
.eyebrow { margin: 0 0 1.5rem; }

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(130% 120% at 88% 8%, var(--daintree-3) 0%, var(--daintree) 52%, #00181f 100%);
  color: var(--silver);
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 12vw, 8rem) var(--pad-x) clamp(4rem, 10vw, 7rem);
}
.hero::after {
  content: "";
  position: absolute;
  width: 680px; height: 680px;
  right: -220px; bottom: -340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.26) 0%, transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.hero__text { flex: 1; min-width: 280px; }
.hero__side  { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.hero h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 17ch;
}
.hero__desc {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: rgba(241, 241, 241, 0.68);
  max-width: 52ch;
  line-height: 1.65;
  margin: 0 0 2.8rem;
}
.hero__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
}

/* ---- Store buttons ---- */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s;
}
.btn-store::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s;
  border-radius: inherit;
  background: rgba(255,255,255,0.08);
}
.btn-store:hover::before { opacity: 1; }
.btn-store:hover { transform: translateY(-3px); }
.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.btn-store__label { display: flex; flex-direction: column; line-height: 1.25; position: relative; }
.btn-store__sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.72;
}
.btn-store--play {
  background: linear-gradient(135deg, #f59c1a 0%, var(--romesco) 55%, #d97504 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(245,138,4,0.38), 0 1px 4px rgba(0,0,0,0.25);
}
.btn-store--play:hover { box-shadow: 0 10px 36px rgba(245,138,4,0.5), 0 2px 8px rgba(0,0,0,0.25); }
.btn-store--apple {
  background: rgba(1,42,54,0.55);
  color: rgba(241,241,241,0.75);
  border: 1.5px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: default;
  pointer-events: none;
}
.btn-store--apple .btn-store__sub { opacity: 0.5; }
.soon-badge {
  position: absolute;
  top: -1px; right: -1px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,174,71,0.18);
  color: var(--romesco-soft);
  border: 1px solid rgba(255,174,71,0.28);
  padding: 0.18em 0.55em;
  border-radius: 0 16px 0 8px;
  line-height: 1.6;
}

/* ============ FLOW ============ */
.flow {
  background: var(--daintree);
  color: var(--silver);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
}
.flow::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  left: -200px; top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132,184,24,0.13) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.flow::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.1) 0%, transparent 65%);
  filter: blur(18px);
  pointer-events: none;
}
.flow__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.flow__header { text-align: center; margin-bottom: clamp(2.8rem, 7vw, 4.5rem); }
.flow__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--romesco);
  margin: 0 0 1rem;
}
.flow__eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--romesco); border-radius: 50%; }
.flow h2 { margin: 0 0 0.6rem; font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; color: var(--silver); line-height: 1.06; }
.flow__sub { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(241,241,241,0.38); text-transform: uppercase; margin: 0; }

/* ---- Step animations ---- */
@keyframes stepIn {
  from { opacity: 0; transform: translateY(56px) scale(0.88); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepActivate {
  0%   { border-color: rgba(245,138,4,0.22); background: rgba(245,138,4,0.07); color: rgba(255,174,71,0.78); box-shadow: none; }
  5%   { border-color: var(--romesco); background: rgba(245,138,4,0.26); color: var(--romesco-soft); box-shadow: 0 0 28px rgba(245,138,4,0.5); }
  22%  { border-color: rgba(245,138,4,0.3); background: rgba(245,138,4,0.1); box-shadow: 0 0 8px rgba(245,138,4,0.12); }
  38%  { border-color: rgba(245,138,4,0.22); background: rgba(245,138,4,0.07); color: rgba(255,174,71,0.78); box-shadow: none; }
  100% { border-color: rgba(245,138,4,0.22); background: rgba(245,138,4,0.07); color: rgba(255,174,71,0.78); box-shadow: none; }
}
@keyframes labelActivate {
  0%   { color: rgba(241,241,241,0.62); }
  5%   { color: var(--romesco-soft); }
  22%  { color: rgba(241,241,241,0.75); }
  38%  { color: rgba(241,241,241,0.62); }
  100% { color: rgba(241,241,241,0.62); }
}
.flow.is-visible .step__icon  { animation: stepActivate 5s linear infinite; animation-delay: calc(2s + var(--i,0)*5s/6); }
.flow.is-visible .step__label { animation: labelActivate 5s linear infinite; animation-delay: calc(2s + var(--i,0)*5s/6); }

/* ---- Steps layout ---- */
.steps-track { position: relative; padding-top: 0.25rem; overflow: visible; }
.steps-svg   { position: absolute; left: 0; pointer-events: none; z-index: 0; overflow: visible; }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  padding: 0 0.4rem;
  opacity: 0;
}
.flow.is-visible .step { animation: stepIn 0.65s cubic-bezier(0.16,1,0.3,1) both; animation-delay: calc(var(--i,0)*0.11s + 0.2s); }
.step__num { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; color: var(--romesco); margin: 0 0 0.55rem; opacity: 0.65; line-height: 1; }
.step--last .step__num { opacity: 1; }
.step__badge { position: relative; width: 86px; height: 86px; margin: 0 auto 0.95rem; flex-shrink: 0; }
.step__ghost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 3.6rem; font-weight: 800; color: rgba(245,138,4,0.09); letter-spacing: -0.08em; line-height: 1; pointer-events: none; user-select: none; }
.step__icon { width: 86px; height: 86px; border-radius: 50%; border: 1.5px solid rgba(245,138,4,0.22); background: rgba(245,138,4,0.07); display: flex; align-items: center; justify-content: center; color: rgba(255,174,71,0.78); position: absolute; inset: 0; transition: background 0.28s, border-color 0.28s, color 0.28s; }
.step__icon::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(245,138,4,0); transition: border-color 0.3s, inset 0.3s; }
.step:hover .step__icon::before { inset: -10px; border-color: rgba(245,138,4,0.25); }
.step:hover .step__icon { background: rgba(245,138,4,0.16); border-color: rgba(245,138,4,0.7); color: var(--romesco-soft); }
.step__icon svg { width: 28px; height: 28px; display: block; position: relative; z-index: 1; }
.step__label { font-size: 0.82rem; font-weight: 600; color: rgba(241,241,241,0.65); line-height: 1.38; max-width: 11ch; }

/* ============ CREDENCIAMENTO ============ */
.cred {
  background: var(--paper-card);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cred::before { content: ""; position: absolute; width: 500px; height: 500px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(245,138,4,0.07) 0%, transparent 65%); filter: blur(24px); pointer-events: none; }
html[data-theme="dark"] .cred { background: var(--daintree-2); border-color: var(--rule); }
html[data-theme="dark"] .cred::before { background: radial-gradient(circle, rgba(245,138,4,0.13) 0%, transparent 65%); }
.cred__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; }
.cred__text { flex: 1; min-width: 260px; }
.cred__eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--romesco); margin: 0 0 1rem; }
.cred__eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--romesco); border-radius: 50%; }
.cred h2 { margin: 0 0 0.9rem; font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; text-wrap: balance; }
html[data-theme="dark"] .cred h2 { color: var(--silver); }
.cred__desc { margin: 0; font-size: clamp(0.92rem,1.5vw,1.05rem); color: var(--ink-soft); line-height: 1.65; max-width: 52ch; }
html[data-theme="dark"] .cred__desc { color: rgba(241,241,241,0.65); }
.cred__action { flex-shrink: 0; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 0.85rem; padding: 1rem 1.7rem; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; color: #fff; background: linear-gradient(135deg, #2ecc71 0%, #25a55a 100%); box-shadow: 0 4px 28px rgba(37,165,90,0.32), 0 1px 6px rgba(0,0,0,0.12); transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s; position: relative; overflow: hidden; white-space: nowrap; }
.btn-whatsapp::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background 0.2s; border-radius: inherit; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(37,165,90,0.48), 0 2px 8px rgba(0,0,0,0.2); }
.btn-whatsapp:hover::before { background: rgba(255,255,255,0.07); }
.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.btn-whatsapp__label { display: flex; flex-direction: column; line-height: 1.25; position: relative; }
.btn-whatsapp__sub { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.75; }

/* ============ DOCS ============ */
.docs { padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x); background: var(--paper); }
.docs__inner { max-width: var(--maxw); margin: 0 auto; }
.docs__header { margin-bottom: clamp(2rem, 5vw, 3rem); }
.docs__eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--romesco); margin: 0 0 0.9rem; }
.docs__eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--romesco); border-radius: 50%; }
.docs h2 { margin: 0; font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
html[data-theme="dark"] .docs h2 { color: var(--silver); }
.docs__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.15rem; }
.doc-card { background: var(--paper-card); border: 1px solid var(--rule); border-radius: 20px; padding: 1.6rem 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 0; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s; position: relative; overflow: hidden; }
.doc-card::after { content: ""; position: absolute; inset: 0; border-radius: 20px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.doc-card:hover { border-color: rgba(245,138,4,0.4); box-shadow: 0 8px 32px rgba(1,42,54,0.1); transform: translateY(-3px); }
html[data-theme="dark"] .doc-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
.doc-card__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; flex-shrink: 0; }
.doc-card__icon svg { width: 20px; height: 20px; display: block; }
.doc-card--privacy .doc-card__icon { background: rgba(245,138,4,0.1);  color: var(--romesco); }
.doc-card--terms   .doc-card__icon { background: rgba(43,58,143,0.1);  color: var(--vistoria-blue); }
.doc-card--manual  .doc-card__icon { background: rgba(66,92,12,0.1);   color: var(--green-1); }
html[data-theme="dark"] .doc-card--terms  .doc-card__icon { color: #7b8ff5; background: rgba(123,143,245,0.12); }
html[data-theme="dark"] .doc-card--manual .doc-card__icon { color: #a2c951; background: rgba(162,201,81,0.1); }
.doc-card__label { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 0.45rem; }
.doc-card--privacy .doc-card__label { color: var(--romesco); }
.doc-card--terms   .doc-card__label { color: var(--vistoria-blue); }
.doc-card--manual  .doc-card__label { color: var(--green-1); }
html[data-theme="dark"] .doc-card--terms  .doc-card__label { color: #7b8ff5; }
html[data-theme="dark"] .doc-card--manual .doc-card__label { color: #a2c951; }
.doc-card h3 { margin: 0 0 0.55rem; font-size: clamp(0.95rem,1.8vw,1.07rem); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
html[data-theme="dark"] .doc-card h3 { color: var(--silver); }
.doc-card__desc { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 1.4rem; flex: 1; }
.doc-card__link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); transition: color 0.2s, gap 0.2s; margin-top: auto; }
.doc-card:hover .doc-card__link { gap: 0.65rem; }
.doc-card--privacy:hover .doc-card__link { color: var(--romesco); }
.doc-card--terms:hover   .doc-card__link { color: var(--vistoria-blue); }
.doc-card--manual:hover  .doc-card__link { color: var(--green-1); }
html[data-theme="dark"] .doc-card--terms:hover  .doc-card__link { color: #7b8ff5; }
html[data-theme="dark"] .doc-card--manual:hover .doc-card__link { color: #a2c951; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .docs__grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .doc-card { flex-direction: row; align-items: flex-start; gap: 1.2rem; padding: 1.3rem 1.4rem; }
  .doc-card__icon { margin-bottom: 0; flex-shrink: 0; }
  .doc-card__body { display: flex; flex-direction: column; flex: 1; }
  .doc-card__desc { margin-bottom: 0.8rem; }
}
@media (max-width: 760px) {
  .steps-svg { display: none; }
  .steps { flex-direction: column; align-items: stretch; overflow: visible; gap: 0; padding-bottom: 0; }
  .step { flex-direction: row; align-items: center; text-align: left; max-width: none; min-width: 0; width: 100%; padding: 0 0 1.6rem 0; gap: 1.1rem; position: relative; opacity: 1; }
  .step:not(.step--last)::after { content: ""; position: absolute; left: 27px; top: 54px; bottom: 0; width: 1.5px; background: rgba(245,138,4,0.2); }
  .step__num { display: none; }
  .step__badge { width: 54px; height: 54px; margin: 0; flex-shrink: 0; order: 0; }
  .step__icon { width: 54px; height: 54px; }
  .step__icon svg { width: 20px; height: 20px; }
  .step__ghost { font-size: 2.6rem; }
  .step__label { order: 1; max-width: none; font-size: 0.88rem; color: rgba(241,241,241,0.75); }
  .flow.is-visible .step        { animation: none; }
  .flow.is-visible .step__icon  { animation: none; }
  .flow.is-visible .step__label { animation: none; color: rgba(241,241,241,0.75); }
}
@media (max-width: 640px) {
  .hero__inner { flex-direction: column; gap: 0; }
  .hero__side  { width: 100%; }
  .hero__desc  { margin-bottom: 1.6rem; }
  .cred__inner { flex-direction: column; align-items: flex-start; }
  .btn-whatsapp { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .btn-store { width: 100%; max-width: 300px; }
  .doc-card { flex-direction: column; }
  .doc-card__icon { margin-bottom: 0.8rem; }
}
