/* ==========================================================================
   TWAIN ASSESSMENT PRO — page layer
   Loaded after index.css; reuses its tokens (--twain-*, --brand-*, --font-*).
   All classes are prefixed with .as- to stay out of the legacy template's way.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

main .section[id] {
  scroll-margin-top: 90px; /* fixed header */
}

/* --------------------------------------------------------------------------
   Shared section typography
   -------------------------------------------------------------------------- */

.as-eyebrow {
  font-family: var(--font-primary);
  color: var(--brand-assessment);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.as-title {
  font-family: var(--font-primary);
  color: var(--twain-purple);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.as-title-light { color: #fff; }
.as-eyebrow-light { color: var(--twain-lilac); }

.as-lead {
  font-family: var(--font-secondary);
  color: #444;
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
  max-width: 780px;
  margin: -16px auto 36px;
}

.as-lead strong { color: var(--twain-purple); }

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

.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.as-btn .fa-whatsapp { font-size: 22px; }

a.as-btn-wa,
a.as-btn-wa:hover,
a.as-btn-wa:focus-visible {
  background-color: var(--whatsapp);
  color: #fff;
  border: none;
}

a.as-btn-wa:hover { background-color: #20BA5A; }

a.as-btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

a.as-btn-ghost:hover,
a.as-btn-ghost:focus-visible {
  color: #fff;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

a.as-btn-ghost .fa { transition: transform 0.3s var(--ease-smooth); }
a.as-btn-ghost:hover .fa { transform: translateX(4px); }

.as-btn-block { display: flex; width: 100%; }

.as-btn-lg {
  min-height: 60px;
  padding: 14px 36px;
  font-size: 18px;
}

.as-btn:focus-visible {
  outline: 3px solid var(--twain-lilac);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   HERO (extends the home .hero gradient)
   -------------------------------------------------------------------------- */

section.main-banner.as-hero {
  padding-top: 104px;
  padding-bottom: 72px;
  margin-bottom: 0;
}

.as-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-family: var(--font-secondary);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.as-breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.4);
}

.as-breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.as-breadcrumb a:hover { color: var(--twain-lilac); }

.as-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.as-hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.as-hero-copy .hero-h1-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  margin-top: 18px;
}

.as-pro { color: var(--brand-assessment); }

.as-accent {
  display: block;
  color: var(--brand-assessment);
}

.as-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.as-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
}

.as-chips .fa { color: var(--brand-assessment); }

.as-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.as-hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  animation: heroFadeUp 0.9s 0.2s var(--ease-smooth) both;
}

.as-hero-media::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border-radius: 22px;
  border: 2px solid var(--brand-assessment);
  opacity: 0.7;
}

.as-hero-media img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   EM RESUMO
   -------------------------------------------------------------------------- */

section.as-summary {
  background: #fff;
  padding: 56px 0 8px;
}

.as-summary-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 30px;
  border-left: 4px solid var(--brand-assessment);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(255, 166, 69, 0.08), rgba(81, 44, 137, 0.03));
}

.as-summary-title {
  font-family: var(--font-primary);
  color: var(--twain-purple);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.as-summary-box p {
  font-family: var(--font-secondary);
  color: #333;
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}

.as-summary-box strong { color: var(--twain-purple); }

/* --------------------------------------------------------------------------
   DIFERENCIAIS (feature cards)
   -------------------------------------------------------------------------- */

section.as-features {
  background: #fff;
  padding: 64px 0 72px;
}

.as-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.as-feature {
  background: linear-gradient(180deg, rgba(81, 44, 137, 0.04), rgba(81, 44, 137, 0.01));
  border: 1px solid rgba(81, 44, 137, 0.12);
  border-radius: 16px;
  padding: 26px 24px;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), border-color 0.3s;
}

.as-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(81, 44, 137, 0.3);
  box-shadow: 0 14px 30px rgba(81, 44, 137, 0.1);
}

.as-feature-icon,
.as-plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--twain-purple);
  color: var(--brand-assessment);
  font-size: 22px;
  margin-bottom: 16px;
}

.as-feature h3 {
  font-family: var(--font-primary);
  color: var(--twain-purple);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}

.as-feature p {
  font-family: var(--font-secondary);
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   COMO FUNCIONA (steps)
   -------------------------------------------------------------------------- */

section.as-steps-section {
  background: radial-gradient(900px 500px at 90% 0%, rgba(216, 132, 249, 0.22), transparent 60%),
              linear-gradient(150deg, var(--twain-purple-deep) 0%, var(--twain-purple) 100%);
  padding: 72px 0;
}

.as-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}

.as-step {
  position: relative;
  padding: 26px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.as-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-assessment);
  color: var(--twain-purple-deep);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.as-step h3 {
  font-family: var(--font-primary);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}

.as-step p {
  font-family: var(--font-secondary);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   CEFR levels
   -------------------------------------------------------------------------- */

section.as-cefr {
  background: #fff;
  padding: 72px 0;
}

.as-cefr-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.as-cefr-level {
  --lv: var(--twain-lilac);
  border-radius: 14px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid rgba(81, 44, 137, 0.14);
  border-top: 5px solid var(--lv);
}

.as-lv-a { --lv: var(--twain-lilac); }
.as-lv-b { --lv: var(--brand-xp); }
.as-lv-c { --lv: var(--twain-purple); }

.as-cefr-code {
  display: block;
  font-family: var(--font-primary);
  color: var(--twain-purple);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.as-cefr-level h3 {
  font-family: var(--font-primary);
  color: var(--twain-purple);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.as-cefr-level p {
  font-family: var(--font-secondary);
  color: #555;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   PLANOS
   -------------------------------------------------------------------------- */

section.as-plans {
  background: linear-gradient(180deg, #F7F3FC 0%, #fff 100%);
  padding: 72px 0;
}

.as-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.as-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(81, 44, 137, 0.15);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(81, 44, 137, 0.06);
}

.as-plan-featured {
  border: 2px solid var(--brand-assessment);
  box-shadow: 0 18px 44px rgba(81, 44, 137, 0.14);
}

.as-plan-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-assessment);
  color: var(--twain-purple-deep);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.as-plan h3 {
  font-family: var(--font-primary);
  color: var(--twain-purple);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.as-plan-for {
  font-family: var(--font-secondary);
  color: #777;
  font-size: 15px;
  margin: 0 0 20px;
}

.as-plan-list {
  flex: 1;
  margin: 0 0 28px;
}

.as-plan-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--font-secondary);
  color: #333;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 9px 0;
  border-bottom: 1px solid rgba(81, 44, 137, 0.08);
}

.as-plan-list li:last-child { border-bottom: none; }
.as-plan-list .fa { color: var(--whatsapp); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   PARA EMPRESAS (use cases)
   -------------------------------------------------------------------------- */

section.as-usecases {
  background: #fff;
  padding: 64px 0 40px;
}

.as-usecase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  max-width: 980px;
  margin: 0 auto;
}

.as-usecase-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(81, 44, 137, 0.12);
}

.as-usecase-list li > .fa {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 166, 69, 0.15);
  color: #C9741A;
  font-size: 18px;
  line-height: 42px;
  text-align: center;
}

.as-usecase-list h3 {
  font-family: var(--font-primary);
  color: var(--twain-purple);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.as-usecase-list p {
  font-family: var(--font-secondary);
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.as-usecase-list a {
  color: var(--twain-purple);
  font-weight: 500;
  text-decoration: underline;
}

/* FAQ on this page sits on white (home uses its own background) */
section.faq {
  padding-top: 56px;
  padding-bottom: 64px;
}

/* --------------------------------------------------------------------------
   CTA FINAL
   -------------------------------------------------------------------------- */

section.as-final-cta {
  background: radial-gradient(700px 400px at 15% 100%, rgba(255, 166, 69, 0.22), transparent 60%),
              linear-gradient(150deg, var(--twain-purple-deep) 0%, var(--twain-purple) 100%);
  padding: 72px 0;
  text-align: center;
}

.as-final-cta h2 {
  font-family: var(--font-primary);
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
}

.as-final-cta p {
  font-family: var(--font-secondary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 28px;
}

.as-final-cta .as-final-phone {
  font-size: 14px;
  margin: 18px auto 0;
}

.as-final-phone a { color: var(--brand-assessment); font-weight: 700; }
.as-final-phone a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .as-cefr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .as-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .as-hero-media { max-width: 400px; }

  .as-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  section.main-banner.as-hero { padding-top: 96px; padding-bottom: 56px; }

  section.as-features,
  section.as-steps-section,
  section.as-cefr,
  section.as-plans,
  section.as-final-cta { padding: 56px 0; }

  .as-plan-grid,
  .as-usecase-list { grid-template-columns: 1fr; }

  .as-cefr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .as-summary-box { padding: 22px 20px; }
  .as-summary-box p { font-size: 16px; }
}

@media (max-width: 575px) {
  .as-cta-row .as-btn { width: 100%; }

  .as-feature-grid,
  .as-steps { grid-template-columns: 1fr; }

  .as-hero-media { max-width: 320px; }
  .as-hero-media::before { inset: 16px -10px -10px 16px; }

  .as-plan { padding: 28px 20px; }

  .as-feature { padding: 22px 20px; }
}

@media (max-width: 360px) {
  .as-cefr-grid { grid-template-columns: 1fr; }
  .as-chips li { font-size: 13px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .as-hero-media { animation: none; }
}
