/*
 * Content components for newer pages and sections: case studies, team, privacy policy,
 * blog articles. Everything is prefixed "c-" so it never collides with the older
 * per-page styles. Linked after site.css by _build/build.py when a page uses it.
 */

.c-page { font-family: 'Inter', sans-serif; color: #1e293b; background: #fff; }
.c-page h1, .c-page h2, .c-page h3, .c-page h4 { color: #1e293b; }
.c-page a { text-decoration: none; }  /* Bootstrap underlines links by default; article text links re-enable it in .c-doc */

/* ---------- hero ---------- */
.c-hero { position: relative; overflow: hidden; padding: 130px 0 64px; background: radial-gradient(ellipse at 70% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 55%), radial-gradient(ellipse at 20% 60%, rgba(6, 182, 212, 0.07) 0%, transparent 50%), #fff; }
.c-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.c-hero > .container { position: relative; z-index: 1; }
.c-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -0.5px; line-height: 1.15; margin: 0 0 16px; max-width: 820px; }
.c-hero-sub { color: #475569; font-size: 1.05rem; line-height: 1.8; max-width: 640px; margin: 0; }
.c-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 0.87rem; color: #64748b; }
.c-meta i { color: #0e7490; margin-right: 6px; }

.c-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.85rem; color: #64748b; margin-bottom: 18px; }
.c-crumbs a { color: #0e7490; display: inline-flex; align-items: center; min-height: 32px; }
.c-crumbs a:hover { text-decoration: underline !important; }
.c-crumbs i { font-size: 0.6rem; }

/* ---------- shared bits ---------- */
.c-grad { background: linear-gradient(135deg, #0891b2, #2563eb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.c-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(6, 182, 212, 0.18); color: #0e7490; border-radius: 50px; padding: 5px 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 16px; }
.c-section { padding: 88px 0; }
.c-section.soft { background: #f5f7fb; }
.c-section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.c-section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 14px; }
.c-section-head p { color: #475569; line-height: 1.8; margin: 0; }
.c-divider { width: 56px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #06b6d4, #10b981); margin: 14px auto 20px; }
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; border-radius: 10px; font-weight: 700; font-size: 0.92rem; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; cursor: pointer; }
.c-btn-primary { background: linear-gradient(135deg, #0891b2, #2563eb); color: #fff !important; box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3); }
.c-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(6, 182, 212, 0.4); }
.c-btn-outline { background: #fff; color: #1e293b !important; border-color: rgba(15, 23, 42, 0.14); }
.c-btn-outline:hover { border-color: #0e7490; color: #0e7490 !important; }
.c-card { background: #fff; border: 1px solid rgba(15, 23, 42, 0.09); border-radius: 20px; padding: 32px; }
.c-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.c-tag { font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.2); color: #4338ca; }
.c-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.c-icon.cyan { background: rgba(6, 182, 212, 0.12); color: #0e7490; }
.c-icon.green { background: rgba(16, 185, 129, 0.12); color: #047857; }
.c-icon.indigo { background: rgba(99, 102, 241, 0.12); color: #4338ca; }
.c-icon.purple { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.c-icon.orange { background: rgba(251, 146, 60, 0.14); color: #c2410c; }
.c-icon.pink { background: rgba(236, 72, 153, 0.12); color: #be185d; }

/* ---------- case study cards (teaser grid + listing) ---------- */
.c-case { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid rgba(15, 23, 42, 0.09); border-radius: 20px; padding: 28px; position: relative; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.c-case::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #06b6d4, #10b981); opacity: 0; transition: opacity 0.25s ease; }
.c-case:hover { transform: translateY(-4px); border-color: rgba(6, 182, 212, 0.3); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); }
.c-case:hover::before { opacity: 1; }
.c-case-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.c-case-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #64748b; }
.c-case h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.4; margin: 2px 0 0; }
.c-case p { font-size: 0.9rem; color: #475569; line-height: 1.75; margin: 0 0 18px; }
.c-case .c-tags { margin-top: auto; }
.c-case-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 14px; font-size: 0.88rem; font-weight: 700; color: #0e7490; }
.c-case-link:hover { gap: 10px; }

/* ---------- case study detail ---------- */
.c-study { scroll-margin-top: 90px; }
.c-study + .c-study { margin-top: 32px; }
.c-study-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.c-study-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.3; margin: 4px 0 8px; }
.c-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 26px; }
.c-fact { background: #f8fafc; border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 12px; padding: 12px 14px; }
.c-fact dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #64748b; margin-bottom: 2px; }
.c-fact dd { margin: 0; font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.c-study h3 { font-size: 1rem; font-weight: 700; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.c-study h3 i { color: #0e7490; font-size: 0.9rem; }
.c-study p, .c-study li { color: #475569; line-height: 1.8; font-size: 0.95rem; }
.c-study ul { padding-left: 1.2rem; margin: 0 0 8px; list-style: disc; }
.c-study li { margin-bottom: 6px; }
.c-quote { margin: 24px 0 0; padding: 20px 24px; border-left: 3px solid #06b6d4; background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(16, 185, 129, 0.04)); border-radius: 0 12px 12px 0; }
.c-quote p { margin: 0 0 8px; font-style: italic; color: #1e293b; }
.c-quote cite { font-style: normal; font-size: 0.85rem; color: #64748b; }
.c-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.c-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 50px; border: 1px solid rgba(15, 23, 42, 0.12); background: #fff; font-size: 0.85rem; font-weight: 600; color: #475569; }
.c-jump a:hover { border-color: #0e7490; color: #0e7490; }

/* ---------- team ---------- */
.c-team-card { height: 100%; text-align: center; background: #fff; border: 1px solid rgba(15, 23, 42, 0.09); border-radius: 20px; padding: 30px 22px 24px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.c-team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); }
.c-avatar { width: 104px; height: 104px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #cffafe, #dbeafe); color: #0e7490; font-size: 2rem; font-weight: 800; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(6, 182, 212, 0.25); }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-team-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 2px; }
.c-team-role { font-size: 0.85rem; font-weight: 600; color: #0e7490; margin-bottom: 12px; }
.c-team-card p { font-size: 0.87rem; color: #475569; line-height: 1.7; margin: 0 0 14px; }
.c-team-links { display: flex; justify-content: center; gap: 8px; }
.c-team-links a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(15, 23, 42, 0.1); display: flex; align-items: center; justify-content: center; color: #475569; }
.c-team-links a:hover { border-color: #0e7490; color: #0e7490; background: rgba(6, 182, 212, 0.06); }

/* ---------- long-form documents (privacy policy) and articles ---------- */
.c-doc { font-size: 1rem; }
.c-doc h2 { font-size: 1.3rem; font-weight: 700; margin: 2.2rem 0 0.8rem; padding-bottom: 8px; border-bottom: 1px solid rgba(15, 23, 42, 0.09); scroll-margin-top: 90px; }
.c-doc h2:first-child { margin-top: 0; }
.c-doc h3 { font-size: 1.08rem; font-weight: 700; margin: 1.6rem 0 0.6rem; color: #1e293b; }
.c-doc p, .c-doc li { color: #475569; line-height: 1.85; }
.c-doc p { margin: 0 0 1rem; }
.c-doc ul, .c-doc ol { padding-left: 1.4rem; margin: 0 0 1rem; list-style: revert; }
.c-doc li { margin-bottom: 6px; }
.c-doc a { color: #0e7490; text-decoration: underline !important; text-underline-offset: 2px; }
.c-doc strong { color: #1e293b; }
.c-doc code { background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(6, 182, 212, 0.15); padding: 2px 7px; border-radius: 4px; font-size: 0.87em; color: #0e7490; }
.c-doc pre { background: #f5f7fb; border: 1px solid rgba(15, 23, 42, 0.09); border-radius: 12px; padding: 18px; overflow-x: auto; margin: 1rem 0; font-size: 0.87rem; }
.c-doc pre code { background: none; border: 0; padding: 0; color: #334155; }
.c-doc blockquote { margin: 1.5rem 0; padding: 16px 20px; border-left: 3px solid #06b6d4; background: #f8fafc; border-radius: 0 10px 10px 0; color: #334155; }
.c-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.c-doc th, .c-doc td { border: 1px solid rgba(15, 23, 42, 0.1); padding: 10px 12px; text-align: left; vertical-align: top; color: #475569; }
.c-doc th { background: #f5f7fb; color: #1e293b; font-weight: 700; }
.c-table-wrap { overflow-x: auto; }
.c-callout { background: linear-gradient(135deg, rgba(6, 182, 212, 0.07), rgba(16, 185, 129, 0.05)); border: 1px solid rgba(6, 182, 212, 0.18); border-radius: 14px; padding: 22px 24px; margin-top: 32px; }
.c-callout p:last-child { margin-bottom: 0; }
.c-cover { width: 100%; border-radius: 14px; border: 1px solid rgba(15, 23, 42, 0.09); margin-bottom: 32px; display: block; }

.c-toc { position: sticky; top: 96px; }
.c-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.c-toc li { counter-increment: toc; }
.c-toc a { display: flex; gap: 10px; align-items: baseline; min-height: 36px; padding: 6px 0; font-size: 0.88rem; color: #475569; border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.c-toc a::before { content: counter(toc) "."; color: #0e7490; font-weight: 700; min-width: 20px; }
.c-toc a:hover { color: #0e7490; }

.c-side { position: sticky; top: 96px; }
.c-side-card { background: #fff; border: 1px solid rgba(15, 23, 42, 0.09); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.c-side-card.highlight { background: linear-gradient(135deg, rgba(6, 182, 212, 0.07), rgba(99, 102, 241, 0.06)); border-color: rgba(6, 182, 212, 0.18); }
.c-side-card h2, .c-side-card h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #475569; margin: 0 0 14px; border: 0; padding: 0; }
.c-side-card p { font-size: 0.88rem; color: #475569; line-height: 1.7; }
.c-related { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(15, 23, 42, 0.07); }
.c-related:last-child { border-bottom: 0; padding-bottom: 0; }
.c-related i { color: #0e7490; margin-top: 4px; width: 16px; text-align: center; flex-shrink: 0; }
.c-related strong { display: block; font-size: 0.88rem; font-weight: 600; color: #1e293b; line-height: 1.4; }
.c-related span { font-size: 0.75rem; color: #64748b; }
.c-related:hover strong { color: #0e7490; }

@media (max-width: 991.98px) {
  .c-toc, .c-side { position: static; }
}
@media (max-width: 767.98px) {
  .c-hero { padding: 110px 0 48px; }
  .c-section { padding: 64px 0; }
  .c-card, .c-case { padding: 24px; }
  .c-study-head { flex-direction: column; gap: 12px; }
}

/* ---------- AI SDLC page: stages, principles, FAQ ---------- */
.c-stage { position: relative; height: 100%; background: #fff; border: 1px solid rgba(15, 23, 42, 0.09); border-radius: 18px; padding: 26px 24px 22px; }
.c-stage-num { position: absolute; top: 18px; right: 20px; font-size: 2.2rem; font-weight: 900; line-height: 1; color: rgba(14, 116, 144, 0.12); }
.c-stage h3 { font-size: 1.08rem; font-weight: 700; margin: 14px 0 12px; }
.c-stage dl { margin: 0; }
.c-stage dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #64748b; margin-top: 12px; }
.c-stage dd { margin: 4px 0 0; font-size: 0.9rem; color: #475569; line-height: 1.65; }
.c-stage dt.human { color: #047857; }
.c-principle { height: 100%; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid rgba(15, 23, 42, 0.09); }
.c-principle h3 { font-size: 1rem; font-weight: 700; margin: 14px 0 8px; }
.c-principle p { font-size: 0.9rem; color: #475569; line-height: 1.7; margin: 0; }
.c-tool { height: 100%; }
.c-tool h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 4px; }
.c-tool .c-case-kicker { margin-bottom: 14px; }
.c-tool ul { padding-left: 1.2rem; margin: 12px 0 0; list-style: disc; }
.c-tool li { color: #475569; line-height: 1.75; font-size: 0.93rem; margin-bottom: 6px; }
.c-faq details { background: #fff; border: 1px solid rgba(15, 23, 42, 0.09); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.c-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-weight: 700; color: #1e293b; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: #0e7490; flex-shrink: 0; }
.c-faq details[open] summary::after { content: "–"; }
.c-faq details p { color: #475569; line-height: 1.8; margin: 0 0 18px; }
.c-faq summary:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 4px; border-radius: 6px; }
