/* =============================================
   NYC HOUSING COURT APPEALS — PRO SE NAVIGATOR
   Styles: Calm-Authority · Mobile-First · A11y
   ============================================= */

/* ---- CSS VARIABLES ---- */
:root {
  --navy:        #0f2748;
  --navy-mid:    #1a3a6e;
  --navy-light:  #2c5282;
  --amber:       #c97d20;
  --amber-light: #f6ad55;
  --amber-pale:  #fffbf0;
  --red-alert:   #c0392b;
  --red-light:   #fdf2f2;
  --green-ok:    #1a6b3c;
  --green-light: #f0faf5;
  --white:       #ffffff;
  --off-white:   #f8f7f4;
  --gray-50:     #fafafa;
  --gray-100:    #f1f1ef;
  --gray-200:    #e2e0db;
  --gray-400:    #9b9790;
  --gray-600:    #5c5750;
  --gray-800:    #2c2a26;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 4px rgba(15,39,72,0.08);
  --shadow-md:   0 4px 16px rgba(15,39,72,0.12);
  --shadow-lg:   0 8px 32px rgba(15,39,72,0.16);

  --transition:  0.22s ease;

  --max-width:   680px;
}

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

html {
  font-size: 18px; /* above 16px minimum */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--gray-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}

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

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-size: 1rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ---- LEGAL BANNER (top persistent bar) ---- */
.legal-banner {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.legal-banner__icon { font-size: 1rem; flex-shrink: 0; }
.legal-banner p { margin: 0; }
.legal-banner strong { color: var(--amber-light); }

/* ---- HEADER ---- */
.site-header {
  background: var(--navy);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
  color: var(--white);
  padding: 18px 20px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-seal {
  width: 46px;
  height: 46px;
  background: var(--amber);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
}

.header-text { flex: 1; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.site-subtitle {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-icon {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover, .btn-icon:focus {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  outline: 2px solid var(--amber-light);
  outline-offset: 2px;
}

/* ---- PROGRESS BAR ---- */
.progress-container {
  background: var(--navy-mid);
  padding: 10px 20px 8px;
  position: sticky;
  top: 82px;
  z-index: 90;
}

.progress-track {
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  border-radius: 99px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-phases {
  max-width: var(--max-width);
  margin: 6px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.phase-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.phase-label.active { color: var(--amber-light); font-weight: 600; }
.phase-label.done { color: rgba(255,255,255,0.7); }

/* ---- MAIN CONTAINER ---- */
.main-container {
  flex: 1;
  padding: 28px 16px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  animation: cardEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.card--welcome {
  background: linear-gradient(160deg, #ffffff 0%, #f8f5ee 100%);
  border-color: rgba(201, 125, 32, 0.2);
  border-top: 4px solid var(--amber);
}

.card--alert {
  background: var(--red-light);
  border-color: var(--red-alert);
  border-top: 4px solid var(--red-alert);
  text-align: center;
}

.card--phase {
  border-top: 4px solid var(--navy-light);
}

.card__badge {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.card__badge--phase {
  background: var(--navy);
  color: var(--white);
}

.card__heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.card__heading--alert { color: var(--red-alert); }

.card__body {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 24px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gray-400);
}

/* ---- WELCOME FEATURES ---- */
.welcome-features {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-600);
}

.feature-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ---- SAVED PROGRESS ---- */
.saved-notice {
  background: var(--green-light);
  border: 1px solid #a3d9bc;
  color: var(--green-ok);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ---- BUTTONS ---- */
.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 50px; /* touch target */
}

.btn:focus {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--amber {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
  font-weight: 700;
}
.btn--amber:hover {
  background: #b8701c;
  border-color: #b8701c;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--outline-amber {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}
.btn--outline-amber:hover {
  background: var(--amber-pale);
}

.btn--large {
  padding: 16px 32px;
  font-size: 1.1rem;
  width: 100%;
  border-radius: var(--radius-lg);
}

.btn--danger {
  background: var(--red-alert);
  color: var(--white);
  border-color: var(--red-alert);
}
.btn--danger:hover { background: #a93226; }

/* ---- QUESTION OPTIONS ---- */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  text-align: left;
  transition: all var(--transition);
  min-height: 60px; /* accessibility touch target */
}

.option-btn:hover {
  border-color: var(--navy-light);
  background: #f0f5ff;
  transform: translateX(4px);
}

.option-btn:focus {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-color: var(--navy);
}

.option-btn.selected {
  border-color: var(--navy);
  background: #e8f0ff;
}

.option-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--gray-100);
  flex-shrink: 0;
}

.option-btn--yes .option-icon { background: var(--green-light); }
.option-btn--no  .option-icon { background: #fef5f5; }

.option-text { flex: 1; }
.option-label { font-weight: 600; color: var(--navy); display: block; margin-bottom: 2px; }
.option-desc  { font-size: 0.85rem; color: var(--gray-400); line-height: 1.4; }

/* ---- DATE PICKER ---- */
.date-input-group {
  margin: 24px 0 0;
}

.date-input-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1rem;
}

.date-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.date-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,39,72,0.1);
}

.date-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.date-feedback.warning {
  background: #fff8e6;
  border: 1px solid var(--amber);
  color: #7a4a00;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.date-feedback.danger {
  background: var(--red-light);
  border: 1px solid var(--red-alert);
  color: var(--red-alert);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.date-feedback.safe {
  background: var(--green-light);
  border: 1px solid #a3d9bc;
  color: var(--green-ok);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.days-remaining {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  font-family: var(--font-display);
}

/* ---- DEADLINE URGENCY METER ---- */
.urgency-meter {
  margin: 16px 0;
}

.urgency-track {
  height: 10px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.urgency-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease, background-color 0.4s;
}

.urgency-fill.safe   { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.urgency-fill.warn   { background: linear-gradient(90deg, var(--amber), var(--amber-light)); }
.urgency-fill.danger { background: linear-gradient(90deg, #e74c3c, var(--red-alert)); }

.urgency-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
}

/* ---- NAVIGATION (back button + step counter) ---- */
.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 6px 0;
  transition: color var(--transition);
}
.btn-back:hover { color: var(--navy); }
.btn-back:focus { outline: 2px solid var(--amber); border-radius: 4px; }

.step-counter {
  font-size: 0.78rem;
  color: var(--gray-400);
  letter-spacing: 0.4px;
}

/* ---- PHASE BADGE ---- */
.phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.phase-number {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.phase-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ---- INLINE WARNINGS ---- */
.inline-warning {
  background: #fff8e6;
  border: 1px solid var(--amber);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #7a4a00;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.inline-info {
  background: #eef4ff;
  border: 1px solid #93b8f5;
  border-left: 4px solid var(--navy-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ---- ALERT SCREEN ---- */
.alert-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.next-steps-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}
.next-steps-box h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.next-steps-box ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.legal-resources {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}
.legal-resources h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--amber-light);
}
.legal-resources ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-resources li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
}
.legal-resources strong { color: var(--amber-light); }

.alert-note {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 16px;
}

/* ---- RESULTS PAGE ---- */
.results-header {
  margin-bottom: 28px;
  padding: 28px;
  background: var(--navy);
  border-radius: var(--radius-xl);
  color: var(--white);
}

.results-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 8px;
}

.results-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.results-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.results-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- PHASE RESULT BLOCK ---- */
.phase-result-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.phase-result-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.phase-result-header .phase-number {
  background: var(--amber);
  color: var(--navy);
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.phase-result-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}

.phase-result-status {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 600;
}
.phase-result-status.urgent { background: var(--red-alert); color: white; }
.phase-result-status.active { background: var(--amber); color: var(--navy); }
.phase-result-status.info   { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }

.phase-result-body {
  padding: 20px 24px;
}

/* ---- CHECKLIST ITEMS ---- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-600);
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}

.checklist li.urgent {
  background: var(--red-light);
  border-color: #f5c6cb;
}

.checklist li.note {
  background: var(--amber-pale);
  border-color: rgba(201,125,32,0.2);
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Printed checkboxes */
@media print {
  .checklist-checkbox {
    width: 14px;
    height: 14px;
    border-color: #555;
    border-width: 1px;
  }
}

.checklist-checkbox:checked {
  background: var(--green-ok);
  border-color: var(--green-ok);
}

.checklist-checkbox:checked::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checklist-checkbox:focus {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.checklist-label { flex: 1; line-height: 1.5; }
.checklist-label strong { color: var(--navy); }

/* ---- DEADLINE BADGE ---- */
.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-alert);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.deadline-badge.amber { background: var(--amber); color: var(--navy); }
.deadline-badge.navy  { background: var(--navy); }

/* ---- COURT INFO CARD ---- */
.court-info-card {
  margin-top: 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.court-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--amber-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.court-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border-left: 3px solid var(--amber);
}

.court-entry:last-child { margin-bottom: 0; }

.court-entry-title {
  font-weight: 700;
  color: var(--amber-light);
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.court-entry-address {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
}

.court-entry-hours {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}

.court-entry-phone {
  color: var(--amber-light);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-disclaimer {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
.footer-disclaimer strong { color: var(--amber-light); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}
.footer-sep { color: rgba(255,255,255,0.2); }

/* ---- TOAST NOTIFICATION ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

/* ---- SCREEN TRANSITION ---- */
.screen { animation: fadeIn 0.3s ease both; }

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

/* ---- PRINT STYLES ---- */
@media print {
  .legal-banner,
  .site-header,
  .progress-container,
  .site-footer,
  .toast,
  .results-actions,
  .btn-back,
  .btn-icon,
  .btn--outline,
  #screen-welcome,
  #screen-question,
  #screen-deadline-alert {
    display: none !important;
  }

  body {
    font-size: 14px;
    background: white;
    color: black;
  }

  .results-header {
    background: var(--navy) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-after: avoid;
  }

  .phase-result-block {
    page-break-inside: avoid;
    margin-bottom: 12pt;
  }

  .phase-result-header {
    background: var(--navy) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .court-info-card {
    background: var(--navy) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: avoid;
  }

  .checklist li {
    page-break-inside: avoid;
  }

  /* Print footer disclaimer */
  body::after {
    content: "NOT LEGAL ADVICE. This is a procedural guide only. Consult a licensed NY attorney for advice on your specific matter. Guide by Aidah Gil, March 2026.";
    display: block;
    font-size: 10pt;
    color: #555;
    text-align: center;
    padding-top: 20pt;
    border-top: 1pt solid #ddd;
    margin-top: 20pt;
  }
}

/* ---- RESPONSIVE BREAKPOINTS ---- */
@media (min-width: 480px) {
  .card { padding: 36px 36px; }
  .options-list { gap: 14px; }
}

@media (max-width: 360px) {
  html { font-size: 16px; }
  .card { padding: 24px 18px; }
  .card__heading { font-size: 1.35rem; }
  .btn--large { padding: 14px 20px; }
}

/* ---- FOCUS VISIBLE (not just mouse) ---- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

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