:root {
  --brand: #0047bb;
  --accent: #ef8f00;
  --ink: #081221;
  --shell: #f7f7f7;
  --cobtint: #4D86E0;
  --carrot: #FFAA2B;
}

html {
  scroll-behavior: smooth;
}

/* ── Global Styles & Components ── */
.brand-mark {
  position: relative;
  display: inline-flex;
  width: 3.1rem;
  height: 3.1rem;
  border: 2px solid var(--brand);
  border-radius: 1.15rem;
  align-items: center;
  justify-content: center;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  bottom: 0.15rem;
  width: 0.82rem;
  height: 0.82rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  border-bottom-left-radius: 0.4rem;
}

.brand-mark__dots {
  display: grid;
  grid-template-columns: repeat(2, 0.38rem);
  gap: 0.24rem;
}

.brand-mark__dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--brand);
}

.soft-ring {
  position: absolute;
  border: 3px solid var(--brand);
  border-radius: 999px;
  opacity: 0.85;
}

.soft-blob {
  position: absolute;
  border-radius: 999px;
  opacity: 0.55;
  filter: saturate(105%);
}

.blue-grid {
  background-color: var(--brand);
}

.section-orbit {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.faq-answer[hidden] {
  display: none;
}

.rich-text p+p,
.rich-text li+li {
  margin-top: 0.75rem;
}

.rich-text ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.page-hero {
  background-color: var(--shell);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(239, 143, 0, 0.08), transparent 18%),
    radial-gradient(circle at 90% 20%, rgba(0, 71, 187, 0.08), transparent 22%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
}

@media (max-width: 768px) {
  .brand-mark {
    width: 2.7rem;
    height: 2.7rem;
  }
}

/* ── Accessibility ── */
*:focus-visible:not(input):not(textarea) {
  outline: 3px solid var(--accent) !important;
  outline-offset: 3px !important;
}

[data-accordion] button:focus-visible {
  outline: none !important;
}

/* ── General UI Elements ── */
#strength-bar {
  transition: width 0.4s ease, background-color 0.4s ease;
}

.step-dot {
  transition: all 0.3s ease;
}

.brand-panel {
  background-color: var(--brand);
}

.quote-bubble {
  position: relative;
}

.plan-chip {
  transition: all 0.25s ease;
  cursor: pointer;
}

.plan-chip:hover,
.plan-chip.active {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.plan-chip.active {
  box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.2);
}

/* ── Forms & Authentication ── */
.login-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(8, 18, 33, 0.45);
}

.login-input,
.signup-input {
  display: block;
  width: 100%;
  height: 3.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(0, 71, 187, 0.18);
  background-color: var(--shell);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus,
.signup-input:focus {
  border-color: var(--cobtint);
  box-shadow: 0 0 0 4px rgba(77, 134, 224, 0.14);
}

.login-input.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.login-error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #dc2626;
}

.login-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 3rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 71, 187, 0.15);
  background-color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.login-social-btn:hover {
  border-color: var(--cobtint);
  background-color: var(--shell);
}

.login-pw-toggle,
.pw-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(8, 18, 33, 0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  transition: color 0.2s ease;
}

.login-pw-toggle:hover,
.pw-toggle:hover {
  color: var(--cobtint);
}

.login-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.4rem;
  border: 2px solid rgba(0, 71, 187, 0.28);
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.login-checkbox:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.login-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}

.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  border-radius: 999px;
  background-color: var(--brand);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.login-submit-btn:hover {
  background-color: var(--carrot);
  color: var(--ink);
}

.login-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-submit-btn.is-success {
  background-color: #22c55e;
  color: #ffffff;
}