/* feature-page.css — shared styles for feature drilldown pages */

/* Hero */
.feature-hero {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 72px 24px 80px;
    text-align: center;
}

.feature-hero .inner { max-width: 700px; }

.breadcrumb {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 28px;
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb:hover { color: white; }

.feature-hero-icon {
    font-size: 52px;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-hero h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
}

.feature-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Detail cards grid */
.feature-detail-section {
    padding: 88px 24px;
    background: var(--bg-soft);
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-detail-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 24px;
    border-top: 3px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.accent-blue  { border-top-color: #4F46E5; }
.accent-green { border-top-color: #10B981; }
.accent-purple{ border-top-color: #7C3AED; }
.accent-orange{ border-top-color: #F59E0B; }

.fdc-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.feature-detail-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-detail-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* How it works steps (time-entries page) */
.feature-how {
    padding: 88px 24px;
}

.feature-how .inner { max-width: 700px; }

.feature-how h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 40px;
    color: var(--text);
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.how-step {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.how-step:last-child { border-bottom: none; }

.how-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-top: 2px;
}

.how-step h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.how-step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hierarchy visual (project-hierarchy page) */
.hierarchy-visual-section {
    padding: 88px 24px;
}

.hierarchy-visual-section h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    color: var(--text);
    text-align: center;
}

.hierarchy-tree {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
}

.h-level {
    width: 100%;
    border-radius: var(--radius);
    padding: 20px 24px;
    border-left: 4px solid transparent;
    background: white;
    box-shadow: var(--shadow-sm);
}

.h-client  { border-left-color: #4F46E5; }
.h-project { border-left-color: #10B981; margin-left: 32px; width: calc(100% - 32px); }
.h-class   { border-left-color: #7C3AED; margin-left: 64px; width: calc(100% - 64px); }
.h-task    { border-left-color: #F59E0B; margin-left: 96px; width: calc(100% - 96px); }

.h-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-soft);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.h-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.h-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.h-connector {
    width: 2px;
    height: 20px;
    background: var(--border);
    align-self: flex-start;
}

.h-conn-1 { margin-left: 34px; }
.h-conn-2 { margin-left: 66px; }
.h-conn-3 { margin-left: 98px; }

/* Compare two columns (project-hierarchy page) */
.feature-compare-section {
    padding: 88px 24px;
    background: var(--bg-soft);
}

.feature-compare-section h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 40px;
    color: var(--text);
    text-align: center;
}

.compare-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.compare-two-col {
    border-radius: var(--radius);
    padding: 28px 24px;
}

.compare-two-col.bad {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.compare-two-col.good {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.compare-two-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.compare-two-col.bad h4 { color: #991B1B; }
.compare-two-col.good h4 { color: #065F46; }

.compare-two-col ul { list-style: none; }

.compare-two-col li {
    font-size: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-mid);
    line-height: 1.4;
}

.compare-two-col li:last-child { border-bottom: none; }

.compare-two-col.bad li::before  { content: '✗'; color: #EF4444; font-weight: 700; flex-shrink: 0; }
.compare-two-col.good li::before { content: '✓'; color: #10B981; font-weight: 700; flex-shrink: 0; }

/* Roles grid (team-roles page) */
.roles-visual-section {
    padding: 88px 24px;
}

.roles-visual-section h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    color: var(--text);
    text-align: center;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.role-card {
    border-radius: var(--radius);
    padding: 28px 24px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.role-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.role-owner      .role-badge { background: #FEF3C7; color: #92400E; }
.role-admin      .role-badge { background: #D1FAE5; color: #065F46; }
.role-manager    .role-badge { background: #EDE9FE; color: #5B21B6; }
.role-accounting .role-badge { background: #FCE7F3; color: #9D174D; }
.role-member     .role-badge { background: #DBEAFE; color: #1E40AF; }
.role-observer   .role-badge { background: #F3F4F6; color: #374151; }

.role-perms { list-style: none; }

.role-perms li {
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-mid);
    line-height: 1.4;
}

.role-perms li:last-child { border-bottom: none; }
.role-perms li.yes::before { content: '✓'; color: #10B981; font-weight: 700; flex-shrink: 0; }
.role-perms li.no::before  { content: '✗'; color: #D1D5DB; font-weight: 700; flex-shrink: 0; }

/* Use cases grid (multi-workspace page) */
.feature-use-cases {
    padding: 88px 24px;
}

.feature-use-cases h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 40px;
    color: var(--text);
    text-align: center;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.use-case-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.uc-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.use-case-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.use-case-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA band (shared across all feature pages) */
.feature-cta {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 72px 24px;
    text-align: center;
}

.feature-cta h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: white;
    margin-bottom: 16px;
}

.feature-cta p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.feature-cta .btn-hero-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.feature-cta .btn-hero-primary:hover {
    background: #F0F0FF;
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .feature-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .roles-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .use-case-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .compare-two { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .feature-hero h1 { font-size: 32px; }
    .feature-detail-grid { grid-template-columns: 1fr; }
    .h-project { margin-left: 16px; width: calc(100% - 16px); }
    .h-class   { margin-left: 32px; width: calc(100% - 32px); }
    .h-task    { margin-left: 48px; width: calc(100% - 48px); }
}
