/* AI Readiness Assessment styles */

.ai-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.ai-page .hidden {
  display: none;
}

.ai-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.ai-hero .ai-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ai-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

#ai-step-label {
  display: inline-block;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.ai-step-title {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.ai-step-sub {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* Step 1 — task picker */
.ai-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.ai-task {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  padding: 1.1rem 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ai-task:hover {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.06);
}

.ai-task.selected {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-color);
}

.ai-task-icon svg {
  width: 26px;
  height: 26px;
}

.ai-task-label {
  font-size: 0.9rem;
  line-height: 1.35;
}

.ai-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

/* Steps 2 & 3 — single choice */
.ai-choices {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.ai-choice {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ai-choice:hover {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.06);
}

.ai-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.ai-back:hover {
  color: var(--accent-color);
}

/* Results */
.ai-archetype {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ai-archetype-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.12);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-archetype-icon svg {
  width: 30px;
  height: 30px;
}

.ai-archetype h2 {
  margin: 0;
  font-size: 1.5rem;
}

.ai-archetype p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-hours-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
}

#ai-hours-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ai-hours-sub {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.ai-helpers-heading {
  margin: 0 0 1rem;
}

.ai-helpers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.ai-helper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 0.6rem;
  padding: 1.1rem;
}

.ai-helper-icon {
  color: var(--accent-color);
}

.ai-helper-icon svg {
  width: 24px;
  height: 24px;
}

.ai-helper-name {
  font-weight: 600;
  color: var(--text-primary);
}

.ai-helper-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Optional email report */
.ai-email {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.ai-email h3 {
  margin: 0 0 0.5rem;
}

.ai-email p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem;
}

#ai-email-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#ai-email-input {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

#ai-email-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.ai-email-status {
  margin-top: 0.75rem;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.ai-email-status.success { color: #4ade80; }
.ai-email-status.error { color: #f87171; }

.ai-email-privacy {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  margin-top: 0.75rem !important;
}

.ai-cta {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.ai-cta p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

#ai-restart {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-decoration: underline;
}

.ai-disclaimer {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 2rem;
}

/* Popular workplace AI tools */
.ai-tools {
  margin-bottom: 2rem;
}

.ai-tools-heading {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.ai-tools-intro {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.ai-tool-card {
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.ai-tool-card:hover {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.06);
}

a.ai-tool-card:hover .ai-tool-name {
  color: var(--accent-color);
}

.ai-tool-name::after {
  content: " \2197";
  font-size: 0.8em;
  color: var(--text-muted);
}

.ai-tool-icon {
  color: var(--accent-color);
}

.ai-tool-icon svg {
  width: 28px;
  height: 28px;
}

.ai-tool-name {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.6rem 0 0.4rem;
  font-size: 1.05rem;
}

.ai-tool-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  background: rgba(0, 217, 255, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
}

.ai-tool-use {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.ai-tools-note {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.25rem 0 0;
}

/* SEO content — expandable sections (content stays in the DOM for crawlers) */
.ai-content details.ai-acc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  margin-bottom: 0.9rem;
}

.ai-acc summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ai-acc summary::-webkit-details-marker {
  display: none;
}

.ai-acc summary::after {
  content: "+";
  color: var(--accent-color);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.ai-acc[open] summary::after {
  content: "\2212";
}

.ai-acc summary:hover h2,
.ai-acc summary:hover h3 {
  color: var(--accent-color);
}

.ai-content .ai-acc summary h2 {
  font-size: 1.25rem;
  margin: 0;
}

.ai-acc summary h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.ai-acc .ai-acc-body {
  padding: 0 1.3rem 1.1rem;
}

.ai-acc .ai-acc-body > :first-child {
  margin-top: 0;
}

.ai-acc .ai-acc-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 0.8rem;
}

.ai-acc .ai-acc-body p:last-child {
  margin-bottom: 0;
}

.ai-acc .ai-acc-body ul {
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1.4rem;
  margin: 0;
}

@media (max-width: 600px) {
  .ai-page { padding-top: 100px; }
  .ai-hero h1 { font-size: 1.8rem; }
  .ai-card { padding: 1.25rem; }
  #ai-hours-num { font-size: 2rem; }
}
