/* ============================================
   LawAgent.dev — Editorial Design System
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap');

/* --- Custom Properties --- */
:root {
  /* Colors — Dark Theme */
  --bg: #0B0F14;
  --bg-white: #111820;
  --bg-card: #151C25;
  --bg-dark: #0B0F14;
  --text-primary: #E8E8E8;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-on-dark: #E8E8E8;
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-light: rgba(59, 130, 246, 0.1);
  --border: #1E293B;
  --border-light: #1A2233;

  /* Typography */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.3s;

  /* Semantic Colors */
  --color-success: #059669;
  --color-error: #DC2626;
  --color-warning: #D97706;
  --color-info: #3B82F6;
  --color-success-light: rgba(5, 150, 105, 0.15);
  --color-error-light: rgba(220, 38, 38, 0.15);

  /* Layout Heights */
  --nav-height: 56px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  font-family: var(--font-sans);
}

.label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-5xl) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
  overflow: visible;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav__logo-img {
  height: 18px;
  width: 18px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all var(--duration) var(--ease);
}

.lang-switcher__btn:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.lang-switcher__btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration) var(--ease);
}

.lang-switcher.open .lang-switcher__btn svg {
  transform: rotate(180deg);
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem;
  min-width: 120px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s var(--ease);
}

.lang-switcher.open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 5px;
  transition: all var(--duration) var(--ease);
}

.lang-switcher__option:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.lang-switcher__option.active {
  color: var(--accent);
  font-weight: 500;
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: all var(--duration) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn--nav-dark {
  background: var(--bg-dark);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: all var(--duration) var(--ease);
}

.btn--nav-dark:hover {
  background: #1a2332;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 20, 25, 0.25);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-white);
}

.btn--dark {
  background: var(--bg-dark);
  color: white;
  width: 100%;
}

.btn--dark:hover {
  background: #1a2332;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 20, 25, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 100%;
}

.btn--outline:hover {
  background: var(--accent);
  color: white;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--space-5xl) + var(--nav-height));
  padding-bottom: var(--space-5xl);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: var(--space-xl);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  white-space: pre-line;
}

.hero__subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Features --- */
.features {
  background: var(--bg-white);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.features__header h2 {
  white-space: pre-line;
  margin-top: var(--space-md);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 10px;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- How it works --- */
.how__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.how__header h2 {
  white-space: pre-line;
  margin-top: var(--space-md);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

/* === Pricing Toggle === */
.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.pricing__toggle-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.pricing__toggle-label.active {
  color: var(--text-primary);
  font-weight: 500;
}

.toggle-switch:not(.theme-toggle) {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.toggle-switch:not(.theme-toggle).active {
  background: var(--accent);
}

.toggle-switch:not(.theme-toggle)::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch:not(.theme-toggle).active::after {
  transform: translateX(22px);
}

.yearly-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-success-light);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* === Theme Toggle === */
.toggle-switch.theme-toggle {
  width: 40px;
  height: 22px;
  background: #2D3748;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  flex-shrink: 0;
}

.toggle-switch.theme-toggle::after {
  content: '\1F319';
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.light .toggle-switch.theme-toggle {
  background: #D1D5DB;
}

body.light .toggle-switch.theme-toggle::after {
  content: '\2600\FE0F';
  transform: translateX(18px);
}

/* === Light Theme === */
body.light {
  --bg: #F8F7F4;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #0F1419;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-on-dark: #F8F7F4;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #EFF6FF;
  --border: #E5E5E5;
  --border-light: #F0F0F0;
}

body.light .nav {
  background: rgba(248, 247, 244, 0.85);
  border-bottom: 1px solid var(--border-light);
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

.nav__mobile.open {
  transform: translateX(0);
}

.nav__mobile a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

/* Scroll offset */
section[id] {
  scroll-margin-top: 72px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .how__steps::before {
    display: none;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 600px) {
  :root {
    --space-5xl: 4rem;
    --space-4xl: 3rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* === Pricing Cards === */
.pricing {
  background: var(--bg-white);
}

.pricing__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.pricing__header h2 {
  margin-top: var(--space-md);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--duration) var(--ease);
  background: var(--bg-card);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.pricing-card--popular {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  min-height: 2.5em;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: var(--space-xs);
}

.pricing-card__amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-card__currency {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.pricing-card__divider {
  height: 1px;
  background: var(--border-light);
  margin-bottom: var(--space-lg);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}

.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233B82F6'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E") no-repeat center;
}

/* === FAQ === */
.faq__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.faq__header h2 {
  margin-top: var(--space-md);
}

.faq__list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--duration) var(--ease);
}

.faq-item__question:hover {
  color: var(--accent);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration) var(--ease);
  color: var(--text-muted);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.open .faq-item__answer {
  grid-template-rows: 1fr;
}

.faq-item__answer > p {
  overflow: hidden;
}

.faq-item__answer p {
  padding-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Footer === */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 16px;
  width: 16px;
  border-radius: 3px;
  object-fit: cover;
  filter: brightness(1.1);
}

.footer__logo-text {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: var(--space-sm);
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Animations === */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .faq-item__answer {
    transition: none;
  }
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-2xl);
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--text-primary);
}

.modal__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  margin-bottom: var(--space-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.modal__input::placeholder {
  color: var(--text-muted);
}
