/* ============================================
   AVELLE — AI Readiness Assessment
   Tool-specific styles
   ============================================ */

/* ── Hero overrides ── */
.tool-hero { padding: 140px 0 50px; background: #FFFFFF; position: relative; overflow: hidden; }
.tool-hero: :before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, rgba(82,78,240,0.12) 0%, transparent 70%); pointer-events: none; }
.tool-hero .section-label { margin-bottom: 12px; }
.tool-hero__title { font-family: var(--font-heading, 'DM Sans', sans-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #1C1629; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
.tool-hero__sub { font-size: 1.05rem; color: rgba(28,22,41,0.75); max-width: 580px; margin: 0 auto; line-height: 1.6; }
.tool-hero__badges { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.tool-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: rgba(82,78,240,0.08); border: 1px solid rgba(82,78,240,0.18); color: rgba(28,22,41,0.85); }
.tool-badge svg { width: 14px; height: 14px; stroke: #524EF0; fill: none; stroke-width: 2; }

/* ── Breadcrumb & meta ── */
.ara-crumb { margin-bottom: 18px; }
.ara-crumb a { color: #2B18A6; font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.ara-crumb a:hover { text-decoration: underline; }
.ara-meta { display: inline-block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(28,22,41,0.6); margin-bottom: 20px; }

/* ── Gradient text ── */
.ara-grad { background: linear-gradient(100deg, #524EF0 0%, #524EF0 45%, #2B18A6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Short highlight word — pull cyan in earlier so "AI-Ready" reads clearly purple→cyan */
.ara-intro__title .ara-grad { background: linear-gradient(100deg, #524EF0 0%, #2B18A6 100%); -webkit-background-clip: text; background-clip: text; }

/* ── Shared section styles ── */
.ara-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ara-section-header { text-align: center; margin-bottom: 48px; }
.ara-h2 { font-family: var(--font-heading, 'DM Sans', sans-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: #1C1629; margin: 10px 0 14px; letter-spacing: -0.02em; line-height: 1.15; }
.ara-lead { font-size: 1rem; color: rgba(28,22,41,0.7); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ── Buttons ── */
.ara-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; font-family: inherit; }
.ara-btn--primary { background: linear-gradient(135deg, #524EF0, #524EF0); color: #1C1629 !important; -webkit-text-fill-color: #fff !important; box-shadow: 0 4px 20px -6px rgba(82,78,240,0.5); }
.ara-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px -6px rgba(82,78,240,0.6); }
.ara-btn--ghost { background: transparent; color: rgba(28,22,41,0.75); border: 1px solid rgba(82,78,240,.18); }
.ara-btn--ghost:hover { background: rgba(255,255,255,.9); color: #1C1629; }
.ara-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ========== QUIZ ========== */
.ara-quiz-section { background: #FFFFFF; padding: 0 0 80px; }
.ara-quiz-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.ara-quiz { background: rgba(255,255,255,.9); border: 1px solid rgba(82,78,240,0.15); border-radius: 24px; padding: 48px 40px; position: relative; overflow: hidden; }
.ara-quiz: :before { content: ''; position: absolute; top: -60%; right: -40%; width: 80%; height: 160%; background: radial-gradient(circle, rgba(82,78,240,0.08), transparent 65%); pointer-events: none; }

/* Intro */
.ara-intro { text-align: center; position: relative; }
.ara-intro__icon { margin-bottom: 24px; }
.ara-intro__title { font-family: var(--font-heading, 'DM Sans', sans-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.ara-intro__sub { font-size: 0.98rem; color: rgba(28,22,41,0.7); line-height: 1.6; max-width: 500px; margin: 0 auto 28px; }
.ara-intro__note { font-size: 0.8rem; color: rgba(28,22,41,0.5); margin-top: 16px; }

/* Progress */
.ara-progress { margin-bottom: 32px; }
.ara-progress__info { display: flex; justify-content: space-between; font-size: 0.82rem; color: rgba(28,22,41,0.65); margin-bottom: 10px; }
.ara-progress__bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.9); overflow: hidden; }
.ara-progress__fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #524EF0, #2B18A6); transition: width 0.4s ease; }

/* Pillar label */
.ara-pillar-label { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #2B18A6; padding: 5px 12px; border-radius: 6px; background: rgba(43,24,166,0.08); border: 1px solid rgba(43,24,166,0.15); margin-bottom: 16px; }

/* Question */
.ara-question { font-family: var(--font-heading, 'DM Sans', sans-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin-bottom: 24px; color: #1C1629; }

/* Options */
.ara-options { display: grid; gap: 10px; margin-bottom: 32px; }
.ara-option { display: block; width: 100%; text-align: left; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.9); border: 1px solid rgba(82,78,240,.18); color: rgba(28,22,41,0.85); font-size: 0.94rem; font-weight: 500; line-height: 1.45; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s; font-family: inherit; }
.ara-option:hover { background: rgba(82,78,240,0.06); border-color: rgba(82,78,240,0.25); transform: translateX(4px); }
.ara-option.is-selected { background: rgba(82,78,240,0.12); border-color: rgba(82,78,240,0.4); color: #1C1629; }

/* Nav */
.ara-nav { display: flex; justify-content: space-between; gap: 12px; }
.ara-nav .ara-btn { padding: 12px 24px; font-size: 0.9rem; }

/* ========== RESULTS ========== */
.ara-results { position: relative; }
.ara-results-inner { text-align: center; }
.ara-score-ring { position: relative; width: 180px; height: 180px; margin: 0 auto 24px; }
.ara-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ara-score-ring__bg { fill: none; stroke: rgba(82,78,240,0.16); stroke-width: 8; }
.ara-score-ring__fill { fill: none; stroke: url(#scoreGrad); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
.ara-score-ring__text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.ara-score-number { display: block; font-size: 3rem; font-weight: 700; line-height: 1; background: linear-gradient(135deg, #524EF0, #2B18A6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ara-score-label { font-size: 0.82rem; color: rgba(28,22,41,0.55); }

.ara-tier-result { display: inline-block; padding: 8px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; margin-bottom: 32px; }
.ara-tier-result--beginner { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.25); color: #FCD34D; }
.ara-tier-result--intermediate { background: rgba(82,78,240,0.12); border: 1px solid rgba(82,78,240,0.25); color: #524EF0; }
.ara-tier-result--advanced { background: rgba(43,24,166,0.12); border: 1px solid rgba(43,24,166,0.25); color: #2B18A6; }

/* Pillar bars */
.ara-pillar-scores { max-width: 480px; margin: 0 auto 32px; text-align: left; }
.ara-pillar-row { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 12px; margin-bottom: 14px; }
.ara-pillar-name { font-size: 0.88rem; font-weight: 500; color: rgba(28,22,41,0.8); }
.ara-pillar-bar-bg { height: 10px; border-radius: 5px; background: rgba(255,255,255,.9); overflow: hidden; }
.ara-pillar-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #524EF0, #2B18A6); transition: width 1s ease; }
.ara-pillar-pct { font-size: 0.88rem; font-weight: 600; color: #2B18A6; text-align: right; }

/* Insight */
.ara-insight { background: rgba(82,78,240,0.06); border: 1px solid rgba(82,78,240,0.15); border-radius: 14px; padding: 20px 24px; margin-bottom: 28px; text-align: left; }
.ara-insight p { font-size: 0.94rem; line-height: 1.55; color: rgba(28,22,41,0.85); }
.ara-insight strong { color: #1C1629; }

.ara-results .ara-btn { margin-bottom: 12px; }
.ara-results-note { font-size: 0.82rem; color: rgba(28,22,41,0.5); text-align: center; }

/* ========== DIMENSIONS ========== */
.ara-dimensions { background: #FFFFFF; padding: 80px 0; }
.ara-dim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ara-dim-card { padding: 28px 24px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid rgba(82,78,240,.18); transition: transform 0.25s, border-color 0.25s; }
.ara-dim-card:hover { transform: translateY(-4px); border-color: rgba(82,78,240,0.35); }
.ara-dim-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(82,78,240,0.12); color: var(--purple); margin-bottom: 16px; }
.ara-dim-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.ara-dim-card p { font-size: 0.9rem; line-height: 1.5; color: rgba(28,22,41,0.7); }

/* ========== TIERS ========== */
.ara-tiers { background: #F4F5FB; padding: 80px 0; }
.ara-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ara-tier-card { padding: 32px 28px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid rgba(82,78,240,.18); }
.ara-tier-card h3 { font-size: 1.15rem; font-weight: 700; margin: 14px 0 6px; }
.ara-tier-range { font-size: 0.82rem; font-weight: 600; color: rgba(28,22,41,0.55); margin-bottom: 12px; }
.ara-tier-desc { font-size: 0.92rem; line-height: 1.55; color: rgba(28,22,41,0.7); margin-bottom: 18px; }
.ara-tier-card ul { list-style: none; display: grid; gap: 8px; }
.ara-tier-card li { position: relative; padding-left: 20px; font-size: 0.88rem; color: rgba(28,22,41,0.75); line-height: 1.45; }
.ara-tier-card li: :before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, #524EF0, #2B18A6); }
.ara-tier-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 6px; }
.ara-tier-badge--beginner { background: rgba(251,191,36,0.1); color: #FCD34D; border: 1px solid rgba(251,191,36,0.2); }
.ara-tier-badge--intermediate { background: rgba(82,78,240,0.1); color: #524EF0; border: 1px solid rgba(82,78,240,0.2); }
.ara-tier-badge--advanced { background: rgba(43,24,166,0.1); color: #2B18A6; border: 1px solid rgba(43,24,166,0.2); }

/* ========== WHO IT'S FOR ========== */
.ara-for { background: #FFFFFF; padding: 80px 0; }
.ara-for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ara-for-card { padding: 32px 28px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid rgba(82,78,240,.18); }
.ara-for-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.ara-for-card ul { list-style: none; display: grid; gap: 10px; }
.ara-for-card li { position: relative; padding-left: 20px; font-size: 0.92rem; color: rgba(28,22,41,0.75); line-height: 1.45; }
.ara-for-card li: :before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, #524EF0, #2B18A6); }

/* ========== FAQ ========== */
.ara-faq { background: #F4F5FB; padding: 80px 0; }
.ara-faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.ara-faq-item { background: rgba(255,255,255,.9); border: 1px solid rgba(82,78,240,.18); border-radius: 14px; padding: 0 24px; }
.ara-faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #1C1629; }
.ara-faq-item summary: :-webkit-details-marker { display: none; }
.ara-faq-item summary: :after { content: '+'; font-size: 1.4rem; font-weight: 400; color: #2B18A6; transition: transform 0.25s; flex: none; }
.ara-faq-item[open] summary: :after { transform: rotate(45deg); }
.ara-faq-item p { padding: 0 0 18px; font-size: 0.94rem; line-height: 1.6; color: rgba(28,22,41,0.7); }

/* ========== NEXT TOOL ========== */
.ara-next-tool { background: #FFFFFF; padding: 0 0 80px; }
.ara-next-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid rgba(82,78,240,.18); text-decoration: none; color: var(--text); transition: transform 0.25s, border-color 0.25s; }
.ara-next-card:hover { transform: translateY(-3px); border-color: rgba(82,78,240,0.35); }
.ara-next-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #2B18A6; margin-bottom: 8px; display: block; }
.ara-next-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.ara-next-card p { font-size: 0.9rem; color: rgba(28,22,41,0.65); line-height: 1.5; max-width: 540px; }
.ara-next-arrow { font-size: 1.8rem; color: #2B18A6; flex: none; }

/* ========== FINAL CTA ========== */
.ara-final-cta { background: #FFFFFF; padding: 0 0 80px; }
.ara-final-card { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(2.8rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); border-radius: 24px; background: linear-gradient(135deg, rgba(82,78,240,0.28), rgba(0,212,255,0.18)); border: 1px solid rgba(82,78,240,0.3); }
.ara-final-card h2 { font-family: var(--font-heading, 'DM Sans', sans-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 14px 0 16px; }
.ara-final-card p { color: rgba(28,22,41,0.77); font-size: 1rem; line-height: 1.6; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.ara-final-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .ara-dim-grid { grid-template-columns: repeat(2, 1fr); }
    .ara-tier-grid { grid-template-columns: 1fr; }
    .ara-for-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ara-quiz { padding: 32px 24px; }
    .ara-dim-grid { grid-template-columns: 1fr; }
    .ara-pillar-row { grid-template-columns: 100px 1fr 40px; gap: 8px; }
    .ara-next-card { flex-direction: column; text-align: center; }
    .ara-next-arrow { display: none; }
    .ara-final-btns { flex-direction: column; align-items: center; }
    .ara-final-btns .ara-btn { width: 100%; justify-content: center; }
}
