/* /features/reports page */
.rpt-body {
  --rpt-bg: #FFFBF7;
  --rpt-alt: #FFF4EA;
  --rpt-surface: #FFFFFF;
  --rpt-ink: #1F160F;
  --rpt-soft: #6B5B4E;
  --rpt-line: #F1E4D8;
  --rpt-accent: var(--primary, #F97316);
  --rpt-up: #16A34A;
  background: var(--rpt-bg);
  color: var(--rpt-ink);
}
.theme-dark .rpt-body {
  --rpt-bg: #0B0806;
  --rpt-alt: #120D0A;
  --rpt-surface: #1A130F;
  --rpt-ink: #FFF4EA;
  --rpt-soft: #B3A396;
  --rpt-line: #2B211A;
  --rpt-up: #4ADE80;
}

/* Hero */
.rpt-hero { padding: 140px 0 80px; background: radial-gradient(60% 60% at 85% 20%, rgba(249,115,22,.14), transparent 70%); }
.rpt-hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.rpt-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--rpt-accent); background: rgba(249,115,22,.1); padding: 6px 12px; border-radius: 999px; }
.rpt-eyebrow svg { width: 16px; height: 16px; }
.rpt-hero-title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; font-weight: 800; margin: 20px 0 18px; color: var(--rpt-ink); }
.rpt-hero-title em { font-style: normal; color: var(--rpt-accent); }
.rpt-hero-desc { font-size: 18px; line-height: 1.65; color: var(--rpt-soft); max-width: 540px; }
.rpt-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 30px; }
.rpt-link-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--rpt-ink); text-decoration: none; }
.rpt-link-btn svg { width: 18px; height: 18px; }
.rpt-link-btn:hover { color: var(--rpt-accent); }

/* Dashboard */
.rpt-dash { background: var(--rpt-surface); border: 1px solid var(--rpt-line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(120,60,20,.35); scroll-margin-top: 100px; }
.rpt-dash-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.rpt-dash-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.rpt-dash-title svg { width: 18px; height: 18px; color: var(--rpt-accent); }
.rpt-tabs { display: flex; gap: 4px; background: var(--rpt-alt); padding: 4px; border-radius: 12px; }
.rpt-tabs button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--rpt-soft); cursor: pointer; }
.rpt-tabs button[aria-selected="true"] { background: var(--rpt-surface); color: var(--rpt-accent); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.rpt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.rpt-kpi { background: var(--rpt-alt); border-radius: 14px; padding: 14px; min-width: 0; }
.rpt-kpi span { display: block; font-size: 12px; font-weight: 600; color: var(--rpt-soft); }
.rpt-kpi strong { display: block; font-size: clamp(17px, 2vw, 22px); font-weight: 800; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpt-kpi small { font-size: 11px; font-weight: 600; }
.rpt-up { color: var(--rpt-up); }
.rpt-muted { color: var(--rpt-soft); }
.rpt-chart { height: 180px; display: flex; align-items: flex-end; gap: 6px; padding: 0 2px; border-bottom: 1px dashed var(--rpt-line); }
.rpt-bar { flex: 1; height: var(--h); min-height: 4px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--primary-light, #FDBA74), var(--rpt-accent)); opacity: .55; transform-origin: bottom; animation: rpt-grow .5s ease-out both; animation-delay: calc(var(--i) * 30ms); }
.rpt-bar.is-peak { opacity: 1; }
.rpt-chart-axis { display: flex; gap: 6px; padding: 6px 2px 0; }
.rpt-chart-axis span { flex: 1; text-align: center; font-size: 11px; color: var(--rpt-soft); }
.rpt-dash-note { margin: 12px 0 0; font-size: 11px; color: var(--rpt-soft); text-align: right; }
@keyframes rpt-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Sections */
.rpt-section { padding: 90px 0; }
.rpt-section-alt { background: var(--rpt-alt); }
.rpt-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.rpt-kicker { display: inline-block; font-weight: 800; font-size: 14px; color: var(--rpt-accent); letter-spacing: .1em; margin-bottom: 10px; }
.rpt-head h2, .rpt-ai-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--rpt-ink); margin: 0 0 12px; }
.rpt-head p, .rpt-ai-copy > p { color: var(--rpt-soft); font-size: 17px; line-height: 1.6; }

/* Pain */
.rpt-pain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rpt-pain-card { background: var(--rpt-surface); border: 1px solid var(--rpt-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rpt-pain-card p { margin: 0; color: var(--rpt-ink); line-height: 1.5; flex: 1; }
.rpt-pain-before, .rpt-pain-after { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; }
.rpt-pain-before { color: var(--rpt-soft); text-transform: uppercase; letter-spacing: .06em; }
.rpt-pain-after { color: var(--rpt-up); border-top: 1px solid var(--rpt-line); padding-top: 12px; line-height: 1.45; }
.rpt-pain-card svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* Feature grid */
.rpt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rpt-card { background: var(--rpt-surface); border: 1px solid var(--rpt-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.rpt-card h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin: 0; color: var(--rpt-ink); }
.rpt-card h3 svg { width: 20px; height: 20px; color: var(--rpt-accent); }
.rpt-card > p { margin: auto 0 0; color: var(--rpt-soft); font-size: 14px; line-height: 1.55; }
.rpt-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rpt-top li { display: grid; grid-template-columns: 22px 1fr 40px; grid-template-rows: auto 6px; column-gap: 10px; row-gap: 4px; align-items: center; font-size: 13px; }
.rpt-top span { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--rpt-alt); color: var(--rpt-accent); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.rpt-top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpt-top em { grid-row: span 2; font-style: normal; font-weight: 700; text-align: right; }
.rpt-top span { grid-column: 1; grid-row: 1 / 3; }
.rpt-top b { grid-column: 2; grid-row: 1; }
.rpt-top em { grid-column: 3; grid-row: 1 / 3; }
.rpt-top i { grid-column: 2; grid-row: 2; display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--rpt-accent) var(--w), var(--rpt-alt) var(--w)); }
.rpt-heat { display: flex; align-items: flex-end; gap: 4px; height: 96px; }
.rpt-heat span { flex: 1; height: var(--h); border-radius: 4px; background: var(--rpt-accent); opacity: calc(.2 + var(--h) / 130%); }
.rpt-heat span { opacity: .45; }
.rpt-heat span.is-peak { opacity: 1; }
.rpt-heat-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--rpt-soft); margin-top: -8px; }
.rpt-donut-row { display: flex; gap: 18px; align-items: center; }
.rpt-donut { position: relative; flex: none; width: 124px; height: 124px; }
.rpt-donut svg { width: 100%; height: 100%; overflow: visible; }
.rpt-slice { cursor: pointer; transition: opacity .2s, stroke-width .2s; }
.rpt-donut.has-active .rpt-slice { opacity: .3; }
.rpt-donut.has-active .rpt-slice.is-active { opacity: 1; stroke-width: 7.5; }
.rpt-donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.rpt-donut-center strong { font-size: 13px; font-weight: 800; color: var(--rpt-ink); }
.rpt-donut-center small { display: block; font-size: 10px; color: var(--rpt-soft); font-weight: 600; }
.rpt-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; flex: 1; min-width: 0; }
.rpt-legend button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; font: inherit; color: var(--rpt-ink); padding: 5px 8px; border-radius: 8px; cursor: pointer; text-align: left; }
.rpt-legend button:hover { background: var(--rpt-alt); }
.rpt-legend button[aria-pressed="true"] { background: var(--rpt-alt); box-shadow: inset 0 0 0 1px var(--rpt-accent); }
.rpt-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rpt-legend b { margin-left: auto; }
.rpt-compare { display: grid; gap: 12px; }
.rpt-compare > div { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.rpt-compare span { color: var(--rpt-soft); }
.rpt-cbar { height: 12px; border-radius: 6px; background: var(--rpt-alt); overflow: hidden; }
.rpt-cbar i { display: block; height: 100%; width: var(--w); background: var(--rpt-soft); opacity: .5; border-radius: 6px; }
.rpt-compare .is-now .rpt-cbar i { background: var(--rpt-accent); opacity: 1; }
.rpt-up-text { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--rpt-up); font-weight: 800; }
.rpt-up-text svg { width: 18px; height: 18px; }
.rpt-exp { list-style: none; margin: 0; padding: 0; }
.rpt-exp li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--rpt-line); font-size: 14px; }
.rpt-exp span { color: var(--rpt-soft); }
.rpt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rpt-chips span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--rpt-alt); border: 1px solid var(--rpt-line); }

/* AI */
.rpt-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rpt-ai-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.rpt-ai-list li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.rpt-ai-list svg { width: 20px; height: 20px; color: var(--rpt-accent); flex: none; }
.rpt-ai-card { background: var(--rpt-surface); border: 1px solid var(--rpt-line); border-radius: 20px; padding: 22px; box-shadow: 0 24px 50px -30px rgba(120,60,20,.35); display: grid; gap: 12px; }
.rpt-ai-top { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rpt-ai-top svg { width: 18px; height: 18px; color: #8b5cf6; }
.rpt-ai-top small { margin-left: auto; font-size: 12px; color: var(--rpt-soft); font-weight: 600; }
.rpt-ai-item { display: flex; gap: 12px; align-items: flex-start; background: var(--rpt-alt); border-radius: 14px; padding: 14px; }
.rpt-ai-item p { margin: 0; font-size: 14px; line-height: 1.5; }
.rpt-pri { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.rpt-pri-high { background: rgba(239,68,68,.14); color: #DC2626; }
.rpt-pri-mid { background: rgba(245,158,11,.16); color: #B45309; }
.rpt-pri-low { background: rgba(16,185,129,.14); color: #059669; }

/* Access */
.rpt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rpt-step { background: var(--rpt-surface); border: 1px solid var(--rpt-line); border-radius: 18px; padding: 26px; }
.rpt-step svg { width: 28px; height: 28px; color: var(--rpt-accent); }
.rpt-step h3 { font-size: 18px; margin: 14px 0 8px; color: var(--rpt-ink); }
.rpt-step p { margin: 0; color: var(--rpt-soft); line-height: 1.55; }

/* CTA */
.rpt-cta-card { text-align: center; background: linear-gradient(135deg, #1F160F, #3A2414); color: #FFF4EA; border-radius: 28px; padding: 64px 32px; }
.rpt-cta-card h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 0 0 12px; color: #FFF4EA; }
.rpt-cta-card p { color: #E5D3C3; font-size: 17px; margin: 0 auto; max-width: 560px; }
.rpt-cta-buttons { justify-content: center; }
.rpt-cta-card .btn-outline { color: #FFF4EA; border-color: rgba(255,244,234,.5); }

@media (max-width: 1024px) {
  .rpt-hero-inner, .rpt-ai { grid-template-columns: 1fr; gap: 40px; }
  .rpt-pain { grid-template-columns: repeat(2, 1fr); }
  .rpt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rpt-hero { padding: 110px 0 56px; }
  .rpt-section { padding: 64px 0; }
  .rpt-pain, .rpt-grid, .rpt-steps { grid-template-columns: 1fr; }
  .rpt-kpis { grid-template-columns: 1fr 1fr; }
  .rpt-kpis .rpt-kpi:last-child { grid-column: span 2; }
  .rpt-tabs { width: 100%; }
  .rpt-tabs button { flex: 1; padding: 7px 4px; }
  .rpt-chart { height: 140px; gap: 4px; }
  .rpt-cta-card { padding: 44px 20px; }
}
@media (prefers-reduced-motion: reduce) { .rpt-bar { animation: none; } }

/* Expense report sample */
.rpt-sample { display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: center; }
.rpt-sample-copy .rpt-kicker { display: inline-flex; align-items: center; gap: 6px; }
.rpt-sample-copy .rpt-kicker svg { width: 16px; height: 16px; }
.rpt-sample-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--rpt-ink); margin: 0 0 12px; }
.rpt-sample-copy > p { color: var(--rpt-soft); font-size: 17px; line-height: 1.6; }
.rpt-sample-langs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--rpt-alt); padding: 4px; border-radius: 12px; margin-top: 8px; }
.rpt-sample-langs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--rpt-soft); cursor: pointer; }
.rpt-sample-langs button[aria-selected="true"] { background: var(--rpt-surface); color: var(--rpt-accent); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.rpt-sample-copy .btn svg, .rpt-sample-copy .rpt-link-btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.rpt-sample-note { font-size: 13px !important; margin-top: 18px; }
.rpt-sample-paper { position: relative; display: block; max-width: 440px; justify-self: center; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--rpt-line); box-shadow: 0 30px 60px -28px rgba(30,40,70,.45), 14px 14px 0 -2px var(--rpt-alt), 14px 14px 0 -1px var(--rpt-line); transform: rotate(1.2deg); transition: transform .25s ease; }
.rpt-sample-paper:hover { transform: rotate(0) translateY(-4px); }
.rpt-sample-paper img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.rpt-sample-badge { position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(26,54,93,.9); color: #fff; }
@media (max-width: 1024px) { .rpt-sample { grid-template-columns: 1fr; gap: 40px; } }
