:root {
  --bg: #f5f7f2;
  --paper: #ffffff;
  --ink: #172019;
  --muted: #627066;
  --line: #dce2dc;
  --soft: #edf2ed;
  --accent: #126d57;
  --accent-strong: #0d5947;
  --accent-soft: #dff3ec;
  --blue: #315f9f;
  --rose: #a0445d;
  --amber: #a66a12;
  --shadow: 0 18px 50px rgba(21, 35, 27, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(18, 109, 87, 0.08), transparent 320px),
    var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.topbar,
.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-top {
  align-items: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.privacy-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #f3f8f5;
  color: #3f5148;
  line-height: 1.45;
}

.upload-grid,
.mapping-layout,
.tables-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}

.upload-panel,
.example-panel,
.mapping-panel,
.preview-panel,
.settings-panel,
.filters-panel,
.insights-panel,
.chart-panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.upload-panel,
.example-panel,
.mapping-panel,
.preview-panel,
.settings-panel,
.filters-panel,
.insights-panel,
.chart-panel,
.table-panel {
  padding: 22px;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 22px 0 16px;
  border: 1px dashed #8fb4a7;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbf8, #eef5ef);
  color: var(--accent-strong);
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.template-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(180px, 0.5fr) minmax(220px, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.template-help {
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.template-help strong {
  color: var(--ink);
}

.drop-zone:hover,
.drop-zone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-zone__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.drop-zone__title {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.drop-zone__hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.file-summary,
.status-box {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.45;
}

.status-box.is-error {
  border-color: #e1a8a8;
  background: #fff0f0;
  color: #7b2222;
}

.status-box.is-warning {
  border-color: #e0c48d;
  background: #fff7e3;
  color: #76500d;
}

.status-box.is-success {
  border-color: #9ccfb8;
  background: #ecf8f2;
  color: #11553f;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d9c790;
  border-radius: 8px;
  background: #fff8df;
  color: #6c4d08;
  font-size: 13px;
  font-weight: 900;
}

.access-badge.is-active {
  border-color: #9ccfb8;
  background: #ecf8f2;
  color: #11553f;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 23, 18, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(11, 24, 17, 0.22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.paywall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.paywall-grid article,
.activation-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.paywall-grid h3 {
  margin-bottom: 8px;
}

.paywall-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.paywall-grid p {
  min-height: 68px;
  color: var(--muted);
  line-height: 1.45;
}

.activation-panel {
  display: grid;
  gap: 12px;
}

.language-switcher,
.currency-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(18, 109, 87, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.language-switcher button,
.currency-switcher button {
  min-width: 34px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.language-switcher button:hover,
.currency-switcher button:hover,
.language-switcher button.is-active,
.currency-switcher button.is-active {
  background: var(--accent);
  color: #fff;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  border-color: #9bb8ad;
  background: #fff;
  color: var(--accent-strong);
}

.secondary-button:hover {
  background: var(--accent-soft);
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: var(--accent-strong);
}

.ghost-button:hover {
  background: rgba(18, 109, 87, 0.1);
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #35423a;
  background: #f1f5f1;
  font-weight: 800;
  white-space: nowrap;
}

td {
  color: #2b342e;
}

.compact-table {
  min-width: 720px;
}

.mapping-fields {
  display: grid;
  gap: 12px;
}

.mapping-template {
  margin-bottom: 12px;
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(180px, 0.55fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.mapping-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.required-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}

.mapping-row select,
.filters-grid input,
.filters-grid select,
.template-grid select,
.settings-grid input,
.settings-grid select,
.small-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c8d3cb;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.filters-panel,
.insights-panel,
.summary-grid,
.charts-grid,
.tables-grid,
#employee-table-panel {
  margin-top: 20px;
}

#dimension-panel {
  margin-top: 20px;
}

.settings-panel {
  max-width: 1180px;
  margin: 0 auto;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.settings-block {
  margin-top: 22px;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 8px;
}

.weekday-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-weight: 800;
}

.weekday-pill input {
  width: 16px;
  height: 16px;
}

.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.field-label {
  display: grid;
  gap: 6px;
  color: #35423a;
  font-size: 13px;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(21, 35, 27, 0.06);
}

.metric-card__label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card__value {
  overflow-wrap: anywhere;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.1;
}

.metric-card__hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.insights-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insights-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #f7fbf8;
  line-height: 1.45;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chart-panel--wide {
  grid-column: span 2;
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  background: #fff;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfb;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge--error {
  background: #fff0f0;
  color: #8c2525;
}

.badge--warning {
  background: #fff7e3;
  color: #77510b;
}

.landing-page {
  background: #f5f7f2;
}

.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  background: transparent;
}

.landing-nav .language-switcher {
  background: rgba(255, 255, 255, 0.72);
}

.brand-link {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-nav__links a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.landing-nav__links a:hover {
  color: var(--ink);
}

.landing-footer a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.landing-hero {
  display: grid;
  align-items: end;
  min-height: 650px;
  padding: 132px 0 58px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(245, 247, 242, 0.99), rgba(245, 247, 242, 0.94) 48%, rgba(245, 247, 242, 0.76)),
    url("assets/sales-dashboard-preview.png") center / cover no-repeat,
    var(--bg);
}

.landing-hero__content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-hero .eyebrow {
  color: var(--accent);
}

.landing-hero h1 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
}

.landing-lead {
  max-width: 720px;
  color: #33413a;
  font-size: 19px;
  line-height: 1.45;
}

.landing-note {
  margin: 14px 0 0;
  color: var(--muted);
}

.landing-band,
.landing-section,
.landing-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-band {
  padding: 30px 0 6px;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-metrics div,
.feature-grid article,
.steps-grid article,
.template-cards a,
.pricing-grid article,
.download-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.landing-metrics div {
  min-height: 104px;
  padding: 18px;
}

.landing-metrics strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.landing-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.landing-section {
  padding: 72px 0 0;
}

.landing-section--soft {
  width: 100%;
  max-width: none;
  margin-top: 72px;
  padding: 58px max(16px, calc((100% - 1180px) / 2));
  background: #edf2ed;
}

.landing-heading {
  margin-bottom: 22px;
}

.feature-grid,
.steps-grid,
.template-cards,
.pricing-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.steps-grid article,
.pricing-grid article {
  padding: 22px;
}

.feature-grid h3,
.steps-grid h3,
.pricing-grid h3,
.template-cards strong {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.feature-grid p,
.steps-grid p,
.pricing-grid p,
.template-cards span {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.template-cards a {
  display: grid;
  gap: 6px;
  min-height: 138px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.template-cards a:hover {
  border-color: #9bb8ad;
  transform: translateY(-1px);
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-links a {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #9bb8ad;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.trust-section .muted {
  max-width: 740px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid article {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.trust-grid strong {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.trust-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.sample-report-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 124px 0 56px;
}

.sample-report-hero {
  display: grid;
  align-items: end;
  min-height: 360px;
  padding-bottom: 34px;
}

.sample-report-hero h1 {
  max-width: 760px;
}

.sample-paper {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sample-paper__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--accent);
}

.sample-paper__head h2 {
  margin-bottom: 6px;
  font-size: 30px;
}

.sample-paper__head span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.sample-kpis,
.sample-report-grid,
.sample-tables {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.sample-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sample-kpis article,
.sample-insights,
.sample-chart,
.sample-tables article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.sample-kpis article {
  min-height: 90px;
  padding: 16px;
}

.sample-kpis span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.sample-kpis strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
}

.sample-insights {
  margin-top: 18px;
  padding: 18px;
}

.sample-insights h3,
.sample-chart h3,
.sample-tables h3 {
  margin-bottom: 12px;
}

.sample-insights ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-insights li {
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: #f3f8f5;
  line-height: 1.45;
}

.sample-report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-chart--wide {
  grid-column: 1 / -1;
}

.sample-chart {
  padding: 18px;
}

.sample-line-chart {
  height: 250px;
}

.sample-line-chart svg {
  width: 100%;
  height: 100%;
}

.sample-line-chart path {
  fill: none;
  stroke: #d9e5df;
  stroke-width: 1;
}

.sample-line-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.sample-line-chart polygon {
  fill: rgba(18, 109, 87, 0.12);
  stroke: none;
}

.sample-bars {
  display: grid;
  gap: 14px;
}

.sample-bars div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.sample-bars span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.sample-bars b {
  display: block;
  min-width: 46px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.sample-bars div:nth-child(2) b {
  background: var(--blue);
}

.sample-bars div:nth-child(3) b {
  background: var(--rose);
}

.sample-tables {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-tables article {
  padding: 18px;
  overflow: auto;
}

.sample-tables table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sample-tables th,
.sample-tables td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}

.sample-tables th {
  background: #edf2ed;
  color: #34433a;
  font-size: 13px;
}

.pricing-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
}

.pricing-grid strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.pricing-grid .is-featured {
  border-color: #88b9a7;
  background: #f5fffa;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding-bottom: 72px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.policy-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 56px;
}

.policy-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.policy-card h1 {
  margin-bottom: 16px;
}

.policy-card h2 {
  margin-top: 28px;
}

.policy-card p {
  color: #34433a;
  line-height: 1.65;
}

.niche-hero {
  display: grid;
  align-items: end;
  min-height: 62vh;
  padding: 82px max(16px, calc((100% - 1180px) / 2)) 52px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 33, 26, 0.92), rgba(11, 33, 26, 0.68) 54%, rgba(11, 33, 26, 0.18)),
    url("assets/sales-dashboard-preview.png") center / cover no-repeat,
    #153027;
}

.niche-hero .eyebrow {
  color: #a7e3cf;
}

.niche-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 6vw, 64px);
}

.niche-hero .landing-lead {
  max-width: 680px;
}

@media (max-width: 1120px) {
  .upload-grid,
  .mapping-layout,
  .tables-grid,
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel--wide {
    grid-column: auto;
  }

  .summary-grid,
  .filters-grid,
  .template-grid,
  .settings-grid,
  .weekday-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .template-cards,
  .landing-metrics,
  .sample-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid,
  .pricing-grid,
  .faq-section,
  .trust-grid,
  .sample-report-grid,
  .sample-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 16px;
  }

  .topbar,
  .dashboard-top,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid,
  .filters-grid,
  .template-grid,
  .settings-grid,
  .weekday-grid,
  .mapping-row,
  .paywall-grid {
    grid-template-columns: 1fr;
  }

  .metric-card__value {
    font-size: 22px;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
  }

  .landing-nav__links {
    width: 100%;
    justify-content: space-between;
  }

  .landing-hero {
    min-height: 620px;
    padding: 122px 0 44px;
    background:
      linear-gradient(180deg, rgba(245, 247, 242, 0.98), rgba(245, 247, 242, 0.88)),
      url("assets/sales-dashboard-preview.png") center / cover no-repeat,
      var(--bg);
  }

  .niche-hero {
    min-height: 72vh;
    padding-top: 58px;
    background:
      linear-gradient(180deg, rgba(11, 33, 26, 0.9), rgba(11, 33, 26, 0.76)),
      url("assets/sales-dashboard-preview.png") center / cover no-repeat,
      #153027;
  }

  .landing-lead {
    font-size: 17px;
  }

  .feature-grid,
  .template-cards,
  .landing-metrics,
  .trust-grid,
  .sample-kpis {
    grid-template-columns: 1fr;
  }

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-report-shell {
    padding-top: 148px;
  }

  .policy-shell {
    padding-top: 148px;
  }

  .policy-card {
    padding: 22px;
  }

  .sample-paper {
    padding: 18px;
  }

  .sample-paper__head {
    flex-direction: column;
  }

  .sample-paper__head span {
    white-space: normal;
  }

  .sample-bars div {
    grid-template-columns: 1fr;
  }

  .sample-bars span {
    text-align: left;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    padding: 22px;
  }

  .paywall-grid p {
    min-height: auto;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .sample-report-shell {
    width: auto;
    padding: 0;
  }

  .landing-nav,
  .sample-report-hero,
  .language-switcher {
    display: none !important;
  }

  .sample-paper {
    border: 0;
    box-shadow: none;
  }

  .screen {
    display: none !important;
  }

  #dashboard-screen {
    display: block !important;
  }

  .button-row,
  .filters-panel,
  #new-file,
  #export-pdf,
  #export-excel {
    display: none !important;
  }

  .dashboard-top,
  .summary-grid,
  .charts-grid,
  .tables-grid,
  .insights-panel,
  .table-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .chart-panel,
  .table-panel,
  .insights-panel {
    border-color: #d4d4d4;
  }
}
