/* ==========================================================================
   Aura AI — subpágina. Usa os tokens, botões, cartões e animações de
   ../styles.css e acrescenta só o que é próprio desta página.
   ========================================================================== */

/* ---------- Hero ---------- */
.page-hero {
  max-width: var(--max); margin: 0 auto; padding: 132px var(--pad) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 18px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  transition: color .4s var(--ease);
}
.back-link span { transition: transform .5s var(--ease); }
.back-link:hover { color: var(--ink); }
.back-link:hover span { transform: translateX(-4px); }
.page-hero .hero-title { font-size: clamp(46px, 7.6vw, 124px); }
.page-hero .hero-actions { align-items: center; gap: 12px 24px; }
.hero-owner { text-align: left; font-family: var(--f-mono); font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Tela do produto */
.screen { width: 100%; margin: clamp(56px, 7vw, 96px) 0 0; perspective: 1800px; }
.screen-body {
  position: relative; border-radius: 22px; padding: 10px; text-align: left;
  background: linear-gradient(180deg, #1a1d29, #0d0f16);
  border: 1px solid rgb(255 255 255 / .08);
  box-shadow: 0 2px 4px rgb(0 0 0 / .1), 0 60px 120px -40px rgb(20 30 70 / .55);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--t, 1)) * 22deg)) scale(calc(.92 + var(--t, 1) * .08));
  will-change: transform;
}
/* Brilho azul atrás da tela, herdado da paleta da própria Aura */
.screen-body::before {
  content: ''; position: absolute; inset: 8% 10% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(99 102 241 / .35), transparent); filter: blur(40px);
  opacity: calc(.4 + var(--t, 1) * .6);
}
.screen-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 12px;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8f93a6;
}
.screen-logo { display: inline-flex; align-items: center; gap: 8px; color: #eef0f8; font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.screen-logo i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #7c8cff; box-shadow: 0 0 10px rgb(124 140 255 / .7); }
.screen-img { display: block; overflow: hidden; border-radius: 14px; }
.screen-img img { width: 100%; transition: transform 1.4s var(--ease); }
.screen-img:hover img { transform: scale(1.015); }
.screen figcaption { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.screen figcaption span { color: var(--ink); }

/* Da intenção ao próximo passo */
.intent {
  width: 100%; margin-top: clamp(48px, 6vw, 80px); padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; text-align: left;
}
.intent-title { color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.intent-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; counter-reset: s; }
.intent-steps li {
  counter-increment: s; display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.intent-steps li::before { content: '0' counter(s); color: var(--ink); margin-right: 10px; }
.intent-steps li:not(:last-child)::after { content: ''; width: clamp(24px, 4vw, 56px); height: 1px; margin: 0 16px; background: var(--line-2); }

/* ---------- Galeria de conceitos ---------- */
.tabs {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin-bottom: 22px;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
}
.tabs button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color .4s var(--ease);
}
.tabs button span { font-family: var(--f-mono); font-size: 11px; color: var(--faint); transition: color .4s; }
.tabs button:hover, .tabs button[aria-pressed='true'] { color: var(--ink); }
.tabs button[aria-pressed='true'] span { color: var(--accent); }
.tabs-pill {
  position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; opacity: 0;
  background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 14px -6px rgb(0 0 0 / .2);
  transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s;
}

.frames { padding: 12px; display: grid; gap: 12px; }
.frame { margin: 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.frame-img { display: block; overflow: hidden; border-radius: 18px; background: #0d0f16; aspect-ratio: 4 / 3; }
.frame-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame-img:hover img { transform: scale(1.02); }
.frame figcaption { display: flex; flex-direction: column; gap: 16px; padding: 12px clamp(8px, 2vw, 28px) 12px 0; }
.frame-kicker, .frame-note { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.frame h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.045em; }
.frame p { font-size: 15px; }
.frame-note { margin-top: 8px; }

/* Com JS: os quatro conceitos ocupam o mesmo lugar e trocam com esmaecimento */
.is-enhanced .frames { grid-template-areas: 'stack'; }
.is-enhanced .frame {
  grid-area: stack; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.is-enhanced .frame .frame-img img { transform: scale(1.04); filter: blur(6px); transition: transform 1.2s var(--ease), filter .9s var(--ease); }
.is-enhanced .frame figcaption > * { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-enhanced .frame.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.is-enhanced .frame.is-active .frame-img img { transform: none; filter: none; }
.is-enhanced .frame.is-active figcaption > * { opacity: 1; transform: none; }
.is-enhanced .frame.is-active figcaption > *:nth-child(2) { transition-delay: .08s; }
.is-enhanced .frame.is-active figcaption > *:nth-child(3) { transition-delay: .16s; }
.is-enhanced .frame.is-active figcaption > *:nth-child(4) { transition-delay: .24s; }

.disclaimer { margin-top: 22px; max-width: 46em; font-size: 13px; }

/* ---------- Jornada ---------- */
.journey-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.j-step { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 34px); }
.j-num { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 26px; }
.j-step > p:not(.flow) { font-size: 15px; }
.flow { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.flow span {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
/* Linha tracejada que "corre" entre as etapas */
.flow i {
  width: 26px; height: 1px; flex: none;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px);
  background-size: 14px 1px; animation: dash 1.2s linear infinite;
}
@keyframes dash { to { background-position: 14px 0; } }
.flow .flow-approve { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Estado do projeto ---------- */
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.version { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(26px, 3vw, 40px); }
.version-num { font-size: clamp(88px, 11vw, 168px); font-weight: 600; letter-spacing: -.07em; line-height: .85; margin: 18px 0 10px; color: var(--ink); }
.version:not(.version--next) .version-num { color: var(--em); }
.version p { font-size: 15px; max-width: 34em; }
.version--next::after { opacity: .6; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .frame { grid-template-columns: 1fr; }
  .frame figcaption { padding: 4px 8px 12px; }
  .journey-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { padding-top: 116px; }
  .versions { grid-template-columns: 1fr; }
  .tabs { display: flex; border-radius: 22px; }
  .tabs button { flex: 1 1 45%; justify-content: center; padding: 0 10px; }
  .tabs-pill { display: none; }
  .tabs button[aria-pressed='true'] { background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
  .intent { flex-direction: column; align-items: flex-start; }
  .intent-steps { flex-direction: column; align-items: flex-start; gap: 10px; }
  .intent-steps li:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-body { transform: none; }
}
