/* ========================================
   NEEDASTRONGPASSWORD.COM
   Cyber-vault aesthetic — dark, electric, glass
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=IBM+Plex+Mono:wght@400;600&family=Sora:wght@300;400;500&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-deep: #06060c;
  --bg-surface: #0c0c16;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --cyan: #00e8ff;
  --cyan-glow: rgba(0, 232, 255, 0.15);
  --cyan-dim: rgba(0, 232, 255, 0.4);
  --purple: #7b61ff;
  --purple-glow: rgba(123, 97, 255, 0.15);
  --green: #00ff88;
  --green-glow: rgba(0, 255, 136, 0.2);
  --orange: #ffaa00;
  --red: #ff4466;
  --text-primary: #e8e8ec;
  --text-secondary: #9a9aae;
  --text-muted: #808096;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Animated Background --- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  width: 150vmax;
  height: 150vmax;
  top: -50vmax;
  left: -30vmax;
  background: radial-gradient(ellipse at 30% 40%, rgba(0, 232, 255, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(123, 97, 255, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 40%);
  animation: meshDrift 25s ease-in-out infinite alternate;
}

.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 3px
  );
  pointer-events: none;
}

@keyframes meshDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5vw, 3vh) rotate(8deg); }
}

/* --- Noise Texture Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Layout --- */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.25rem 3rem;
}

/* --- Header --- */
.site-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  animation: fadeSlideUp 0.8s ease-out both;
}

.site-header__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-glow), var(--purple-glow));
  border: 1px solid var(--glass-border);
  margin-bottom: 1.25rem;
  position: relative;
}

.site-header__lock::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  animation: lockPulse 3s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.site-header__lock svg {
  width: 26px;
  height: 26px;
  fill: var(--cyan);
  position: relative;
  z-index: 1;
}

.site-header h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.site-header h1 .highlight {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header__tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Main Card --- */
.generator-card {
  width: 100%;
  max-width: 520px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.8s ease-out 0.15s both;
}

.generator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), var(--purple), transparent);
  opacity: 0.5;
}

/* --- Password Display --- */
.password-display {
  position: relative;
  margin-bottom: 1rem;
}

.password-display__field {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 5.5rem 1.1rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.password-display__field:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 3px var(--cyan-glow), inset 0 0 20px rgba(0, 232, 255, 0.03);
}

.password-display__field::selection {
  background: var(--cyan-glow);
  color: var(--text-primary);
}

.password-display__actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}

.password-display__action {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.password-display__copy {
  background: rgba(0, 232, 255, 0.12);
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}

.password-display__action:hover {
  background: var(--cyan-glow);
  color: var(--cyan);
}

.password-display__action:active {
  transform: scale(0.88);
}

.password-display__regenerate:hover {
  background: var(--purple-glow);
  color: var(--purple);
}

.password-display__regenerate.spinning svg {
  animation: spin 0.4s ease-in-out;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.password-display__copy.copied {
  color: var(--green);
  background: var(--green-glow);
}

.password-display__action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: opacity 0.2s;
}

.password-display__copy .icon-check {
  position: absolute;
}

.password-display__copy:not(.copied) .icon-check {
  opacity: 0;
}

.password-display__copy.copied .icon-copy {
  opacity: 0;
}

/* --- Strength Indicator --- */
.strength-bar {
  margin-bottom: 1.75rem;
}

.strength-bar__track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.strength-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
  background: var(--red);
}

.strength-bar__fill[data-strength="0"] { width: 0%; background: var(--text-muted); }
.strength-bar__fill[data-strength="1"] { width: 25%; background: var(--red); }
.strength-bar__fill[data-strength="2"] { width: 50%; background: var(--orange); }
.strength-bar__fill[data-strength="3"] { width: 75%; background: var(--cyan); }
.strength-bar__fill[data-strength="4"] { width: 100%; background: var(--green); }

.strength-bar__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.strength-bar__label span:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.strength-bar__label span:last-child[data-strength="1"] { color: var(--red); }
.strength-bar__label span:last-child[data-strength="2"] { color: var(--orange); }
.strength-bar__label span:last-child[data-strength="3"] { color: var(--cyan); }
.strength-bar__label span:last-child[data-strength="4"] { color: var(--green); }

/* --- Controls Section --- */
.controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Length slider */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-group__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.control-group__range {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: none;
}

.control-group__value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-glow);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  width: 48px;
  text-align: center;
  border: 1px solid transparent;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -moz-appearance: textfield;
}

.control-group__value::-webkit-inner-spin-button,
.control-group__value::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.control-group__value:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

/* Range Slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  cursor: pointer;
  position: relative;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--cyan-glow), 0 0 4px rgba(0, 232, 255, 0.3);
  border: 2px solid var(--bg-deep);
  transition: box-shadow var(--transition), transform var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px rgba(0, 232, 255, 0.4), 0 0 6px rgba(0, 232, 255, 0.5);
  transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--cyan-glow);
  border: 2px solid var(--bg-deep);
  transition: box-shadow var(--transition), transform var(--transition);
}

.range-slider::-moz-range-thumb:hover {
  box-shadow: 0 0 20px rgba(0, 232, 255, 0.4), 0 0 6px rgba(0, 232, 255, 0.5);
  transform: scale(1.1);
}

.range-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  height: 6px;
  border-radius: 3px;
}

.range-slider:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Toggles Grid */
.toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.toggle-item:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.toggle-item:has(input:checked) {
  background: var(--cyan-glow);
  border-color: var(--cyan-dim);
}

.toggle-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle-item:has(input:checked) .toggle-switch {
  background: var(--cyan);
}

.toggle-item:has(input:checked) .toggle-switch::after {
  transform: translateX(16px);
  background: var(--bg-deep);
}

.toggle-item__label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition);
  line-height: 1.3;
}

.toggle-item:has(input:checked) .toggle-item__label {
  color: var(--text-primary);
}

.toggle-item__label small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 1px;
}

/* --- Generate Button --- */
.generate-btn {
  width: 100%;
  padding: 0.95rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-deep);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 232, 255, 0.2), 0 2px 10px rgba(123, 97, 255, 0.15);
}

.generate-btn:active {
  transform: translateY(0) scale(0.985);
}

.generate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.generate-btn:hover::before {
  transform: translateX(100%);
}

/* --- Content Sections (SEO text) --- */
.content-section {
  width: 100%;
  max-width: 520px;
  margin-top: 2.5rem;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.content-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.content-section p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: var(--text-primary);
  font-weight: 500;
}

.content-section code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  background: rgba(0, 232, 255, 0.08);
  color: var(--cyan);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.content-section--meta {
  margin-top: 1.5rem;
}

.last-updated {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Steps List */
.steps-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.steps-list li {
  counter-increment: step;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 2rem;
  position: relative;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--cyan-glow);
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyan-dim);
}

.steps-list li strong {
  color: var(--text-primary);
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.comparison-table th {
  background: rgba(0, 232, 255, 0.06);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table td {
  padding: 0.65rem 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.comparison-table code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan-dim);
}

/* --- Info Grid (inside content sections) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.info-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  transition: border-color var(--transition);
}

.info-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.info-card__icon {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.info-card p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- FAQ Section --- */
.faq-section {
  width: 100%;
  max-width: 520px;
  margin-top: 2.5rem;
  animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

.faq-section__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item[open] {
  border-color: var(--cyan-dim);
}

.faq-item__question {
  padding: 0.9rem 1.1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

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

.faq-item__question::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  padding: 0 1.1rem 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item__answer code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  background: rgba(0, 232, 255, 0.08);
  color: var(--cyan);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  padding-top: 3rem;
  text-align: center;
  animation: fadeSlideUp 0.8s ease-out 0.45s both;
}

.site-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--cyan);
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes charReveal {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-char {
  display: inline-block;
  animation: charReveal 0.25s ease-out both;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 1.25rem 1rem 2rem;
  }

  .site-header {
    margin-bottom: 1.75rem;
    padding-top: 1rem;
  }

  .generator-card {
    padding: 1.5rem 1.15rem;
  }

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

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

  .comparison-table {
    font-size: 0.72rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.55rem 0.65rem;
  }
}

@media (min-width: 768px) {
  .page-wrapper {
    padding-top: 4rem;
    justify-content: center;
  }

  .site-header {
    padding-top: 0;
    margin-bottom: 3rem;
  }

  .site-header h1 {
    font-size: 2.6rem;
  }
}

/* --- Focus Visible (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.toggle-item:has(input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .bg-mesh::before {
    animation: none;
  }

  .password-char {
    animation: none;
    opacity: 1;
  }
}
