:root {
  --ink: #111514;
  --muted: #5c6561;
  --paper: #f4f0e8;
  --warm: #d3b06f;
  --teal: #5f8f88;
  --teal-dark: #183d3a;
  --line: rgba(17, 21, 20, 0.14);
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(13, 20, 18, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.portal-selector-panel {
  padding: 16px;
}

.portal-next-panel {
  margin-top: 18px;
}

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

.portal-next-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 204, 91, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.portal-next-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 91, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 204, 91, 0.22), transparent 48%),
    rgba(255, 255, 255, 0.08);
}

.portal-next-card span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ffcc5b;
  color: #10251f;
  font-weight: 900;
}

.portal-next-card strong {
  font-size: 1.15rem;
}

.portal-next-card p,
.portal-security-note,
.portal-file-item small {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.portal-briefing-form,
.portal-hosting-form,
.portal-upload-form {
  margin-top: 18px;
}

.portal-briefing-form textarea,
.portal-hosting-form textarea {
  min-height: 110px;
}

.portal-security-note {
  padding: 14px 16px;
  border: 1px solid rgba(255, 204, 91, 0.26);
  border-radius: 14px;
  background: rgba(255, 204, 91, 0.09);
}

.portal-file-list {
  gap: 12px;
}

.portal-file-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.portal-file-item .customer-action-row {
  justify-content: flex-end;
}

.portal-file-item .danger-form {
  margin: 0;
}

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

.portal-feature-list {
  gap: 14px;
}

.portal-feature-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.portal-feature-item p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 760px;
}

.portal-feature-item small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.66);
}

.portal-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.portal-mini-list span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.portal-decision-form,
.portal-ticket-update {
  min-width: 280px;
  max-width: 420px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.portal-timeline-panel {
  margin-top: 18px;
}

.portal-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.portal-timeline article {
  position: relative;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.portal-timeline article.is-done {
  border-color: rgba(255, 204, 91, 0.42);
  background: linear-gradient(135deg, rgba(255, 204, 91, 0.18), rgba(255, 255, 255, 0.06));
}

.portal-timeline span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  font-size: 12px;
}

.portal-timeline article.is-done span {
  background: #ffcc5b;
  color: #10251f;
}

.portal-timeline strong {
  display: block;
  margin-top: 14px;
}

.portal-timeline p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .portal-workflow-grid,
  .portal-next-grid,
  .portal-kpi-grid,
  .portal-timeline {
    grid-template-columns: 1fr;
  }

  .portal-file-item,
  .portal-feature-item {
    grid-template-columns: 1fr;
  }

  .portal-file-item .customer-action-row,
  .portal-feature-item .customer-action-row {
    justify-content: flex-start;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 20px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.logo-ring {
  fill: rgba(255, 255, 255, 0.08);
  stroke: currentColor;
  stroke-width: 1.2;
}

.logo-k,
.logo-s {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-k {
  stroke: currentColor;
  stroke-width: 3.3;
}

.logo-s {
  stroke: var(--warm);
  stroke-width: 2.35;
}

.brand-name {
  font-size: 15px;
  line-height: 1;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 14px;
  color: currentColor;
}

.nav a {
  opacity: 0.84;
}

.nav a:hover {
  opacity: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 680;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 63% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 9, 9, 0.86) 0%, rgba(6, 9, 9, 0.62) 36%, rgba(6, 9, 9, 0.18) 78%),
    linear-gradient(180deg, rgba(6, 9, 9, 0.44), rgba(6, 9, 9, 0.12) 45%, rgba(6, 9, 9, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 730px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

.hero-actions,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}

.button-primary {
  background: var(--warm);
  color: #15120b;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.proof-row {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.proof-row span {
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.proof-row span:last-child {
  border-right: 0;
}

section {
  padding: clamp(70px, 9vw, 126px) clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(34px, 7vw, 94px);
  align-items: start;
}

.intro {
  background: var(--paper);
}

.intro h2,
.section-head h2,
.work h2,
.contact h2 {
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro p:last-child,
.contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 790px;
  margin-bottom: 0;
}

.services {
  background: #fbfaf7;
}

.why {
  background: #fbfaf7;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
}

.why-statement,
.why-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.why-statement {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 44px);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(95, 143, 136, 0.28), rgba(211, 176, 111, 0.12)),
    var(--ink);
  box-shadow: var(--shadow);
}

.statement-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: var(--warm);
  font-weight: 850;
}

.why-statement h3 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.why-statement p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

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

.why-grid article {
  min-height: 252px;
  padding: 28px;
}

.why-grid span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.why-grid h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.16;
}

.why-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.references {
  background: var(--paper);
}

.section-head > div {
  max-width: 840px;
}

.section-note {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.reference-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.reference-card.is-featured {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(95, 143, 136, 0.24), rgba(211, 176, 111, 0.1)),
    var(--ink);
  box-shadow: var(--shadow);
}

.reference-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-topline a {
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal-dark);
}

.reference-card.is-featured .reference-topline,
.reference-card.is-featured p,
.reference-card.is-featured li {
  color: rgba(255, 255, 255, 0.74);
}

.reference-card.is-featured .reference-topline a {
  color: var(--warm);
}

.reference-card h3 {
  max-width: 420px;
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.02;
}

.reference-card p {
  color: var(--muted);
  line-height: 1.65;
}

.reference-card ul {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.reference-card li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.reference-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--warm);
}

.portal {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #111514;
  color: var(--white);
}

.portal h2 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
}

.portal-copy p:not(.section-kicker) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.portal-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.portal-login-link {
  margin-top: 30px;
}

.portal-feature-list span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 720;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #f7f4ee;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

.dashboard-sidebar {
  padding: 22px;
  background: #17211f;
  color: var(--white);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-brand .brand-logo {
  width: 34px;
  height: 34px;
}

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

.dashboard-nav a {
  padding: 11px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.dashboard-nav a.is-current,
.dashboard-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.dashboard-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(18px, 3vw, 30px);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-topbar strong {
  font-size: 24px;
}

.role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.role-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.role-button.is-active {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: var(--white);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
}

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

.dashboard-metrics article,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.dashboard-metrics article {
  padding: 18px;
}

.dashboard-metrics span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-metrics strong {
  font-size: 25px;
}

.dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 12px;
}

.dashboard-panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-head h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.panel-head span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(95, 143, 136, 0.13);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 21, 20, 0.1);
}

.progress-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--warm));
  transition: width 180ms ease;
}

.portal-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.portal-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.portal-list li span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 6px;
  border: 2px solid var(--warm);
  border-radius: 50%;
}

.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.1);
}

.invoice-row span {
  color: var(--muted);
  font-weight: 800;
}

.invoice-row strong {
  font-size: 24px;
}

.invoice-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.form-message {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 760;
  line-height: 1.45;
}

.form-message.success {
  color: #173f2b;
  background: rgba(95, 143, 136, 0.18);
}

.form-message.error {
  color: #5f1818;
  background: rgba(211, 111, 111, 0.18);
}

.portal-page {
  min-height: 100vh;
  padding-top: 82px;
  background: var(--paper);
}

.portal-login-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 520px);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 82px);
  background:
    linear-gradient(90deg, rgba(17, 21, 20, 0.92), rgba(17, 21, 20, 0.68)),
    url("assets/hero-workspace.png") center / cover;
  color: var(--white);
}

.portal-login-clean {
  background:
    linear-gradient(90deg, rgba(17, 21, 20, 0.92), rgba(17, 21, 20, 0.56)),
    url("assets/hero-workspace.png") center / cover;
}

.login-copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.login-copy p {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.demo-logins {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 30px;
}

.demo-logins article {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.demo-logins span {
  color: rgba(255, 255, 255, 0.7);
}

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

.auth-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(244, 240, 232, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 16px;
  color: var(--ink);
}

.auth-card-head span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card-head strong {
  max-width: 280px;
  text-align: right;
  font-size: 18px;
  line-height: 1.2;
}

.login-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  box-shadow: none;
}

.login-form-single {
  padding: clamp(28px, 4vw, 42px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--teal-dark);
  font-weight: 850;
}

.auth-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
}

.auth-form-head span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.auth-form-head h2 {
  margin: 0;
  font-size: 30px;
}

.register-form {
  background: rgba(255, 253, 248, 0.98);
}

.setup-link {
  border-color: var(--line);
  color: var(--ink);
}

.portal-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 82px);
  padding: 0;
}

.portal-app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #17211f;
  color: var(--white);
}

.logout-link {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.portal-app-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(22px, 4vw, 46px);
}

.portal-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-app-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.portal-mobile-nav {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.portal-mobile-nav a {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.portal-mobile-nav a.is-current {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: var(--white);
}

.form-role-switch {
  margin: 0;
}

.portal-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.portal-app-grid .dashboard-panel h2 {
  margin: 0;
  font-size: 23px;
}

.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.permission-grid span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(95, 143, 136, 0.12);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.data-panel {
  grid-column: span 1;
}

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

.data-table div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.08);
}

.data-table strong {
  font-size: 15px;
}

.data-table span,
.data-table p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.08);
}

.inline-form .button {
  width: 100%;
  align-self: end;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.profile-form .full-row {
  grid-column: 1 / -1;
}

.portal-entry-card {
  align-content: start;
}

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

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

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

.customer-create-form-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-search {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.customer-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px auto auto;
}

.customer-search input {
  min-height: 42px;
}

.customer-list {
  display: grid;
  gap: 14px;
}

.customer-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.customer-crm-card {
  gap: 18px;
  padding: 18px;
}

.customer-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.customer-card-head strong {
  display: block;
  font-size: 18px;
}

.customer-card-head span,
.customer-info-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.customer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.customer-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(95, 143, 136, 0.12);
  color: var(--teal-dark);
  font-weight: 800;
}

.customer-meta-strong span:first-child {
  background: rgba(245, 188, 97, 0.22);
  color: #7b5a22;
}

.customer-finance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-finance-strip div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.84);
}

.customer-finance-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-finance-strip strong {
  font-size: 20px;
}

.customer-finance-strip strong.is-positive {
  color: var(--teal-dark);
}

.customer-finance-strip strong.is-warning {
  color: #9d5b31;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.customer-info-grid-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.customer-info-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(31, 48, 45, 0.08);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.07);
}

.customer-info-grid strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customer-edit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.customer-edit summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 850;
}

.customer-edit .inline-form {
  margin-top: 12px;
}

.customer-role-form {
  margin-top: 10px;
}

.customer-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-credit-panel {
  border-top-color: rgba(245, 188, 97, 0.34);
}

.customer-credit-form {
  grid-template-columns: 180px 180px minmax(0, 1fr);
}

.credit-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.credit-history div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.credit-history strong {
  font-size: 15px;
}

.credit-history .is-positive strong {
  color: var(--teal-dark);
}

.credit-history .is-negative strong {
  color: #9d5b31;
}

.credit-history span,
.credit-history small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mini-button-light {
  display: inline-grid;
  place-items: center;
  background: rgba(31, 48, 45, 0.08);
  color: var(--ink);
  text-decoration: none;
}

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

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

.project-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto auto;
  gap: 10px;
  margin-bottom: 18px;
}

.project-toolbar input,
.project-toolbar select {
  min-height: 42px;
}

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

.project-master-form .full-row,
.project-detail-form .full-row {
  grid-column: 1 / -1;
}

.project-master-form textarea,
.project-detail-form textarea {
  min-height: 110px;
  resize: vertical;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-card {
  display: grid;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.project-card-head strong {
  display: block;
  font-size: 19px;
}

.project-card-head span,
.project-info-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.project-progress-number {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--teal-dark);
  color: var(--white);
  text-align: center;
  font-weight: 850;
}

.project-progress {
  height: 12px;
}

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

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

.project-info-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(31, 48, 45, 0.08);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.07);
}

.project-info-grid strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-edit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.project-edit summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 850;
}

.project-edit .inline-form {
  margin-top: 12px;
}

.project-summary {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.07);
  color: var(--muted);
  line-height: 1.55;
}

.project-detail-hero {
  display: grid;
  gap: 18px;
}

.project-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.project-detail-head h2 {
  margin: 4px 0 10px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.95;
}

.project-detail-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-detail-progress {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 140px;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.08);
}

.project-detail-progress strong {
  font-size: 38px;
}

.project-detail-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.project-detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.project-task-form,
.project-detail-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.invoice-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto auto;
  gap: 10px;
  margin-bottom: 18px;
}

.invoice-toolbar input,
.invoice-toolbar select {
  min-height: 42px;
}

.invoice-list {
  display: grid;
  gap: 14px;
}

.invoice-card {
  display: grid;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.invoice-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.invoice-card-head strong {
  display: block;
  font-size: 19px;
}

.invoice-card-head span,
.invoice-info-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.invoice-amount {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--teal-dark);
  color: var(--white);
  font-weight: 850;
}

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

.invoice-info-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(31, 48, 45, 0.08);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.07);
}

.invoice-info-grid strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invoice-edit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.invoice-edit summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 850;
}

.invoice-edit .inline-form {
  margin-top: 12px;
}

.invoice-view-page {
  padding: clamp(90px, 10vw, 130px) clamp(18px, 4vw, 48px) 48px;
}

.invoice-view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto 14px;
}

.invoice-document {
  display: grid;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
}

.invoice-document-head,
.invoice-address-grid,
.invoice-document-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.invoice-document h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
}

.invoice-document-number {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
}

.invoice-document-number strong {
  font-size: 24px;
}

.invoice-address-grid section,
.invoice-document-meta div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(95, 143, 136, 0.07);
}

.invoice-address-grid span,
.invoice-document-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-address-grid p,
.invoice-document-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.invoice-document-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-document-table th,
.invoice-document-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.invoice-document-table th:last-child,
.invoice-document-table td:last-child {
  text-align: right;
}

.invoice-document-premium .invoice-document-table th:last-child,
.invoice-document-premium .invoice-document-table td:last-child {
  padding-right: 22px;
}

.invoice-document-table tfoot td {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.invoice-document-premium {
  --invoice-pad: clamp(20px, 5vw, 54px);
  gap: 28px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(31, 48, 45, 0.12);
  background: #fffdf8;
  box-shadow: 0 28px 80px rgba(31, 48, 45, 0.16);
}

.invoice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 24px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(23, 33, 31, 0.98), rgba(35, 63, 59, 0.96)),
    linear-gradient(90deg, rgba(245, 188, 97, 0.16), rgba(95, 143, 136, 0.08));
  color: var(--white);
}

.invoice-brand-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.invoice-brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.invoice-brand-mark .brand-logo {
  width: 42px;
  height: 42px;
}

.invoice-kicker {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-hero h1 {
  margin: 5px 0 10px;
  color: var(--white);
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.9;
}

.invoice-hero p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.6;
}

.invoice-total-card {
  display: grid;
  align-content: space-between;
  justify-items: end;
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.invoice-total-card strong {
  color: var(--white);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  white-space: nowrap;
}

.invoice-total-card > span:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 850;
}

.invoice-status-pill {
  justify-self: end;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.invoice-status-pill.status-bezahlt {
  background: rgba(95, 143, 136, 0.95);
}

.invoice-status-pill.status-ueberfaellig {
  background: rgba(162, 70, 58, 0.95);
}

.invoice-status-pill.status-entwurf {
  background: rgba(255, 255, 255, 0.22);
}

.invoice-detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 var(--invoice-pad);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.invoice-detail-strip div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.invoice-detail-strip span,
.invoice-footer-premium span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-detail-strip strong {
  font-size: 15px;
}

.invoice-address-premium,
.invoice-document-premium .invoice-document-table,
.invoice-footer-premium {
  margin-left: var(--invoice-pad);
  margin-right: var(--invoice-pad);
}

.invoice-party-card {
  position: relative;
  padding: 22px;
  background: rgba(95, 143, 136, 0.08);
}

.invoice-party-card.is-customer {
  background: rgba(245, 188, 97, 0.12);
}

.invoice-party-card strong {
  font-size: 20px;
}

.invoice-document-premium .invoice-document-table {
  width: calc(100% - var(--invoice-pad) - var(--invoice-pad));
  table-layout: fixed;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
}

.invoice-document-premium .invoice-document-table th:first-child,
.invoice-document-premium .invoice-document-table td:first-child {
  width: 110px;
}

.invoice-document-premium .invoice-document-table th:nth-child(3),
.invoice-document-premium .invoice-document-table td:nth-child(3) {
  width: 110px;
}

.invoice-document-premium .invoice-document-table th:last-child,
.invoice-document-premium .invoice-document-table td:last-child {
  width: 190px;
  white-space: nowrap;
}

.invoice-document-premium .invoice-document-table th {
  background: rgba(31, 48, 45, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-document-premium .invoice-document-table td {
  vertical-align: top;
  background: rgba(255, 255, 255, 0.56);
}

.invoice-document-premium .invoice-document-table td strong {
  display: block;
  margin-bottom: 5px;
}

.invoice-document-premium .invoice-document-table td span {
  color: var(--muted);
  font-size: 13px;
}

.invoice-document-premium .invoice-document-table tfoot td {
  background: rgba(31, 48, 45, 0.04);
  font-size: 22px;
}

.invoice-footer-premium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  margin-bottom: clamp(20px, 5vw, 54px);
  padding-top: 4px;
}

.invoice-footer-premium div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

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

.record-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.record-item strong {
  display: block;
  margin-bottom: 5px;
}

.record-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.row-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.row-form select {
  min-height: 38px;
  max-width: 210px;
}

.mini-button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--teal-dark);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.portal-flash {
  margin: 0;
}

.service-card,
.package,
.result-box,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.service-card {
  min-height: 245px;
  padding: 26px;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 20px;
}

.service-card h3,
.package h3,
.step h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.22;
}

.service-card p,
.package p,
.step p {
  color: var(--muted);
  line-height: 1.62;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  background: var(--teal-dark);
  color: var(--white);
}

.work-panel {
  max-width: 900px;
}

.work h2 {
  margin-bottom: 38px;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.step > span {
  color: var(--warm);
  font-weight: 800;
}

.step p {
  color: rgba(255, 255, 255, 0.72);
}

.result-box {
  align-self: end;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.result-number {
  display: block;
  margin-bottom: 10px;
  color: var(--warm);
  font-size: 74px;
  font-weight: 850;
  line-height: 0.9;
}

.result-label {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.packages {
  background: #f7f4ee;
}

.section-head.compact {
  display: block;
}

.section-head.compact h2 {
  margin-bottom: 0;
}

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

.package {
  position: relative;
  min-height: 390px;
  padding: 30px;
  background: #fffdf8;
}

.package.featured {
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--warm);
  color: #15120b;
  font-size: 12px;
  font-weight: 800;
}

.price {
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: 28px;
  font-weight: 850;
}

.featured .price,
.featured p,
.featured li {
  color: rgba(255, 255, 255, 0.78);
}

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

.package li {
  display: flex;
  gap: 9px;
  color: var(--muted);
}

.package li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 560px);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
  background: var(--paper);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #fffdf8;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.linkus-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 72px);
  background: #fffdf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.linkus-teaser h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.96;
}

.linkus-teaser p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.linkus-page {
  min-height: 100vh;
  padding-top: 82px;
  background: var(--paper);
}

.linkus-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(54px, 9vw, 112px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(211, 176, 111, 0.18), rgba(95, 143, 136, 0.18)),
    var(--ink);
}

.linkus-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.94;
}

.linkus-hero p:not(.section-kicker) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  line-height: 1.7;
}

.linkus-hero-banner {
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.linkus-hero-banner img {
  width: 100%;
  border-radius: var(--radius);
}

.linkus-copy-grid,
.linkus-banners {
  padding: clamp(50px, 8vw, 94px) clamp(18px, 5vw, 72px);
}

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

.linkus-copy-grid article,
.linkus-banner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.linkus-copy-grid article {
  padding: clamp(22px, 3vw, 34px);
}

.linkus-copy-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-weight: 850;
}

.linkus-copy-grid h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.linkus-copy-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.linkus-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.linkus-banner-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.linkus-banner-preview {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 61, 58, 0.08), rgba(211, 176, 111, 0.12)),
    #fffdf8;
}

.linkus-banner-preview.is-wide img,
.linkus-banner-preview.is-slim img {
  width: 100%;
}

.linkus-banner-preview.is-slim {
  min-height: 150px;
}

.linkus-banner-preview.is-slim img {
  max-width: 468px;
  min-height: 60px;
  object-fit: contain;
}

.linkus-banner-preview.is-square img {
  width: min(100%, 240px);
}

.linkus-banner-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.linkus-banner-meta h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.linkus-banner-meta span {
  color: var(--muted);
  font-size: 14px;
}

.linkus-banner-card textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  background: #fffdf8;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.home-preview {
  --preview-ink: #101211;
  --preview-green: #123f3a;
  --preview-lime: #c9f26d;
  --preview-coral: #ff745c;
  --preview-blue: #59b7ff;
  --preview-cream: #fff7e6;
  overflow: hidden;
  background: #f7f0df;
}

.preview-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: clamp(120px, 13vw, 172px) clamp(18px, 5vw, 72px) clamp(34px, 6vw, 70px);
  color: var(--white);
  isolation: isolate;
}

.preview-hero-media,
.preview-hero-media::after,
.preview-hero-media img {
  position: absolute;
  inset: 0;
}

.preview-hero-media {
  z-index: -2;
  background: var(--preview-green);
}

.preview-hero-media::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 18, 17, 0.94), rgba(16, 18, 17, 0.62) 48%, rgba(16, 18, 17, 0.18)),
    linear-gradient(180deg, rgba(16, 18, 17, 0.26), rgba(16, 18, 17, 0.72));
}

.preview-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-hero-content {
  max-width: 920px;
}

.preview-kicker {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: var(--preview-lime);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(54px, 9vw, 128px);
  line-height: 0.9;
}

.preview-hero-content p:not(.preview-kicker) {
  max-width: 730px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.preview-hero .hero-actions {
  margin-top: 34px;
}

.preview-hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(34px, 6vw, 70px);
  width: min(360px, 32vw);
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.preview-hero-panel div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-hero-panel span,
.preview-dashboard span,
.preview-reference-grid span,
.preview-process-grid span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-hero-panel strong {
  font-size: 17px;
}

.preview-marquee {
  display: flex;
  gap: 10px;
  padding: 16px clamp(18px, 5vw, 72px);
  overflow-x: auto;
  color: var(--preview-ink);
  background: var(--preview-lime);
}

.preview-marquee span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(16, 18, 17, 0.2);
  border-radius: var(--radius);
  font-weight: 850;
}

.preview-split,
.preview-services,
.preview-portal,
.preview-references,
.preview-process,
.preview-packages,
.preview-contact {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.preview-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 6vw, 90px);
  background: var(--preview-cream);
}

.preview-split h2,
.preview-portal h2,
.preview-process h2,
.preview-contact h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.96;
}

.preview-reason-stack {
  display: grid;
  gap: 12px;
}

.preview-reason-stack article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(16, 18, 17, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.preview-reason-stack span {
  color: var(--preview-coral);
  font-weight: 900;
}

.preview-reason-stack h3,
.preview-service-grid h3,
.preview-reference-grid h3,
.preview-process-grid h3,
.preview-package-grid h3 {
  margin: 0 0 10px;
}

.preview-reason-stack p,
.preview-service-grid p,
.preview-portal p,
.preview-reference-grid p,
.preview-process-grid p,
.preview-package-grid p,
.preview-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.preview-services {
  background:
    linear-gradient(135deg, rgba(89, 183, 255, 0.16), rgba(255, 116, 92, 0.12)),
    #f7f0df;
}

.preview-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.preview-service-grid article {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 24px;
  border: 1px solid rgba(16, 18, 17, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.preview-service-grid article:nth-child(2) {
  background: #e8f7ff;
}

.preview-service-grid article:nth-child(3) {
  background: #fff0dc;
}

.preview-service-grid article:nth-child(4) {
  background: #ecffd1;
}

.preview-service-grid span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--preview-green);
  font-weight: 900;
}

.preview-portal {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 63, 58, 0.96), rgba(16, 18, 17, 1)),
    var(--preview-green);
}

.preview-portal p {
  max-width: 650px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.preview-dashboard {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.preview-dashboard-top,
.preview-dashboard-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.preview-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-dashboard-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.preview-dashboard-grid strong {
  font-size: 28px;
}

.preview-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.preview-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--preview-lime), var(--preview-blue));
}

.preview-dashboard ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
}

.preview-references {
  background: #101211;
  color: var(--white);
}

.preview-references .section-note {
  color: rgba(255, 255, 255, 0.64);
}

.preview-reference-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 16px;
  margin-top: 30px;
}

.preview-reference-grid article {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1)),
    var(--preview-green);
}

.preview-reference-grid article.is-featured {
  min-height: 440px;
  background:
    linear-gradient(135deg, rgba(201, 242, 109, 0.2), rgba(89, 183, 255, 0.16)),
    #183d3a;
}

.preview-reference-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.preview-reference-grid a {
  color: var(--preview-lime);
  font-weight: 850;
}

.preview-process {
  background: var(--preview-lime);
}

.preview-process h2 {
  max-width: 900px;
}

.preview-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.preview-process-grid article {
  padding: 26px;
  border: 1px solid rgba(16, 18, 17, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.preview-process-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--preview-green);
}

.preview-packages {
  background: #f7f0df;
}

.preview-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.preview-package-grid article {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(16, 18, 17, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.preview-package-grid article.is-featured {
  color: var(--white);
  background: var(--preview-green);
}

.preview-package-grid strong {
  font-size: 34px;
}

.preview-package-grid article.is-featured p,
.preview-package-grid article.is-featured li {
  color: rgba(255, 255, 255, 0.72);
}

.preview-package-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.preview-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 116, 92, 0.14), rgba(89, 183, 255, 0.14)),
    var(--preview-cream);
}

.preview-contact p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 22px;
  font-size: 18px;
}

.footer {
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(95, 143, 136, 0.16), rgba(211, 176, 111, 0.08)),
    var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(130px, 0.46fr) minmax(130px, 0.5fr) minmax(130px, 0.5fr) minmax(250px, 0.84fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-page {
  min-height: 100vh;
  padding-top: 82px;
  background:
    linear-gradient(180deg, #142722 0, #142722 360px, #f5f1e9 360px, #f5f1e9 100%);
}

.legal-page-pro {
  color: #17231f;
}

.legal-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 22px clamp(34px, 6vw, 70px);
  color: #fff;
}

.legal-hero .section-kicker {
  color: #f4b85d;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(50px, 9vw, 112px);
  line-height: .88;
  letter-spacing: 0;
}

.legal-hero p:not(.section-kicker) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 16px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(70px, 9vw, 118px);
}

.legal-layout-privacy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(23, 35, 31, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 70px rgba(23, 35, 31, .1);
}

.legal-panel-main {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 248, 235, .94));
}

.legal-panel-wide {
  grid-column: 1 / -1;
}

.legal-contact-card {
  background:
    linear-gradient(135deg, rgba(31, 67, 58, .96), rgba(20, 39, 34, .96));
  color: #fff;
}

.legal-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(244, 184, 93, .16);
  color: #9c5b13;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-contact-card .legal-label {
  background: rgba(255, 255, 255, .12);
  color: #f7c977;
}

.legal-panel h2 {
  margin: 0 0 14px;
  color: #111d19;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.legal-contact-card h2 {
  color: #fff;
}

.legal-panel p {
  margin: 0;
  color: rgba(23, 35, 31, .72);
  font-size: 17px;
  line-height: 1.75;
}

.legal-contact-card p {
  color: rgba(255, 255, 255, .76);
}

.legal-panel a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.7;
}

.footer-column,
.footer-cta {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column h2,
.footer-cta h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-cta {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.footer-cta p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
    grid-column: 3;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav a {
    padding: 14px 12px;
  }

  .hero {
    min-height: 88vh;
  }

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

  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-card {
    min-height: auto;
  }

  .section-grid,
  .work,
  .contact,
  .why-layout,
  .portal {
    grid-template-columns: 1fr;
  }

  .why-statement {
    min-height: 420px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .portal-login-section,
  .portal-app,
  .portal-app-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .linkus-teaser,
  .linkus-hero,
  .linkus-copy-grid,
  .linkus-banner-grid {
    grid-template-columns: 1fr;
  }

  .linkus-teaser {
    align-items: start;
  }

  .linkus-hero-banner {
    padding: 12px;
  }

  .linkus-banner-preview {
    min-height: 170px;
  }

  .preview-hero {
    min-height: 880px;
    align-items: start;
  }

  .preview-hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 34px;
  }

  .preview-split,
  .preview-portal,
  .preview-contact,
  .preview-service-grid,
  .preview-reference-grid,
  .preview-process-grid,
  .preview-package-grid {
    grid-template-columns: 1fr;
  }

  .preview-service-grid article {
    min-height: 220px;
  }

  .preview-reference-grid article,
  .preview-reference-grid article.is-featured {
    min-height: 300px;
  }

  .preview-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .portal-app-sidebar {
    display: none;
  }

  .portal-mobile-nav {
    display: flex;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .package {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-image {
    object-position: 70% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 9, 9, 0.9) 0%, rgba(6, 9, 9, 0.78) 58%, rgba(6, 9, 9, 0.36)),
      linear-gradient(180deg, rgba(6, 9, 9, 0.5), rgba(6, 9, 9, 0.26) 50%, rgba(6, 9, 9, 0.58));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .proof-row {
    align-items: flex-start;
    gap: 8px 10px;
  }

  .proof-row span {
    border-right: 0;
    padding-right: 0;
  }

  section {
    padding: 64px 16px;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 18px;
  }

  .reference-topline {
    display: grid;
    gap: 8px;
    margin-bottom: 34px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .dashboard-metrics,
  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    min-height: auto;
  }

  .dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-app-topbar,
  .demo-logins article {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-forms {
    grid-template-columns: 1fr;
  }

  .auth-card-head {
    display: grid;
  }

  .auth-card-head strong {
    max-width: none;
    text-align: left;
  }

  .role-switch {
    justify-content: start;
  }

  .role-button {
    flex: 1 1 auto;
  }

  .panel-head,
  .invoice-row {
    display: grid;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .customer-stats-grid,
  .customer-stats-grid-wide,
  .dashboard-overview-grid,
  .customer-create-form,
  .customer-create-form-wide,
  .customer-info-grid,
  .customer-info-grid-wide,
  .customer-toolbar,
  .customer-finance-strip,
  .customer-credit-form,
  .project-stats-grid,
  .project-create-form,
  .project-master-form,
  .project-detail-metrics,
  .project-detail-grid,
  .project-task-form,
  .project-detail-form,
  .project-toolbar,
  .project-info-grid,
  .project-info-grid-wide,
  .invoice-stats-grid,
  .invoice-create-form,
  .invoice-toolbar,
  .invoice-info-grid,
  .invoice-document-head,
  .invoice-address-grid,
  .invoice-document-meta,
  .invoice-hero,
  .invoice-detail-strip,
  .invoice-footer-premium {
    grid-template-columns: 1fr;
  }

  .customer-card-head,
  .project-card-head,
  .project-detail-head,
  .invoice-card-head,
  .customer-search {
    display: grid;
  }

  .invoice-view-actions,
  .invoice-actions {
    display: grid;
  }

  .credit-history div {
    grid-template-columns: 1fr;
  }

  .invoice-brand-block {
    display: grid;
  }

  .invoice-total-card {
    justify-items: start;
    min-height: auto;
  }

  .invoice-total-card strong {
    white-space: normal;
  }

  .invoice-document-premium .invoice-document-table {
    display: block;
    overflow-x: auto;
  }

  .customer-meta {
    justify-content: start;
  }

  .row-form,
  .row-form select,
  .mini-button {
    width: 100%;
    max-width: none;
  }

  .service-card {
    min-height: auto;
  }

  .step {
    grid-template-columns: 42px 1fr;
  }

  .result-number {
    font-size: 58px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media print {
  .site-header,
  .footer,
  .invoice-view-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .portal-page,
  .invoice-view-page {
    padding: 0;
    background: #fff;
  }

  .invoice-document {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .invoice-document-premium {
    gap: 20px;
    overflow: visible;
  }

  .invoice-hero {
    padding: 0 0 18px;
    border-bottom: 2px solid #111;
    background: #fff !important;
    color: #111;
  }

  .invoice-hero h1,
  .invoice-total-card strong {
    color: #111;
  }

  .invoice-hero p,
  .invoice-total-card > span:last-child {
    color: #444;
  }

  .invoice-brand-mark,
  .invoice-total-card,
  .invoice-detail-strip,
  .invoice-party-card,
  .invoice-footer-premium div {
    border-color: #ddd;
    background: #fff !important;
  }

  .invoice-detail-strip,
  .invoice-address-premium,
  .invoice-document-premium .invoice-document-table,
  .invoice-footer-premium {
    margin-left: 0;
    margin-right: 0;
  }

  .invoice-document-table th,
  .invoice-document-table td {
    border-color: #ddd;
  }
}

/* Portal Pro polish */
.portal-page-pro {
  background:
    radial-gradient(circle at top left, rgba(245, 188, 97, 0.14), transparent 30vw),
    linear-gradient(135deg, #efece4, #f8f5ee 45%, #e7ece8);
}

.portal-app-pro {
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: calc(100vh - 82px);
}

.portal-app-pro .portal-app-sidebar {
  position: sticky;
  top: 82px;
  min-height: calc(100vh - 82px);
  padding: 26px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(23, 33, 31, 0.98), rgba(27, 49, 45, 0.98)),
    radial-gradient(circle at 30% 10%, rgba(245, 188, 97, 0.18), transparent 32%);
  box-shadow: 24px 0 70px rgba(31, 48, 45, 0.16);
}

.portal-app-pro .dashboard-brand {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.portal-sidebar-user {
  display: grid;
  gap: 5px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.portal-sidebar-user span,
.portal-sidebar-user small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.portal-sidebar-user strong {
  color: var(--white);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.portal-sidebar-user small {
  overflow-wrap: anywhere;
}

.portal-app-pro .dashboard-nav {
  display: grid;
  gap: 7px;
}

.portal-app-pro .dashboard-nav a {
  position: relative;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 850;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.portal-app-pro .dashboard-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateX(2px);
}

.portal-app-pro .dashboard-nav a.is-current {
  border-color: rgba(245, 188, 97, 0.34);
  background: rgba(245, 188, 97, 0.16);
  color: var(--white);
}

.portal-app-pro .logout-link {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.portal-app-pro .portal-app-main {
  gap: 22px;
  padding: clamp(24px, 4vw, 54px);
}

.portal-app-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(31, 48, 45, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(239, 244, 240, 0.86)),
    radial-gradient(circle at 92% 18%, rgba(245, 188, 97, 0.22), transparent 24%);
  box-shadow: 0 24px 70px rgba(31, 48, 45, 0.12);
}

.portal-app-hero h1 {
  font-size: clamp(38px, 5vw, 74px);
  letter-spacing: 0;
}

.portal-app-hero p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.portal-hero-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 170px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-hero-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.portal-hero-meta strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.dashboard-metrics article,
.dashboard-card,
.dashboard-panel,
.customer-card,
.project-card,
.invoice-card,
.record-item {
  border-color: rgba(31, 48, 45, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(255, 255, 255, 0.84));
  box-shadow: 0 18px 45px rgba(31, 48, 45, 0.08);
}

.dashboard-panel {
  padding: clamp(20px, 3vw, 30px);
}

.dashboard-card,
.dashboard-metrics article {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.dashboard-card::before,
.dashboard-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--warm));
}

.dashboard-card span,
.dashboard-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-card strong,
.dashboard-metrics strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.dashboard-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31, 48, 45, 0.09);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
}

.panel-head > span,
.role-badge {
  border: 1px solid rgba(95, 143, 136, 0.18);
  background: rgba(95, 143, 136, 0.11);
  color: var(--teal-dark);
}

.inline-form,
.customer-finance-strip div,
.customer-info-grid div,
.project-info-grid div,
.invoice-info-grid div,
.data-table div,
.credit-history div {
  border-color: rgba(31, 48, 45, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.inline-form {
  padding: 18px;
}

.inline-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  border-color: rgba(31, 48, 45, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(95, 143, 136, 0.18);
  border-color: var(--teal-dark);
}

.customer-card,
.project-card,
.invoice-card {
  position: relative;
  padding: 22px;
}

.customer-card::before,
.project-card::before,
.invoice-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--warm));
}

.customer-card-head strong,
.project-card-head strong,
.invoice-card-head strong {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0;
}

.customer-meta span,
.customer-action-row .mini-button,
.invoice-actions .mini-button,
.project-progress-number,
.invoice-amount {
  border-radius: 999px;
}

.customer-finance-strip strong,
.project-progress-number,
.invoice-amount {
  letter-spacing: 0;
}

.record-list {
  gap: 14px;
}

.record-item {
  padding: 16px;
}

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

.dashboard-command-grid {
  align-items: start;
}

.portal-reviews-panel {
  margin-top: 18px;
}

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

.portal-review-card {
  min-height: 240px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 48, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(95, 143, 136, 0.08), rgba(211, 176, 111, 0.08)),
    rgba(255, 255, 255, 0.76);
}

.portal-review-card.is-featured {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(211, 176, 111, 0.16), rgba(95, 143, 136, 0.18)),
    var(--teal-dark);
}

.portal-review-card span {
  color: #d3a331;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.portal-review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-review-card.is-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.portal-review-card strong,
.portal-review-card small {
  display: block;
}

.portal-review-card small {
  margin-top: 4px;
  color: var(--muted);
}

.portal-review-card.is-featured small {
  color: rgba(255, 255, 255, 0.58);
}

.testimonials-admin-panel {
  margin-top: 18px;
}

.testimonials-admin-form {
  display: grid;
  gap: 18px;
}

.testimonials-admin-list {
  display: grid;
  gap: 14px;
}

.testimonial-edit-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(31, 48, 45, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.testimonial-edit-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.featured-choice {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 850;
}

.testimonial-edit-grid {
  grid-template-columns: 1.2fr 1.2fr 0.7fr 0.7fr;
}

.record-item-pro {
  gap: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.record-item-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 48, 45, 0.1);
}

.lead-message {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(31, 48, 45, 0.09);
  border-radius: 16px;
  background: rgba(95, 143, 136, 0.07);
  color: var(--muted);
  line-height: 1.6;
}

.mini-button {
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(31, 48, 45, 0.08);
}

.mini-button-light {
  border-color: rgba(31, 48, 45, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.mini-button-danger {
  border-color: rgba(164, 55, 44, 0.26);
  background: #8f2f27;
  color: var(--white);
}

.mini-button-danger:hover {
  background: #74251f;
}

.danger-form {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.invoice-view-actions form {
  margin: 0;
}

.nova-body {
  margin: 0;
  color: #111514;
  background: #f5efe2;
}

.nova-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: clamp(14px, 3vw, 36px);
  right: clamp(14px, 3vw, 36px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(15, 25, 23, 0.58);
  backdrop-filter: blur(22px);
}

.nova-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.nova-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 14px;
}

.nova-nav a,
.nova-header-action {
  color: inherit;
  opacity: 0.82;
}

.nova-nav a:hover,
.nova-header-action:hover {
  opacity: 1;
}

.nova-header-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-weight: 800;
}

.nova-site {
  overflow: hidden;
}

.nova-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: clamp(120px, 14vw, 180px) clamp(18px, 5vw, 76px) clamp(38px, 7vw, 84px);
  color: #ffffff;
  isolation: isolate;
}

.nova-hero-image,
.nova-hero-shade {
  position: absolute;
  inset: 0;
}

.nova-hero-image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nova-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 19, 18, 0.96), rgba(13, 19, 18, 0.65) 52%, rgba(13, 19, 18, 0.18)),
    linear-gradient(180deg, rgba(13, 19, 18, 0.22), rgba(13, 19, 18, 0.74));
}

.nova-hero-content {
  max-width: 1050px;
}

.nova-kicker {
  margin: 0 0 18px;
  color: #ffcf5a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nova-hero h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.88;
}

.nova-hero p:not(.nova-kicker),
.nova-contact p,
.nova-portal p,
.nova-studio-copy > p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.nova-actions,
.nova-score-grid,
.nova-interface-metrics,
.nova-price-grid,
.nova-testimonial-grid {
  display: grid;
  gap: 14px;
}

.nova-actions {
  grid-template-columns: repeat(2, max-content);
  margin-top: 34px;
}

.nova-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.nova-button-primary {
  color: #101211;
  background: #ffcf5a;
}

.nova-button-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.nova-hero-board {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: clamp(38px, 7vw, 84px);
  width: min(370px, 30vw);
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nova-hero-board div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.nova-hero-board span,
.nova-interface span,
.nova-reference span,
.nova-reference-image-card span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nova-strip {
  display: flex;
  gap: 10px;
  padding: 16px clamp(18px, 5vw, 76px);
  overflow-x: auto;
  color: #101211;
  background: #bff05a;
}

.nova-strip span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(16, 18, 17, 0.22);
  border-radius: 8px;
  font-weight: 900;
}

.nova-studio,
.nova-services,
.nova-portal,
.nova-references,
.nova-testimonials,
.nova-pricing,
.nova-contact {
  padding: clamp(62px, 9vw, 124px) clamp(18px, 5vw, 76px);
}

.nova-studio,
.nova-contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 92px);
}

.nova-studio {
  background:
    linear-gradient(135deg, rgba(255, 116, 92, 0.14), rgba(89, 183, 255, 0.13)),
    #fff7e6;
}

.nova-section-title h2,
.nova-portal h2,
.nova-contact h2 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.95;
}

.nova-studio-copy > p {
  color: #4e5854;
}

.nova-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.nova-score-grid div {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.nova-score-grid strong {
  color: #ff624c;
  font-size: 36px;
}

.nova-services {
  background: #101211;
  color: #ffffff;
}

.nova-service-list {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.nova-service-list article {
  display: grid;
  grid-template-columns: 0.42fr 0.75fr 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nova-service-list span {
  color: #59b7ff;
  font-weight: 900;
}

.nova-service-list h3,
.nova-service-list p {
  margin: 0;
}

.nova-service-list p,
.nova-testimonial-grid p,
.nova-price-grid p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.nova-portal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 63, 58, 0.94), rgba(16, 18, 17, 1)),
    #123f3a;
}

.nova-interface {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.nova-interface-top,
.nova-project-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.nova-interface-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.nova-interface-metrics div {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.nova-interface-metrics strong {
  font-size: 28px;
}

.nova-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.nova-progress span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, #bff05a, #59b7ff);
}

.nova-interface ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
  list-style: none;
}

.nova-references {
  background:
    linear-gradient(135deg, rgba(18, 63, 58, 0.08), rgba(89, 183, 255, 0.1)),
    #f5efe2;
}

.nova-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
  margin-top: 34px;
}

.nova-showcase-feature,
.nova-case-card {
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  background: #101211;
  box-shadow: 0 28px 80px rgba(16, 18, 17, 0.2);
}

.nova-showcase-feature {
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
  border: 1px solid rgba(16, 18, 17, 0.16);
}

.nova-browser {
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  min-height: 520px;
  background: #111514;
}

.nova-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.nova-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff624c;
}

.nova-browser-bar span:nth-child(2) {
  background: #ffcf5a;
}

.nova-browser-bar span:nth-child(3) {
  background: #bff05a;
}

.nova-browser-bar strong {
  margin-left: 8px;
  font-size: 13px;
}

.nova-browser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.nova-showcase-copy {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(216, 95, 57, 0.18), rgba(89, 183, 255, 0.12)),
    #101211;
}

.nova-showcase-copy span,
.nova-case-card span {
  color: #ffcf5a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nova-showcase-copy h3 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.92;
}

.nova-showcase-copy p,
.nova-case-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.nova-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nova-case-tags em {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.nova-showcase-side {
  display: grid;
  gap: 18px;
}

.nova-case-card {
  display: grid;
  grid-template-rows: minmax(210px, 1fr) auto;
  min-height: 390px;
  border: 1px solid rgba(16, 18, 17, 0.16);
}

.nova-case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.nova-case-card div {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.nova-case-card strong {
  color: #ffffff;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
}

.nova-reference-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.nova-reference-stats div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(16, 18, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.nova-reference-stats strong {
  color: #123f3a;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.9;
}

.nova-reference-stats span {
  color: #5c6561;
  font-weight: 850;
}

.nova-reference-wall {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 16px;
  margin-top: 34px;
}

.nova-reference-wall.is-text-only {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-auto-rows: auto;
}

.nova-reference {
  min-height: 420px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
  color: #ffffff;
}

.nova-reference.is-featured {
  min-height: 500px;
}

.nova-reference strong {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.nova-reference p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.nova-reference em {
  width: fit-content;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.nova-reference.is-green {
  background: #123f3a;
}

.nova-reference.is-orange {
  background: #d85f39;
}

.nova-reference.is-blue {
  background: #1f5f88;
}

.nova-reference-image-card {
  position: relative;
  grid-column: span 3;
  min-height: auto;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(16, 18, 17, 0.12);
  border-radius: 8px;
  color: #ffffff;
  background: #101211;
  box-shadow: 0 28px 80px rgba(16, 18, 17, 0.2);
}

.nova-reference-image-card.is-tall {
  grid-row: span 2;
  min-height: auto;
}

.nova-reference-image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 280ms ease;
}

.nova-reference-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 18, 17, 0.02), rgba(16, 18, 17, 0.18) 34%, rgba(16, 18, 17, 0.9)),
    linear-gradient(90deg, rgba(16, 18, 17, 0.32), rgba(16, 18, 17, 0));
}

.nova-reference-image-card:hover img {
  transform: scale(1.06);
}

.nova-reference-image-card div {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.nova-reference-image-card strong {
  display: block;
  max-width: 620px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.94;
}

.nova-reference-image-card p {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.nova-testimonials {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(89, 183, 255, 0.16), rgba(255, 207, 90, 0.12)),
    #101211;
}

.nova-testimonials > .nova-section-title,
.nova-testimonials > .nova-testimonial-grid {
  display: none;
}

.nova-review-premium {
  display: grid;
  gap: 28px;
}

.nova-review-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 24px;
  align-items: end;
}

.nova-review-head h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.94;
}

.nova-review-score {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 207, 90, 0.18), rgba(191, 240, 90, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.nova-review-score span,
.nova-review-featured > span,
.nova-review-stack span {
  color: #ffcf5a;
  font-size: 18px;
}

.nova-review-score strong {
  color: #ffffff;
  font-size: clamp(54px, 7vw, 86px);
  line-height: 0.9;
}

.nova-review-score small {
  color: rgba(255, 255, 255, 0.6);
}

.nova-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.nova-review-featured,
.nova-review-stack article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nova-review-featured {
  min-height: 520px;
  display: grid;
  align-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(89, 183, 255, 0.16), rgba(191, 240, 90, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.nova-review-featured p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 850;
}

.nova-review-featured strong,
.nova-review-stack strong {
  display: block;
  color: #ffffff;
}

.nova-review-featured small,
.nova-review-stack small {
  color: rgba(255, 255, 255, 0.58);
}

.nova-review-stack {
  display: grid;
  gap: 16px;
}

.nova-review-stack article {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.nova-review-stack p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.nova-review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nova-review-badges span {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.nova-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.nova-testimonial-grid article {
  min-height: 310px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nova-testimonial-grid article:nth-child(2) {
  background: rgba(191, 240, 90, 0.14);
}

.nova-testimonial-grid span {
  color: #ffcf5a;
  font-size: 18px;
}

.nova-testimonial-grid p {
  margin: 0;
  font-size: 19px;
}

.nova-testimonial-grid small {
  color: rgba(255, 255, 255, 0.56);
}

.nova-pricing {
  background: #fff7e6;
}

.nova-price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.nova-price-grid article {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(16, 18, 17, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.nova-price-grid article.is-featured {
  color: #ffffff;
  background: #123f3a;
}

.nova-price-grid h3,
.nova-price-grid p {
  margin: 0;
}

.nova-price-grid strong {
  font-size: clamp(34px, 4vw, 52px);
}

.nova-price-grid p {
  color: #5c6561;
}

.nova-price-grid article.is-featured p {
  color: rgba(255, 255, 255, 0.72);
}

.nova-contact {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(89, 183, 255, 0.28), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(255, 207, 90, 0.22), transparent 30%),
    linear-gradient(135deg, #101211, #143f3b 58%, #1f5f88);
}

.nova-contact p {
  color: rgba(255, 255, 255, 0.76);
}

.nova-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.nova-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, .9);
  font-weight: 800;
}

.nova-form input,
.nova-form textarea,
.nova-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 14px 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.nova-form select {
  color: #111d19;
  background: #fffdf7;
}

.nova-form select:focus,
.nova-form input:focus,
.nova-form textarea:focus {
  outline: 2px solid rgba(244, 184, 93, .72);
  outline-offset: 2px;
  border-color: rgba(244, 184, 93, .88);
}

.nova-form input::placeholder,
.nova-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.nova-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: clamp(54px, 7vw, 96px) clamp(18px, 5vw, 76px) 28px;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(191, 240, 90, 0.1), rgba(89, 183, 255, 0.12)),
    #101211;
}

.nova-footer p {
  max-width: 460px;
  line-height: 1.65;
}

.nova-footer-main {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.nova-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 22px;
}

.nova-footer nav {
  display: grid;
  gap: 10px;
}

.nova-footer nav strong {
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nova-footer nav a {
  color: rgba(255, 255, 255, 0.62);
}

.nova-footer nav a:hover {
  color: #ffffff;
}

.nova-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

@media (max-width: 980px) {
  .nova-header {
    grid-template-columns: 1fr auto;
  }

  .nova-nav {
    display: none;
  }

  .nova-hero {
    min-height: 880px;
    align-items: start;
  }

  .nova-hero-board {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 34px;
  }

  .nova-actions,
  .nova-studio,
  .nova-portal,
  .nova-contact,
  .nova-review-head,
  .nova-review-layout,
  .nova-showcase,
  .nova-reference-stats,
  .nova-reference-wall,
  .nova-testimonial-grid,
  .nova-price-grid,
  .nova-footer,
  .nova-footer-links,
  .nova-score-grid,
  .nova-interface-metrics {
    grid-template-columns: 1fr;
  }

  .nova-footer-bottom {
    display: grid;
  }

  .nova-service-list article {
    grid-template-columns: 1fr;
  }

  .nova-showcase-feature {
    grid-template-rows: minmax(300px, 46vh) auto;
  }

  .nova-browser {
    min-height: 300px;
  }

  .nova-case-card {
    min-height: 330px;
  }

  .nova-reference-wall {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .nova-reference-wall.is-text-only {
    grid-template-columns: 1fr;
  }

  .nova-reference-image-card,
  .nova-reference-image-card.is-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 340px;
  }

  .dashboard-overview-grid,
  .portal-review-grid {
    grid-template-columns: 1fr;
  }
}

.form-message {
  border: 1px solid rgba(31, 48, 45, 0.08);
  box-shadow: 0 12px 30px rgba(31, 48, 45, 0.08);
}

@media (max-width: 980px) {
  .portal-app-pro {
    grid-template-columns: 1fr;
  }

  .portal-app-pro .portal-app-sidebar {
    position: static;
    min-height: auto;
  }

  .portal-sidebar-user {
    display: none;
  }
}

@media (max-width: 640px) {
  .portal-app-hero,
  .dashboard-panel,
  .customer-card,
  .project-card,
  .invoice-card {
    border-radius: 18px;
  }

  .portal-hero-meta {
    justify-items: start;
    width: 100%;
  }
}

/* Studio OS: sharper CRM/ERP interface */
.portal-page-pro {
  --os-bg: #f4f6f3;
  --os-panel: #ffffff;
  --os-panel-soft: #f8faf7;
  --os-border: #dfe5dd;
  --os-border-strong: #c9d3c8;
  --os-text: #18211f;
  --os-muted: #66736e;
  --os-accent: #245f55;
  --os-accent-2: #b6812f;
  background: var(--os-bg);
}

.portal-app-pro {
  grid-template-columns: 268px minmax(0, 1fr);
}

.portal-app-pro .portal-app-sidebar {
  padding: 18px;
  border-right: 1px solid #13211e;
  background: #101a18;
  box-shadow: none;
}

.portal-app-pro .dashboard-brand {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.portal-app-pro .dashboard-brand .brand-logo {
  width: 38px;
  height: 38px;
}

.portal-app-pro .dashboard-brand span {
  font-size: 13px;
  letter-spacing: 0;
}

.portal-sidebar-user {
  margin: 16px 0 18px;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #162522;
}

.portal-sidebar-user strong {
  font-size: 14px;
}

.portal-app-pro .dashboard-nav {
  gap: 2px;
}

.portal-app-pro .dashboard-nav a {
  padding: 10px 11px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 760;
  transform: none;
}

.portal-app-pro .dashboard-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

.portal-app-pro .dashboard-nav a.is-current {
  border-color: rgba(255, 255, 255, 0.08);
  background: #f4f6f3;
  color: #101a18;
}

.portal-app-pro .logout-link {
  border-radius: 8px;
  background: transparent;
}

.portal-app-pro .portal-app-main {
  gap: 16px;
  padding: 22px;
}

.portal-app-hero {
  min-height: 0;
  padding: 18px 20px;
  border: 1px solid var(--os-border);
  border-radius: 10px;
  background: var(--os-panel);
  box-shadow: none;
}

.portal-app-hero h1 {
  color: var(--os-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.portal-app-hero p {
  display: none;
}

.portal-hero-meta {
  min-width: 142px;
  padding: 10px 12px;
  border-color: var(--os-border);
  border-radius: 8px;
  background: var(--os-panel-soft);
  justify-items: end;
}

.portal-hero-meta strong {
  color: var(--os-accent);
  font-size: 14px;
}

.dashboard-card,
.dashboard-metrics article,
.dashboard-panel,
.customer-card,
.project-card,
.invoice-card,
.record-item {
  border: 1px solid var(--os-border);
  border-radius: 10px;
  background: var(--os-panel);
  box-shadow: none;
}

.dashboard-card::before,
.dashboard-metrics article::before,
.customer-card::before,
.project-card::before,
.invoice-card::before {
  display: none;
}

.dashboard-overview-grid,
.customer-stats-grid-wide,
.project-stats-grid,
.invoice-stats-grid {
  gap: 10px;
}

.dashboard-card,
.dashboard-metrics article {
  padding: 15px 16px;
}

.dashboard-card span,
.dashboard-metrics span,
.dashboard-label {
  color: var(--os-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.dashboard-card strong,
.dashboard-metrics strong {
  margin-top: 8px;
  color: var(--os-text);
  font-size: clamp(22px, 2.2vw, 30px);
}

.dashboard-card p {
  margin-top: 6px;
  color: var(--os-muted);
}

.dashboard-panel {
  padding: 16px;
}

.panel-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom-color: var(--os-border);
}

.panel-head h2,
.panel-head h3 {
  color: var(--os-text);
  font-size: clamp(19px, 1.6vw, 24px);
}

.panel-head > span,
.role-badge {
  min-height: 30px;
  padding: 0 10px;
  border-color: var(--os-border);
  border-radius: 7px;
  background: var(--os-panel-soft);
  color: var(--os-muted);
  font-size: 12px;
}

.inline-form {
  gap: 10px;
  padding: 12px;
  border-color: var(--os-border);
  border-radius: 8px;
  background: var(--os-panel-soft);
}

.inline-form label {
  font-size: 12px;
}

input,
select,
textarea {
  min-height: 40px;
  border-color: var(--os-border-strong);
  border-radius: 7px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(36, 95, 85, 0.16);
  border-color: var(--os-accent);
}

.button,
.mini-button {
  min-height: 38px;
  border-radius: 7px;
  box-shadow: none;
}

.button-primary,
.mini-button {
  background: var(--os-accent);
}

.mini-button-light {
  border-color: var(--os-border);
  background: var(--os-panel-soft);
  color: var(--os-text);
}

.customer-list,
.project-list,
.invoice-list,
.record-list {
  gap: 8px;
}

.customer-card,
.project-card,
.invoice-card {
  gap: 12px;
  padding: 14px 16px;
}

.customer-card-head,
.project-card-head,
.invoice-card-head {
  align-items: center;
}

.customer-card-head strong,
.project-card-head strong,
.invoice-card-head strong {
  color: var(--os-text);
  font-size: clamp(17px, 1.45vw, 22px);
}

.customer-card-head span,
.project-card-head span,
.invoice-card-head span {
  color: var(--os-muted);
}

.customer-meta {
  gap: 6px;
}

.customer-meta span,
.project-progress-number,
.invoice-amount {
  padding: 6px 8px;
  border: 1px solid var(--os-border);
  border-radius: 7px;
  background: var(--os-panel-soft);
  color: var(--os-text);
  font-size: 12px;
}

.customer-meta-strong span:first-child {
  border-color: #e1c895;
  background: #fff8e7;
  color: #775316;
}

.customer-finance-strip,
.customer-info-grid-wide,
.project-info-grid,
.project-info-grid-wide,
.invoice-info-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: var(--os-border);
}

.customer-finance-strip div,
.customer-info-grid div,
.project-info-grid div,
.invoice-info-grid div,
.data-table div {
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.customer-finance-strip span,
.customer-info-grid span,
.project-info-grid span,
.invoice-info-grid span {
  color: var(--os-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-finance-strip strong,
.customer-info-grid strong,
.project-info-grid strong,
.invoice-info-grid strong {
  color: var(--os-text);
  font-size: 13px;
}

.customer-finance-strip strong {
  font-size: 17px;
}

.customer-action-row {
  padding-top: 2px;
}

.customer-crm-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.customer-crm-card > .customer-card-head,
.customer-crm-card > .customer-action-row,
.customer-crm-card > details {
  grid-column: 1 / -1;
}

.customer-crm-card > .customer-finance-strip,
.customer-crm-card > .customer-info-grid {
  grid-column: auto;
}

.customer-finance-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.customer-toolbar,
.project-toolbar,
.invoice-toolbar {
  padding: 10px;
  border: 1px solid var(--os-border);
  border-radius: 10px;
  background: var(--os-panel-soft);
}

.customer-edit,
.project-edit,
.invoice-edit {
  padding-top: 10px;
  border-top: 1px solid var(--os-border);
}

.customer-edit summary,
.project-edit summary,
.invoice-edit summary {
  color: var(--os-accent);
  font-size: 13px;
}

.credit-history {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: var(--os-border);
}

.credit-history div {
  padding: 9px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.record-item {
  padding: 12px 14px;
  border-radius: 8px;
}

.record-item-pro:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--os-border-strong);
}

.progress-track {
  height: 7px;
  background: #e5ebe3;
}

.progress-track span {
  background: var(--os-accent);
}

.lead-message {
  border-color: var(--os-border);
  border-radius: 8px;
  background: var(--os-panel-soft);
}

.portal-mobile-nav a {
  border-radius: 7px;
}

@media (max-width: 980px) {
  .portal-app-pro .portal-app-sidebar {
    border-right: 0;
  }

  .customer-crm-card {
    grid-template-columns: 1fr;
  }

  .customer-crm-card > .customer-finance-strip,
  .customer-crm-card > .customer-info-grid {
    grid-column: 1 / -1;
  }
}

/* Final responsive layer: active desktop/tablet/mobile layouts */
.nova-shell,
.portal-app-pro,
.linkus-page {
  width: 100%;
  overflow-x: hidden;
}

.nova-seo {
  padding: 92px 6vw;
  background:
    linear-gradient(135deg, rgba(250, 246, 237, .96), rgba(236, 245, 241, .94)),
    #f6f1e8;
  color: #17231f;
}

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

.nova-seo-grid article {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(23, 35, 31, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 22px 60px rgba(23, 35, 31, .08);
}

.nova-seo-grid h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.nova-seo-grid p {
  margin: 0;
  color: rgba(23, 35, 31, .72);
  line-height: 1.7;
}

.nova-trust,
.nova-process,
.nova-faq {
  padding: 78px 6vw;
  background: #f7f3ea;
  color: #17231f;
}

.nova-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 38px;
  padding-bottom: 38px;
}

.nova-trust article,
.nova-process-grid article,
.nova-faq details,
.service-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(23, 35, 31, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 48px rgba(23, 35, 31, .07);
}

.nova-trust strong {
  display: block;
  margin-bottom: 8px;
  color: #d99031;
  font-size: 34px;
  line-height: 1;
}

.nova-trust span,
.nova-process-grid span,
.service-grid span {
  display: block;
  color: #17231f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nova-trust p,
.nova-process-grid p,
.nova-faq p,
.service-grid p {
  margin: 12px 0 0;
  color: rgba(23, 35, 31, .68);
  line-height: 1.7;
}

.nova-process {
  background:
    linear-gradient(135deg, rgba(20, 39, 34, .98), rgba(31, 67, 58, .98));
  color: #fff;
}

.nova-process .nova-section-title h2,
.nova-process .nova-section-title p {
  color: #fff;
}

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

.nova-process-grid article {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}

.nova-process-grid span {
  color: #f4b85d;
}

.nova-process-grid h3,
.service-grid h2 {
  margin: 12px 0 0;
  font-size: 25px;
}

.nova-process-grid p {
  color: rgba(255, 255, 255, .74);
}

.nova-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.nova-service-links a {
  padding: 10px 13px;
  border: 1px solid rgba(23, 35, 31, .14);
  border-radius: 999px;
  color: #17231f;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, .72);
}

.nova-faq {
  background: #fffdf7;
}

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

.nova-faq summary {
  cursor: pointer;
  color: #17231f;
  font-size: 20px;
  font-weight: 900;
}

.nova-form-pro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nova-form-pro .full-row,
.settings-form .full-row {
  grid-column: 1 / -1;
}

.service-page {
  min-height: 100vh;
  padding-top: 82px;
  background: #f7f3ea;
  color: #17231f;
}

.service-hero {
  width: 100%;
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) max(22px, calc((100vw - 1180px) / 2)) clamp(70px, 8vw, 112px);
  background:
    radial-gradient(circle at 72% 18%, rgba(244, 184, 93, .14), transparent 28%),
    linear-gradient(135deg, #142722 0%, #0f1f1b 58%, #1f433a 100%);
  color: #fff;
}

.service-hero h1 {
  max-width: 980px;
  margin: 12px 0 20px;
  color: #fff;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .92;
}

.service-hero p:not(.section-kicker) {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .76);
  font-size: 20px;
  line-height: 1.6;
}

.service-hero .button,
.service-hero .button-primary {
  border-color: rgba(244, 184, 93, .72);
  color: #16110a;
  background: linear-gradient(135deg, #ffd56d, #f4b85d);
  box-shadow: 0 18px 44px rgba(244, 184, 93, .18);
  text-decoration: none;
}

.service-hero .button:hover,
.service-hero .button-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, calc(100% - 44px));
  margin: -34px auto 0;
  padding-bottom: clamp(70px, 9vw, 118px);
}

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

.lead-meta-grid span {
  padding: 10px;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: var(--os-panel-soft);
  color: var(--os-muted);
  font-size: 13px;
}

.lead-meta-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--os-text);
  font-size: 11px;
  text-transform: uppercase;
}

.settings-form,
.settings-form fieldset {
  display: grid;
  gap: 14px;
}

.settings-form fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 20px;
  border: 1px solid var(--os-border);
  border-radius: 10px;
  background: var(--os-panel-soft);
}

.settings-form legend {
  padding: 0 8px;
  color: var(--os-accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.nova-reference-wall.is-text-only {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, .92fr));
}

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

.testimonial-edit-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) 90px 120px;
}

.linkus-banner-preview,
.linkus-banner-preview img,
.nova-interface,
.nova-reference,
.nova-price,
.portal-review-card,
.dashboard-card {
  min-width: 0;
}

@media (max-width: 1180px) {
  .nova-header {
    left: 22px;
    right: 22px;
    width: auto;
  }

  .nova-nav {
    display: none;
  }

  .nova-hero,
  .nova-studio,
  .nova-services,
  .nova-portal,
  .nova-references,
  .nova-testimonials,
  .nova-pricing,
  .nova-contact {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nova-hero {
    min-height: auto;
    padding-top: 132px;
  }

  .nova-hero-board {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 520px);
    margin-top: 28px;
  }

  .nova-studio,
  .nova-portal,
  .nova-contact,
  .nova-review-head,
  .nova-review-layout {
    grid-template-columns: 1fr;
  }

  .nova-reference-wall.is-text-only,
  .nova-reference-stats,
  .nova-testimonial-grid,
  .nova-price-grid,
  .nova-seo-grid,
  .nova-trust,
  .nova-process-grid,
  .nova-faq-grid,
  .service-grid,
  .nova-score-grid,
  .nova-interface-metrics,
  .portal-review-grid,
  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .portal-app-pro .portal-app-sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--os-border);
  }

  .portal-app-pro .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-app-pro .portal-app-main {
    padding: 22px;
  }

  .testimonial-edit-grid,
  .customer-crm-card,
  .project-edit,
  .invoice-edit,
  .legal-layout,
  .legal-layout-privacy,
  .settings-form fieldset,
  .linkus-copy-grid,
  .linkus-banner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nova-header {
    top: 10px;
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .nova-brand strong,
  .nova-pill,
  .nova-mini,
  .nova-kicker,
  .nova-section-title span,
  .nova-reference span,
  .nova-price-tag,
  .dashboard-card span,
  .portal-review-card span {
    overflow-wrap: anywhere;
  }

  .nova-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
  }

  .nova-brand strong {
    font-size: 14px;
  }

  .nova-header .nova-button {
    width: auto;
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }

  .nova-hero {
    padding: 108px 16px 52px;
  }

  .nova-hero-copy {
    max-width: none;
  }

  .nova-hero h1 {
    font-size: clamp(42px, 15vw, 66px);
    line-height: .9;
  }

  .nova-lead {
    font-size: 18px;
    line-height: 1.5;
  }

  .nova-pills,
  .nova-actions,
  .nova-hero-stats,
  .nova-interface-top,
  .nova-project-line,
  .nova-footer,
  .nova-footer-links,
  .nova-reference-stats,
  .nova-reference-wall.is-text-only,
  .nova-testimonial-grid,
  .nova-price-grid,
  .nova-seo-grid,
  .nova-trust,
  .nova-process-grid,
  .nova-faq-grid,
  .service-grid,
  .nova-score-grid,
  .nova-interface-metrics,
  .portal-review-grid,
  .dashboard-overview-grid,
  .testimonial-edit-grid {
    grid-template-columns: 1fr;
  }

  .nova-actions .nova-button,
  .nova-button {
    width: 100%;
    justify-content: center;
  }

  .nova-hero-board,
  .nova-interface,
  .nova-reference,
  .nova-price,
  .nova-contact-card,
  .nova-review-card,
  .dashboard-panel,
  .portal-review-card,
  .linkus-banner-card {
    border-radius: 18px;
  }

  .nova-hero-board {
    width: 100%;
    padding: 16px;
  }

  .nova-hero-board strong {
    font-size: 34px;
  }

  .nova-studio,
  .nova-services,
  .nova-trust,
  .nova-process,
  .nova-faq,
  .nova-portal,
  .nova-references,
  .nova-testimonials,
  .nova-pricing,
  .nova-contact {
    padding: 56px 16px;
  }

  .nova-section-title,
  .nova-review-head,
  .nova-contact {
    margin-bottom: 24px;
  }

  .nova-section-title h2,
  .nova-portal h2,
  .nova-contact h2,
  .nova-review-head h2 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: .95;
  }

  .nova-reference {
    min-height: auto;
    padding: 22px;
  }

  .nova-reference h3 {
    font-size: 25px;
  }

  .nova-price-main {
    font-size: 46px;
  }

  .portal-app-pro .portal-app-main {
    padding: 16px;
  }

  .portal-app-pro .dashboard-brand {
    align-items: center;
  }

  .portal-app-pro .dashboard-nav,
  .portal-mobile-nav {
    grid-template-columns: 1fr 1fr;
  }

  .panel-head,
  .testimonial-edit-head,
  .invoice-toolbar,
  .section-actions,
  .customer-actions,
  .project-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .panel-head .button,
  .testimonial-edit-head .button,
  .invoice-toolbar .button,
  .section-actions .button,
  .customer-actions .button,
  .project-actions .button {
    width: 100%;
    justify-content: center;
  }

  .dashboard-card,
  .portal-review-card,
  .record-item,
  .customer-crm-card {
    min-height: auto;
  }

  .linkus-hero {
    padding: 42px 16px 28px;
  }

  .linkus-hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .linkus-banner-preview {
    min-height: 150px;
  }

  .linkus-banner-preview.is-slim {
    min-height: 92px;
  }

  .linkus-banner-card textarea {
    min-height: 96px;
    font-size: 12px;
  }

  .legal-page {
    padding-top: 74px;
    background:
      linear-gradient(180deg, #142722 0, #142722 310px, #f5f1e9 310px, #f5f1e9 100%);
  }

  .legal-hero {
    padding: 52px 16px 28px;
  }

  .legal-hero h1 {
    font-size: clamp(42px, 16vw, 68px);
  }

  .legal-hero p:not(.section-kicker) {
    font-size: 17px;
  }

  .legal-layout {
    width: calc(100% - 32px);
    gap: 12px;
    padding-bottom: 62px;
  }

  .legal-panel {
    padding: 22px;
    border-radius: 18px;
  }

  .legal-panel h2 {
    font-size: 25px;
  }

  .legal-panel p {
    font-size: 16px;
  }

  .service-page {
    padding-top: 74px;
    background: #f7f3ea;
  }

  .service-hero {
    width: 100%;
    padding: 56px 16px 62px;
  }

  .service-hero h1 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .service-grid {
    width: calc(100% - 32px);
    margin-top: -24px;
    gap: 12px;
  }

  .nova-form-pro,
  .lead-meta-grid,
  .settings-form fieldset {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .nova-header {
    align-items: center;
  }

  .nova-brand div {
    display: none;
  }

  .nova-header .nova-button {
    padding: 0 11px;
  }

  .nova-hero h1 {
    font-size: clamp(38px, 17vw, 56px);
  }

  .nova-lead {
    font-size: 16px;
  }

  .nova-section-title h2,
  .nova-portal h2,
  .nova-contact h2,
  .nova-review-head h2 {
    font-size: clamp(31px, 12vw, 42px);
  }

  .nova-hero-board strong,
  .nova-price-main {
    font-size: 36px;
  }

  .portal-app-pro .dashboard-nav,
  .portal-mobile-nav {
    grid-template-columns: 1fr;
  }
}
