/* =============================================================
   KiteClass Landing — Component Library
   Reusable marketing-page components for the per-tenant landing
   template (Personal + Organization). Pairs with
   colors_and_type.css. All colours flow from the four --theme-*
   RGB vars so a tenant theme cascades automatically.
   ============================================================= */

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding-block: var(--section-y); }
.section-soft { background: rgb(var(--bg-soft)); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.center { display: flex; align-items: center; justify-content: center; }

/* Section header block */
.sec-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 48px; }
.sec-head.left { margin-inline: 0; text-align: left; }
.sec-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.sec-head h2 { margin: 0 0 14px; }
.sec-head p { margin: 0; color: rgb(var(--fg-soft)); font-size: var(--text-lg); line-height: var(--leading-relaxed); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--text-base);
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-cta {
  background: rgb(var(--theme-cta));
  color: rgb(var(--theme-on-cta));
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover { background: rgb(var(--theme-cta) / 0.92); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--theme-cta) / 0.45); }

.btn-primary { background: rgb(var(--theme-primary)); color: rgb(var(--theme-on-primary)); }
.btn-primary:hover { background: rgb(var(--theme-primary) / 0.90); transform: translateY(-2px); box-shadow: var(--shadow-primary); }

.btn-outline { background: transparent; color: rgb(var(--theme-primary)); border-color: rgb(var(--theme-primary) / 0.45); }
.btn-outline:hover { background: rgb(var(--theme-primary) / 0.06); border-color: rgb(var(--theme-primary)); }

.btn-ghost { background: transparent; color: rgb(var(--fg)); }
.btn-ghost:hover { background: rgb(var(--bg-muted)); }

/* on dark banners */
.btn-on-dark { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-on-dark:hover { background: rgba(255,255,255,0.20); }

.btn-lg { padding: 16px 30px; font-size: var(--text-lg); }
.btn-sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn-block { width: 100%; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-sm); font-weight: 600; line-height: 1;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgb(var(--bg-muted)); color: rgb(var(--fg-soft));
}
.badge-cta { background: rgb(var(--theme-cta) / 0.14); color: rgb(var(--theme-cta)); }
.badge-primary { background: rgb(var(--theme-primary) / 0.12); color: rgb(var(--theme-primary)); }
.badge-accent { background: rgb(var(--theme-accent) / 0.16); color: rgb(var(--theme-accent)); }
.badge-success { background: rgb(var(--success) / 0.14); color: rgb(var(--success)); }

/* Trust badge — orange pill with check, used near CTAs */
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-full);
  background: rgb(var(--theme-cta) / 0.12); color: rgb(var(--theme-cta));
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 600; }
.trust-item svg { width: 18px; height: 18px; color: rgb(var(--theme-cta)); }

/* ---------- Cards ---------- */
.card {
  background: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- Subject icon chip ---------- */
/* The theme-by-subject glyph: ⚖️ luật · ➗ toán · ⚗️ hóa · 📚 chung */
.subject-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  font-size: 28px; line-height: 1;
  background: rgb(var(--theme-primary) / 0.10);
}
.subject-icon.lg { width: 72px; height: 72px; font-size: 36px; }
.subject-icon.on-dark { background: rgba(255,255,255,0.14); }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--bg) / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgb(var(--border));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .mark { width: 36px; height: 36px; }
.nav-logo .name { font-weight: 800; font-size: var(--text-xl); color: rgb(var(--fg)); letter-spacing: -0.01em; }
.nav-logo .name .accent { color: rgb(var(--theme-primary)); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: rgb(var(--fg)); font-weight: 600; font-size: var(--text-sm); transition: color .15s ease; }
.nav-links a:hover { color: rgb(var(--theme-primary)); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-hotline { display: flex; align-items: center; gap: 8px; color: rgb(var(--theme-cta)); font-weight: 700; font-size: var(--text-sm); }
@media (max-width: 880px) { .nav-links, .nav-hotline { display: none; } }

/* =============================================================
   HERO CAROUSEL  (3 layers: slogan · person image · subject icon)
   ============================================================= */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-slide {
  position: relative;
  background:
    linear-gradient(120deg, rgb(var(--theme-primary)) 0%, color-mix(in srgb, rgb(var(--theme-secondary)) 90%, #000 20%) 100%);
}
.hero-slide::after {
  /* accent glow */
  content: ""; position: absolute; right: -8%; bottom: -30%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--theme-accent) / 0.55) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: rgba(255,255,255,0.14); color: #fff; padding: 7px 14px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
/* text-wrap: balance — per-tenant heroTitle là input biến đổi (AI/user provided);
   balance cân dòng cho mọi độ dài. Pair input length budget GAP-827. */
.hero h1 { margin: 0 0 18px; color: #fff; text-wrap: balance; }
.hero h1 .hl { color: rgb(var(--theme-accent)); }
.hero-sub { margin: 0 0 28px; max-width: 30em; font-size: var(--text-lg); line-height: var(--leading-relaxed); color: rgba(255,255,255,0.85); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-trust .trust-item { color: rgba(255,255,255,0.9); }
.hero-trust .trust-item svg { color: rgb(var(--theme-accent)); }

/* hero portrait stack */
.hero-portrait { position: relative; justify-self: center; }
.hero-portrait .ring {
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 210deg, rgb(var(--theme-accent)), rgb(var(--theme-cta)), rgb(var(--theme-accent)));
  filter: blur(2px); opacity: 0.9;
}
.hero-portrait .frame {
  position: relative; width: clamp(240px, 26vw, 340px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 6px solid rgba(255,255,255,0.92);
  box-shadow: var(--shadow-xl);
}
.hero-portrait .float-icon {
  position: absolute; z-index: 3; width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: #fff; color: rgb(var(--fg)); display: flex; align-items: center; justify-content: center;
  font-size: 32px; box-shadow: var(--shadow-lg);
}
.hero-portrait .float-icon.tl { top: 6px; left: -10px; }
.hero-portrait .float-icon.br { bottom: 14px; right: -14px; }
.hero-portrait .float-chip {
  position: absolute; z-index: 3; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: #fff; color: rgb(var(--fg)); border-radius: var(--radius-full);
  padding: 8px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: var(--text-sm); white-space: nowrap;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--success)); }

/* carousel dots + arrows */
.hero-dots { position: absolute; z-index: 4; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; transition: width .2s ease, background .2s ease; }
.hero-dots button.on { width: 28px; border-radius: var(--radius-full); background: rgb(var(--theme-cta)); }
.hero-arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-portrait { order: -1; }
  .hero-actions, .hero-trust, .hero-eyebrow { justify-content: center; }
  .hero-arrow { display: none; }
}

/* =============================================================
   URGENCY BAR (khai giảng countdown strip)
   ============================================================= */
.urgency-bar {
  background: rgb(var(--theme-cta)); color: rgb(var(--theme-on-cta));
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 20px; font-weight: 600; font-size: var(--text-sm);
}
.urgency-bar strong { font-weight: 800; }
.urgency-bar .pill { background: rgba(0,0,0,0.14); padding: 4px 10px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; font-weight: 800; }

/* =============================================================
   COUNTER BAND (animated big numbers)
   ============================================================= */
.counter-band {
  background: linear-gradient(120deg, rgb(var(--theme-primary)) 0%, rgb(var(--theme-secondary)) 100%);
  color: #fff;
}
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding-block: clamp(40px, 5vw, 64px); }
.counter-cell .counter-num { color: #fff; }
.counter-cell .counter-num .suffix { color: rgb(var(--theme-accent)); }
.counter-cell .label { margin-top: 8px; font-size: var(--text-base); color: rgba(255,255,255,0.85); font-weight: 500; }
.counter-cell .ico { font-size: 26px; margin-bottom: 6px; display: block; }
@media (max-width: 760px) { .counter-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   COURSE CARDS (banner-style)
   ============================================================= */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* about */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 920px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .course-grid { grid-template-columns: 1fr; } }
.course-card { overflow: hidden; display: flex; flex-direction: column; }
.course-banner {
  position: relative; aspect-ratio: 16/9; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(135deg, rgb(var(--theme-primary)) 0%, rgb(var(--theme-secondary)) 100%);
  color: #fff;
}
.course-banner .subject-icon { position: absolute; top: 14px; right: 14px; }
.course-banner .tag { background: rgb(var(--theme-cta)); color: rgb(var(--theme-on-cta)); padding: 5px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.course-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-body h3 { margin: 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: rgb(var(--fg-soft)); font-size: var(--text-sm); }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid rgb(var(--border)); }
.course-price { font-weight: 800; font-size: var(--text-xl); color: rgb(var(--theme-primary)); }
.course-price small { font-weight: 500; font-size: var(--text-sm); color: rgb(var(--fg-faint)); }

/* =============================================================
   ROADMAP / LỘ TRÌNH (vertical timeline)
   ============================================================= */
.roadmap { max-width: 760px; margin-inline: auto; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; background: rgb(var(--theme-primary) / 0.25); }
.roadmap-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 28px; position: relative; }
.roadmap-step:last-child { padding-bottom: 0; }
.roadmap-step .num { width: 56px; height: 56px; border-radius: 50%; background: rgb(var(--theme-primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--text-xl); position: relative; z-index: 1; }
.roadmap-step h4 { margin: 6px 0 6px; }
.roadmap-step p { margin: 0; color: rgb(var(--fg-soft)); }

/* =============================================================
   PRICING
   ============================================================= */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin-inline: auto; align-items: start; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; } }
.price-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.price-card.feat { border: 2px solid rgb(var(--theme-primary)); box-shadow: var(--shadow-lg); }
.price-card .feat-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: rgb(var(--theme-cta)); color: rgb(var(--theme-on-cta)); padding: 5px 14px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.price-card h3 { margin: 4px 0 2px; }
.price-amt { font-family: var(--font-display); font-weight: 900; font-size: var(--text-4xl); color: rgb(var(--theme-primary)); line-height: 1.1; }
.price-amt small { font-size: var(--text-base); font-weight: 600; color: rgb(var(--fg-faint)); }
.price-list { list-style: none; margin: 14px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); }
.price-list li svg { width: 18px; height: 18px; color: rgb(var(--theme-cta)); flex-shrink: 0; margin-top: 1px; }
.price-note { text-align: center; color: rgb(var(--fg-faint)); font-size: var(--text-sm); margin-top: 24px; }

/* =============================================================
   TEACHERS (org) — circular themed photos
   ============================================================= */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 920px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .teacher-grid { grid-template-columns: 1fr; } }
.teacher-card { padding: 24px 18px; text-align: center; }
.teacher-photo { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 4px solid rgb(var(--theme-primary) / 0.30); }
.teacher-card h4 { margin: 0 0 4px; }
.teacher-card .subj { color: rgb(var(--theme-primary)); font-weight: 600; font-size: var(--text-sm); margin-bottom: 12px; }
.teacher-card .creds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.teacher-card .creds li { font-size: var(--text-sm); color: rgb(var(--fg-soft)); display: flex; align-items: center; justify-content: center; gap: 6px; }
.teacher-card .creds li::before { content: "✓"; color: rgb(var(--theme-cta)); font-weight: 800; }

/* =============================================================
   GALLERY (org)
   ============================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; gap: 14px; }
.gallery-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid > * { border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid > *:nth-child(1) { grid-column: span 2; } }

/* =============================================================
   COMMITMENT / CTA BANNERS (full-width, mid-page)
   ============================================================= */
.commit-banner {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, color-mix(in srgb, rgb(var(--theme-primary)) 92%, #000 18%) 0%, rgb(var(--theme-secondary)) 100%);
}
.commit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-block: clamp(40px, 5vw, 64px); }
@media (max-width: 820px) { .commit-grid { grid-template-columns: repeat(2, 1fr); } }
.commit-item { display: flex; flex-direction: column; gap: 8px; }
.commit-item .subject-icon { background: rgba(255,255,255,0.14); }
.commit-item h4 { margin: 4px 0 0; color: #fff; }
.commit-item p { margin: 0; color: rgba(255,255,255,0.82); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(120deg, rgb(var(--theme-cta)) 0%, color-mix(in srgb, rgb(var(--theme-cta)) 70%, rgb(var(--theme-accent))) 100%);
  color: rgb(var(--theme-on-cta));
}
.cta-banner .inner { padding-block: clamp(40px, 5vw, 72px); position: relative; z-index: 2; }
.cta-banner h2 { color: inherit; margin: 0 0 14px; }
.cta-banner p { margin: 0 auto 26px; max-width: 36em; font-size: var(--text-lg); opacity: 0.92; }
.cta-banner .btn-cta { background: #fff; color: rgb(var(--theme-cta)); box-shadow: var(--shadow-lg); }
.cta-banner .btn-cta:hover { background: #fff; transform: translateY(-2px); }
.cta-banner .btn-on-dark { border-color: rgba(255,255,255,0.7); }

/* =============================================================
   TESTIMONIALS (scroll-snap carousel)
   ============================================================= */
.testi-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; scrollbar-width: thin;
}
.testi-track > * { scroll-snap-align: start; }
@media (min-width: 920px) { .testi-track { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; overflow: visible; } }
.testi-card { padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.testi-stars { color: rgb(var(--theme-accent)); font-size: var(--text-lg); letter-spacing: 2px; }
.testi-quote { font-size: var(--text-base); line-height: var(--leading-relaxed); color: rgb(var(--fg)); flex: 1; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: rgb(var(--theme-primary) / 0.12); display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgb(var(--theme-primary)); }
.testi-person .nm { font-weight: 700; font-size: var(--text-sm); }
.testi-person .rl { font-size: var(--text-xs); color: rgb(var(--fg-faint)); }

/* =============================================================
   FAQ (accordion)
   ============================================================= */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid rgb(var(--border)); border-radius: var(--radius-lg); overflow: hidden; background: rgb(var(--card)); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: var(--text-base); color: rgb(var(--fg)); font-family: var(--font-sans); }
.faq-q .chev { transition: transform .2s ease; color: rgb(var(--theme-primary)); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { margin: 0; padding: 0 20px 18px; color: rgb(var(--fg-soft)); line-height: var(--leading-relaxed); }

/* =============================================================
   CONTACT
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid rgb(var(--border)); border-radius: var(--radius-lg); background: rgb(var(--card)); }
.contact-card .ico { width: 44px; height: 44px; border-radius: var(--radius); background: rgb(var(--theme-primary) / 0.10); color: rgb(var(--theme-primary)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .lbl { font-size: var(--text-xs); color: rgb(var(--fg-faint)); text-transform: uppercase; letter-spacing: var(--tracking-caps); font-weight: 700; }
.contact-card .val { font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field textarea { font-family: var(--font-sans); font-size: var(--text-base); padding: 12px 14px; border: 1px solid rgb(var(--border)); border-radius: var(--radius); background: rgb(var(--bg)); color: rgb(var(--fg)); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgb(var(--theme-primary)); box-shadow: 0 0 0 3px rgb(var(--theme-primary) / 0.15); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: rgb(15 23 42); color: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-block: 56px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-caps); margin: 0 0 16px; }
.footer a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: var(--text-sm); }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer .brand-name { color: #fff; font-weight: 800; font-size: var(--text-xl); }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.10); padding-block: 20px; text-align: center; font-size: var(--text-sm); color: rgba(255,255,255,0.5); }

/* =============================================================
   SECTION DIVIDER (subtle diagonal)
   ============================================================= */
.divider-wave { display: block; width: 100%; height: 40px; }

/* =============================================================
   THEME SWITCHER (demo control — not part of the template)
   ============================================================= */
.theme-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 100;
  background: rgb(var(--card)); border: 1px solid rgb(var(--border));
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 12px; display: flex; flex-direction: column; gap: 8px; width: 210px;
}
.theme-switch .ts-title { font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: rgb(var(--fg-faint)); }
.theme-switch .ts-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; background: none; font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; color: rgb(var(--fg)); text-align: left; width: 100%; }
.theme-switch .ts-opt:hover { background: rgb(var(--bg-muted)); }
.theme-switch .ts-opt.on { border-color: rgb(var(--theme-primary)); background: rgb(var(--theme-primary) / 0.06); }
.theme-switch .sw { display: flex; gap: 3px; }
.theme-switch .sw i { width: 14px; height: 14px; border-radius: 4px; display: block; }

/* animation entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .6s ease both; }
