/* ============================================================
   CodeJato Styles v2 — redesign mobile-first
   Spec: .context/redesign-spec.md v1 (2026-06-03)
   Evolves from styles.css — keeps all tokens, animations, and
   @layer structure; adds new tokens, section classes, and
   component sub-classes per the spec contract.
   ============================================================ */

@layer reset, base, layout, components, utilities, animations;

/* -------------- Design tokens ----------------------------- */
:root {
  /* Cores brand — inalteradas */
  --orange-500: #F94E03;
  --orange-600: #FF8C00;
  --orange-tint-04: rgba(249, 78, 3, 0.04);
  --orange-tint-08: rgba(249, 78, 3, 0.08);
  --orange-tint-15: rgba(249, 78, 3, 0.15);
  --orange-tint-22: rgba(249, 78, 3, 0.22);
  --orange-tint-30: rgba(249, 78, 3, 0.30);

  /* Neutros — inalterados */
  --black: #050505;
  --white: #FFFFFF;
  --cream-bg: #FAF8F2;
  --cream2-bg: #F5F0E8;
  --gray-text: #E0E0DA;
  --gray-mute-65: rgba(224, 224, 218, 0.65);
  --gray-mute-40: rgba(224, 224, 218, 0.40);
  --black-mute-65: rgba(0, 0, 0, 0.65);
  --black-mute-40: rgba(0, 0, 0, 0.40);

  /* Cards escuros — inalterados */
  --card-dark: linear-gradient(145deg, #1E1407, #150E04);
  --card-border-orange: rgba(249, 78, 3, 0.30);

  /* Fontes */
  --font-stack: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sombras assinatura (neo-brutalist offset) — existentes */
  --shadow-3d-sm: 0 3px 0 var(--black), 0 6px 12px rgba(0, 0, 0, 0.15);
  --shadow-3d-md: 0 4px 0 var(--black);
  --shadow-3d-lg: 0 6px 0 var(--black);

  /* Sombras novas — spec §3.5 */
  --shadow-3d-xl: 0 8px 0 var(--black);
  --shadow-glow-orange: 0 0 0 4px rgba(249, 78, 3, 0.15), 0 20px 60px rgba(249, 78, 3, 0.25);

  /* Gradient progress bar */
  --gradient-progress: linear-gradient(90deg, var(--orange-500), var(--orange-600));

  /* Easings */
  --ease-out-soft: cubic-bezier(.22, .61, .36, 1);

  /* Topbar height */
  --topbar-h: 4.5rem;

  /* Escala tipográfica — spec §3.1 */
  --t-display: clamp(2.5rem, 6vw, 4rem);
  --t-hero: clamp(2rem, 5vw, 3.6rem);
  --t-section: clamp(1.75rem, 4.2vw, 2.75rem);
  --t-card-title: clamp(1.15rem, 2.5vw, 1.4rem);
  --t-body: clamp(1rem, 2vw, 1.125rem);
  --t-label: clamp(0.75rem, 1.5vw, 0.8rem);
  --t-micro: clamp(0.72rem, 1.2vw, 0.75rem);
  --t-overline: clamp(0.65rem, 1vw, 0.7rem);

  /* Escala de espaçamento — spec §3.3 */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  /* Tokens de raio — spec §3.4 */
  --radius-pill: 9999px;
  --radius-card: 1rem;
  --radius-badge: 0.5rem;
  --radius-chip: 0.25em;
  --radius-none: 0;
}

html { scroll-padding-top: var(--topbar-h); }
section[id] { scroll-margin-top: var(--topbar-h); }

/* -------------- Reset ------------------------------------- */
@layer reset {
  *,
  *::before,
  *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    -webkit-font-smoothing: antialiased;
    background: var(--white);
    color: #111;
    font-family: var(--font-stack);
    line-height: 1.5;
  }

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

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

  /* Garante que [hidden] vença regras de display de componentes (ex.: .btn-cartoon) */
  [hidden] { display: none !important; }

  button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

  html,
  body { overflow-x: hidden; }

  :focus-visible { border-radius: 4px; outline: 2px solid var(--orange-500); outline-offset: 2px; }
}

/* -------------- Base type --------------------------------- */
@layer base {
  /* Passos tipográficos existentes */
  .t-hero {
    font-size: var(--t-hero);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
  }

  .t-section {
    font-size: var(--t-section);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.18;
  }

  .t-body {
    font-size: var(--t-body);
    line-height: 1.7;
  }

  /* Passos tipográficos novos — spec §3.1 */
  .t-card-title {
    font-size: var(--t-card-title);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
  }

  .t-label {
    font-size: var(--t-label);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
  }

  .t-micro {
    font-size: var(--t-micro);
    letter-spacing: 0.04em;
    line-height: 1.5;
  }

  .t-overline {
    font-size: var(--t-overline);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  /* Utilitários de cor/bg existentes */
  .c-orange { color: var(--orange-500); }
  .bg-black { background: var(--black); color: var(--gray-text); }
  .bg-cream { background: var(--cream-bg); }
  .bg-cream2 { background: var(--cream2-bg); }
  .text-center { text-align: center; }

  /* Ritmo vertical das seções — base mobile */
  .section-py { padding-block: var(--space-48); }

  @media (min-width: 768px) {
    .section-py { padding-block: var(--space-80); }
  }
}

/* -------------- Layout ------------------------------------ */
@layer layout {
  .container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    width: 100%;
  }

  .container-md {
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    width: 100%;
  }

  .container-sm {
    margin: 0 auto;
    max-width: 760px;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    width: 100%;
  }

  /* Grid base: 1 coluna em mobile */
  .grid2 { display: grid; gap: var(--space-16); grid-template-columns: 1fr; }

  .grid3 { display: grid; gap: var(--space-16); grid-template-columns: 1fr; }

  /* Grid bento — seção comparativo — spec §5.6 */
  .grid-bento {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    justify-content: center;
    margin: var(--space-40) auto 0;
    max-width: 620px;
  }

  @media (min-width: 480px) {
    .grid2 { gap: var(--space-24); }
    .grid3 { gap: var(--space-24); }
  }

  @media (min-width: 768px) {
    .grid2 { grid-template-columns: 1fr 1fr; }
    .grid3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
  }

  @media (min-width: 960px) {
    .grid3 { gap: var(--space-32); }
  }
}

/* -------------- Hero ---------------------------------------- */
@layer components {
  #hero {
    background: var(--white);
    overflow: hidden;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-top: calc(var(--topbar-h) + var(--space-40));
    position: relative;
  }

  /* Mobile: coluna única */
  .hero-wrap {
    align-items: center;
    display: grid;
    gap: var(--space-32);
    grid-template-columns: 1fr;
    position: relative;
  }

  /* Desktop: 2 colunas */
  @media (min-width: 768px) {
    #hero { padding-top: calc(var(--topbar-h) + var(--space-80)); }

    .hero-wrap {
      gap: clamp(2rem, 5vw, 4rem);
      grid-template-columns: 1.15fr 1fr;
    }
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    min-width: 0;
  }

  @media (min-width: 768px) {
    .hero-text { gap: var(--space-20); }
  }

  .hero-logo { display: block; margin-bottom: 0.25rem; width: 180px; }

  @media (min-width: 768px) {
    .hero-logo { width: 220px; }
  }

  .hero-sub { color: #333; max-width: 580px; }

  .hero-cta-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    margin-top: 0.5rem;
  }

  .hero-micro {
    color: #666;
    font-size: var(--t-micro);
    font-weight: 600;
  }

  /* Visual terminal */
  .hero-visual {
    background: var(--card-dark);
    border: 2px solid var(--black);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-3d-lg);
    min-height: 260px;
    overflow: hidden;
    position: relative;
  }

  @media (min-width: 768px) {
    .hero-visual { min-height: 320px; }
  }

  .hero-visual__bar {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(249, 78, 3, 0.15);
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .hero-visual__bar span {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    height: 12px;
    width: 12px;
  }

  .hero-visual__bar span:nth-child(1) { background: #FF5F56; }
  .hero-visual__bar span:nth-child(2) { background: #FFBD2E; }
  .hero-visual__bar span:nth-child(3) { background: #27C93F; }

  .hero-visual__code {
    color: var(--gray-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.65;
    padding: 1.25rem 1.5rem;
    white-space: pre-wrap;
  }

  .hero-visual__code .ac { color: var(--orange-500); font-weight: 700; }
  .hero-visual__code .ok { color: #27C93F; font-weight: 700; }
  .hero-visual__code .dim { color: rgba(224, 224, 218, 0.45); }
  .hero-visual__code .cursor { animation: cursor-blink 1s steps(2) infinite; }

  .hero-visual__badge {
    background: var(--orange-500);
    border: 2px solid var(--black);
    border-radius: 0.75rem;
    bottom: -16px;
    box-shadow: var(--shadow-3d-md);
    color: var(--white);
    padding: 0.65rem 1rem;
    position: absolute;
    right: -8px;
    transform: rotate(-3deg);
  }

  .hero-visual__badge strong { display: block; font-size: 1.15rem; font-weight: 900; }
  .hero-visual__badge span { display: block; font-size: 0.65rem; font-weight: 600; opacity: 0.9; }

  /* Claude Code symbol — oculto em mobile */
  .claude-code-symbol {
    animation: claude-code-dance 2.8s ease-in-out infinite;
    display: none;
    pointer-events: none;
    position: absolute;
    transform-origin: center;
  }

  @media (min-width: 768px) {
    .claude-code-symbol { display: block; }
  }

  .claude-code-symbol__mark {
    animation: claude-code-pulse 1.4s ease-in-out infinite;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    width: 100%;
  }
}

/* -------------- Components gerais ------------------------- */
@layer components {

  /* Top bar fixo */
  .top-bar {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    left: 0;
    padding: 0.75rem clamp(1rem, 3vw, 1.5rem);
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 50;
  }

  .top-bar__inner {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
  }

  .top-bar__actions {
    align-items: center;
    display: flex;
    gap: var(--space-12);
  }

  /* Esconder price badge em telas pequenas */
  @media (max-width: 519px) {
    .top-bar__price { display: none; }
  }

  /* Badge 3D — neo-brutalist glass */
  .badge-3d {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid var(--black);
    border-radius: var(--radius-badge);
    box-shadow: var(--shadow-3d-sm);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--t-micro);
    font-weight: 600;
    min-height: 44px;
    padding: 0.5rem 1rem;
    pointer-events: auto;
    white-space: nowrap;
  }

  .badge-3d__icon { display: inline-flex; align-items: center; justify-content: center; }
  .badge-3d__icon svg,
  .badge-3d__icon img { height: 16px; width: 16px; }

  .top-bar__trial,
  .top-bar__doc {
    background: var(--orange-500);
    color: var(--white);
    font-weight: 800;
    transition: box-shadow 0.15s var(--ease-out-soft), transform 0.15s var(--ease-out-soft);
  }

  .top-bar__trial:hover,
  .top-bar__doc:hover {
    box-shadow: 0 1px 0 var(--black), 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(2px);
  }

  .top-bar__trial:focus-visible { outline-color: var(--orange-500); }

  @media (max-width: 639px) {
    .top-bar__doc { display: none; }
  }

  /* Botão Entrar — glass branco (default badge-3d), sempre visível */
  .top-bar__login {
    font-weight: 800;
    transition: box-shadow 0.15s var(--ease-out-soft), transform 0.15s var(--ease-out-soft);
  }
  .top-bar__login:hover {
    box-shadow: 0 1px 0 var(--black), 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(2px);
  }
  .top-bar__login:focus-visible { outline-color: var(--orange-500); }

  /* Botão cartoon (CTA principal) */
  .btn-cartoon {
    align-items: center;
    background: var(--orange-500);
    border: 2px solid var(--black);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-3d-md);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-stack);
    font-size: 1rem;
    font-weight: 700;
    gap: 0.75rem;
    justify-content: center;
    letter-spacing: 0.02em;
    padding: 1rem 2rem;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: box-shadow 0.15s var(--ease-out-soft), transform 0.15s var(--ease-out-soft);
  }

  .btn-cartoon:hover { box-shadow: 0 2px 0 var(--black); transform: translateY(2px); }
  .btn-cartoon:active { box-shadow: 0 0 0 var(--black); transform: translateY(4px); }
  .btn-cartoon--full { max-width: 520px; width: 100%; }
  .btn-cartoon--xl { font-size: 1.125rem; padding: 1.25rem 2.75rem; }
  .btn-cartoon--ghost { background: transparent; color: var(--black); }

  /* Cards escuros */
  .card-dark {
    background: var(--card-dark);
    border: 2px solid var(--card-border-orange);
    border-radius: var(--radius-card);
    overflow: hidden;
    padding: 1.5rem 1.25rem;
    position: relative;
    text-align: center;
  }

  @media (min-width: 768px) {
    .card-dark { padding: 2rem 1.75rem; }
  }

  /* Featured card: sem transform em mobile, com transform em desktop */
  .card-dark--featured {
    border-color: var(--orange-500);
    box-shadow: var(--shadow-glow-orange), var(--shadow-3d-xl);
    position: relative;
    z-index: 2;
  }

  @media (min-width: 768px) {
    .card-dark--featured { transform: translateY(-8px) scale(1.02); }
  }

  /* Card light (comparativo) */
  .card-light {
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    border-radius: var(--radius-card);
    flex: 1;
    min-width: 220px;
    padding: var(--space-20);
  }

  .card-light--accent {
    background: var(--orange-tint-08);
    border-color: var(--orange-tint-30);
    box-shadow: 0 4px 20px rgba(249, 78, 3, 0.08);
  }

  /* Card-light sub-classes — spec §5.6 */
  .card-light__kicker {
    margin-bottom: 14px;
  }

  .card-light__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
  }

  .card-light__row {
    align-items: center;
    display: flex;
    gap: var(--space-8);
  }

  .card-light__check { font-weight: 900; }

  .card-light--vs .card-light__check { color: rgba(0, 0, 0, 0.22); }
  .card-light--accent .card-light__check { color: var(--orange-500); }

  .card-light__text { font-size: 0.78rem; }

  .card-light--vs .card-light__text {
    color: rgba(0, 0, 0, 0.4);
    text-decoration: line-through;
  }

  .card-light--accent .card-light__text {
    color: var(--black);
    font-weight: 600;
  }

  /* Features ticker */
  .features-ticker {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: var(--space-32);
    overflow: hidden;
    padding: var(--space-16) 0;
  }

  .features-track {
    animation: marquee-left 40s linear infinite;
    display: inline-flex;
    gap: var(--space-32);
    white-space: nowrap;
  }

  .features-item { color: var(--black); font-size: 0.85rem; font-weight: 700; }

  /* Trust bar */
  .trust-bar {
    background: var(--black);
    border-bottom: 1px solid var(--orange-tint-15);
    border-top: 1px solid var(--orange-tint-15);
    padding: 0.85rem 0;
  }

  .trust-bar__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3rem);
    justify-content: center;
  }

  .trust-bar__item { align-items: center; display: flex; gap: 0.45rem; }
  .trust-bar__val { color: var(--orange-500); font-size: 1rem; font-weight: 900; }

  .trust-bar__lbl {
    color: var(--gray-mute-65);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .trust-bar__sep { background: var(--orange-tint-22); flex-shrink: 0; height: 20px; width: 1px; }

  /* ---- Seção comparativo — spec §5.6 ---- */
  .section-comparison {
    background: var(--cream-bg);
    overflow: hidden;
    padding-block: var(--space-48);
    position: relative;
  }

  @media (min-width: 768px) {
    .section-comparison { padding-block: var(--space-80); }
  }

  .comparison-hook {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.55;
    margin: var(--space-24) auto 0;
    max-width: 640px;
  }

  /* ---- Seção "Como funciona" (steps) — spec §5.7 ---- */
  .section-steps {
    background: var(--black);
    overflow: hidden;
    padding-block: var(--space-48);
    position: relative;
  }

  @media (min-width: 768px) {
    .section-steps { padding-block: var(--space-80); }
  }

  .steps-header { margin-bottom: var(--space-40); text-align: center; }

  /* Step card: numeral decorativo como ::before */
  .step-card {
    overflow: visible;
    padding: 1.5rem 1.25rem;
    position: relative;
    text-align: left;
  }

  @media (min-width: 768px) {
    .step-card { padding: 2rem 1.75rem; }
  }

  .step-card::before {
    -webkit-text-stroke: 1px rgba(249, 78, 3, 0.12);
    color: transparent;
    content: attr(data-step);
    font-family: var(--font-stack);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: -8px;
    user-select: none;
  }

  .step-card__kicker {
    color: var(--orange-500);
    margin-bottom: var(--space-8);
  }

  .step-card__title {
    color: var(--gray-text);
    margin-bottom: var(--space-8);
  }

  .step-card__body {
    color: var(--gray-mute-65);
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .step-card__code {
    background: rgba(249, 78, 3, 0.1);
    border-radius: var(--radius-chip);
    color: var(--orange-500);
    padding: 0.15em 0.4em;
  }

  /* ---- Seção uso ilimitado — spec §5.8 ---- */
  .section-unlimited {
    background: var(--cream2-bg);
    overflow: hidden;
    padding-block: var(--space-48);
    position: relative;
  }

  @media (min-width: 768px) {
    .section-unlimited { padding-block: var(--space-80); }
  }

  .section-unlimited__kicker {
    color: rgba(249, 78, 3, 0.85);
    margin-bottom: var(--space-12);
  }

  /* ---- Pricing — plan card sub-classes — spec §5.9 ---- */
  .pricing-header { margin-bottom: var(--space-32); text-align: center; }

  @media (min-width: 768px) {
    .pricing-header { margin-bottom: var(--space-40); }
  }

  .plan-card {
    position: relative;
    text-align: left;
  }

  .plan-card__badge {
    background: var(--orange-500);
    border-radius: var(--radius-pill);
    color: var(--white);
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-16);
    padding: 5px 14px;
    text-transform: uppercase;
  }

  .plan-card__tier {
    color: rgba(249, 78, 3, 0.75);
    margin-bottom: var(--space-12);
  }

  .plan-card__name {
    color: var(--gray-text);
    margin-bottom: 4px;
  }

  .plan-card__devices {
    color: var(--gray-mute-40);
    font-size: 0.85rem;
    margin-bottom: var(--space-20);
  }

  .plan-card__price-was {
    color: var(--gray-mute-40);
    font-size: 0.75rem;
    margin-bottom: 4px;
    text-decoration: line-through;
  }

  .plan-card__price {
    color: var(--orange-500);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
  }

  .plan-card__price-unit {
    color: var(--gray-mute-40);
    font-size: 1rem;
    font-style: normal;
  }

  .plan-card__billing {
    color: var(--gray-mute-40);
    font-size: 0.72rem;
    font-weight: 600;
    margin: 6px 0 var(--space-24);
  }

  .plan-card__features {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    gap: 10px;
    list-style: none;
    margin-bottom: var(--space-24);
  }

  .plan-card__feature { align-items: center; display: flex; gap: var(--space-8); }
  .plan-card__check { color: var(--orange-500); font-weight: 900; }

  .plan-card__price--contact {
    color: var(--orange-500);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
  }

  .pricing-toggle-wrap {
    display: flex;
    gap: var(--space-8);
    justify-content: center;
    margin-bottom: var(--space-32);
  }

  .pricing-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    color: rgba(224, 224, 218, 0.55);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 20px;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
  }

  .pricing-toggle--active {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
  }

  .pricing-toggle__save {
    background: rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    margin-left: 6px;
    padding: 2px 7px;
  }

  /* ---- Trial form — spec §5.10 ---- */
  .section-trial {
    background: var(--cream-bg);
    padding-block: var(--space-48);
    position: relative;
  }

  @media (min-width: 768px) {
    .section-trial { padding-block: var(--space-80); }
  }

  .trial-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    margin: 0 auto;
    max-width: 480px;
  }

  .form-field {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-badge);
    color: var(--black);
    font-family: inherit;
    font-size: 1rem;
    padding: var(--space-16) var(--space-20);
    width: 100%;
  }

  .form-field:focus {
    border-color: var(--orange-500);
    outline: 2px solid var(--orange-500);
    outline-offset: 2px;
  }

  .form-field:invalid:not(:placeholder-shown) { border-color: #c00; }

  .trial-submit {
    min-height: 56px;
  }

  .trial-submit[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
  }

  .trial-submit[disabled]:hover {
    box-shadow: var(--shadow-3d-md);
    transform: none;
  }

  /* ---- FAQ — spec §5.11 ---- */
  .section-faq {
    background: var(--cream2-bg);
    overflow: hidden;
    padding-block: var(--space-48);
    position: relative;
  }

  @media (min-width: 768px) {
    .section-faq { padding-block: var(--space-80); }
  }

  .faq-header { margin-bottom: var(--space-32); text-align: center; }

  .faq-item {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-3d-md);
    margin-bottom: var(--space-16);
  }

  .faq-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: space-between;
    list-style: none;
    min-height: 44px;
    padding: var(--space-16) var(--space-20);
  }

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

  .faq-summary:hover { background: rgba(249, 78, 3, 0.04); }

  .faq-summary:focus-visible {
    border-radius: 0.75rem;
    outline: 2px solid var(--orange-500);
    outline-offset: 2px;
  }

  .faq-icon {
    color: var(--orange-500);
    font-size: 1.5rem;
    font-weight: 900;
    transition: transform 0.2s ease;
  }

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

  .faq-body {
    color: var(--black-mute-65);
    line-height: 1.7;
    padding: 0 var(--space-20) var(--space-20);
  }

  .faq-body code {
    background: rgba(249, 78, 3, 0.1);
    border-radius: var(--radius-chip);
    color: var(--orange-500);
    padding: 2px 6px;
  }

  /* ---- Final CTA — spec §5.12 ---- */
  .section-final-cta {
    background: var(--black);
    overflow: hidden;
    padding-block: var(--space-48);
    position: relative;
  }

  @media (min-width: 768px) {
    .section-final-cta { padding-block: var(--space-80); }
  }

  .final-cta__kicker {
    color: rgba(249, 78, 3, 0.75);
    margin-bottom: var(--space-16);
  }

  .final-cta__heading {
    color: var(--gray-text);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.25;
    margin: 0 auto var(--space-24);
    max-width: 640px;
  }

  .final-cta__sub {
    color: var(--gray-mute-65);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto var(--space-32);
    max-width: 500px;
  }

  .final-cta__cta { margin-bottom: var(--space-24); }

  .final-cta__guarantee {
    align-items: center;
    background: rgba(249, 78, 3, 0.08);
    border: 1.5px solid rgba(249, 78, 3, 0.25);
    border-radius: 0.75rem;
    display: inline-flex;
    gap: var(--space-12);
    margin: 0 auto;
    padding: var(--space-12) var(--space-24);
  }

  .final-cta__guarantee-title {
    color: var(--orange-500);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 2px;
  }

  .final-cta__guarantee-sub { color: var(--gray-mute-40); font-size: 0.7rem; }

  /* ---- Footer — spec §5.13 ---- */
  .footer {
    background: var(--black);
    color: var(--gray-text);
    padding: var(--space-32) 1.5rem var(--space-24);
    text-align: center;
  }

  @media (min-width: 768px) {
    .footer { padding: var(--space-48) 1.5rem var(--space-32); }
  }

  .footer__logo {
    display: block;
    margin: 0 auto var(--space-16);
    width: 140px;
  }

  @media (min-width: 768px) {
    .footer__logo { width: 180px; }
  }

  .footer__tagline { color: var(--gray-mute-65); font-size: 0.85rem; margin-bottom: var(--space-8); }
  .footer__copy { color: var(--gray-mute-40); font-size: 0.85rem; }

  .footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: var(--space-16);
  }

  .footer__links a { color: var(--gray-mute-65); font-size: 0.875rem; text-decoration: underline; }
  .footer__links a:hover { color: var(--orange-500); }

  .footer__sep { color: rgba(224, 224, 218, 0.3); }

  /* ---- Sticky CTA mobile — spec §5.14 ---- */
  .sticky-cta {
    background: var(--white);
    border-top: 2px solid var(--black);
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 40;
  }

  @media (max-width: 767px) {
    .sticky-cta.is-visible { display: block; }
  }

  .sticky-cta__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-12) var(--space-16);
  }

  .sticky-cta__plans {
    display: flex;
    gap: var(--space-16);
    justify-content: center;
  }

  .sticky-cta__plan {
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 800;
    min-height: 24px;
    text-decoration: none;
  }

  .sticky-cta__plan:hover { color: var(--orange-500); }

  .sticky-cta__cta {
    font-size: 0.9rem;
    min-height: 44px;
    padding: 14px 20px;
  }

  /* ---- Scroll progress ---- */
  .scroll-progress {
    background: var(--gradient-progress);
    height: 3px;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: width 0.1s linear;
    width: 0%;
    z-index: 200;
  }
}

/* -------------- Animations & decorations ------------------ */
@layer animations {
  /* Reveal on scroll — só quando JS está rodando */
  html.js-on .reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.65s var(--ease-out-soft), transform 0.65s var(--ease-out-soft);
  }

  html.js-on .reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

  /* Ambient orbs */
  .ao { border-radius: 50%; pointer-events: none; position: absolute; }

  @keyframes ao-float-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
  }

  @keyframes ao-float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 25px); }
  }

  @keyframes ao-float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
  }

  /* Aurora drift */
  @keyframes aurora-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1); }
  }

  @keyframes aurora-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 30px) scale(0.95); }
  }

  @keyframes aurora-drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
  }

  /* Claude Code symbol */
  @keyframes claude-code-dance {
    0%, 100% { transform: translate(0, 24px) rotate(-5deg) scale(1); }
    20% { transform: translate(46px, 70px) rotate(7deg) scale(1.04, 0.96); }
    40% { transform: translate(12px, 132px) rotate(-8deg) scale(0.98, 1.04); }
    60% { transform: translate(74px, 98px) rotate(6deg) scale(1.03, 0.97); }
    80% { transform: translate(28px, 48px) rotate(-4deg) scale(0.99, 1.02); }
  }

  @keyframes claude-code-pulse {
    0%, 100% { filter: drop-shadow(0 16px 22px rgba(249, 78, 3, 0.22)); transform: scale(1); }
    50% { filter: drop-shadow(0 24px 30px rgba(249, 78, 3, 0.34)); transform: scale(1.05); }
  }

  /* Price glow */
  @keyframes price-glow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 20px rgba(249, 78, 3, 0.4); }
  }

  .price-glow-anim { animation: price-glow 3s ease-in-out infinite; }

  /* Marquee */
  @keyframes marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Cursor blink */
  @keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }

  /* Section watermark */
  .section-watermark {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.07);
    color: transparent;
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 900;
    pointer-events: none;
    position: absolute;
    text-transform: uppercase;
    user-select: none;
    z-index: 0;
  }

  /* Grid overlay */
  .grid-overlay {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    inset: 0;
    pointer-events: none;
    position: absolute;
  }

  .grid-overlay--dark {
    background-image:
      linear-gradient(rgba(249, 78, 3, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(249, 78, 3, 0.04) 1px, transparent 1px);
  }

  /*
   * Reduced motion: respeita a preferência do usuário para movimento
   * disparado por interação (scroll reveal, transições, scroll suave),
   * mas preserva as animações decorativas contínuas e sutis (símbolo
   * do Claude, ticker, brilho de preço) que dão vida à marca sem
   * causar desconforto vestibular.
   */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }

    /* Reveal aparece imediatamente, sem deslocamento */
    .reveal { opacity: 1 !important; transform: none !important; }
  }
}

/* -------------- Utilities --------------------------------- */
@layer utilities {
  .hidden { display: none !important; }

  .sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .skip-link {
    background: var(--orange-500);
    color: var(--white);
    left: 0;
    padding: 0.5rem 1rem;
    position: absolute;
    top: -40px;
    z-index: 9999;
  }

  .skip-link:focus { top: 0; }
}

/* -------------- Pop-up: e-mail descartável (trial) --------- */
/* Sem @layer de propósito: garante prioridade sobre os layers (overlay no topo). */
.cj-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
}
.cj-modal-overlay[hidden] { display: none; }
.cj-modal-card {
  background: var(--cream-bg);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-3d-lg);
  max-width: 420px;
  width: 100%;
  padding: 1.75rem;
  text-align: center;
}
.cj-modal-title { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 900; }
.cj-modal-text { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.6; color: var(--black-mute-65); }
.cj-modal-close { width: 100%; }
