/*
 * Stellar by HTML5 UP — layout and theme
 * html5up.net | @ajlkn
 * CCA 3.0 license — adapted for Prepriga with same structure and styling.
 */

/* Landing page font: same as previous version (system stack, no web font) */
:root {
  --stellar-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *:before, *:after { box-sizing: border-box; }
html {
  font-size: 17pt;
  scroll-behavior: smooth;
  font-family: var(--stellar-font);
}
@media (max-width: 1680px) { html { font-size: 14pt; } }
@media (max-width: 1280px) { html { font-size: 12pt; } }
@media (max-width: 360px) { html { font-size: 11pt; } }

body {
  margin: 0;
  padding: 0;
  background: var(--app-bg);
  background-image: var(--app-gradient-mesh);
  background-attachment: fixed;
  color: var(--app-text-secondary);
  font-family: var(--stellar-font);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  text-decoration: none;
  border-bottom: dotted 1px;
  color: inherit;
}
a:hover { border-bottom-color: transparent; }
a:hover { color: var(--app-primary); }

strong, b { font-weight: 400; color: var(--app-text); }
p { margin: 0 0 2em 0; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 0.7em 0;
  letter-spacing: -0.025em;
  color: var(--app-text);
}
h1 { font-size: 2.5em; line-height: 1.2; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }
@media (max-width: 736px) { h1 { font-size: 2em; } }

/* Wrapper */
#wrapper {
  position: relative;
  width: 64em;
  max-width: calc(100% - 2em);
  margin: 0 auto;
  font-family: var(--stellar-font);
}
@media (max-width: 480px) { #wrapper { max-width: calc(100% - 1em); } }
@media (max-width: 360px) { #wrapper { max-width: 100%; } }

/* Header (intro) */
#header {
  padding: 5em 3em 1em 3em;
  text-align: center;
}
#header h1 { margin: 0 0 0.25em 0; }
#header p { font-size: 1.25em; letter-spacing: -0.025em; }

#header.alt {
  padding: 7em 3em 4em 3em;
}
#header.alt h1 { font-size: 3.25em; }
#header.alt .hero-title { font-weight: 700; }
#header.alt .hero-sub { margin-top: 0.5em; }
#header.alt .hero-line1 { font-weight: 700; display: inline; text-transform: uppercase; }
#header.alt .logo {
  display: inline-block;
  margin: 0 auto 1.5em auto;
  padding: 2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.3) 50%, rgba(168, 85, 247, 0.35) 100%);
  border-radius: 15px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 4px 20px rgba(99, 102, 241, 0.18);
  line-height: 0;
}
#header.alt .logo img {
  display: block;
  margin: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  animation: hero-logo-3d 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.3));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
#header.alt .logo:hover img {
  animation: logo-flip 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 8px 24px rgba(79, 70, 229, 0.5));
}
@keyframes hero-logo-3d {
  0%, 100% { transform: perspective(600px) rotateY(0deg) rotateX(0deg); }
  25%      { transform: perspective(600px) rotateY(12deg) rotateX(4deg) translateY(-3px); }
  50%      { transform: perspective(600px) rotateY(0deg) rotateX(0deg); }
  75%      { transform: perspective(600px) rotateY(-12deg) rotateX(-4deg) translateY(-3px); }
}
@keyframes logo-flip {
  0%   { transform: perspective(600px) rotateY(0deg) scale(1); }
  50%  { transform: perspective(600px) rotateY(180deg) scale(1.1); }
  100% { transform: perspective(600px) rotateY(360deg) scale(1); }
}
#header.alt .hero-tagline {
  margin: 0.5em 0 0.25em 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--app-primary);
  letter-spacing: 0.03em;
  text-align: center;
}

/* Hero strip: exams we cover — elite moving ticker */
.hero-exams-strip-wrap {
  margin-top: 2.25em;
  width: 100%;
  max-width: 52em;
  margin-left: auto;
  margin-right: auto;
}

.hero-exams-strip-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--app-text-muted, #64748b);
  margin: 0 0 0.75em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}
.hero-exams-strip-label::before,
.hero-exams-strip-label::after {
  content: '';
  width: 1.5em;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.45));
}
.hero-exams-strip-label::after {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), transparent);
}

.hero-exams-strip {
  overflow: hidden;
  padding: 0.65em 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04) inset,
    0 4px 20px -6px rgba(99, 102, 241, 0.15),
    0 8px 32px -12px rgba(0, 0, 0, 0.08);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.hero-exams-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1em;
  animation: hero-exams-scroll 50s linear infinite;
  width: max-content;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-exams-strip-inner { animation-duration: 120s; }
}

.hero-exams-strip-inner span {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--app-text, #0f172a);
  white-space: nowrap;
  padding: 0.5em 1.05em;
  border-radius: 999px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 6px 20px -6px rgba(99, 102, 241, 0.2);
}
.hero-exams-strip-inner span:hover {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 1) inset,
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 10px 28px -8px rgba(99, 102, 241, 0.28);
}

@keyframes hero-exams-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1280px) {
  #header { padding: 4em 2.5em 0.1em 2.5em; }
  #header.alt { padding: 6em 2.5em 3em 2.5em; }
}
@media (max-width: 980px) {
  #header { padding: 4em 2em 0.1em 2em; }
  #header.alt { padding: 5em 2em 2em 2em; }
}
@media (max-width: 736px) {
  #header { padding: 3em 1.5em 0.1em 1.5em; }
  #header p { font-size: 1em; letter-spacing: 0; }
  #header.alt { padding: 4em 1.5em 1em 1.5em; }
  #header.alt h1 { font-size: 2.5em; }
  .hero-exams-strip-wrap { margin-top: 1.5em; max-width: 100%; }
  .hero-exams-strip-inner span { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  #header { padding: 3em 1em 0.1em 1em; }
  #header.alt { padding: 4em 1em 1em 1em; }
}
@media (max-width: 360px) {
  #header { padding: 2.5em 0.75em 0.1em 0.75em; }
  #header.alt { padding: 3.5em 0.75em 0.5em 0.75em; }
}

/* Nav — same width as #wrapper so left/right align with sections */
#nav {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
  background-color: var(--app-bg-elevated);
  color: var(--app-text-secondary);
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1em 1.5em;
  text-align: center;
  z-index: 100;
  box-shadow: 0 1px 0 0 var(--app-border-soft);
  border: none;
  border-bottom: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-sm);
  box-sizing: border-box;
}
#nav a {
  color: var(--app-text-secondary);
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
}
#nav ul li a:not(.primary) {
  color: var(--app-primary);
}
#nav a:hover { color: var(--app-text); }
#nav ul li a:not(.primary):hover {
  color: var(--app-primary-hover);
}
#nav ul {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 64em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
#nav ul li {
  display: inline-block;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}
#nav ul li a {
  display: inline-block;
  height: 2.5em;
  line-height: 2.5em;
  padding: 0 1.25em;
  border: none;
  border-radius: 6px;
  box-shadow: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  font-size: 0.95rem;
  font-weight: 400;
}
#nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.04);
}
#nav ul li a:not(.primary):hover {
  color: var(--app-primary-hover);
  background-color: var(--app-primary-soft);
}
#nav ul li a.primary:hover {
  color: #fff !important;
}
#nav ul li a.active {
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--app-text);
}
#nav ul li a.primary {
  background: var(--app-gradient-primary);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  font-weight: 600;
}
#nav ul li a.primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

#nav.alt {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64em;
  max-width: calc(100% - 2em);
  margin: 0;
  padding: 0.6em 1.5em;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 0 var(--app-border-soft);
  border-bottom: 1px solid var(--app-border-soft);
  border-radius: 0 0 var(--app-radius-sm) var(--app-radius-sm);
  z-index: 10000;
}
#nav.alt ul li a { font-size: 0.9em; }

#nav + #main { padding-top: 4.25em; }

@media (max-width: 980px) {
  #nav { padding: 0.75em 1.25em; }
  #nav ul { gap: 0.15em; }
  #nav ul li a { padding: 0 1em; font-size: 0.9rem; }
}
@media (max-width: 736px) {
  #nav { display: none; }
  #nav + #main { padding-top: 0; }
}

/* Section scroll targets — avoid fixed nav covering content */
#why,
#next-week,
#about,
#proofs,
#free-resources {
  scroll-margin-top: 5.5em;
}

/* Main */
#main {
  background-color: var(--app-bg-elevated);
  color: var(--app-text-secondary);
  border-radius: var(--app-radius-sm);
  overflow: hidden;
}
#main a { color: var(--app-text); }
#main a:hover { color: var(--app-primary); }
#main h1, #main h2, #main h3, #main h4, #main h5, #main h6 { color: var(--app-text); }
#main strong, #main b { color: var(--app-text); }

#main > .main {
  padding: 5em 3em 3em 3em;
  border-top: solid 1px var(--app-border);
}
#main > .main:first-child { border-top: 0; }

@media (max-width: 1280px) { #main > .main { padding: 4em 2.5em 2em 2.5em; } }
@media (max-width: 980px) { #main > .main { padding: 4em 2em 2em 2em; } }
@media (max-width: 736px) { #main > .main { padding: 3em 1.5em 1em 1.5em; } }
@media (max-width: 480px) { #main > .main { padding: 3em 1em 1em 1em; } }
@media (max-width: 360px) {
  #main { border-radius: 0; }
  #main > .main { padding: 2.5em 1em 0.5em 1em; }
}

/* Header major */
header.major { margin-bottom: 3em; }
header.major h2 { font-size: 2em; font-weight: 700; color: var(--app-text); }
header.major h2:after {
  display: block;
  content: '';
  width: 3.25em;
  height: 2px;
  margin: 0.7em 0 1em 0;
  border-radius: 2px;
  background: var(--app-gradient-primary);
}
section.special header.major { text-align: center; }
section.special header.major h2:after { margin-left: auto; margin-right: auto; }
header.major p { font-size: 1.25em; letter-spacing: -0.025em; color: var(--app-text-secondary); }
@media (max-width: 736px) {
  header.major { margin-bottom: 0; }
  header.major h2 { font-size: 1.5em; font-weight: 700; }
  header.major p { font-size: 1em; }
}

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: calc(100% + 2em);
  margin: 0 0 3em -2em;
  padding: 0;
  list-style: none;
}
.features li {
  width: calc(33.33333% - 2em);
  margin-left: 2em;
  margin-top: 3em;
  padding: 2em 1.5em;
  text-align: center;
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.features li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--app-gradient-primary);
  opacity: 0.9;
}
.features li:hover {
  box-shadow: var(--app-shadow-card);
  transform: translateY(-2px);
}
/* Card background gradients — each card a different subtle tint */
.features li:nth-child(6n+1) {
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.95) 50%, #fff 100%);
}
.features li:nth-child(6n+2) {
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.08) 0%, rgba(255, 255, 255, 0.95) 50%, #fff 100%);
}
.features li:nth-child(6n+3) {
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0.95) 50%, #fff 100%);
}
.features li:nth-child(6n+4) {
  background: linear-gradient(165deg, rgba(168, 85, 247, 0.07) 0%, rgba(255, 255, 255, 0.95) 50%, #fff 100%);
}
.features li:nth-child(6n+5) {
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.05) 50%, #fff 100%);
}
.features li:nth-child(6n+6) {
  background: linear-gradient(165deg, rgba(79, 70, 229, 0.07) 0%, rgba(255, 255, 255, 0.95) 50%, #fff 100%);
}
.features li:nth-child(1), .features li:nth-child(2), .features li:nth-child(3) { margin-top: 0; }
.features li > :last-child { margin-bottom: 0; }
#proofs .proofs-link-wrap { margin: 0.75em 0 0 0; }
#proofs .proofs-link { font-weight: 600; color: var(--app-primary); text-decoration: none; }
#proofs .proofs-link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .features li { width: calc(50% - 2em); }
  .features li:nth-child(3) { margin-top: 3em; }
}
@media (max-width: 736px) {
  .features { width: 100%; margin: 0 0 2em 0; }
  .features li { width: 100%; margin-left: 0; margin-top: 2em; }
  .features li:nth-child(2), .features li:nth-child(3) { margin-top: 2em; }
}

/* Icon major — image-based (no Font Awesome) */
.icon.major {
  display: inline-block;
  border: solid 1px var(--app-border);
  border-radius: 100%;
  padding: 0.65em;
  margin: 0 0 2em 0;
  line-height: 0;
}
.icon.major img {
  display: block;
  width: 4.5em;
  height: 4.5em;
  border-radius: 100%;
  object-fit: contain;
}
.icon.major.style1 { border-color: var(--app-primary); }
.icon.major.style2 { border-color: #7c3aed; }
.icon.major.style3 { border-color: var(--app-accent); }
.icon.major.style4 { border-color: #a855f7; }
.icon.major.style5 { border-color: var(--app-primary); }

@media (max-width: 1280px) { .icon.major img { width: 4rem; height: 4rem; } }
@media (max-width: 736px) {
  .icon.major { margin: 0 0 1.5em 0; padding: 0.35em; }
  .icon.major img { width: 3rem; height: 3rem; }
}

/* Card content: heading + description on every card (consistent structure) */
.features li .icon.major { margin-bottom: 1.25em; }
.features li h3 {
  display: block;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--app-text);
  margin: 0 0 0.5em 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.features li > p {
  color: var(--app-text-secondary);
  font-size: 0.925em;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}
.features li > p + p { margin-top: 0.5em; }
.features p.proofs-link-wrap { margin-top: 0.75em; }
#earn-with-us p.earn-cta { margin-top: 1em; margin-bottom: 0; }
#earn-with-us p.earn-cta a { text-decoration: none; border: none; }

/* Landing pricing — side-by-side Full platform | Individual, then CTA */
.landing-pricing-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin: 0 0 2.5em 0;
  max-width: 56em;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .landing-pricing-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2em;
  }
}
.landing-pricing-card {
  padding: 1.75em 1.5em;
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow);
  text-align: left;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.landing-pricing-card:hover {
  box-shadow: var(--app-shadow-card);
  border-color: rgba(99, 102, 241, 0.25);
}
.landing-pricing-platform {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--app-surface) 25%);
  border-color: rgba(99, 102, 241, 0.35);
}
.landing-pricing-card h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--app-text);
}
.landing-pricing-desc {
  font-size: 0.95em;
  color: var(--app-text-secondary);
  line-height: 1.5;
  margin: 0 0 1em 0;
}
.landing-pricing-price {
  margin: 0 0 0.35em 0;
  font-size: 1.4em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.4em;
}
.landing-pricing-old {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: line-through;
}
.landing-pricing-price strong { color: var(--app-primary); }
.landing-pricing-period { font-weight: 400; color: var(--app-text-secondary); font-size: 0.9em; }
.landing-pricing-badge {
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-primary);
  margin: 0;
}

/* Next 7 days — same features grid; Apply + papers match main button style */
#next-week .features { margin-bottom: 0; }
#next-week .proofs-link-wrap { margin: 0.75em 0 0 0; }
#next-week .proofs-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--app-primary) !important;
  background: var(--app-primary-soft);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: none;
}
#next-week .proofs-link:hover {
  background: var(--app-primary);
  color: #fff !important;
  text-decoration: none;
}
.next-week-loading { color: var(--app-text-secondary); margin: 0; }
.next-week-empty { color: var(--app-text-secondary); margin: 0; }
.next-week-empty a { color: var(--app-primary); }
.next-week-papers-row {
  margin-top: 1.25em;
  padding-top: 1.25em;
  border-top: 1px solid var(--app-border-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-text-secondary);
}
.next-week-papers-row .next-week-pill {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  margin: 0.35em 0.35em 0.35em 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--app-primary) !important;
  background: var(--app-primary-soft);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: none;
}
.next-week-papers-row .next-week-pill:hover {
  background: var(--app-primary);
  color: #fff !important;
  text-decoration: none;
}

/* Actions */
ul.actions {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-left: -1em;
  padding-left: 0;
  cursor: default;
}
ul.actions li { padding: 0 0 0 1em; vertical-align: middle; }
ul.actions.special { justify-content: center; width: 100%; margin-left: 0; }
ul.actions.special li:first-child { padding-left: 0; }

/* Button */
.button {
  appearance: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-weight: 300;
  font-size: 1em;
  height: 2.75em;
  line-height: 2.75em;
  min-width: 9.25em;
  padding: 0 1.5em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

#header .button {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--app-border);
  color: var(--app-text) !important;
}
#header .button:hover { background-color: var(--app-primary-soft); }
#header .button.primary {
  background: var(--app-gradient-primary);
  color: #fff !important;
  box-shadow: var(--app-shadow-card);
}
#header .button.primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--app-shadow-card-hover);
}

#main .button {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--app-border);
  color: var(--app-text) !important;
}
#main .button:hover { background-color: var(--app-primary-soft); }
#main .button.primary {
  background: var(--app-gradient-primary);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
#main .button.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
#main .button.button-footer-style {
  background: var(--app-primary-soft);
  color: var(--app-primary) !important;
  box-shadow: none;
  border: none;
  padding: 0.5rem 1rem;
  height: auto;
  min-width: 0;
  line-height: 1.4;
  font-size: 0.9rem;
  font-weight: 600;
}
#main .button.button-footer-style:hover {
  background: var(--app-primary);
  color: #fff !important;
}
.button.large { font-size: 1.35em; }

/* Content (two-column prose in main) */
p.content {
  columns: 1;
  text-align: center;
  margin: 2em auto 0 auto;
  max-width: 32em;
  line-height: 1.6;
  color: var(--app-text-secondary);
}

/* Footer — 4-column grid; overrides global link/list/paragraph styles */
#footer {
  margin: 0;
  padding: 0;
  width: 100%;
  color: var(--app-text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  box-sizing: border-box;
}
#footer *,
#footer *::before,
#footer *::after {
  box-sizing: border-box;
}
#footer p {
  margin: 0 0 0.5em 0;
}
#footer a {
  color: var(--app-text);
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.2s ease;
}
#footer a:hover {
  color: var(--app-primary) !important;
  border-bottom: none !important;
}

#footer .footer-inner {
  padding: 4em 3em 2.5em 3em;
  margin: 0 auto;
  width: 100%;
  max-width: 64em;
}

#footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .footer-brand {
  min-width: 0;
}
#footer .footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: nowrap;
}
#footer .footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--app-radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}
#footer .footer-logo {
  display: inline-flex;
  align-items: center;
  color: var(--app-text);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
#footer .footer-logo-3d {
  display: inline;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #4f46e5 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: prepriga-shimmer 3s ease-in-out infinite;
}
@keyframes prepriga-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
#footer .footer-logo-3d .f3d {
  display: inline;
  -webkit-text-fill-color: transparent;
}
#footer .footer-tagline {
  display: block;
  color: var(--app-primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 0.35rem 0;
  line-height: 1.4;
}
#footer .footer-desc {
  display: block;
  color: var(--app-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
  max-width: 18em;
}
#footer .footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
#footer .footer-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--app-primary-soft);
  color: var(--app-primary) !important;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none !important;
  border: none !important;
}
#footer .footer-btn:hover {
  background: var(--app-primary);
  color: #fff !important;
}

#footer .footer-col {
  min-width: 0;
}
#footer .footer-head {
  display: block;
  color: var(--app-text);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.85rem 0;
  line-height: 1.2;
}
#footer .footer-links {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#footer .footer-links li {
  margin: 0 0 0.45rem 0;
  padding: 0;
  list-style: none !important;
}
#footer .footer-links li::before {
  content: none !important;
}
#footer .footer-links li a {
  color: var(--app-text-secondary);
  font-size: 0.9rem;
}
#footer .footer-links li a:hover { color: var(--app-primary); }

#footer .footer-contact .footer-dl {
  margin: 0;
  padding: 0;
}
#footer .footer-dl-row {
  display: block;
  margin: 0 0 0.65rem 0;
}
#footer .footer-dl-row:first-child { margin-top: 0; }
#footer .footer-dl-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-text-muted);
  margin: 0 0 0.2rem 0;
}
#footer .footer-dl-value {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--app-text);
  word-break: break-word;
}

#footer .footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--app-border);
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
#footer .footer-copy {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--app-text-muted);
  margin: 0;
}
#footer .footer-legal {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--app-text-secondary);
  margin: 0;
}
#footer .footer-legal .sep {
  margin: 0 0.4rem;
  color: var(--app-text-muted);
  user-select: none;
}
#footer .footer-legal a {
  color: var(--app-text);
  text-decoration: none !important;
  border-bottom: none !important;
}
#footer .footer-legal a:hover { color: var(--app-primary) !important; }

@media (max-width: 1280px) {
  #footer .footer-inner { padding: 4em 2.5em 2.5em 2.5em; }
  #footer .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  #footer .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  #footer .footer-inner { padding: 4em 2em 2.5em 2em; }
  #footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  #footer .footer-brand { grid-column: 1 / -1; }
  #footer .footer-contact { grid-column: 1 / -1; }
  #footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
}
@media (max-width: 736px) {
  #footer .footer-inner { padding: 3em 1.5em 2em 1.5em; }
  #footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  #footer .footer-brand { grid-column: 1; }
  #footer .footer-contact { grid-column: 1; }
  #footer .footer-desc { max-width: none; }
}
@media (max-width: 480px) {
  #footer .footer-inner { padding: 2.5em 1em 1.5em 1em; }
}

/* FABs — scroll to top (left) + WhatsApp (right) */
.fab {
  position: fixed;
  z-index: 1000;
  width: 3em;
  height: 3em;
  line-height: 3em;
  text-align: center;
  border-radius: 50%;
  font-size: 0.85em;
  font-weight: 400;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
/* Chatbot FAB — light, shiny border */
.fab-faq {
  bottom: 1.25em;
  left: 1.25em;
  right: auto;
  width: 4.5em;
  height: 4.5em;
  line-height: 4.5em;
  background: var(--app-bg-elevated);
  color: var(--app-primary);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 2px 8px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--app-radius-lg, 12px);
}
.fab-faq img {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: inherit;
}
.fab-faq .fab-faq-fallback {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--app-primary);
}
.fab-faq:hover {
  background: var(--app-primary-soft);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}
.fab-scroll {
  bottom: 4.5em;
  right: 1.25em;
  left: auto;
  background: var(--app-bg-elevated);
  color: var(--app-primary);
  box-shadow: var(--app-shadow-md);
  border: 1px solid var(--app-border);
}
.fab-scroll:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
  transform: scale(1.05);
}
.fab.whatsapp {
  bottom: 1.25em;
  right: 1.25em;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab.whatsapp svg { flex-shrink: 0; }
.fab.whatsapp:hover { transform: scale(1.05); color: #fff; }

/* FAQ panel */
.faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}
.faq-overlay.faq-open {
  opacity: 1;
  visibility: visible;
}
.faq-panel {
  background: var(--app-bg-elevated);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow-lg);
  max-width: 32rem;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--app-border);
}
.faq-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.faq-panel-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--app-text);
}
.faq-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--app-text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--app-radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.faq-close:hover {
  color: var(--app-text);
  background: var(--app-primary-soft);
}
/* Chat window */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  filter: hue-rotate(45deg) saturate(1.15) brightness(0.95);
}
.chat-header-text { flex: 1; min-width: 0; }
.chat-header-text h2 { margin: 0; font-size: 1rem; }
.chat-header-status {
  font-size: 0.75rem;
  color: var(--app-text-muted);
  display: block;
  margin-top: 2px;
}
.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 100%;
}
.chat-msg.user-msg {
  flex-direction: row-reverse;
}
.chat-msg.user-msg .chat-bubble { align-self: flex-end; }
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  filter: hue-rotate(45deg) saturate(1.15) brightness(0.95);
}
.user-msg .chat-avatar { display: none; }
.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-bubble p { margin: 0; }
.bot-bubble {
  background: var(--app-primary-soft);
  color: var(--app-text);
  border-bottom-left-radius: 4px;
}
.user-bubble {
  background: var(--app-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-input-wrap {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--app-border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  color: var(--app-text);
  background: var(--app-bg);
  transition: border-color 0.2s ease;
}
.chat-input::placeholder { color: var(--app-text-muted); }
.chat-input:focus {
  outline: none;
  border-color: var(--app-primary);
}
.chat-send {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--app-primary);
  border: none;
  border-radius: var(--app-radius-sm);
  cursor: pointer;
  transition: filter 0.2s ease;
}
.chat-send:hover { filter: brightness(1.08); }
.chat-footer .wa-icon-inline {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  margin-right: 0.25em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236366f1'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.faq-footer {
  padding: 0.75rem 1.25rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--app-text-muted);
  border-top: 1px solid var(--app-border-soft);
  flex-shrink: 0;
}
.faq-footer a { color: var(--app-primary); border-bottom: none; }
.faq-footer a:hover { text-decoration: underline; }
