/* Accessibility install guide + modal — Vora-strict mock demos, Astroforme brand chrome */
:root {
  --line: rgba(47, 49, 146, 0.12);
  --guide-accent: #f7941d;
  --guide-accent-2: #aa1e4d;
}

.guide-access {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(247, 148, 29, 0.35);
  background: #fff;
  margin-top: 14px;
}
.guide-access h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ca-blue);
  line-height: 1.4;
  font-family: var(--font-condensed);
}
.guide-access > p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ca-muted);
}
.guide-access ol {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ca-muted);
}
.guide-access ol li { margin-bottom: 10px; }
.guide-access ol li strong { color: var(--ca-text); font-weight: 800; }
.guide-caption {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ca-muted);
  text-align: center;
  line-height: 1.55;
}
.guide-caption strong { color: var(--ca-blue); font-weight: 800; }
.guide-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.3);
  font-size: 13px;
  line-height: 1.6;
  color: #2e7d32;
}

.android-mock {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1f2937;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.android-mock-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 600;
  color: #111;
  background: #fff;
}
.android-mock-status span { display: flex; align-items: center; gap: 4px; }
.android-mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 12px;
  background: #fff;
  border-bottom: 1px solid #eceff3;
}
.android-mock-bar h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
}
.android-mock-back,
.android-mock-menu {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 16px;
}

.mock-demo { margin-top: 4px; }
.mock-phase-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mock-phase-tab {
  flex: 1;
  padding: 8px 4px;
  border-radius: 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  background: rgba(47, 49, 146, 0.04);
  border: 1px solid var(--ca-border);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  line-height: 1.35;
}
.mock-phase-tab.active {
  color: #fff;
  background: linear-gradient(90deg, var(--ca-orange), var(--ca-maroon));
  border-color: transparent;
}
.mock-subdots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.mock-subdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6cbb8;
  transition: background 0.25s, transform 0.25s;
}
.mock-subdot.active {
  background: var(--ca-orange);
  transform: scale(1.15);
}
.mock-screen { display: none; }
.mock-screen.active { display: block; animation: mockFadeIn 0.45s ease; }
@keyframes mockFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Android 14+ Settings style — identical to Vora */
.a14 {
  background: #fef7ff;
  color: #1d1b20;
  font-family: Roboto, "Segoe UI", sans-serif;
  border-radius: 18px;
  overflow: hidden;
}
.a14-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 4px;
  font-size: 12px;
  font-weight: 500;
  color: #1d1b20;
  background: #fef7ff;
}
.a14-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
  background: #fef7ff;
}
.a14-back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #1d1b20;
}
.a14-topbar-copy { flex: 1; min-width: 0; }
.a14-topbar-copy h5 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: #1d1b20;
}
.a14-topbar-copy small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #49454f;
}
.a14-content { padding: 0 16px 16px; background: #fef7ff; }
.a14-group {
  background: #fffbfe;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}
.a14-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e7e0ec;
  position: relative;
}
.a14-row:last-child { border-bottom: 0; }
.a14-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f3edf7;
}
.a14-row-icon img { width: 100%; height: 100%; object-fit: cover; }
.a14-row-icon.purple { background: #eaddff; color: #6750a4; font-size: 18px; }
.a14-row-icon.teal { background: #cbfff0; color: #006b5f; font-size: 18px; }
.a14-row-icon.gray { background: #ece6f0; color: #49454f; font-size: 18px; }
.a14-row-copy { flex: 1; min-width: 0; }
.a14-row-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #1d1b20;
}
.a14-row-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #49454f;
  line-height: 1.35;
}
.a14-chevron { color: #49454f; font-size: 18px; flex-shrink: 0; }
.a14-switch {
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: #79747e;
  position: relative;
  flex-shrink: 0;
  transition: background 0.35s ease;
}
.a14-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fffbfe;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.35s ease;
}
.a14-switch.on { background: #6750a4; }
.a14-switch.on::after { left: 24px; }
.a14-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 14px;
}
.a14-hero img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 8px;
}
.a14-hero strong { font-size: 18px; font-weight: 500; color: #1d1b20; }
.a14-hero span { font-size: 12px; color: #49454f; margin-top: 4px; }
.a14-note {
  padding: 0 6px;
  font-size: 11px;
  line-height: 1.5;
  color: #49454f;
}
.a14-nav {
  display: flex;
  justify-content: center;
  padding: 10px 0 8px;
  background: #fef7ff;
}
.a14-nav span {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: #1d1b20;
}
.a14-row.tap-target.highlight {
  animation: rowPulseA14 1.8s ease-in-out infinite;
}
@keyframes rowPulseA14 {
  0%, 100% {
    background: #fffbfe;
    box-shadow: inset 0 0 0 0 rgba(103, 80, 164, 0.35);
  }
  50% {
    background: #f3edf7;
    box-shadow: inset 0 0 0 2px rgba(103, 80, 164, 0.55);
  }
}
.a14-row.tap-target.highlight::after {
  content: "👆 Tap";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  color: #6750a4;
  background: #fffbfe;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  animation: tapBounce 1.8s ease-in-out infinite;
}
.a14-switch.tap-target.highlight {
  animation: switchPulse 1.8s ease-in-out infinite;
}
@keyframes switchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103, 80, 164, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(103, 80, 164, 0); }
}
.a14-row.tap-target.highlight .a14-chevron { visibility: hidden; }

.mock-perm-page {
  position: relative;
  min-height: 300px;
  background: #f3f4f6;
  font-family: Roboto, "Segoe UI", sans-serif;
  color: #111;
}
.mock-perm-page .android-mock-bar { border-bottom: 1px solid #e5e7eb; }
.mock-perm-page .android-mock-bar h5 { text-align: left; padding-left: 4px; }
.mock-perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #eceff3;
}
.mock-perm-row span { font-size: 13px; font-weight: 500; }
.mock-toggle {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
}
.mock-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mock-perm-sub {
  font-size: 10px;
  color: #64748b;
  padding: 4px 16px 8px;
}
.mock-perm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}
.mock-perm-dialog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 16px 14px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}
.mock-perm-dialog h6 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}
.mock-perm-dialog > p {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
}
.mock-perm-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
}
.mock-perm-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.mock-perm-item-copy { display: block; }
.mock-perm-item strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}
.mock-perm-item span {
  display: block;
  font-size: 10px;
  color: #64748b;
  line-height: 1.4;
}
.mock-perm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.mock-perm-actions button {
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 6px 4px;
}
.mock-allow-btn {
  position: relative;
  color: #9333ea !important;
  font-weight: 800 !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: rgba(147, 51, 234, 0.1) !important;
  animation: tapPulse 1.6s ease-in-out infinite;
}
.mock-allow-btn::after {
  content: "👆";
  position: absolute;
  top: -22px;
  right: 0;
  font-size: 16px;
  animation: tapBounce 1.6s ease-in-out infinite;
}
@keyframes tapPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(147, 51, 234, 0); }
}
@keyframes tapBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.tutorial-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(20, 16, 8, 0.72);
  backdrop-filter: blur(6px);
}
.tutorial-modal.is-visible { display: flex; }
.tutorial-modal-card {
  width: 100%;
  max-width: 400px;
  max-height: min(92vh, 780px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 18px 16px;
  background: linear-gradient(160deg, #2a2418, #1a1610);
  border: 1px solid rgba(247, 148, 29, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: mockFadeIn 0.35s ease;
}
.tutorial-modal-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  text-align: left;
  font-family: var(--font-condensed);
}
.tutorial-modal-card > p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #d6cbb8;
  text-align: left;
}
.tutorial-modal-quick { margin-bottom: 14px; min-height: 460px; }
.tutorial-quick-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #f6ba52;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.modal-mock-demo { margin-top: 0; }
.modal-mock-demo .mock-subdots { margin-bottom: 8px; }
.modal-mock-viewport {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0812;
}
.modal-mock-viewport .mock-screen {
  display: block;
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-mock-viewport .mock-screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: none;
}
.modal-mock-viewport .mock-perm-page { min-height: 100%; }
.modal-mock-viewport .a14 { min-height: 100%; }
.modal-mock-caption {
  margin: 8px 0 0;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.55;
  color: #d6cbb8;
  text-align: center;
}
.modal-mock-caption strong { color: #fff; }
.tutorial-wait {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #f6ba52;
  text-align: center;
}
.tutorial-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.tutorial-modal-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.tutorial-modal-btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--ca-orange), var(--ca-maroon));
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.35);
}
.tutorial-modal-btn.secondary {
  color: #a89a82;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
