/* =============================================================
   POLIMEDIOS THEME – theme.css
   Vanilla CSS conversion of the Next.js / Tailwind landing page
   ============================================================= */

/* ---------------------------------------------------------------
   Reset & base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #db8058;
  --brand-shadow: rgba(219,128,88,0.30);
  --text-primary: #0f172a;
  --text-body:    #656565;
  --text-muted:   #94a3b8;
  --border-light: #f1f5f9;
  --border:       #e2e8f0;
  --slate-50:     #f8fafc;
  --slate-100:    #f1f5f9;
  --slate-200:    #e2e8f0;
  --slate-300:    #cbd5e1;
  --slate-400:    #94a3b8;
  --slate-600:    #475569;
  --slate-700:    #334155;
  --slate-900:    #0f172a;
  --red-50:       #fef2f2;
  --red-400:      #f87171;
  --red-500:      #ef4444;
  --amber-50:     #fffbeb;
  --amber-400:    #fbbf24;
  --amber-500:    #f59e0b;
  --emerald-50:   #ecfdf5;
  --emerald-500:  #10b981;
  --green-400:    #4ade80;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  font-family: var(--font);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #fff;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
svg  { display: block; flex-shrink: 0; }

/* ---------------------------------------------------------------
   Layout helpers
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 72rem;     /* max-w-6xl = 1152px */
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------------------------------------------------------------
   Animations
--------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pm-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.pm-float { animation: pm-float 5s ease-in-out infinite; }

@keyframes pm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.pm-marquee { animation: pm-marquee 22s linear infinite; }

.pm-marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image:         linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .reveal          { opacity: 1; transform: none; transition: none; }
  .pm-float,
  .pm-marquee      { animation: none; }
}

/* ---------------------------------------------------------------
   HEADER
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-header__logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.site-header__logo span { color: var(--brand); }

.site-header__cta {
  border-radius: 9999px;
  border: 1px solid var(--brand);
  padding: .5rem 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--brand);
  transition: background .2s, color .2s;
}
.site-header__cta:hover { background: var(--brand); color: #fff; }

@media (min-width: 640px) {
  .site-header__cta { font-size: .875rem; }
}

/* ---------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------- */
.btn-brand {
  display: inline-block;
  border-radius: 9999px;
  background: var(--brand);
  padding: .875rem 1.75rem;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 24px var(--brand-shadow);
  transition: transform .2s, box-shadow .2s;
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(219,128,88,.4);
  color: #fff;
}

/* ---------------------------------------------------------------
   HERO SECTION
--------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 3.5rem 1.25rem 2.5rem;
}
@media (min-width: 640px) { .hero { padding-top: 5rem; } }

.hero__glow {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.hero__glow--top {
  top: -6rem; left: 50%; transform: translateX(-50%);
  width: 480px; height: 480px;
  background: rgba(219,128,88,.10);
}
.hero__glow--right {
  right: 0; top: 10rem;
  width: 288px; height: 288px;
  background: rgba(219,128,88,.05);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.hero__copy { text-align: center; }
@media (min-width: 1024px) { .hero__copy { text-align: left; } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: .375rem 1rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-body);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.hero__badge-dot {
  width: .375rem; height: .375rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero__h1 {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
@media (min-width: 640px) { .hero__h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero__h1 { margin-left: 0; font-size: 3.4rem; } }

.hero__subp {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--text-body);
}
@media (min-width: 1024px) { .hero__subp { margin-left: 0; } }

.hero__cta-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) { .hero__cta-wrap { justify-content: flex-start; } }

/* ---- Dashboard mockup ---- */
.dashboard-wrap { position: relative; }

.float-card {
  position: absolute;
  z-index: 10;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,.9);
  padding: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  backdrop-filter: blur(8px);
  display: none;
}
@media (min-width: 640px) { .float-card { display: block; } }
.float-card--left  { left: -.75rem; top: 4rem; }
.float-card--right { right: -.75rem; top: 11rem; animation-delay: 1.2s; }

.float-card__inner { display: flex; align-items: center; gap: .625rem; }
.float-card__icon  {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.float-card__icon--green  { background: var(--emerald-50); color: var(--emerald-500); }
.float-card__icon--orange { background: rgba(219,128,88,.1); color: var(--brand); }
.float-card__label { font-size: .6875rem; font-weight: 500; color: var(--text-muted); }
.float-card__value { font-size: .875rem; font-weight: 700; color: var(--text-primary); }

.mockup-window {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  box-shadow: 0 20px 60px rgba(148,163,184,.4);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--slate-50);
  padding: .75rem 1rem;
}
.mockup-dot { width: .75rem; height: .75rem; border-radius: 50%; flex-shrink: 0; }
.mockup-dot--red   { background: var(--red-400); }
.mockup-dot--amber { background: var(--amber-400); }
.mockup-dot--green { background: var(--green-400); }
.mockup-urlbar {
  margin-inline: auto;
  border-radius: .375rem;
  background: #fff;
  padding: .25rem .75rem;
  font-size: .6875rem;
  color: var(--text-muted);
  box-shadow: 0 0 0 1px var(--border-light);
  display: none;
}
@media (min-width: 640px) { .mockup-urlbar { display: block; } }

.mockup-body { display: flex; }

.mockup-sidebar {
  display: none;
  width: 11rem;
  flex-direction: column;
  gap: .25rem;
  background: var(--slate-900);
  padding: 1rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .mockup-sidebar { display: flex; } }

.mockup-sidebar__brand { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.mockup-sidebar__icon  { width: 1.5rem; height: 1.5rem; border-radius: .375rem; background: var(--brand); flex-shrink: 0; }
.mockup-sidebar__name  { font-size: .875rem; font-weight: 700; color: #fff; }

.mockup-nav-item {
  display: flex; align-items: center; gap: .5rem;
  border-radius: .5rem;
  padding: .5rem .75rem;
  font-size: .75rem; font-weight: 500;
  color: var(--slate-400);
}
.mockup-nav-item--active { background: rgba(255,255,255,.1); color: #fff; }

.mockup-nav-dot { width: .5rem; height: .5rem; border-radius: .25rem; background: var(--slate-600); flex-shrink: 0; }
.mockup-nav-item--active .mockup-nav-dot { background: var(--brand); }

.mockup-plan { margin-top: auto; border-radius: .75rem; background: rgba(255,255,255,.05); padding: .75rem; }
.mockup-plan__label { font-size: .625rem; color: var(--slate-400); }
.mockup-plan__value { font-size: .75rem; font-weight: 600; color: #fff; }

.mockup-main { flex: 1; background: #fff; padding: 1rem; min-width: 0; }
@media (min-width: 640px) { .mockup-main { padding: 1.25rem; } }

/* Video player */
.video-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: .75rem;
  border: 1px solid var(--border-light);
  background: var(--slate-900);
}
.video-mockup__overlay { position: absolute; inset: 0; background: rgba(219,128,88,.1); }

.video-mockup__play-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 8px 32px rgba(219,128,88,.4);
  transition: transform .2s;
  color: #fff;
}
.video-mockup__play-btn:hover { transform: scale(1.05); }
@media (min-width: 640px) { .video-mockup__play-btn { width: 5rem; height: 5rem; } }

.video-mockup__controls {
  position: absolute; bottom: .75rem; left: .75rem; right: .75rem; z-index: 1;
  display: flex; align-items: center; gap: .75rem;
}
.video-mockup__progress { flex: 1; height: .25rem; border-radius: 9999px; background: rgba(255,255,255,.2); }
.video-mockup__bar { position: relative; height: .25rem; width: 33%; border-radius: 9999px; background: var(--brand); }
.video-mockup__thumb {
  position: absolute; right: -.25rem; top: 50%; transform: translateY(-50%);
  width: .625rem; height: .625rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.video-mockup__time { font-size: .625rem; font-weight: 500; color: rgba(255,255,255,.7); flex-shrink: 0; font-variant-numeric: tabular-nums; }

.play-icon-sm { width: .75rem; height: .75rem; fill: rgba(255,255,255,.8); color: rgba(255,255,255,.8); flex-shrink: 0; }

/* KPI row */
.kpi-row { margin-top: 1rem; display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
@media (min-width: 640px) { .kpi-row { gap: .75rem; } }
.kpi-card { border-radius: .5rem; border: 1px solid var(--border-light); background: var(--slate-50); padding: .625rem; }
.kpi-card__label { font-size: .625rem; font-weight: 500; color: var(--text-muted); }
.kpi-card__value { margin-top: .125rem; font-size: .875rem; font-weight: 700; color: var(--text-primary); }
@media (min-width: 640px) { .kpi-card__value { font-size: 1rem; } }

/* Marquee */
.marquee-section { margin: 3rem auto 0; max-width: 64rem; padding-inline: 1.25rem; }
.marquee-label { text-align: center; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.marquee-wrap  { margin-top: 1.25rem; position: relative; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 3.5rem; width: max-content; }
.marquee-logo  { font-size: .875rem; font-weight: 600; letter-spacing: .05em; color: var(--slate-300); white-space: nowrap; }

/* ---------------------------------------------------------------
   AGITATION SECTION
--------------------------------------------------------------- */
.agitation {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 4rem 1.25rem;
}
@media (min-width: 640px) { .agitation { padding: 5rem 1.25rem; } }

.agitation__glow {
  pointer-events: none;
  position: absolute; left: 0; top: 33%;
  width: 18rem; height: 18rem;
  border-radius: 50%;
  background: rgba(219,128,88,.05);
  filter: blur(48px);
}

/* Shared section headings */
.section-h2 {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-primary);
  max-width: 40rem;
  margin-inline: auto;
}
@media (min-width: 640px) { .section-h2 { font-size: 2.25rem; } }

.section-p {
  text-align: center;
  margin-top: 1rem;
  max-width: 32rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text-body);
}

.cards-grid-2 { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards-grid-2 { grid-template-columns: 1fr 1fr; } }

.problem-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border-light);
  background: #fff;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(148,163,184,.5);
  height: 100%;
}

.problem-card__header { display: flex; align-items: center; gap: .75rem; }
.problem-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: .75rem;
  flex-shrink: 0;
}
.problem-card__icon--red   { background: var(--red-50);   color: var(--red-500); }
.problem-card__icon--amber { background: var(--amber-50); color: var(--amber-500); }
.problem-card__title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.problem-card__p { margin-top: 1rem; font-size: .875rem; line-height: 1.625; color: var(--text-body); }

/* Micro bar-chart */
.micro-chart {
  position: relative;
  margin-top: 2rem;
  height: 8rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  background: var(--slate-50);
  padding: 1rem;
}
.micro-chart__bars  { display: flex; height: 100%; align-items: flex-end; gap: .5rem; }
.micro-chart__bar   { flex: 1; border-radius: .25rem .25rem 0 0; background: rgba(248,113,113,.7); }
.micro-chart__badge {
  position: absolute; right: 1rem; top: .75rem;
  border-radius: .375rem;
  background: var(--red-50);
  padding: .125rem .5rem;
  font-size: .6875rem; font-weight: 600;
  color: var(--red-500);
}

/* Cost rows */
.cost-rows {
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: .75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  background: var(--slate-50);
  padding: 1rem;
}
.cost-row {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: .5rem;
  background: #fff;
  padding: .5rem .75rem;
  box-shadow: 0 0 0 1px var(--border-light);
}
.cost-row__name   { font-size: .75rem; font-weight: 500; color: var(--slate-600); }
.cost-row__amount { font-size: .75rem; font-weight: 700; color: var(--red-500); }

/* ---------------------------------------------------------------
   MECHANISM SECTION
--------------------------------------------------------------- */
.mechanism {
  position: relative;
  background: #fff;
  padding: 4rem 1.25rem;
}
@media (min-width: 640px) { .mechanism { padding: 5rem 1.25rem; } }

.bento-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border-light);
  background: var(--slate-50);
  padding: 2rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
  height: 100%;
}
@media (min-width: 640px) { .bento-card { padding: 2.5rem; } }
.bento-card:hover { border-color: var(--slate-200); background: #fff; box-shadow: 0 20px 60px rgba(148,163,184,.5); }

.bento-card__header { display: flex; align-items: center; gap: .75rem; }
.bento-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: .75rem;
  background: rgba(219,128,88,.1);
  flex-shrink: 0;
  color: var(--brand);
}
.bento-card__title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.bento-card__p { margin-top: .75rem; font-size: .875rem; line-height: 1.625; color: var(--text-body); }
.bento-card__demo { margin-top: 1.5rem; }

/* Landing demo mockup */
.landing-demo { overflow: hidden; border-radius: .75rem; border: 1px solid var(--slate-200); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.landing-demo__header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-light); padding: .625rem 1rem; }
.landing-demo__logo   { display: flex; align-items: center; gap: .375rem; }
.landing-demo__logo-icon { width: .75rem; height: .75rem; border-radius: .125rem; background: var(--brand); flex-shrink: 0; }
.landing-demo__logo-text { width: 3rem; height: .5rem; border-radius: 9999px; background: var(--slate-200); }
.landing-demo__nav    { display: flex; align-items: center; gap: .5rem; }
.landing-demo__nav-link { width: 1.5rem; height: .375rem; border-radius: 9999px; background: var(--border-light); }
.landing-demo__nav-btn  { width: 3rem; height: 1rem; border-radius: 9999px; background: var(--slate-200); }
.landing-demo__hero { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.25rem 1rem; }
.landing-demo__h    { height: .75rem; width: 60%; border-radius: 9999px; background: var(--slate-300); }
.landing-demo__p1   { height: .5rem; width: 80%; border-radius: 9999px; background: var(--border-light); }
.landing-demo__p2   { height: .5rem; width: 67%; border-radius: 9999px; background: var(--border-light); }
.landing-demo__cta  { margin-top: .5rem; width: 7rem; height: 1.75rem; border-radius: .375rem; background: var(--brand); }

/* Tracking demo */
.tracking-demo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 7.75rem;
  border-radius: .75rem;
  border: 1px solid var(--slate-200);
  background: #fff;
}
.tracking-nodes { display: flex; align-items: center; gap: 2rem; position: relative; z-index: 1; }
.tracking-node {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(219,128,88,.1);
  font-size: .75rem; font-weight: 700;
  color: var(--brand);
  box-shadow: 0 0 0 2px rgba(219,128,88,.3);
}
.tracking-line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 10rem; height: 1px;
  background: linear-gradient(to right, rgba(219,128,88,.2), rgba(219,128,88,.5), rgba(219,128,88,.2));
}

/* CRM demo */
.crm-demo { overflow: hidden; border-radius: .75rem; border: 1px solid var(--slate-200); background: #fff; }
.crm-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .625rem .75rem;
  font-size: .75rem;
  border-bottom: 1px solid var(--border-light);
}
.crm-row:last-child { border-bottom: none; }
.crm-row__left { display: flex; align-items: center; gap: .5rem; }
.crm-row__avatar { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--slate-200); flex-shrink: 0; }
.crm-row__name   { font-weight: 500; color: var(--slate-700); }
.crm-status--green { font-weight: 600; color: var(--emerald-500); }
.crm-status--amber { font-weight: 600; color: var(--amber-500); }

/* Video mini */
.video-mini {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/8;
  overflow: hidden;
  border-radius: .75rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-900);
}
.video-mini__overlay  { position: absolute; inset: 0; background: rgba(219,128,88,.1); }
.video-mini__play {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 4px 16px rgba(219,128,88,.4);
  transition: transform .2s;
  color: #fff;
}
.video-mini__play:hover { transform: scale(1.05); }
.video-mini__controls {
  position: absolute; bottom: .75rem; left: .75rem; right: .75rem; z-index: 1;
  display: flex; align-items: center; gap: .75rem;
}
.video-mini__bar-wrap { flex: 1; height: .25rem; border-radius: 9999px; background: rgba(255,255,255,.2); }
.video-mini__bar { position: relative; height: .25rem; width: 40%; border-radius: 9999px; background: var(--brand); }
.video-mini__thumb { position: absolute; right: -.25rem; top: 50%; transform: translateY(-50%); width: .625rem; height: .625rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.video-mini__time  { font-size: .625rem; font-weight: 500; color: rgba(255,255,255,.7); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------
   AUTHORITY SECTION
--------------------------------------------------------------- */
.authority { background: #fff; padding: 3rem 1.25rem; }

.authority__inner {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--slate-900);
  padding: 5rem 1.5rem;
}
@media (min-width: 640px) { .authority__inner { padding: 7rem 3rem; } }

.authority__glow {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.authority__glow--center {
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 24rem; height: 24rem;
  background: rgba(219,128,88,.2);
}
.authority__glow--corner {
  bottom: 0; right: 2.5rem;
  width: 16rem; height: 16rem;
  background: rgba(219,128,88,.1);
}

.authority__content { position: relative; text-align: center; max-width: 48rem; margin-inline: auto; }

.authority__h2 {
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.375;
  color: #fff;
}
@media (min-width: 640px) { .authority__h2 { font-size: 2.25rem; } }
.authority__h2 strong { font-weight: 600; color: var(--brand); }

.authority__cta-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }

/* ---------------------------------------------------------------
   APPLY SECTION
--------------------------------------------------------------- */
.apply {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 4rem 1.25rem;
}
@media (min-width: 640px) { .apply { padding: 5rem 1.25rem; } }

.apply__glow {
  pointer-events: none;
  position: absolute; right: -5rem; top: 5rem;
  width: 20rem; height: 20rem;
  border-radius: 50%;
  background: rgba(219,128,88,.05);
  filter: blur(48px);
}

.apply__grid { position: relative; display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .apply__grid { grid-template-columns: 1fr 1fr; } }

.apply__h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
@media (min-width: 640px) { .apply__h2 { font-size: 2.25rem; } }

.apply__p { margin-top: 1rem; max-width: 28rem; line-height: 1.625; color: var(--text-body); }

.req-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; list-style: none; padding: 0; }
.req-item { display: flex; align-items: flex-start; gap: .75rem; }
.req-icon { flex-shrink: 0; margin-top: .125rem; color: var(--brand); }
.req-text { font-size: .875rem; line-height: 1.625; color: var(--slate-700); }

/* Form card */
.form-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border-light);
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(148,163,184,.6);
}
@media (min-width: 640px) { .form-card { padding: 2.25rem; } }

.form-card__h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.form-card__p  { margin-top: .25rem; font-size: .875rem; color: var(--text-body); }

.apply-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.field label {
  display: block;
  margin-bottom: .375rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--slate-700);
}
.field input,
.field select {
  width: 100%;
  border-radius: .75rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(219,128,88,.2);
}
.field input::placeholder { color: var(--text-muted); }

.btn-submit {
  width: 100%;
  border-radius: .75rem;
  background: var(--brand);
  padding: .875rem 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px var(--brand-shadow);
  transition: transform .2s, box-shadow .2s;
  font-family: var(--font);
  cursor: pointer;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(219,128,88,.4);
}

.form-note { text-align: center; font-size: .75rem; color: var(--text-muted); }

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  border-radius: 1.25rem;
  border: 1px solid #d1fae5;
  background: var(--emerald-50);
  padding: 3rem 1.5rem;
  text-align: center;
}
.form-success.is-visible { display: flex; }
.form-success__icon  { color: var(--emerald-500); }
.form-success__title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.form-success__p     { font-size: .875rem; color: var(--text-body); }

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: #fff;
  padding: 2.5rem 1.25rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .site-footer__inner { flex-direction: row; }
}

.site-footer__logo { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-primary); }
.site-footer__logo span { color: var(--brand); }
.site-footer__copy { font-size: .875rem; color: var(--text-muted); }
