/* ==========================================================================
   WEneex Design System v5
   Single unified CSS file per 00-CAU-LENH-REDESIGN.md
   Structure: tokens → base → layout → components → pages → utilities
   ========================================================================== */

/* ==========================================================================
   §1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* COLORS — Brand */
  --navy: #17295A;
  --navy-light: #1F3470;
  --navy-muted: #2D4575;
  --blue: #1877D6;
  --blue-hover: #1264B7;
  --blue-pressed: #0E5399;
  --orange: #EE7A1B;
  --orange-text: #9A4A08;

  /* COLORS — 6-petal palette (decorative only) */
  --petal-blue: #1877D6;
  --petal-orange: #EE7A1B;
  --petal-red: #D3263C;
  --petal-teal: #0D6B7A;
  --petal-green: #2F7D46;
  --petal-purple: #7D3CC8;

  /* COLORS — Neutrals */
  --cream: #FFF8EF;
  --white: #FFFFFF;
  --ink: #1D2740;
  --muted: #5D6680;
  --line: #D8DEE9;
  --field-border: #A5AFC1;
  --placeholder: #68748C;
  --disabled-bg: #E8ECF2;
  --disabled-text: #566176;

  /* COLORS — Semantic */
  --success: #2F7D46;
  --warning: #EE7A1B;
  --error: #D3263C;
  --info: #1877D6;

  /* TYPOGRAPHY — Scale (major third 1.250) */
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 42px;
  --text-5xl: 56px;
  --text-6xl: 64px;

  --line-xs: 1.38;
  --line-sm: 1.43;
  --line-base: 1.625;
  --line-lg: 1.56;
  --line-heading: 1.2;
  --line-tight: 1.1;

  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* SPACING — 4px base grid */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* RADII */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* SHADOWS */
  --shadow-xs: 0 1px 2px rgba(23, 41, 90, .04);
  --shadow-sm: 0 2px 8px rgba(23, 41, 90, .06);
  --shadow-md: 0 4px 16px rgba(23, 41, 90, .08);
  --shadow-lg: 0 8px 24px rgba(23, 41, 90, .10);
  --shadow-xl: 0 16px 48px rgba(23, 41, 90, .12);

  /* LAYOUT */
  --container-xs: 640px;
  --container-sm: 800px;
  --container-md: 1000px;
  --container-lg: 1180px;
  --container-xl: 1280px;

  --gutter-mobile: 20px;
  --gutter-desktop: 32px;

  --header-height-mobile: 66px;
  --header-height-desktop: 76px;

  /* BREAKPOINTS (min-width) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* TRANSITIONS */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
}

@media (max-width: 640px) {
  :root {
    --text-5xl: 38px;
    --text-6xl: 42px;
  }
}

/* ==========================================================================
   §2. BASE STYLES
   ========================================================================== */

/* Fonts */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--line-base);
  color: var(--ink);
  background: var(--cream);
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--line-heading);
  color: var(--navy);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--line-tight);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

.lead {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: var(--line-lg);
}

.fine {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Skip link */
.skip {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--sp-4) var(--sp-6);
  background: var(--navy);
  color: var(--white);
  font-weight: var(--font-semibold);
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform var(--duration-base);
  z-index: 9999;
}

.skip:focus {
  transform: translateY(0);
}

/* Icon */
.ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   §3. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container-lg) + 2 * var(--gutter-desktop));
  margin-inline: auto;
  padding-inline: var(--gutter-desktop);
}

.container--xs {
  max-width: calc(var(--container-xs) + 2 * var(--gutter-desktop));
}

.container--sm {
  max-width: calc(var(--container-sm) + 2 * var(--gutter-desktop));
}

.container--md {
  max-width: calc(var(--container-md) + 2 * var(--gutter-desktop));
}

.container--xl {
  max-width: calc(var(--container-xl) + 2 * var(--gutter-desktop));
}

@media (max-width: 640px) {
  .container, .container--xs, .container--sm, .container--md, .container--xl {
    padding-inline: var(--gutter-mobile);
  }
}

@media (max-width: 375px) {
  .container, .container--xs, .container--sm, .container--md, .container--xl {
    padding-inline: 16px;
  }
}

.section {
  padding: var(--sp-12) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--sp-10) 0;
  }
}

/* Empty sections should not take space */
.section:empty,
.section > .container:empty {
  display: none;
}

/* ==========================================================================
   §3A. SHELL: HEADER, FOOTER, CHATBOT
   ========================================================================== */

/* Ribbon */
.ribbon {
  height: 4px;
  background: linear-gradient(90deg, #1877D6 0 16.66%, #EE7A1B 16.66% 33.33%, #D3263C 33.33% 50%, #0D6B7A 50% 66.66%, #2F7D46 66.66% 83.33%, #7D3CC8 83.33% 100%);
}

/* Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 239, .84);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--duration-slow), border-color var(--duration-slow), box-shadow var(--duration-slow);
}

.hdr.scrolled {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(23, 41, 90, .05);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--header-height-desktop);
}

.brand {
  display: block;
  flex-shrink: 0;
  border-radius: var(--r-md);
}

.brand img {
  display: block;
  width: 170px;
  height: auto;
  max-width: 100%;
}

@media (max-width: 375px) {
  .brand img {
    width: 140px;
  }
}

.nav {
  display: none;
  flex: 1;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav a,
.nav__toggle {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--duration-base), background var(--duration-base);
  cursor: pointer;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav a:hover,
.nav__toggle:hover {
  color: var(--blue-hover);
  background: rgba(24, 119, 214, .07);
}

.nav a[aria-current="page"] {
  color: var(--blue);
}

/* Dropdown */
.nav__group {
  position: relative;
}

.nav__toggle {
  white-space: nowrap;
}

.nav__chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-base);
}

.nav__toggle[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  min-width: 200px;
  padding: var(--sp-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

@media (min-width: 1024px) {
  .nav__toggle[aria-expanded="true"] + .nav__sub {
    display: flex;
    flex-direction: column;
  }
}

.nav__sub a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.hdr__tools {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

@media (min-width: 1024px) {
  .hdr__tools {
    margin-left: 0;
  }
}

/* Language switcher */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
}

.lang button {
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: var(--font-semibold);
  line-height: 1;
  color: var(--muted);
  min-width: 40px;
  min-height: 34px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--duration-base), color var(--duration-base);
}

.lang button:hover {
  color: var(--navy);
}

.lang button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

/* Header buttons - moved after .btn definition to override */

/* Burger menu */
.burger {
  display: flex;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

.burger .ic {
  width: 22px;
  height: 22px;
}

.burger .ic-close {
  display: none;
}

.hdr.menu-open .burger .ic-menu {
  display: none;
}

.hdr.menu-open .burger .ic-close {
  display: inline-block;
}

/* Mobile menu */
@media (max-width: 1023px) {
  .hdr.menu-open {
    position: fixed;
    inset: 0;
    background: var(--white);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .hdr.menu-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--sp-6);
    gap: var(--sp-2);
    overflow-y: auto;
    background: var(--white);
  }

  .hdr.menu-open .nav a,
  .hdr.menu-open .nav__toggle {
    font-size: var(--text-lg);
    padding: var(--sp-4);
  }

  .hdr.menu-open .nav__group {
    width: 100%;
  }

  .hdr.menu-open .nav__sub {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--sp-6);
    background: transparent;
  }

  .hdr.menu-open .nav__toggle[aria-expanded="true"] + .nav__sub {
    display: flex;
  }

  .hdr__in {
    height: var(--header-height-mobile);
  }
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-16) 0 0;
}

.footer__in {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
}

@media (min-width: 768px) {
  .footer__in {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--sp-8);
    align-items: start;
  }
}

.footer__brand {
  max-width: 360px;
}

.footer__brand img {
  display: block;
  width: 280px;
  height: auto;
  margin-bottom: var(--sp-4);
}

.footer__brand p {
  font-size: var(--text-base);
  line-height: var(--line-base);
  opacity: .9;
}

.footer__brand address {
  font-style: normal;
  margin-top: var(--sp-5);
  line-height: 1.8;
  font-size: var(--text-sm);
  opacity: .9;
}

.footer__brand address a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--duration-base);
}

.footer__brand address a:hover {
  opacity: .7;
  text-decoration: underline;
}

.footer h5 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color var(--duration-base);
}

.footer nav a:hover {
  color: var(--white);
}

/* Footer language switcher */
.flang {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.flang button {
  border: 0;
  background: transparent;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .85);
  text-align: left;
  cursor: pointer;
  padding: var(--sp-1) 0;
  transition: color var(--duration-base);
}

.flang button:hover {
  color: var(--white);
}

.flang button[aria-pressed="true"] {
  color: var(--white);
  font-weight: var(--font-semibold);
}

/* Footer bottom */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .75);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Chatbot */
.chatbot__btn {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-base), background var(--duration-base), box-shadow var(--duration-slow);
}

.chatbot__btn:hover {
  background: var(--blue-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.chatbot__btn .ic {
  width: 24px;
  height: 24px;
}

.chatbot__panel {
  position: fixed;
  right: var(--sp-6);
  bottom: calc(var(--sp-6) + 64px);
  z-index: 50;
  width: min(420px, calc(100vw - 2 * var(--sp-6)));
  max-height: 600px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot__panel[hidden] {
  display: none;
}

.chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--blue);
  color: var(--white);
  flex-shrink: 0;
}

.chatbot__header h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--white);
  margin: 0;
}

.chatbot__close {
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: var(--sp-1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--duration-base);
}

.chatbot__close:hover {
  background: rgba(255, 255, 255, .15);
}

.chatbot__close .ic {
  width: 20px;
  height: 20px;
}

.chatbot__body {
  padding: var(--sp-6);
  overflow-y: auto;
  flex: 1;
}

.chatbot__greeting {
  font-size: var(--text-base);
  line-height: var(--line-base);
  margin-bottom: var(--sp-5);
  color: var(--ink);
}

.chatbot__quick {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.chatbot__quick-btn {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-base), border-color var(--duration-base);
}

.chatbot__quick-btn:hover {
  background: var(--white);
  border-color: var(--blue);
}

.chatbot__note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--sp-5);
  line-height: var(--line-base);
}

/* ==========================================================================
   §4. COMPONENTS
   ========================================================================== */

/* Page Hero */
.page-hero {
  padding: var(--sp-16) 0 var(--sp-12);
  background: var(--cream);
}

.page-hero .eyebrow {
  margin-bottom: var(--sp-4);
}

.page-hero h1 {
  margin: var(--sp-4) 0;
}

.page-hero .lead {
  margin-top: var(--sp-4);
  max-width: 65ch;
}

/* Home hero has 2-column layout */
.page-hero--home .container {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .page-hero--home .container {
    grid-template-columns: 1.2fr 1fr;
  }
}

.page-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
}

.benefit-inline {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-base);
  color: var(--navy);
}

.benefit-inline .ic {
  color: var(--success);
}

@media (max-width: 768px) {
  .page-hero {
    padding: var(--sp-12) 0 var(--sp-8);
  }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px 6px 7px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(
    var(--petal-blue) 0 60deg,
    var(--petal-orange) 0 120deg,
    var(--petal-red) 0 180deg,
    var(--petal-teal) 0 240deg,
    var(--petal-green) 0 300deg,
    var(--petal-purple) 0
  );
  flex: none;
}

/* Section Header */
.section-header {
  max-width: 760px;
  margin-bottom: var(--sp-12);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  margin-top: var(--sp-4);
}

.section-header .lead {
  margin-top: var(--sp-4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease),
              background var(--duration-fast),
              border-color var(--duration-fast),
              box-shadow var(--duration-base);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: scale(.985);
}

.btn .ic {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-base) var(--ease);
}

.btn:hover .ic {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(24, 119, 214, .20);
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--secondary {
  background: var(--navy);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--navy-light);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: rgba(23, 41, 90, .04);
}

.btn--ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--navy);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: var(--text-sm);
  border-radius: var(--r-md);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 32px;
  font-size: var(--text-lg);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Hide auth buttons on mobile, show on desktop - after .btn to override */
.hdr__login,
.hdr__cta {
  display: none !important;
}

@media (min-width: 1024px) {
  .hdr__login,
  .hdr__cta {
    display: inline-flex !important;
  }
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  margin: var(--sp-6) 0;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.card__category {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--blue);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--navy);
  margin: var(--sp-3) 0;
  line-height: var(--line-heading);
}

.card__desc {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: var(--line-base);
  margin: var(--sp-4) 0;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.card__format {
  font-size: var(--text-sm);
  color: var(--muted);
}

.card__link {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--blue);
  text-decoration: none;
}

/* Expert card */
.card--expert {
  text-align: center;
  position: relative;
}

.card__badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
}

.card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--avatar-color, var(--blue));
  color: var(--white);
  font-size: 36px;
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: var(--sp-1) 0;
}

.card__meta {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: var(--sp-1) 0;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin: var(--sp-4) 0;
}

/* Price card */
.card--price {
  position: relative;
  padding: var(--sp-8);
}

.card--price.card--featured {
  border-color: var(--orange);
  border-width: 2px;
  background: linear-gradient(135deg, var(--cream) 0%, #FFE5C8 100%);
}

.card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin: var(--sp-6) 0;
}

.card__amount {
  font-size: 56px;
  font-weight: var(--font-extrabold);
  color: var(--orange-text);
  line-height: 1;
}

.card__per {
  font-size: var(--text-lg);
  color: var(--muted);
}

.card__period {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--sp-6);
}

.card__features {
  list-style: none;
  margin: var(--sp-6) 0;
  padding: 0;
}

.card__features li {
  padding: var(--sp-3) 0;
  padding-left: var(--sp-8);
  position: relative;
  font-size: var(--text-base);
  color: var(--ink);
}

.card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232F7D46" stroke-width="2"><path d="M5 12l5 5L20 7"/></svg>') no-repeat center;
  background-size: contain;
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge--preview,
.badge--example {
  background: rgba(24, 119, 214, .08);
  color: var(--navy);
}

.badge--locked {
  background: rgba(238, 122, 27, .08);
  color: var(--orange-text);
}

.badge--featured {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--navy);
  font-weight: var(--font-medium);
}

.tag--large {
  padding: 8px 16px;
  font-size: var(--text-sm);
}

/* Filter Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}

.chip,
.chips button {
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease);
}

.chip:hover,
.chips button:hover {
  background: var(--cream);
  border-color: var(--navy-muted);
}

.chip[aria-pressed="true"],
.chips button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Forms */
.form {
  max-width: 600px;
}

.field {
  margin-bottom: var(--sp-6);
}

.field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--navy);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field input[type="number"],
.field input[name],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 214, .12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}

.field__help {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--error);
}

.field__error {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--error);
  font-weight: var(--font-medium);
}

.field__counter {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: right;
}

.field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-weight: var(--font-regular);
  cursor: pointer;
}

.field--checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Fieldset for checkbox/radio groups */
fieldset.field {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}

fieldset.field legend {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--navy);
  padding: 0 var(--sp-2);
}

fieldset.field label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  cursor: pointer;
  font-weight: var(--font-regular);
}

fieldset.field input[type="checkbox"],
fieldset.field input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Checkbox field inline layout */
.field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-weight: var(--font-regular);
  cursor: pointer;
}

.field--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

/* File input styling */
.field input[type="file"] {
  width: 100%;
  padding: 0;
  border: none;
  font-size: var(--text-base);
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  padding: var(--sp-3) var(--sp-4);
  margin-right: var(--sp-3);
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--duration-base);
}

.field input[type="file"]::file-selector-button:hover {
  border-color: var(--blue);
  background: rgba(24, 119, 214, .04);
  color: var(--blue);
}

.field--file input[type="file"] {
  padding: var(--sp-4);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: var(--text-base);
}

.field--file input[type="file"]:hover {
  border-color: var(--blue);
  background: rgba(24, 119, 214, .02);
}

/* Notices */
.notice {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border-left: 4px solid;
  margin: var(--sp-6) 0;
  font-size: var(--text-base);
  line-height: var(--line-base);
}

.notice--info {
  background: rgba(24, 119, 214, .06);
  border-color: var(--blue);
  color: var(--navy);
}

.notice--warn {
  background: #fef3c7;
  border-color: #d97706;
  color: var(--navy);
}

.notice--error {
  background: #fee2e2;
  border-color: var(--error);
  color: var(--navy);
}

.notice--success {
  background: rgba(47, 125, 70, .06);
  border-color: var(--success);
  color: var(--navy);
}

/* FAQ Accordion */
.accordion {
  max-width: 800px;
  margin: var(--sp-8) 0;
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  background: none;
  border: none;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.accordion__trigger:hover {
  color: var(--blue);
}

.accordion__trigger .ic {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease);
}

.accordion__trigger[aria-expanded="true"] .ic {
  transform: rotate(180deg);
}

.accordion__content {
  padding-bottom: var(--sp-5);
  font-size: var(--text-base);
  color: var(--muted);
  line-height: var(--line-base);
}

.accordion__content[hidden] {
  display: none;
}

/* CTA Band */
.cta-band {
  padding: var(--sp-20) 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.cta-band .lead {
  color: rgba(255, 255, 255, .8);
  margin-bottom: var(--sp-8);
}

.cta-band .btn--primary {
  background: var(--white);
  color: var(--blue);
}

.cta-band .btn--primary:hover {
  background: var(--cream);
}

/* Prose (legal pages) */
.prose-page {
  padding: var(--sp-16) 0 var(--sp-20);
  background: var(--white);
}

.prose {
  max-width: 65ch;
  margin: var(--sp-8) 0;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink);
}

.prose h1 {
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-6);
}

.prose h2 {
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
}

.prose h3 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.prose p {
  margin: var(--sp-4) 0;
}

.prose ul,
.prose ol {
  margin: var(--sp-4) 0;
  padding-left: var(--sp-8);
}

.prose li {
  margin: var(--sp-2) 0;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--blue-hover);
}

.prose strong {
  font-weight: var(--font-semibold);
  color: var(--navy);
}

.prose code {
  padding: 2px 6px;
  background: var(--cream);
  border-radius: var(--r-xs);
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--sp-8) 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.table thead {
  background: var(--cream);
}

.table th {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-weight: var(--font-semibold);
  color: var(--navy);
  border-bottom: 2px solid var(--line);
}

.table td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.table tbody tr:hover {
  background: var(--cream);
}

.table .ic {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* ==========================================================================
   §5. PAGE-SPECIFIC COMPONENTS
   ========================================================================== */

/* Grid layouts — Homepage benefit grid only */
div.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-8);
  margin: var(--sp-12) 0;
}

/* Force 4 columns or 2x2 for 4-item grids */
@media (min-width: 900px) {
  div.benefits:has(.benefit:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  div.benefits:has(.benefit:nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit {
  text-align: center;
}

/* Benefits inside two-col: vertical list, not grid */
.two-col .benefits {
  display: block;
}

.two-col .benefit {
  text-align: left;
  margin-bottom: var(--sp-4);
}

.two-col .benefit:last-child {
  margin-bottom: 0;
}

.benefit__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(24, 119, 214, .08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit__icon .ic {
  width: 32px;
  height: 32px;
}

.benefit h3 {
  font-size: var(--text-xl);
  margin: var(--sp-3) 0;
}

.benefit p {
  color: var(--muted);
}

.steps {
  max-width: 700px;
  margin: var(--sp-12) auto;
}

.step {
  display: flex;
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
}

.step__number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}

.step__content p {
  color: var(--muted);
}

.tiers-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-8);
  margin: var(--sp-12) 0;
}

.resources-grid,
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
}

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
}

/* Search input */
.search-input {
  width: 100%;
  max-width: 600px;
  margin: var(--sp-6) auto;
  padding: 14px 20px 14px 50px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--text-base);
  background: var(--white) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235D6680" stroke-width="1.8"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M15.5 15.5L21 21"/></svg>') no-repeat 18px center;
  background-size: 20px 20px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 214, .12);
}

/* ==========================================================================
   §6. UTILITIES
   ========================================================================== */

/* Vertical rhythm — consistent spacing between stacked sections */
.rv {
  margin-bottom: var(--sp-12);
}

.rv + .rv {
  margin-top: 0;
}

.section > .rv:last-child {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }

.hidden {
  display: none !important;
}

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

/* Responsive utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   §7. MISSING COMPONENTS (Polish v5)
   ========================================================================== */

/* Auth Pages Layout */
.auth-grid {
  display: grid;
  gap: var(--sp-12);
  align-items: start;
}

@media (min-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

.auth-benefits {
  padding: var(--sp-8);
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
}

.auth-benefits h2 {
  margin-bottom: var(--sp-6);
}

.auth-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-benefits li {
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-8);
  position: relative;
  font-size: var(--text-base);
  color: var(--ink);
}

.auth-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232F7D46" stroke-width="2"><path d="M5 12l5 5L20 7"/></svg>') no-repeat center;
  background-size: contain;
}

.auth-form {
  padding: var(--sp-8);
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
}

.auth-footer {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
}

.auth-footer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-semibold);
}

.auth-footer a:hover {
  color: var(--blue-hover);
}

.forgot-link {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forgot-link:hover {
  color: var(--blue-hover);
}

.form-ok {
  padding: var(--sp-5) var(--sp-6);
  background: rgba(47, 125, 70, .06);
  border: 1.5px solid var(--success);
  border-radius: var(--r-md);
  color: var(--navy);
  margin: var(--sp-6) 0;
  font-size: var(--text-base);
  line-height: var(--line-base);
  display: none;
}

.form-ok.show {
  display: block;
}

.form-ok strong {
  color: var(--success);
  font-weight: var(--font-semibold);
}

/* File Upload Components */
.btn-remove {
  padding: var(--sp-1) var(--sp-3);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--error);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--duration-base);
}

.btn-remove:hover {
  background: rgba(211, 38, 60, .06);
  border-color: var(--error);
}

.char-count {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: right;
}

.file-list {
  margin-top: var(--sp-4);
  list-style: none;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2);
  font-size: var(--text-sm);
}

.file-list li span:first-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.file-list li span:last-of-type {
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Badge Variants */
.badge--planned {
  background: rgba(125, 60, 200, .08);
  color: var(--petal-purple);
}

.badge--primary {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

.notice--draft {
  background: rgba(125, 60, 200, .06);
  border-color: var(--petal-purple);
  color: var(--navy);
}

/* Layout Components */
.two-col {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
  }
}

.narrow {
  max-width: var(--container-sm);
  margin-inline: auto;
}

.head {
  margin-bottom: var(--sp-8);
}

.head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--sp-12);
}

.head--center h1,
.head--center h2 {
  margin-top: var(--sp-4);
}

.head--center .lead {
  margin-top: var(--sp-4);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  color: var(--blue);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: color var(--duration-base);
}

.back-link:hover {
  color: var(--blue-hover);
}

.back-link::before {
  content: "←";
  font-size: var(--text-lg);
}

/* Page Hero Components */
.page-hero__content {
  max-width: var(--container-md);
}

.page-hero__image {
  margin-top: var(--sp-8);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .page-hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
  }

  .page-hero--split .page-hero__image {
    margin-top: 0;
  }
}

/* Expert Card Components */
.expert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  text-align: center;
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}

.expert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.expert-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 36px;
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--sp-2);
}

.expert-card h3 {
  font-size: var(--text-xl);
  margin: var(--sp-2) 0;
}

.expert-card__field {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

.expert-card__langs {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: var(--font-medium);
  margin: 0;
}

.expert-card__city {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

.expert-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin: var(--sp-4) 0;
}

.expert-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Pricing Grid — 2 columns on desktop */
.pricing-grid {
  display: grid;
  gap: var(--sp-6);
  margin: var(--sp-12) 0;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

/* Price Card Components */
.price-card {
  position: relative;
  padding: var(--sp-8);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
}

.price-card--feat {
  border-color: var(--orange);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(238, 122, 27, .12);
}

.price-card .badge {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
}

.price-card h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-6);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin: var(--sp-6) 0;
}

.price-card__amount {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  color: var(--orange-text);
  line-height: 1;
}

.price-card__per {
  font-size: var(--text-lg);
  color: var(--muted);
}

.price-card__period {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--sp-6);
}

.price-card .benefits {
  list-style: none;
  margin: var(--sp-6) 0;
  padding: 0;
  flex: 1;
  display: block; /* Override any grid inheritance */
}

.price-card .benefits li {
  padding: var(--sp-3) 0;
  font-size: var(--text-base);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.price-card .benefits li .ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 3px;
}

.price-card .btn {
  margin-top: var(--sp-6);
}

.price-timeline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  padding: var(--sp-5);
  background: var(--cream);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
}

.price-timeline > div {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.price-timeline strong {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-timeline .price-card__amount {
  font-size: var(--text-4xl);
}

.price-timeline .ic {
  color: var(--muted);
  flex-shrink: 0;
}

.card .calc {
  font-size: var(--text-lg);
  color: var(--ink);
  line-height: var(--line-base);
  margin: var(--sp-4) 0;
}

.card .calc strong {
  font-weight: var(--font-bold);
  color: var(--navy);
}

.card .note {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--line-base);
  margin: var(--sp-3) 0;
}

.card h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--navy);
  margin-bottom: var(--sp-4);
}

.card p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: var(--line-base);
  margin: var(--sp-3) 0;
}

.card a {
  display: inline-block;
  margin-top: var(--sp-4);
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-semibold);
  transition: color var(--duration-base);
}

.card a:hover {
  color: var(--blue-hover);
}

/* Resource Card Components */
.res-card {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}

.res-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.res-card--locked {
  opacity: 0.7;
}

.res-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
  gap: var(--sp-3);
}

.res-card__industry {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--blue);
}

.res-card__format {
  font-size: var(--text-xs);
  color: var(--muted);
  padding: 4px 10px;
  background: var(--cream);
  border-radius: var(--r-pill);
}

.res-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--navy);
  margin: var(--sp-3) 0;
  line-height: var(--line-heading);
}

.res-card__status {
  font-size: var(--text-sm);
  color: var(--success);
  margin-top: var(--sp-4);
  font-weight: var(--font-medium);
}

.res-card__unlock {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.res-card__unlock:hover {
  color: var(--blue-hover);
}

/* Schedule Components */
.schedule-item {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}

.schedule-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.schedule-item__date {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.schedule-item__time {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: var(--sp-1) 0 var(--sp-4);
}

.schedule-item h3 {
  font-size: var(--text-xl);
  margin: var(--sp-3) 0;
}

.schedule-item__lang {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: var(--sp-2) 0;
}

.schedule-item__desc {
  font-size: var(--text-base);
  color: var(--muted);
  margin: var(--sp-4) 0;
  line-height: var(--line-base);
}

.schedule-item .btn {
  margin-top: var(--sp-4);
}

/* FAQ Components */
.faq-group {
  margin-bottom: var(--sp-16);
}

.faq-group h2 {
  color: var(--navy);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--line);
}

.faq {
  max-width: 800px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-5) 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--navy);
  transition: color var(--duration-base);
}

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

.faq summary:hover {
  color: var(--blue);
}

.faq summary .ic {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease);
  color: var(--muted);
}

.faq details[open] summary .ic {
  transform: rotate(180deg);
}

.faq details > div {
  padding-top: var(--sp-4);
}

.faq details p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: var(--line-base);
  margin: var(--sp-3) 0;
}

/* FAQ Teaser (index.html) */
#faq-teaser {
  max-width: 800px;
  margin: 0 auto;
}

#faq-teaser details {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-5) 0;
}

#faq-teaser summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--navy);
  transition: color var(--duration-base);
}

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

#faq-teaser summary:hover {
  color: var(--blue);
}

#faq-teaser summary .ic {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease);
  color: var(--muted);
}

#faq-teaser details[open] summary .ic {
  transform: rotate(180deg);
}

#faq-teaser details p {
  padding-top: var(--sp-4);
  font-size: var(--text-base);
  color: var(--muted);
  line-height: var(--line-base);
  margin: var(--sp-3) 0;
}

/* Modal Components */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(23, 41, 90, .4);
  backdrop-filter: blur(4px);
  padding: var(--sp-6);
}

.modal.show {
  display: flex;
}

.modal__content {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-xl);
}

.modal__content h2 {
  margin-bottom: var(--sp-6);
}

.modal__content .btn {
  margin-top: var(--sp-6);
}

/* Search Bar */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: var(--sp-6) auto;
}

.search-bar input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  background: var(--white);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 214, .12);
}

.search-bar::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235D6680" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') no-repeat center;
  background-size: contain;
  pointer-events: none;
}

/* Step Number Utility */
.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Visibility classes for JS */
.in,
.rv,
.show {
  /* These are JS animation/state hooks, styled via inline or existing rules */
}

/* ==========================================================================
   v7 — media, split hero, expert profile, avatar row
   ========================================================================== */
.media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.two-col { align-items: center; }
.hero-split {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1.1fr 1fr; gap: var(--sp-12); }
}
.avatar-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}
.avatar-row__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  transition: box-shadow var(--duration-base);
}
.avatar-row__item:hover { box-shadow: var(--shadow-lg); }
.avatar-row__item img {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-row__item span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.avatar-row__item strong { font-size: var(--text-sm); }
.avatar-row__item small { font-size: var(--text-xs, .75rem); color: var(--muted, #5b6475); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expert-card__avatar { border-radius: 50%; object-fit: cover; width: 120px; height: 120px; }
.profile {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 900px) {
  .profile { grid-template-columns: 340px 1fr; gap: var(--sp-12); }
  .profile__side { position: sticky; top: 96px; }
}
.profile__side { text-align: center; padding: var(--sp-6); }
.profile__photo {
  width: 180px; height: 180px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.profile__name { font-size: var(--text-2xl, 1.6rem); margin: 0; }
.profile__role { color: var(--blue); font-weight: var(--font-medium, 500); margin: var(--sp-1, 4px) 0 var(--sp-4); }
.profile__facts, .profile__list, .profile__slots { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-2); }
.profile__facts { text-align: left; border-top: 1px solid var(--line); padding-top: var(--sp-4); margin-bottom: var(--sp-6); }
.profile__facts li, .profile__list li, .profile__slots li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.profile__facts .ic, .profile__list .ic, .profile__slots .ic { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }
.profile__block { padding: var(--sp-6) 0; border-bottom: 1px solid var(--line); }
.profile__block:last-child { border-bottom: 0; }
.profile__block h2 { font-size: var(--text-xl, 1.3rem); margin: 0 0 var(--sp-3); }
.profile__main > .eyebrow { margin-bottom: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); }
.card a.btn { color: var(--white); text-decoration: none; display: inline-flex; justify-content: center; }
.card a.btn--secondary, .card a.btn--ghost { color: var(--navy); }
.profile__block .expert-card__tags { justify-content: flex-start; }
