:root {
  --bg: #edf1f3;
  --surface: #ffffff;
  --surface-muted: #f8faf9;
  --ink: #17201f;
  --muted: #64707d;
  --line: #d7dedf;
  --primary: #1f5d63;
  --primary-dark: #17383c;
  --accent: #b88a3d;
  --ivory: #f4efe4;
  --ivory-muted: #d9e2de;
  --heading-soft: #1a4142;
  --accent-soft: #fbf3df;
  --teal-soft: #e8f3f2;
  --danger: #b42318;
  --warning: #fff4bd;
  --shadow: 0 22px 60px rgba(19, 33, 34, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7f8f6 0, var(--bg) 310px),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 16px;
}

button:hover {
  background: #16484d;
}

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

.secondary {
  background: #e8eef4;
  color: var(--primary-dark);
}

.secondary:hover {
  background: #d7e2eb;
}

.danger {
  background: #fee4e2;
  color: var(--danger);
}

.danger:hover {
  background: #fecdca;
}

.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.link-button {
  width: fit-content;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--primary);
}

.link-button:hover {
  background: transparent;
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.padded {
  padding: 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-switcher {
  position: fixed;
  z-index: 50;
  top: 14px;
  right: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(215, 222, 223, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(16, 25, 24, 0.14);
  padding: 5px 7px 5px 12px;
  backdrop-filter: blur(12px);
}

.language-switcher span {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-switcher select {
  width: auto;
  min-width: 68px;
  height: 32px;
  border-radius: 999px;
  padding: 0 24px 0 10px;
}

body.app-active .language-switcher {
  right: 294px;
}

.landing-page {
  min-height: 100vh;
  background: #f7f8f6;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  align-items: start;
  color: #fff;
  padding: 92px clamp(20px, 5vw, 72px) 64px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.92;
  mix-blend-mode: screen;
  pointer-events: none;
}

.landing-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 20, 20, 0.94) 0%, rgba(12, 20, 20, 0.72) 46%, rgba(12, 20, 20, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 20, 20, 0.18), rgba(12, 20, 20, 0.82));
  pointer-events: none;
  z-index: 1;
}

.landing-nav {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px max(216px, clamp(20px, 5vw, 72px)) 22px clamp(20px, 5vw, 72px);
}

.brand.dark {
  color: #fff;
}

.brand.dark small {
  color: #d6ded9;
}

.brand-link {
  width: auto;
  min-height: auto;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.brand-link:hover {
  background: transparent;
}

.landing-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  gap: 12px;
}

.landing-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid rgba(240, 207, 139, 0.24);
  border-radius: 999px;
  background: rgba(240, 207, 139, 0.09);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  color: #eadfc8;
  font-size: 1rem;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.landing-actions a:hover {
  border-color: rgba(240, 207, 139, 0.48);
  background: rgba(240, 207, 139, 0.16);
  color: #fff1cf;
}

.landing-actions button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 1rem;
}

.landing-actions button.ghost {
  border-color: rgba(240, 207, 139, 0.3);
  background: rgba(240, 207, 139, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(300px, 0.44fr);
  gap: clamp(28px, 7vw, 120px);
  align-items: end;
  align-self: start;
  width: 100%;
  padding-top: clamp(10px, 3vh, 34px);
}

.hero-content {
  max-width: 880px;
}

.hero-content .eyebrow {
  color: #e5c27a;
}

.hero-content h1 {
  margin: 0;
  max-width: 880px;
  color: var(--ivory);
  font-size: clamp(2.55rem, 4vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.hero-content h1 span {
  display: block;
}

.hero-content h1 .no-break {
  white-space: nowrap;
}

.hero-content p {
  max-width: 600px;
  margin: 24px 0 30px;
  color: var(--ivory-muted);
  font-size: clamp(0.98rem, 1.22vw, 1.08rem);
  line-height: 1.68;
}

.hero-author {
  display: inline-grid;
  grid-template-columns: max-content minmax(0, auto);
  gap: 5px 14px;
  align-items: baseline;
  border: 1px solid rgba(240, 207, 139, 0.28);
  border-radius: 8px;
  background: rgba(12, 28, 26, 0.56);
  box-shadow: 0 16px 38px rgba(4, 12, 12, 0.22);
  color: #e6eee9;
  margin: -8px 0 26px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.hero-author span {
  color: #f0cf8b;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-author strong {
  color: var(--ivory);
  font-size: 1rem;
}

.hero-author em {
  color: #b9c9c4;
  font-style: normal;
  font-weight: 700;
}

.hero-actions button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  border: 1px solid rgba(240, 207, 139, 0.2);
  box-shadow: 0 16px 38px rgba(4, 12, 12, 0.28);
  font-size: 0.98rem;
  padding: 0 22px;
}

.hero-actions button:not(.ghost) {
  background: linear-gradient(135deg, #24747a, #1f5d63 46%, #b88a3d 160%);
}

.hero-actions .hero-tool-cta {
  min-height: 56px;
  border-color: rgba(240, 207, 139, 0.52);
  background:
    linear-gradient(135deg, #2a8b91 0%, #24747a 46%, #c49b58 118%);
  box-shadow: 0 20px 48px rgba(6, 24, 24, 0.36), 0 0 0 1px rgba(240, 207, 139, 0.14);
  font-size: 1.06rem;
  padding: 0 30px;
}

.hero-actions .hero-tool-cta:hover {
  background:
    linear-gradient(135deg, #31979d 0%, #24747a 42%, #d2aa67 118%);
}

.hero-actions button.ghost {
  border-color: rgba(240, 207, 139, 0.42);
  background:
    linear-gradient(135deg, rgba(240, 207, 139, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(15, 29, 27, 0.74);
}

.hero-actions button::after,
.hero-proof span::after {
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 56%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  content: "";
  transform: skewX(-18deg);
  animation: hero-shine 4.8s ease-in-out infinite;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 139, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(240, 207, 139, 0.28), rgba(31, 93, 99, 0.38)),
    rgba(10, 25, 23, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.22);
  color: #fff6df;
  font-size: 0.94rem;
  font-weight: 900;
  padding: 10px 15px;
}

.hero-proof span:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(96, 166, 168, 0.42), rgba(240, 207, 139, 0.18)),
    rgba(10, 25, 23, 0.78);
}

.hero-proof span:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(184, 138, 61, 0.34), rgba(36, 116, 122, 0.34)),
    rgba(10, 25, 23, 0.78);
}

.hero-proof span:nth-child(2)::after {
  animation-delay: 0.8s;
}

.hero-proof span:nth-child(3)::after {
  animation-delay: 1.6s;
}

@keyframes hero-shine {
  0%,
  44% {
    left: -72%;
  }

  62%,
  100% {
    left: 128%;
  }
}

.hero-context-panel {
  display: grid;
  gap: 16px;
  transform: translateY(clamp(120px, 15vh, 176px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(13, 28, 27, 0.62);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.hero-context-panel > span {
  color: #f0cf8b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-context-panel > strong {
  color: var(--ivory);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.22;
}

.hero-context-panel div {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.hero-context-panel small:first-child {
  color: #d7e3df;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-context-panel small:last-child {
  color: #afbfba;
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-band {
  position: relative;
  overflow: hidden;
  padding: 34px clamp(20px, 5vw, 72px) 78px;
  background:
    linear-gradient(rgba(17, 42, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 42, 40, 0.035) 1px, transparent 1px),
    #f6f8f6;
  background-size: 42px 42px;
}

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

.metric-strip div {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: end;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(174, 188, 186, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(19, 38, 37, 0.08);
  padding: 18px 22px 20px;
}

.metric-strip div::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 4px;
  background: var(--accent);
  content: "";
}

.metric-strip small {
  color: #66807d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-strip strong {
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.92;
}

.metric-strip span {
  color: var(--muted);
  font-weight: 800;
}

.landing-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 0.7fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  margin-top: 72px;
}

.intro-copy {
  display: grid;
  max-width: 860px;
  gap: 24px;
}

.intro-kicker {
  width: fit-content;
  border: 1px solid rgba(31, 93, 99, 0.16);
  border-radius: 999px;
  background: rgba(31, 93, 99, 0.07);
  color: var(--primary-dark);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  padding: 8px 12px;
}

.landing-intro h2,
.section-lead h2,
.image-feature h2,
.diagnostics-band h2,
.report-preview-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--heading-soft);
  font-size: clamp(1.85rem, 3.45vw, 3.65rem);
  line-height: 1.08;
  text-wrap: balance;
}

.landing-intro .intro-copy > p:last-child,
.section-lead,
.image-feature-copy p,
.diagnostics-band p,
.report-preview-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.intro-visual {
  display: grid;
  gap: 20px;
  border: 1px solid rgba(198, 208, 205, 0.86);
  border-radius: 8px;
  background: #10201f;
  box-shadow: 0 28px 70px rgba(18, 37, 36, 0.18);
  padding: 24px;
  color: #f6f8f6;
}

.intro-visual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
}

.intro-visual-head span,
.intro-footer span {
  color: #c8d3cf;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-visual-head strong {
  max-width: 220px;
  color: #f0cf8b;
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: right;
}

.intro-workflow {
  display: grid;
  gap: 10px;
}

.intro-workflow span {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(240, 207, 139, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef4f1;
  font-weight: 800;
  padding: 0 14px 0 46px;
}

.intro-workflow span::before {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  border: 2px solid #f0cf8b;
  border-radius: 50%;
  content: "";
}

.intro-progress {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.intro-progress span {
  color: #eef4f1;
  font-size: 0.82rem;
  font-weight: 900;
}

.intro-progress i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0cf8b, rgba(240, 207, 139, 0.18));
}

.intro-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.image-feature,
.diagnostics-band,
.report-preview-band,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: 78px clamp(20px, 5vw, 72px);
}

.image-feature {
  background: #10201f;
  color: #fff;
}

.image-feature h2,
.image-feature .eyebrow {
  color: var(--ivory);
}

.image-feature-copy p,
.image-feature-copy li {
  color: #d6e0dc;
}

.image-feature-copy ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 18px;
}

.image-feature figure,
.diagnostics-band figure {
  margin: 0;
}

.image-feature img,
.diagnostics-band img,
.final-cta img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.image-feature figcaption {
  color: #b9c8c3;
  font-size: 0.86rem;
  margin-top: 10px;
}

.method-band,
.capability-band {
  padding: 82px clamp(20px, 5vw, 72px);
}

.method-band {
  background:
    linear-gradient(180deg, #f8faf9, #eef3f1);
}

.section-lead {
  max-width: 940px;
}

.section-lead .eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(31, 93, 99, 0.16);
  border-radius: 999px;
  background: rgba(31, 93, 99, 0.07);
  color: var(--primary-dark);
  font-size: clamp(0.84rem, 1vw, 0.96rem);
  padding: 8px 12px;
}

.section-lead h2 {
  max-width: 840px;
  font-size: clamp(1.9rem, 3.1vw, 3.2rem);
  line-height: 1.12;
}

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

.workflow-rail article {
  display: grid;
  gap: 14px;
  min-height: 340px;
  align-content: start;
  border: 1px solid rgba(185, 199, 196, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 55px rgba(17, 37, 35, 0.08);
  padding: 16px;
}

.workflow-rail span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-rail h3,
.solution-grid h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.workflow-rail p,
.solution-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.workflow-media {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #10201f;
  background-size: 18px 18px;
}

.workflow-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(16, 32, 31, 0.88));
  content: "";
}

.trace-media span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 999px;
  background: #f0cf8b;
  transform-origin: left center;
}

.trace-media span:nth-child(1) {
  top: 36px;
  width: 34%;
  transform: rotate(-8deg);
}

.trace-media span:nth-child(2) {
  top: 64px;
  width: 72%;
  background: #56a6a8;
  transform: rotate(6deg);
}

.trace-media span:nth-child(3) {
  top: 92px;
  width: 52%;
  transform: rotate(-4deg);
}

.response-media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  padding: 18px;
}

.response-media span {
  display: block;
  min-height: 34px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f0cf8b, #b88a3d);
}

.response-media span:nth-child(2) {
  min-height: 72px;
  background: linear-gradient(180deg, #78bdba, #1f5d63);
}

.response-media span:nth-child(3) {
  min-height: 52px;
}

.response-media span:nth-child(4) {
  min-height: 96px;
  background: linear-gradient(180deg, #78bdba, #1f5d63);
}

.vector-media span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 3px;
  border-radius: 999px;
  background: #f0cf8b;
  transform-origin: left center;
}

.vector-media span::after {
  position: absolute;
  right: -2px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #f0cf8b;
  border-right: 3px solid #f0cf8b;
  transform: rotate(45deg);
  content: "";
}

.vector-media span:nth-child(1) {
  transform: rotate(-28deg);
}

.vector-media span:nth-child(2) {
  width: 62px;
  background: #78bdba;
  transform: rotate(88deg);
}

.vector-media span:nth-child(2)::after {
  border-color: #78bdba;
}

.vector-media span:nth-child(3) {
  width: 48px;
  background: #d7e4e0;
  transform: rotate(205deg);
}

.vector-media span:nth-child(3)::after {
  border-color: #d7e4e0;
}

.report-media {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.report-media span {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.report-media span:nth-child(1) {
  width: 64%;
  height: 12px;
  background: #f0cf8b;
}

.report-media span:nth-child(2) {
  width: 88%;
  height: 44px;
  border-radius: 8px;
}

.report-media span:nth-child(3) {
  width: 46%;
  height: 12px;
  justify-self: end;
  background: #78bdba;
}

.capability-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.capability-showcase > div:last-child {
  display: grid;
  grid-template-columns: minmax(300px, 0.5fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
}

.capability-media {
  position: relative;
  height: clamp(260px, 24vw, 360px);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(15, 30, 29, 0.2);
}

.capability-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.9) contrast(1.06);
}

.capability-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 20, 0.08), rgba(10, 20, 20, 0.78)),
    linear-gradient(90deg, rgba(10, 20, 20, 0.26), transparent);
  content: "";
}

.media-overlay-card {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(560px, calc(100% - 48px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(16, 32, 31, 0.78);
  color: #fff;
  padding: 20px;
  backdrop-filter: blur(12px);
}

.media-overlay-card span {
  display: block;
  color: #f0cf8b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.media-overlay-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.25rem, 2.05vw, 1.9rem);
  line-height: 1.12;
}

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

.solution-grid article {
  display: grid;
  min-height: 230px;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(185, 199, 196, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(240, 207, 139, 0.08), transparent 42%),
    #fff;
  box-shadow: 0 18px 52px rgba(17, 37, 35, 0.07);
  padding: 24px;
}

.solution-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 138, 61, 0.36);
  border-radius: 8px;
  background: #10201f;
  color: #f0cf8b;
  font-weight: 900;
}

.diagnostics-band {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.86fr);
  background: #fff;
}

.diagnostics-console {
  display: grid;
  gap: 20px;
  border: 1px solid rgba(182, 197, 194, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(rgba(16, 32, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 31, 0.04) 1px, transparent 1px),
    #f8fbfa;
  background-size: 32px 32px;
  box-shadow: 0 30px 80px rgba(15, 30, 29, 0.12);
  padding: 24px;
}

.console-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 2.8fr;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #d8e3e0;
}

.console-toolbar span:nth-child(1) {
  background: #17383c;
}

.console-toolbar span:nth-child(2) {
  background: #b88a3d;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(190px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.console-vector,
.console-stack,
.console-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.console-vector {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, transparent 0 28%, rgba(31, 93, 99, 0.12) 29% 30%, transparent 31%),
    radial-gradient(circle at center, transparent 0 54%, rgba(31, 93, 99, 0.14) 55% 56%, transparent 57%),
    #fff;
}

.console-vector::before,
.console-vector::after {
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(31, 93, 99, 0.18);
  content: "";
  transform: translate(-50%, -50%);
}

.console-vector::before {
  width: 1px;
  height: 76%;
}

.console-vector::after {
  width: 76%;
  height: 1px;
}

.console-vector span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: #b88a3d;
  transform-origin: left center;
}

.console-vector span::after {
  position: absolute;
  right: -2px;
  top: -5px;
  width: 13px;
  height: 13px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  color: #b88a3d;
  content: "";
  transform: rotate(45deg);
}

.console-vector span:nth-child(1) {
  transform: rotate(-24deg);
}

.console-vector span:nth-child(2) {
  width: 54px;
  background: #1f5d63;
  transform: rotate(92deg);
}

.console-vector span:nth-child(2)::after {
  color: #1f5d63;
}

.console-vector span:nth-child(3) {
  width: 42px;
  background: #6f7f85;
  transform: rotate(210deg);
}

.console-vector span:nth-child(3)::after {
  color: #6f7f85;
}

.console-stack {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
}

.console-stack strong {
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.console-stack span {
  border-left: 4px solid var(--accent);
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 800;
  padding: 11px 12px;
}

.console-table {
  display: grid;
  grid-template-columns: 0.8fr repeat(2, 1fr);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.console-table span {
  min-height: 42px;
  background: #fff;
  color: #40534f;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px;
}

.console-table span:nth-child(-n + 3) {
  background: #eaf3f1;
  color: var(--primary-dark);
  font-weight: 900;
}

.data-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.data-panel div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 18px;
}

.data-panel strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.data-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.report-preview-band {
  background: #152524;
  color: #fff;
}

.report-preview-copy h2,
.report-preview-copy .eyebrow {
  color: var(--ivory);
}

.report-preview-copy p {
  color: var(--ivory-muted);
}

.report-preview-copy #landing-report-button {
  min-height: 54px;
  margin-top: 2px;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0 24px;
}

.report-preview {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #f9fbfa;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  padding: 20px;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: 1fr 0.35fr 2.5fr;
  gap: 0;
  overflow: hidden;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #dbe3e1;
}

.preview-toolbar span:nth-child(1) {
  background: #17383c;
}

.preview-toolbar span:nth-child(2) {
  background: #b88a3d;
}

.preview-toolbar span:nth-child(3) {
  background: #dbe3e1;
}

.preview-title {
  width: fit-content;
  margin-top: 22px;
  border-radius: 4px;
  background: #17383c;
  color: #fff;
  font-weight: 900;
  padding: 10px 16px;
}

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

.preview-kpis strong {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--primary-dark);
  padding: 14px;
}

.preview-charts {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
  margin-top: 18px;
}

.preview-polar,
.preview-bars {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.preview-polar {
  position: relative;
  min-height: 150px;
  background:
    radial-gradient(circle at center, transparent 0 29%, rgba(31, 93, 99, 0.16) 30% 31%, transparent 32%),
    radial-gradient(circle at center, transparent 0 58%, rgba(31, 93, 99, 0.16) 59% 60%, transparent 61%),
    #fff;
}

.preview-polar::before,
.preview-polar::after {
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(31, 93, 99, 0.2);
  content: "";
  transform: translate(-50%, -50%);
}

.preview-polar::before {
  width: 1px;
  height: 72%;
}

.preview-polar::after {
  width: 72%;
  height: 1px;
}

.preview-polar span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: #b88a3d;
  transform-origin: left center;
}

.preview-polar span::after {
  position: absolute;
  right: -2px;
  top: -5px;
  width: 13px;
  height: 13px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  color: #b88a3d;
  content: "";
  transform: rotate(45deg);
}

.preview-polar span:nth-child(1) {
  transform: rotate(-38deg);
}

.preview-polar span:nth-child(2) {
  width: 45px;
  background: #1f5d63;
  transform: rotate(112deg);
}

.preview-polar span:nth-child(2)::after {
  color: #1f5d63;
}

.preview-bars {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 16px;
}

.preview-bars div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
}

.preview-bars span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-bars i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f5d63, #b88a3d);
}

.preview-table {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.preview-table span {
  min-height: 48px;
  background: #fff;
  color: #30413e;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 14px;
}

.preview-table span:nth-child(-n + 3) {
  background: #edf4f3;
  color: var(--primary-dark);
  font-weight: 900;
}

.preview-signatures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
  margin-top: 38px;
}

.preview-signatures i {
  display: block;
  height: 70px;
  border-bottom: 1px solid #667;
}

.final-cta {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: #fff;
}

.final-cta img {
  position: absolute;
  inset: 0;
  height: 100%;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}

.final-cta::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 24, 23, 0.92), rgba(15, 24, 23, 0.42));
}

.final-cta div {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 680px;
  gap: 18px;
}

.final-cta h2,
.final-cta .eyebrow {
  color: var(--ivory);
}

.final-cta h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4.1vw, 3.8rem);
}

.final-cta p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #dce6e3;
  font-size: 1.08rem;
  line-height: 1.6;
}

.final-cta button {
  width: fit-content;
  min-height: 50px;
  margin-top: 8px;
  padding: 0 22px;
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
  gap: clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(240, 207, 139, 0.18);
  background:
    linear-gradient(135deg, rgba(31, 93, 99, 0.16), transparent 42%),
    #0d1716;
  color: #cbd8d4;
  padding: 42px clamp(20px, 5vw, 72px);
}

.landing-footer > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.landing-footer .brand {
  margin-bottom: 8px;
}

.landing-footer p {
  max-width: 360px;
  margin: 0;
  color: #aebfba;
  line-height: 1.6;
}

.landing-footer strong {
  color: #f0cf8b;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-footer a,
.landing-footer span {
  color: #d6e1dd;
  font-weight: 700;
  text-decoration: none;
}

.landing-footer a:hover {
  color: #f0cf8b;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #f7f8f6;
  padding: 82px clamp(20px, 5vw, 72px);
}

.contact-band h2 {
  margin: 0;
  color: var(--heading-soft);
  font-size: clamp(1.85rem, 3.45vw, 3.45rem);
  line-height: 1.08;
  text-wrap: balance;
}

.contact-band p {
  color: var(--muted);
  line-height: 1.72;
}

.company-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.company-info article {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.company-info article:hover,
.workflow-rail article:hover,
.solution-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 138, 61, 0.45);
  box-shadow: 0 22px 60px rgba(19, 33, 34, 0.12);
}

.company-info span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-info strong {
  display: block;
  margin-top: 12px;
  color: var(--primary-dark);
  font-size: 1.25rem;
  line-height: 1.28;
}

.contact-form {
  display: grid;
  min-height: 490px;
  align-content: start;
  gap: 20px;
  border: 1px solid rgba(184, 198, 195, 0.76);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 37, 35, 0.1);
  padding: 28px;
}

.contact-form-head {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.contact-form-head span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form-head strong {
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.18;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: #47615d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form textarea {
  resize: vertical;
  min-height: 188px;
}

.contact-form button {
  justify-self: start;
  min-height: 50px;
  margin-top: 4px;
  padding: 0 24px;
}

.reveal {
  transform: translateY(34px);
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 800ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(16, 25, 24, 0.86), rgba(31, 93, 99, 0.72)),
    #101918;
  padding: 24px;
}

.auth-card {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 240, 0.96)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

form {
  display: grid;
  gap: 14px;
}

label,
.field {
  display: grid;
  gap: 6px;
}

label span,
.field span {
  color: #3a4652;
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

input,
select {
  height: 40px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(30, 90, 120, 0.15);
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, #162629 0%, #101918 100%);
  color: #fff;
  padding: 20px;
}

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

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff9e9, #c49b58);
  color: #152524;
  font-weight: 900;
}

.brand small {
  display: block;
  color: #c7d5d2;
}

.sidebar h2 {
  margin: 10px 0;
  color: #efe4ca;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.reports-list {
  display: grid;
  gap: 8px;
}

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

.app-nav button {
  justify-content: flex-start;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e8f0ed;
  text-align: left;
}

.app-nav button.active {
  border-color: #d4b06a;
  background: rgba(184, 138, 61, 0.2);
  color: #fff7e8;
}

.report-item {
  display: grid;
  width: 100%;
  height: auto;
  gap: 4px;
  justify-items: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
  text-align: left;
}

.report-item span {
  color: #c7d5d2;
  font-size: 0.82rem;
  font-weight: 500;
}

.report-item.active {
  border-color: #d4b06a;
  background: rgba(184, 138, 61, 0.18);
}

.workspace {
  min-width: 0;
  background:
    linear-gradient(180deg, #eef3f4 0, #e8eef1 260px, var(--bg) 520px),
    var(--bg);
}

.app-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #b9c8cc;
  background:
    linear-gradient(180deg, #eaf2f3 0%, #dfeaec 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  padding: 12px 22px;
  backdrop-filter: blur(12px);
}

.app-header > div:first-child {
  min-width: 0;
}

.app-header .eyebrow {
  margin-bottom: 2px;
}

.app-header strong {
  color: var(--primary-dark);
}

.user-box {
  display: flex;
  min-width: 220px;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 56, 60, 0.08);
  padding: 8px 10px 8px 12px;
}

.user-box span {
  display: grid;
  min-width: 0;
  text-align: right;
}

.user-box small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.user-box strong {
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar {
  position: relative;
  z-index: 3;
  top: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #d4c5a9;
  background:
    linear-gradient(180deg, #fffaf0 0%, #f7edd9 100%);
  box-shadow:
    0 10px 22px rgba(75, 55, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  padding: 16px 22px;
  backdrop-filter: blur(10px);
}

.title-field input {
  border-color: #d6c8ad;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.actions {
  display: flex;
  gap: 8px;
}

.report-sheet {
  width: min(1500px, calc(100% - 32px));
  margin: 16px auto 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.page-panel {
  width: min(1500px, calc(100% - 32px));
  margin: 16px auto 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.page-heading {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 16px;
}

.page-heading h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.profile-grid article,
.insight-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 18px;
}

.profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.insight-panel,
.empty-state {
  margin-top: 16px;
}

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

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 16px;
}

.dashboard-chart-card .subhead strong {
  color: var(--primary-dark);
  font-size: 2rem;
}

.dashboard-line-chart {
  width: 100%;
  min-height: 220px;
  margin-top: 12px;
}

.dashboard-line-chart .grid-line {
  stroke: #dce5e3;
  stroke-width: 1;
}

.dashboard-line-chart .trend-area {
  fill: rgba(31, 93, 99, 0.12);
}

.dashboard-line-chart .trend-line {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dashboard-line-chart circle {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 3;
}

.dashboard-line-chart text {
  fill: #52615f;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-line-chart .value-label {
  fill: var(--primary-dark);
}

.donut-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}

.donut-chart {
  width: 164px;
  height: 164px;
}

.donut-base {
  fill: none;
  stroke: #e2e9e7;
  stroke-width: 24;
}

.donut-total {
  fill: var(--primary-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.donut-caption {
  fill: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.donut-legend {
  display: grid;
  gap: 9px;
}

.donut-legend span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #314344;
  padding: 7px 10px;
}

.donut-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.selected-row td {
  background: #fff8e8;
}

.selected-row .row-head {
  box-shadow: inset 4px 0 0 var(--accent);
}

.report-detail-panel {
  margin-top: 18px;
}

.report-detail-panel .subhead {
  align-items: start;
  gap: 18px;
}

.report-detail-panel h2 {
  margin: 0;
  color: var(--primary-dark);
}

.detail-grid {
  margin-top: 14px;
}

.detail-grid strong {
  font-size: 1.05rem;
}

.role-badge {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  border-radius: 999px;
  background: #e9eff1;
  color: #395053;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.role-badge.admin {
  background: var(--accent-soft);
  color: #7a531d;
}

.period-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.period-bar {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.period-bar span,
.period-bar strong {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.period-bar strong {
  text-align: right;
}

.period-bar div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecea;
}

.period-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.compact-table {
  margin-top: 8px;
}

.settings-panel {
  display: grid;
  gap: 14px;
}

.settings-textareas {
  align-items: stretch;
}

.table-link {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  text-align: left;
}

.table-link:hover {
  background: transparent;
  color: var(--primary-dark);
  text-decoration: underline;
}

.row-actions {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.icon-danger {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  background: #fff4f3;
  color: var(--danger);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.icon-danger:hover {
  background: #fee4e2;
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: rgba(9, 19, 20, 0.56);
  padding: 0;
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  max-height: min(86vh, 860px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(7, 19, 21, 0.32);
}

.modal-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
  padding: 18px 20px;
}

.modal-header h2 {
  margin: 0;
  color: var(--primary-dark);
}

.modal-body {
  overflow: auto;
  padding: 20px;
}

.report-detail-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-detail-hero article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.report-detail-hero span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-detail-hero strong {
  display: block;
  margin-top: 6px;
  color: var(--primary-dark);
  overflow-wrap: anywhere;
}

.report-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 16px;
}

.report-header h1 {
  margin: 0;
  font-size: 2rem;
}

.header-meta {
  color: var(--muted);
  text-align: right;
}

.panel {
  margin-top: 22px;
}

.section-title {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary-dark), #20545a);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 12px;
  text-transform: uppercase;
}

.form-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

#calculator-page #unit-system {
  min-width: min(100%, 320px);
}

#calculator-page #location,
#calculator-page #machine {
  min-width: min(100%, 260px);
}

#calculator-page #report-date {
  max-width: 180px;
}

#calculator-page #rotor-weight,
#calculator-page #speed-rpm,
#calculator-page .data-card input {
  max-width: 170px;
}

#radii-grid {
  margin-top: 16px;
}

.data-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, #ffffff, var(--surface-muted));
  padding: 12px;
}

.data-card h4 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.95rem;
  padding-bottom: 8px;
}

.trial-heading {
  margin: 18px 0 0;
  border-left: 4px solid var(--accent);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--teal-soft), rgba(232, 244, 241, 0.45));
  color: #124734;
  font-weight: 800;
  padding: 10px 12px;
}

.trial-input-block {
  margin-top: 18px;
}

.trial-config-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--teal-soft), rgba(232, 244, 241, 0.45));
  color: #124734;
  padding: 10px 12px;
}

.trial-config-header h3,
.trial-config-header p {
  margin: 0;
}

.trial-config-header h3 {
  font-size: 1rem;
}

.trial-config-header span {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.trial-config-eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trial-tab-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fbfdfc;
  padding: 10px;
}

.trial-tab {
  min-height: 34px;
  border: 1px solid #d5dfde;
  border-radius: 6px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 8px;
}

.trial-tab:hover {
  border-color: var(--primary);
}

.trial-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.reading-table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.reading-input-table {
  min-width: 760px;
  font-size: 0.84rem;
}

.reading-input-table th,
.reading-input-table td {
  padding: 6px 8px;
}

.reading-input-table .row-head {
  min-width: 128px;
}

.reading-input-table input,
.table-number-input {
  width: 118px;
  max-width: 118px;
  height: 34px;
  padding: 7px 9px;
  text-align: right;
}

.radius-input-table {
  table-layout: fixed;
  min-width: 760px;
}

.radius-input-table th,
.radius-input-table td {
  vertical-align: middle;
}

.radius-input-table thead tr:first-child th {
  background: var(--teal-soft);
  color: var(--primary-dark);
  font-weight: 900;
  text-align: left;
}

.radius-input-table .row-head {
  min-width: 86px;
}

.radius-input-table input {
  width: 100%;
  max-width: none;
}

.radius-input-table .empty-cell {
  background: #fbfcfc;
}

.trial-response-table {
  min-width: 430px;
}

.trial-run-table {
  table-layout: fixed;
  min-width: 680px;
}

.trial-run-table .trial-label-col {
  width: 37%;
}

.trial-run-table .trial-value-col {
  width: 31.5%;
}

.calibration-table-wrap {
  margin-top: 0;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.calibration-input-table {
  min-width: 680px;
}

.trial-input-block .reading-table-wrap + .reading-table-wrap {
  margin-top: 10px;
}

.center {
  margin-top: 18px;
  text-align: center;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.highlight-row td,
.highlight-row .row-head {
  background: #fff6bf;
}

.visual-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 0;
}

.visual-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 900;
  padding: 10px 12px;
  text-transform: uppercase;
}

.visual-details .visual-grid,
.visual-details .visual-card.wide {
  margin: 0 12px 12px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.visual-grid.three {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.visual-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #d7ded7;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 249, 0.96)),
    radial-gradient(circle at 20% 0, rgba(184, 138, 61, 0.13), transparent 34%);
  box-shadow: 0 16px 34px rgba(23, 56, 60, 0.08);
  padding: 14px;
}

.visual-card.wide {
  grid-template-columns: minmax(190px, 0.34fr) minmax(260px, 1fr);
  align-items: start;
  margin-top: 14px;
}

.chart-copy {
  display: grid;
  gap: 4px;
}

.chart-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chart-copy h4 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1rem;
}

.chart-copy span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.polar-chart {
  width: min(100%, 260px);
  height: auto;
  justify-self: center;
}

.polar-chart rect {
  fill: #fbfcfb;
  stroke: #d8e2df;
}

.polar-chart circle {
  fill: none;
  stroke: #d8e2df;
  stroke-width: 1;
}

.polar-chart .axis {
  stroke: #9ba8a5;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.polar-chart text {
  font-size: 0.72rem;
  font-weight: 800;
}

.polar-chart .axis-label {
  fill: #8a9693;
  font-size: 0.64rem;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chart-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #dde5e3;
  border-radius: 999px;
  background: #fff;
  color: #394746;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 8px;
}

.chart-legend i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.force-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.bar-row strong {
  color: var(--primary-dark);
  font-size: 0.84rem;
}

.bar-lines {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.bar-line {
  display: grid;
  grid-template-columns: 86px minmax(120px, 1fr) 86px;
  gap: 8px;
  align-items: center;
}

.bar-line span,
.bar-line em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.bar-line em {
  text-align: right;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecea;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.bar-fill.calibration {
  background: linear-gradient(90deg, #1f5d63, #3b8a91);
}

.bar-fill.correction {
  background: linear-gradient(90deg, #b88a3d, #d6ac61);
}

table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  font-size: 0.86rem;
}

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

th {
  background: #edf4f3;
  color: var(--primary-dark);
}

.row-head {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px;
  background: #fbfcfb;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.subhead {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.subhead h3 {
  margin: 0;
}

.trim-block {
  margin-top: 14px;
  border: 1px dashed #b9a471;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #fffdf8);
  padding: 14px;
}

.signature-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 80px;
  margin-top: 56px;
  text-align: center;
}

.signature-block h3 {
  margin-bottom: 80px;
  font-size: 1rem;
}

.signature-block p {
  color: var(--muted);
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  transform: translateY(16px);
  border-radius: 6px;
  background: #102f40;
  color: #fff;
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--danger);
}

@media (max-width: 900px) {
  .auth-card,
  .app-shell,
  .topbar {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .app-shell > *,
  .sidebar,
  .workspace,
  .workspace-page,
  .topbar,
  .title-field,
  .panel,
  .insight-panel,
  .empty-state {
    min-width: 0;
    max-width: 100%;
  }

  .app-shell {
    width: 100%;
    overflow-x: hidden;
  }

  .landing-hero {
    min-height: 88vh;
    padding-top: 120px;
  }

  .landing-nav {
    align-items: flex-start;
    gap: 12px;
    padding-right: 190px;
  }

  .landing-actions {
    justify-content: flex-end;
  }

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

  .hero-context-panel {
    transform: none;
  }

  .metric-strip,
  .landing-intro,
  .hero-layout,
  .image-feature,
  .diagnostics-band,
  .console-grid,
  .report-preview-band,
  .workflow-rail,
  .capability-showcase,
  .capability-showcase > div:last-child,
  .solution-grid,
  .final-cta,
  .contact-band,
  .company-info,
  .contact-fields,
  .visual-grid,
  .visual-grid.three,
  .visual-card.wide,
  .dashboard-chart-grid,
  .donut-layout,
  .admin-columns {
    grid-template-columns: 1fr;
  }

  .workflow-rail article,
  .solution-grid article {
    min-height: auto;
  }

  .capability-media,
  .capability-media img {
    min-height: 0;
  }

  .capability-media {
    height: clamp(240px, 48vw, 340px);
  }

  .diagnostics-console {
    padding: 18px;
  }

  .landing-actions a {
    display: none;
  }

  .image-feature img,
  .diagnostics-band img {
    min-height: 280px;
  }

  .sidebar {
    position: sticky;
    z-index: 8;
    top: 0;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px;
  }

  .topbar {
    position: relative;
    top: auto;
  }

  .app-header {
    position: relative;
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .language-switcher,
  body.app-active .language-switcher {
    top: auto;
    right: 12px;
    bottom: 12px;
  }

  .user-box {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .user-box span {
    text-align: left;
  }

  .actions {
    flex-wrap: wrap;
  }

  .app-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .app-nav button {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .sidebar > button {
    width: 100%;
  }

  .workspace {
    width: 100%;
  }

  .report-sheet,
  .page-panel {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 10px auto 28px;
    overflow: hidden;
    padding: 16px;
  }

  .report-header {
    display: grid;
  }

  .header-meta {
    text-align: left;
  }

  .bar-row,
  .bar-line,
  .period-bar {
    grid-template-columns: 1fr;
  }

  .bar-line em,
  .period-bar strong {
    text-align: left;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  button {
    width: 100%;
  }

  .app-nav button,
  .table-link,
  .link-button {
    width: auto;
  }

  .language-switcher {
    padding-left: 10px;
  }

  .language-switcher span {
    display: none;
  }

  .landing-hero {
    min-height: 92vh;
    padding: 104px 16px 44px;
  }

  .landing-nav {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .landing-actions a,
  .landing-actions button {
    justify-content: center;
    min-height: 44px;
    font-size: 0.94rem;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    padding: 34px 16px;
  }

  .landing-actions button,
  .hero-actions button {
    min-width: 0;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 10.5vw, 3rem);
  }

  .hero-content h1 .no-break {
    white-space: normal;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-context-panel {
    padding: 18px;
  }

  .intro-progress {
    grid-template-columns: 1fr;
  }

  .intro-progress i {
    width: 100%;
  }

  .landing-band,
  .image-feature,
  .method-band,
  .capability-band,
  .diagnostics-band,
  .report-preview-band,
  .final-cta,
  .contact-band {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .landing-intro h2,
  .section-lead h2,
  .image-feature h2,
  .diagnostics-band h2,
  .report-preview-copy h2,
  .final-cta h2,
  .contact-band h2 {
    font-size: clamp(1.45rem, 8vw, 2.15rem);
  }

  .report-preview {
    padding: 18px;
  }

  .preview-kpis,
  .preview-charts,
  .preview-table {
    grid-template-columns: 1fr;
  }

  .auth-screen {
    padding: 84px 14px 22px;
  }

  .auth-card {
    padding: 20px;
  }

  .sidebar {
    gap: 10px;
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }

  .app-header {
    display: grid;
    gap: 10px;
  }

  .app-header strong,
  .brand strong {
    overflow-wrap: anywhere;
  }

  .topbar {
    padding: 12px 14px;
  }

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

  .actions button {
    padding: 0 8px;
  }

  .report-sheet,
  .page-panel {
    width: calc(100% - 16px);
    border-radius: 6px;
    padding: 12px;
  }

  .report-header h1,
  .page-heading h1 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

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

  #calculator-page #report-date,
  #calculator-page #rotor-weight,
  #calculator-page #speed-rpm,
  #calculator-page #radii-grid input,
  #calculator-page .data-card input {
    max-width: none;
  }

  .profile-grid article,
  .insight-panel,
  .empty-state {
    padding: 14px;
  }

  .subhead,
  .report-detail-panel .subhead {
    display: grid;
    gap: 10px;
  }

  .visual-card {
    padding: 12px;
  }

  .polar-chart {
    width: min(100%, 220px);
  }

  .chart-legend {
    grid-template-columns: 1fr;
  }

  .signature-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .modal-shell {
    align-items: stretch;
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100vh - 20px);
  }

  .modal-header {
    display: grid;
    padding: 14px;
  }

  .modal-body {
    padding: 14px;
  }

  .report-detail-hero {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    justify-self: center;
  }

  .signature-block h3 {
    margin-bottom: 56px;
  }

  th,
  td {
    padding: 7px 8px;
  }

  .row-head {
    min-width: 140px;
  }
}

@media (max-width: 420px) {
  .actions {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .landing-actions {
    grid-template-columns: 1fr;
  }

  .app-nav button {
    min-width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions button::after,
  .hero-proof span::after {
    animation: none;
    display: none;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  body {
    background: #fff;
  }

  .no-print,
  .sidebar,
  .topbar,
  .toast,
  .landing-page,
  .auth-screen {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
    min-height: auto;
  }

  .report-sheet {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .panel,
  .trim-block,
  .signature-block {
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    font-size: 0.68rem;
  }

  th,
  td {
    padding: 4px;
  }
}
