:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #66747f;
  --line: #dce4e8;
  --paper: #ffffff;
  --wash: #f4f7f6;
  --teal: #0f766e;
  --teal-soft: #d9f2ee;
  --amber: #b7791f;
  --amber-soft: #fff0cf;
  --rose: #be3a52;
  --rose-soft: #ffe1e7;
  --indigo: #4257a4;
  --indigo-soft: #e5e9ff;
  --forest: #102820;
  --shadow: 0 18px 48px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wash);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  margin-bottom: 8px;
}

.primary-btn,
.ghost-btn,
.icon-btn {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  padding: 0 18px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.ghost-btn {
  padding: 0 16px;
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.icon-btn {
  width: 40px;
  padding: 0;
  background: var(--wash);
  color: var(--ink);
  font-size: 24px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: #34444c;
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #c8f1db;
  color: #102820;
  font-weight: 800;
  font-size: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(244, 247, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 20px;
  color: #38484f;
  font-weight: 700;
}

.hero-section {
  min-height: calc(100vh - 81px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 6vw, 78px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(16, 40, 32, 0.94), rgba(15, 118, 110, 0.82)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-copy p {
  max-width: 780px;
  color: #d8ebe5;
  font-size: 18px;
  line-height: 1.9;
}

.hero-copy .eyebrow {
  color: #c8f1db;
}

.hero-actions,
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: #eef8f4;
}

.product-preview {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.preview-top,
.preview-table div,
.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.preview-metrics article,
.preview-table div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 14px;
}

.preview-metrics small,
.preview-table em {
  color: #cfe7df;
  font-style: normal;
}

.preview-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.preview-table {
  display: grid;
  gap: 10px;
}

.section-band,
.split-section,
.pricing-section,
.contact-section {
  padding: clamp(42px, 6vw, 84px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading p,
.split-section p,
.contact-section p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid,
.audience-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.audience-grid article,
.price-card,
.contact-section,
.wide-pane,
.side-pane,
.summary-panel,
.document-drop,
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card,
.audience-grid article,
.price-card {
  padding: 22px;
}

.feature-card p,
.audience-grid p,
.price-card p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 28px;
  background: #fff;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfc;
}

.service-list span {
  color: var(--muted);
}

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

.pricing-section {
  background: #eef4f2;
}

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

.price-card.highlighted {
  border-color: var(--teal);
  box-shadow: 0 20px 52px rgba(15, 118, 110, 0.16);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 28px;
  margin: clamp(32px, 5vw, 72px) clamp(18px, 5vw, 72px);
}

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

.contact-form .primary-btn {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: var(--forest);
  color: #fff;
}

.site-footer span {
  color: #c8d8d2;
}

.app-page {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(120deg, rgba(16, 40, 32, 0.96), rgba(15, 118, 110, 0.9)),
    url("https://images.unsplash.com/photo-1554224154-26032ffc0d07?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
  font-size: 30px;
}

.login-card p,
.form-message {
  color: var(--muted);
  line-height: 1.7;
}

.form-message {
  min-height: 22px;
  color: var(--rose);
  font-size: 13px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  background: var(--forest);
  color: #f6fbf8;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand span,
.sidebar-footer span,
.pane-header p,
.metric small,
.client-card small,
.document-drop span {
  color: var(--muted);
}

.brand span,
.sidebar-footer span {
  display: block;
  color: #b6cbc1;
  font-size: 12px;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #d9e8e0;
  cursor: pointer;
  text-align: right;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.icon {
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.app-shell {
  min-width: 0;
  padding: 28px;
}

.topbar,
.topbar-actions,
.pane-header,
menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar {
  align-items: flex-start;
  margin-bottom: 24px;
}

.app-shell h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.app-shell h2 {
  font-size: 20px;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

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

.metric {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.metric strong {
  font-size: 34px;
}

.accent-teal {
  border-top: 5px solid var(--teal);
}

.accent-amber {
  border-top: 5px solid var(--amber);
}

.accent-rose {
  border-top: 5px solid var(--rose);
}

.accent-indigo {
  border-top: 5px solid var(--indigo);
}

.workspace-grid,
.return-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.wide-pane,
.side-pane,
.summary-panel {
  padding: 18px;
}

.pane-header {
  margin-bottom: 16px;
}

.pane-header.compact {
  justify-content: flex-start;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.badge.draft {
  background: var(--amber-soft);
  color: #6d4300;
}

.badge.review {
  background: var(--indigo-soft);
  color: #273878;
}

.badge.ready {
  background: var(--teal-soft);
  color: #07564f;
}

.badge.filed {
  background: #e6f3df;
  color: #2f6330;
}

.risk-list,
.client-grid,
.timeline,
.document-list {
  display: grid;
  gap: 12px;
}

.risk-item,
.client-card,
.timeline-item,
.document-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.risk-item strong,
.client-card strong,
.timeline-item strong,
.document-item strong {
  display: block;
  margin-bottom: 5px;
}

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

.client-card {
  min-height: 150px;
}

.client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  border-radius: 999px;
  background: #eef4f2;
  padding: 6px 9px;
  color: #44545c;
  font-size: 12px;
}

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

.vat-screen {
  display: grid;
  gap: 16px;
}

.vat-header,
.vat-actions,
.vat-workflow,
.vat-form-panel,
.vat-summary-card,
.vat-attachments {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vat-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.vat-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-initial {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
}

.vat-client small,
.vat-period span,
.vat-actions p,
.vat-panel-header p,
.vat-summary-card p,
.vat-form.modern small {
  color: var(--muted);
}

.vat-client small {
  display: block;
  margin-top: 4px;
}

.vat-period {
  min-width: 240px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdfc;
}

.vat-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--teal-soft);
  color: #07564f;
  font-weight: 700;
}

.vat-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.vat-action-buttons {
  display: flex;
  gap: 10px;
}

.vat-workflow {
  display: grid;
  grid-template-columns: max-content minmax(30px, 1fr) max-content minmax(30px, 1fr) max-content minmax(30px, 1fr) max-content;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.workflow-step {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: #fbfdfc;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-step b {
  color: inherit;
}

.workflow-step.done {
  background: var(--teal-soft);
  color: #07564f;
  border-color: transparent;
}

.workflow-step.active {
  background: var(--forest);
  color: #fff;
  border-color: transparent;
}

.workflow-line {
  height: 1px;
  background: var(--line);
}

.workflow-line.done {
  background: var(--teal);
}

.vat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.vat-form-panel,
.vat-summary-card,
.vat-attachments {
  padding: 16px;
}

.vat-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 12px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.vat-panel-header h3,
.vat-summary-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.compact-field {
  font-size: 12px;
}

.vat-form.modern {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vat-form.modern fieldset {
  display: grid;
  gap: 12px;
  border: 0;
  margin: 0;
  padding: 0;
}

.vat-form.modern legend {
  margin-bottom: 6px;
  color: var(--forest);
  font-weight: 800;
}

.vat-form.modern label {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.vat-form.modern small {
  font-weight: 400;
  line-height: 1.6;
}

.vat-summary-card {
  position: sticky;
  top: 18px;
}

.vat-summary-card .summary-total {
  align-items: center;
}

.summary-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.summary-mini-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  background: #eef4f2;
  padding: 10px;
  color: #44545c;
  font-size: 13px;
}

.attachment-table {
  display: grid;
  gap: 8px;
}

.attachment-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 150px 100px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.attachment-row.header {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-panel {
  align-self: start;
}

.summary-row,
.summary-total {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-total {
  margin-top: 8px;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
}

.summary-total strong {
  font-size: 24px;
}

.review-flow {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

.flow-step.done {
  border-color: var(--teal);
  color: var(--teal);
}

.flow-step.active {
  background: var(--teal-soft);
  color: #07564f;
  border-color: transparent;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 14px;
  align-items: center;
}

.document-drop {
  margin-bottom: 16px;
}

.audit-panel {
  margin-top: 16px;
}

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

.audit-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.audit-item strong,
.audit-item span {
  display: block;
}

.audit-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.document-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.document-drop label {
  min-height: 180px;
  place-items: center;
  text-align: center;
  border: 2px dashed #adc2bc;
  margin: 14px;
  border-radius: 8px;
  cursor: pointer;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

dialog::backdrop {
  background: rgba(10, 20, 18, 0.42);
}

.modal-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

menu {
  padding: 0;
  margin: 8px 0 0;
}

@media (max-width: 980px) {
  .site-header,
  .site-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-section,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .audience-grid,
  .pricing-grid,
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .nav-item {
    justify-content: center;
  }

  .nav-item .icon {
    display: none;
  }

  .workspace-grid,
  .return-layout,
  .vat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .side-pane,
  .summary-panel,
  .vat-summary-card {
    grid-column: 1 / -1;
  }

  .vat-header,
  .vat-panel-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-nav,
  .topbar,
  .pane-header,
  .topbar-actions,
  .contact-form,
  menu {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell {
    padding: 18px;
  }

  .feature-grid,
  .audience-grid,
  .pricing-grid,
  .preview-metrics,
  .nav,
  .workspace-grid,
  .return-layout,
  .vat-grid,
  .vat-workflow,
  .metric-grid,
  .client-grid,
  .vat-form,
  .vat-form.modern,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .vat-header,
  .vat-actions,
  .vat-action-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-line {
    display: none;
  }

  .attachment-row {
    grid-template-columns: 1fr;
  }
}
