.site-header .brand {
  justify-self: start;
}
:root {
  --blue-50: #eef3ff;
  --blue-100: #d6e1ff;
  --blue-200: #bfdbfe;
  --blue-500: #3478ff;
  --blue-600: #2154ff;
  --blue-700: #153bb7;
  --green-500: #22c55e;
  --purple-500: #9b59ff;
  --slate-900: #0f172a;
  --slate-700: #475569;
  --slate-500: #94a3b8;
  --slate-200: #e2e8f0;
  --radius: 20px;
  --shadow-soft: 0 20px 45px rgba(23, 37, 84, 0.08);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --anim-duration: 0.8s;
  --anim-delay-step: 0.08s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--slate-900);
  background: #f8fafc;
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Public Sans", sans-serif;
  margin: 0 0 0.4em;
  color: var(--slate-900);
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.text-accent {
  color: var(--blue-600);
}

p {
  margin: 0 0 1rem;
  color: var(--slate-700);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.user-menu {
  position: relative;
}

.user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--blue-600);
  color: white;
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  padding: 0.85rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.user-menu__chevron {
  font-size: 0.85rem;
}

.user-menu__toggle:hover {
  background: var(--blue-700);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.user-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  padding: 1rem;
  border-radius: 18px;
  background: white;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 5;
}

.user-menu.open .user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu__meta {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--slate-600);
}

.user-menu__option {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  background: rgba(52, 120, 255, 0.12);
  color: var(--blue-700);
  font-weight: 600;
  cursor: pointer;
}

.user-menu__option:hover {
  background: rgba(52, 120, 255, 0.2);
}

.user-menu__logout {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.06);
  font-weight: 600;
  cursor: pointer;
}

.user-menu__logout:hover {
  background: rgba(15, 23, 42, 0.1);
}

.form-alert {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid transparent;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}

.form-alert.error {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.45);
  color: #7f1d1d;
}

.animates-on-scroll {
  opacity: 1;
}

body.motion-ready .animates-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.motion-ready .animates-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.motion-ready .animates-on-scroll:not(.is-visible) {
  animation: none !important;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float-loop {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes glow-pan {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }

  60% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-header .inner {
  width: 100%;
  margin: 0;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

nav {
  justify-self: center;
}

.pill-actions {
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.link-ghost {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.pill-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.btn-solid {
  background: var(--blue-600);
  color: white;
  box-shadow: var(--shadow-card);
}

.btn-solid:hover {
  transform: translateY(-1px);
  background: var(--blue-700);
}

.btn-ghost {
  background: rgba(52, 120, 255, 0.08);
  color: var(--blue-700);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue-500);
  color: var(--blue-600);
}

.btn-outline:hover {
  background: rgba(52, 120, 255, 0.08);
}

.btn-inverse {
  background: white;
  color: var(--blue-600);
  box-shadow: none;
}

.btn-inverse:hover {
  background: #f4f7ff;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 4rem;
}

section {
  padding: 4rem 1.5rem;
}

.surface {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  padding-top: 5rem;
  background: radial-gradient(circle at top, #e5edff, transparent 55%), #fdfdff;
}

.hero-card {
  background: transparent;
  border-radius: 0;
  padding: 2rem 0;
  box-shadow: none;
  display: grid;
  gap: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  margin-bottom: 1rem;
}

.about-hero {
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 80%);
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  animation: fade-up var(--anim-duration) ease-out both;
}

.about-hero .surface {
  max-width: 760px;
  margin: 0 auto;
  animation: fade-up calc(var(--anim-duration) + 0.1s) ease-out both;
}

.about-hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.15rem;
  color: var(--slate-600);
  margin: 0 auto;
  max-width: 720px;
}

.about-values {
  padding: 0 1.5rem 4rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.value-card {
  background: #f5f7ff;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease;
  animation: fade-up var(--anim-duration) ease-out both;
}

.value-card:nth-child(2) {
  background: #f0fff4;
}

.value-card:nth-child(3) {
  background: #f6f0ff;
}

.value-grid .value-card:nth-child(1) {
  animation-delay: 0.05s;
}

.value-grid .value-card:nth-child(2) {
  animation-delay: 0.15s;
}

.value-grid .value-card:nth-child(3) {
  animation-delay: 0.25s;
}

.value-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.12);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.35rem;
}

.about-text {
  max-width: 860px;
  margin: 0 auto;
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.75;
  animation: fade-up calc(var(--anim-duration) + 0.1s) ease-out both;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-cta {
  padding: 3rem 1.5rem 5rem;
  background: #f8fbff;
}

.about-cta .surface {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  border-radius: 32px;
  padding: 3rem;
  background: white;
  box-shadow: var(--shadow-soft);
  animation: fade-up calc(var(--anim-duration) + 0.15s) ease-out both;
}

.help-hero {
  padding: 4.5rem 1.5rem 2rem;
  text-align: center;
  background: white;
  animation: fade-up var(--anim-duration) ease-out both;
}

.help-hero .surface {
  max-width: 640px;
  margin: 0 auto;
}

.help-hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  margin-top: 0.25rem;
}

.help-hero p {
  color: var(--slate-600);
}

.help-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 1rem auto 1.25rem;
  background: rgba(52, 120, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--blue-600);
  animation: float-loop 8s ease-in-out infinite;
}

.help-accordion {
  padding: 0 1.5rem 3rem;
}

.faq-card {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  animation: fade-up calc(var(--anim-duration) + 0.1s) ease-out both;
}

.faq-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.help-accordion details {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  background: #f8fbff;
  overflow: hidden;
  animation: fade-up calc(var(--anim-duration) + 0.1s) ease-out both;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.help-accordion summary {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.3s ease, box-shadow 0.4s ease;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.help-accordion summary::marker,
.help-accordion summary::-webkit-details-marker {
  display: none;
}

.help-accordion details[open] summary {
  color: var(--blue-600);
}

.help-accordion details[open] {
  border-color: var(--blue-200, #bfdbfe);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.help-accordion details p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--slate-600);
}

.help-contact {
  padding: 0 1.5rem 5rem;
}

.help-contact .surface {
  max-width: 720px;
  margin: 0 auto;
  background: #eaf2ff;
  border-radius: 32px;
  padding: 2rem;
  text-align: center;
  animation: fade-up calc(var(--anim-duration) + 0.2s) ease-out both;
}

.help-contact .btn {
  margin-top: 1rem;
  min-width: 140px;
}

.hero-copy {
  text-align: center;
  animation: fade-up var(--anim-duration) ease-out both;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  animation: fade-up calc(var(--anim-duration) + 0.1s) ease-out both;
}

.hero-copy p {
  animation: fade-up calc(var(--anim-duration) + 0.2s) ease-out both;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.promo-card {
  border-radius: 28px;
  padding: 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease;
  animation: fade-up calc(var(--anim-duration) + 0.1s) ease-out both;
}

.hero-actions .promo-card:nth-child(1) {
  animation-delay: 0.06s;
}

.hero-actions .promo-card:nth-child(2) {
  animation-delay: 0.18s;
}

.hero-actions .promo-card:nth-child(3) {
  animation-delay: 0.3s;
}

.promo-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.15);
}

.promo-card p {
  margin-bottom: 0;
}

.promo-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
  color: var(--blue-600);
}

.promo-card.highlight {
  background: linear-gradient(135deg, var(--blue-600), #1b6cf7);
  color: white;
  border: none;
  box-shadow: 0 25px 65px rgba(15, 76, 129, 0.35);
}

.promo-card.highlight h3 {
  color: white;
}

.promo-card.highlight p {
  color: rgba(255, 255, 255, 0.86);
}

.promo-card.highlight .card-icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.grid-3 .step-card:nth-child(1) {
  animation-delay: 0.05s;
}

.grid-3 .step-card:nth-child(2) {
  animation-delay: 0.15s;
}

.grid-3 .step-card:nth-child(3) {
  animation-delay: 0.25s;
}

.step-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease;
  animation: fade-up var(--anim-duration) ease-out both;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.12);
}

.section-subtitle {
  margin-top: -0.25rem;
  margin-bottom: 2.5rem;
  color: var(--slate-500);
  font-size: 1.05rem;
  text-align: center;
}

.section-subtitle.on-tint {
  color: rgba(15, 23, 42, 0.7);
}

.modern-step {
  border-radius: 28px;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
  text-align: left;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease;
  animation: fade-up calc(var(--anim-duration) + 0.05s) ease-out both;
}

.modern-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.15);
}

.modern-step h3 {
  margin-bottom: 0.5rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.icon-blue {
  background: rgba(52, 120, 255, 0.1);
  color: var(--blue-600);
}

.step-icon svg,
.value-icon svg,
.card-icon svg,
.choice-icon svg,
.plan-icon svg,
.help-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-500);
}

.icon-purple {
  background: rgba(155, 89, 255, 0.15);
  color: var(--purple-500);
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(33, 84, 255, 0.1);
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.plans-section {
  background: #eef4ff;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.plan-card {
  background: #fff;
  border-radius: 32px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease;
  animation: fade-up calc(var(--anim-duration) + 0.1s) ease-out both;
}

.plan-grid .plan-card:nth-child(1) {
  animation-delay: 0.08s;
}

.plan-grid .plan-card:nth-child(2) {
  animation-delay: 0.18s;
}

.plan-grid .plan-card:nth-child(3) {
  animation-delay: 0.28s;
}

.plan-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 40px 95px rgba(15, 23, 42, 0.18);
}

.plan-card h3 {
  margin-bottom: 0.25rem;
}

.plan-card .plan-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(52, 120, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--blue-600);
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}

.plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-left: 0.35rem;
}

.plan-price .free {
  font-size: 2.5rem;
}

.plan-note {
  margin: -0.75rem 0 0.5rem;
  color: var(--slate-500);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plan-features li {
  position: relative;
  padding-left: 1.75rem;
}

.plan-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-600);
  font-weight: 700;
}

.plan-card.accent {
  background: linear-gradient(150deg, var(--blue-600), #1d4ed8);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.plan-card.accent h3,
.plan-card.accent .plan-price,
.plan-card.accent .plan-price span {
  color: white;
}

.plan-card.accent .plan-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.plan-card.accent .plan-note,
.plan-card.accent .plan-features li,
.plan-card.accent .plan-price small {
  color: rgba(255, 255, 255, 0.85);
}

.plan-card.accent .plan-features li::before {
  color: white;
}

.plan-card.accent::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -60px;
  right: -40px;
  animation: glow-pan 10s ease-in-out infinite;
}

.plan-card.accent::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  bottom: -60px;
  left: -30px;
  animation: glow-pan 10s ease-in-out infinite reverse;
}

.btn-plan-primary,
.btn-plan-secondary {
  width: 100%;
  border-radius: 8px;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.btn-plan-primary {
  background: var(--blue-600);
  color: white;
}

.btn-plan-primary:hover {
  background: var(--blue-700);
}

.btn-plan-secondary {
  background: white;
  color: var(--blue-600);
}

.btn-plan-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.story {
  background: white;
  border-radius: calc(var(--radius) + 10px);
  padding: 3rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  animation: fade-up calc(var(--anim-duration) + 0.05s) ease-out both;
}

.faq {
  background: #0f172a;
  color: white;
}

.faq details {
  background: rgba(15, 23, 42, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  opacity: 0;
  animation: fade-in 0.35s ease forwards;
}

.modal-dialog {
  position: relative;
  width: min(1100px, 92%);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 32px;
  padding: 2.75rem;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.25);
  z-index: 1;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: fade-up 0.45s ease-out forwards;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(15, 23, 42, 0.15);
}

body.modal-open {
  overflow: hidden;
}

.modal-dialog.modal-choices {
  width: min(700px, 95%);
  max-width: 700px;
  text-align: center;
}

.modal-dialog.modal-narrow {
  width: min(520px, 92%);
}

.modal-dialog.modal-medium {
  width: min(760px, 92%);
}

.choice-subtitle {
  margin-top: 0.5rem;
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.choice-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  margin-top: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.choice-grid > * {
  flex: 1 1 0px !important;
  min-width: 0 !important;
}

@media (max-width: 480px) {
  .choice-grid {
    flex-direction: column !important;
  }
  .modal-dialog.modal-choices {
    width: 95%;
  }
}

.choice-card {
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  padding: 1.5rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
  font: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.choice-card strong {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  display: block !important;
  margin: 0 !important;
}

.choice-card small {
  color: #6b7280 !important;
  line-height: 1.2 !important;
  font-size: 0.75rem !important;
  display: block !important;
}

.choice-card:hover {
  transform: translateY(-2px) !important;
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.choice-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.choice-card:hover .choice-icon {
  transform: scale(1.1) !important;
}


.auth-form {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fade-up calc(var(--anim-duration) + 0.05s) ease-out both;
}

.auth-form button.btn {
  width: 100%;
}

.form-note {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--slate-500);
}

.link-button {
  background: none;
  border: none;
  color: var(--blue-600);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

.form-card {
  background: white;
  border-radius: calc(var(--radius) + 5px);
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  animation: fade-up calc(var(--anim-duration) + 0.05s) ease-out both;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--slate-900);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--slate-200);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.panel-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.panel-delete {
  border-color: rgba(239, 68, 68, 0.4);
  color: #b42318;
}

.panel-delete:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.6);
}

.tab-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.glass {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  animation: fade-up var(--anim-duration) ease-out both;
}

.chat-panel {
  background: white;
  border-radius: calc(var(--radius) + 5px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  animation: fade-up calc(var(--anim-duration) + 0.05s) ease-out both;
}

.chat-list {
  border-right: 1px solid var(--slate-200);
  padding: 1.5rem;
}

.chat-messages {
  padding: 1.5rem;
  background: #f8fafc;
}

.bubble {
  display: inline-block;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  margin-bottom: 0.5rem;
  max-width: 90%;
}

.bubble.me {
  background: var(--blue-600);
  color: white;
  margin-left: auto;
}

.bubble.them {
  background: white;
  border: 1px solid var(--slate-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  animation: fade-up calc(var(--anim-duration) + 0.05s) ease-out both;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

footer {
  background: #0f172a;
  color: white;
  padding: 4rem 1.5rem 2rem;
}

footer .surface {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #cbd5f5;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
}

.footer-col.branding .brand {
  margin-bottom: 1rem;
  color: white;
}

.footer-desc {
  color: #94a3b8;
  max-width: 300px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header .inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pill-actions {
    justify-self: center;
  }

  .brand-logo {
    height: 56px;
  }
}

/* Form Alert Styles */
.form-alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
  font-size: 0.95rem;
  animation: fade-up 0.3s ease-out both;
}

.form-alert.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-alert.success {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
