/* ==============================================
   SKALIO RADAR — Styles globaux
   ============================================== */

@import "./tokens.css";

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.75;
}

/* ----- NAVBAR ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-logo img {
  height: 28px;
  width: auto;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 1.5rem;
}
.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.navbar-links a:hover,
.navbar-links a:focus-visible {
  color: var(--text-primary);
}
.navbar-cta {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--skalio-cyan);
  text-decoration: none;
  border: 1.5px solid var(--skalio-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.navbar-cta:hover {
  background: rgba(0, 216, 234, 0.08);
}

/* ----- GLOWS ----- */
.glow-cyan {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 216, 234, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  top: -200px;
  left: -100px;
  pointer-events: none;
  z-index: 0;
}
.glow-magenta {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(222, 92, 252, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  top: 100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* ----- CONTENEUR ----- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ----- BOUTONS ----- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 158, 250, 0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--skalio-cyan);
  border: 1.5px solid var(--skalio-cyan);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(0, 216, 234, 0.08);
}

/* ----- CARDS ----- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s ease;
}
.card:hover {
  border-color: var(--border-hover);
}

/* ----- FOOTER ----- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer img {
  height: 20px;
  margin-bottom: 1rem;
}
.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}
.footer-links a,
.footer-preferences {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: none;
}
.footer-links a:hover,
.footer-preferences:hover {
  color: var(--text-primary);
}

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  background: #0b1120;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.consent-banner strong {
  color: var(--text-primary);
}
.consent-banner p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}
.consent-banner a {
  color: var(--text-primary);
  font-weight: 700;
  text-underline-offset: 0.2em;
}
.consent-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.consent-button {
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
}
.consent-button-secondary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--text-primary);
}
/* ----- BARRE GRADIENT (topbar) ----- */
.topbar {
  display: flex;
  height: 3px;
  width: 100%;
}
.topbar span {
  flex: 1;
}
.t1 {
  background: var(--skalio-cyan);
}
.t2 {
  background: var(--skalio-blue);
}
.t3 {
  background: var(--skalio-magenta);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  .navbar {
    padding: 0 1rem;
  }
  .navbar-links {
    display: none;
  }
}

/* =====================================================
   LANDING — index.html
   ===================================================== */

.eyebrow,
.section-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--skalio-cyan);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px; /* navbar height */
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.radar-decorative {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 0 48px rgba(0, 216, 234, 0.12));
}

.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 3rem;
}

.section-why {
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.why-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(0, 216, 234, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-cta {
  background: var(--bg-primary);
}

.cta-block-landing {
  background: var(--gradient-subtle);
  border: 1px solid rgba(0, 216, 234, 0.12);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block-landing h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-block-landing p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    gap: 2rem;
  }
  .hero-visual {
    display: none;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 4rem 0;
  }
  .cta-block-landing {
    padding: 3rem 1.5rem;
  }
}

/* =====================================================
   QUIZ — assessment.html
   ===================================================== */

.quiz-page {
  padding-top: 64px; /* navbar */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  padding: 1.25rem 0 0;
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.quiz-meta-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quiz-counter {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--skalio-cyan);
}

.progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--skalio-cyan), var(--skalio-blue));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-body {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Intro */
.intro-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
}
.intro-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.intro-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* Question card */
.q-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.q-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--skalio-blue);
  margin-bottom: 0.6rem;
}

.q-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.q-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
}
.opt:hover {
  border-color: var(--skalio-cyan);
  background: rgba(0, 216, 234, 0.06);
  transform: translateX(3px);
}
.opt.selected {
  border-color: var(--skalio-cyan);
  background: rgba(0, 216, 234, 0.1);
}

.opt-letter {
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--skalio-cyan);
  flex-shrink: 0;
  transition: background 0.15s;
}
.opt.selected .opt-letter {
  background: var(--skalio-cyan);
  color: var(--bg-primary);
}

.opt-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.opt.selected .opt-label {
  color: var(--text-primary);
}

/* Navigation quiz */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-back {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-next {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--skalio-cyan);
  color: var(--bg-primary);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-next:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-next:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* =====================================================
   RESULT — result.html
   ===================================================== */

.result-page {
  padding-top: 64px;
}

/* Header résultats */
.result-visible {
  padding: 3.5rem 0 2.5rem;
}

.result-header {
  margin-bottom: 2.5rem;
}

.result-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Badge trajectoire */
.traj-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

/* Radar */
.radar-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Barres dimensions */
.dims-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.dim-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  transition: border-color 0.2s;
}
.dim-row:hover {
  border-color: var(--border-hover);
}

.dim-label-text {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.dim-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.dim-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.dim-val-text {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Gate email */
.gate-section {
  padding: 0 0 3rem;
}

.gate-card {
  background: var(--gradient-subtle);
  border: 1px solid rgba(0, 216, 234, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.gate-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.gate-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.gate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-group label {
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-group input,
.field-group select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: border-color 0.2s;
  appearance: none;
  background-image: none;
}

.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: rgba(255, 255, 255, 0.04);
  padding-right: 2.5rem;
  cursor: pointer;
}

.field-group input:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--skalio-cyan);
  background-color: rgba(0, 216, 234, 0.04);
}

.field-group input::placeholder {
  color: var(--text-muted);
}
.field-group select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.req {
  color: var(--skalio-cyan);
  margin-left: 2px;
}
.field-opt {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.gate-submit {
  width: 100%;
  justify-content: center;
}

.gate-privacy {
  font-size: 0.73rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.55;
}

.gate-error {
  font-size: 0.8rem;
  color: #f87171;
  text-align: center;
  padding: 0.5rem 0;
}

/* Rapport complet */
.full-report {
  padding-bottom: 5rem;
}

.report-section {
  margin-bottom: 3rem;
}

.report-section-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--skalio-cyan);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.report-description {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.report-description p + p {
  margin-top: 1rem;
}

/* Listes signaux / actions */
.signal-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.signal-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.signal-item:hover {
  border-color: var(--border-hover);
}

.signal-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.signal-alert .signal-num {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}
.signal-action .signal-num {
  background: rgba(0, 216, 234, 0.1);
  color: var(--skalio-cyan);
}

.signal-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technologies */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tech-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* CTA rapport */
.report-cta {
  position: relative;
  overflow: hidden;
  background: var(--gradient-subtle);
  border: 1px solid rgba(0, 216, 234, 0.12);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin-top: 3.5rem;
}

.report-cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.report-cta p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-mention {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.report-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.restart-link {
  display: block;
  margin: 2.5rem auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.restart-link:hover {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .dims-grid {
    grid-template-columns: 1fr;
  }
  .gate-fields {
    grid-template-columns: 1fr;
  }
  .gate-card {
    padding: 1.75rem 1.25rem;
  }
  .report-cta {
    padding: 2.5rem 1.5rem;
  }
  .result-visible {
    padding: 2.5rem 0 1.5rem;
  }
}
