:root {
  --ink: #14272d;
  --ink-soft: #4c6168;
  --petrol-950: #082f35;
  --petrol-900: #0a3c43;
  --petrol-800: #11515a;
  --petrol-700: #176672;
  --petrol-100: #dcebed;
  --petrol-50: #f1f7f7;
  --sage-700: #28735d;
  --sage-600: #34856d;
  --sage-100: #dff1e9;
  --amber-700: #8b5a16;
  --amber-100: #fff0d4;
  --red-700: #a43d46;
  --red-100: #fde8ea;
  --paper: #ffffff;
  --cloud: #f6f8f7;
  --line: #d9e2e1;
  --line-strong: #bdccca;
  --shadow-sm: 0 8px 24px rgba(8, 47, 53, 0.08);
  --shadow-lg: 0 24px 70px rgba(8, 47, 53, 0.14);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--petrol-700);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--petrol-950);
}

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

button,
.button {
  min-height: 2.875rem;
}

:focus-visible {
  outline: 3px solid #64c7aa;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--petrol-950);
  border-radius: 0.5rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 820px);
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section--soft {
  background: var(--cloud);
}

.section--tint {
  background: var(--petrol-50);
}

.section--dark {
  color: #eaf3f2;
  background: var(--petrol-950);
}

.section--dark h2,
.section--dark h3,
.section--dark .eyebrow {
  color: var(--paper);
}

.section--dark .section-intro,
.section--dark p {
  color: #c6d8d8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--petrol-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.25rem;
  height: 2px;
  content: "";
  background: var(--sage-600);
}

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

h1,
h2,
h3 {
  color: var(--petrol-950);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 5.3vw, 5.3rem);
  font-weight: 760;
}

h2 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 730;
}

h3 {
  font-size: 1.23rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 7vw, 6.5rem);
  align-items: end;
  margin-bottom: 3rem;
}

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

.section-intro {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button-row--center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--paper);
  background: var(--petrol-800);
  box-shadow: 0 9px 22px rgba(8, 47, 53, 0.18);
}

.button--primary:hover {
  color: var(--paper);
  background: var(--petrol-950);
}

.button--secondary {
  color: var(--petrol-950);
  background: transparent;
  border-color: var(--line-strong);
}

.button--secondary:hover {
  background: var(--paper);
  border-color: var(--petrol-700);
}

.button--light {
  color: var(--petrol-950);
  background: var(--paper);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 225, 0.85);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--petrol-950);
  font-weight: 820;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--paper);
  background: var(--petrol-900);
  border-radius: 0.65rem 0.65rem 0.65rem 0.2rem;
  font-size: 0.88rem;
  letter-spacing: -0.08em;
}

.brand-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a:not(.button) {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 680;
  text-decoration: none;
}

.nav-links a:not(.button):hover {
  color: var(--petrol-950);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--petrol-950);
  background: var(--paper);
  border-radius: 0.65rem;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.27rem auto;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 7.5rem);
  background:
    radial-gradient(circle at 88% 18%, rgba(52, 133, 109, 0.13), transparent 22rem),
    linear-gradient(180deg, #f9fbfa 0%, #ffffff 100%);
}

.hero::after {
  position: absolute;
  right: -6rem;
  bottom: -16rem;
  width: 34rem;
  height: 34rem;
  content: "";
  border: 1px solid rgba(23, 102, 114, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(23, 102, 114, 0.025), 0 0 0 8rem rgba(23, 102, 114, 0.018);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.92fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.23rem);
}

.hero-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.hero-note::before {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  margin-top: 0.43rem;
  content: "";
  background: var(--sage-600);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--sage-100);
}

.product-window {
  position: relative;
  padding: 0.8rem;
  background: #e8efee;
  border: 1px solid var(--line-strong);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.product-window::before {
  position: absolute;
  z-index: -1;
  right: -1.2rem;
  bottom: -1.2rem;
  width: 82%;
  height: 72%;
  content: "";
  background: var(--sage-100);
  border-radius: 1.6rem;
  transform: rotate(3deg);
}

.mock-app {
  overflow: hidden;
  background: var(--paper);
  border-radius: 1rem;
}

.mock-topbar {
  display: flex;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  color: #dcebea;
  background: var(--petrol-950);
}

.mock-topbar strong {
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.mock-dots {
  display: flex;
  gap: 0.3rem;
}

.mock-dots i {
  width: 0.38rem;
  height: 0.38rem;
  background: #6d9699;
  border-radius: 50%;
}

.mock-body {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  min-height: 360px;
}

.mock-sidebar {
  padding-top: 1rem;
  background: #eff4f3;
  border-right: 1px solid var(--line);
}

.mock-sidebar i {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 auto 1rem;
  background: #c9d9d7;
  border-radius: 0.4rem;
}

.mock-sidebar i:first-child {
  background: var(--petrol-700);
}

.mock-main {
  padding: 1.25rem;
}

.mock-title {
  width: 48%;
  height: 0.75rem;
  margin-bottom: 1.1rem;
  background: var(--petrol-950);
  border-radius: 99px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mock-kpi {
  padding: 0.75rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.mock-kpi small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.52rem;
}

.mock-kpi b {
  color: var(--petrol-950);
  font-size: 0.95rem;
}

.mock-chart {
  position: relative;
  display: flex;
  height: 112px;
  padding: 0.75rem 0.75rem 0;
  align-items: end;
  gap: 0.42rem;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.mock-chart i {
  width: 13%;
  background: var(--petrol-100);
  border-radius: 0.2rem 0.2rem 0 0;
}

.mock-chart i:nth-child(1) { height: 43%; }
.mock-chart i:nth-child(2) { height: 66%; }
.mock-chart i:nth-child(3) { height: 52%; }
.mock-chart i:nth-child(4) { height: 82%; }
.mock-chart i:nth-child(5) { height: 71%; }
.mock-chart i:nth-child(6) { height: 91%; }
.mock-chart i:nth-child(7) { height: 64%; }

.mock-chart i:nth-child(3n) {
  background: var(--sage-600);
}

.mock-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.mock-row {
  display: grid;
  grid-template-columns: 0.6rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.mock-row::before {
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  background: var(--sage-600);
  border-radius: 50%;
}

.mock-line {
  height: 0.45rem;
  background: #dae4e3;
  border-radius: 99px;
}

.mock-tag {
  width: 2.65rem;
  height: 0.85rem;
  background: var(--sage-100);
  border-radius: 99px;
}

.trust-strip {
  padding: 1rem 0;
  color: var(--ink-soft);
  background: var(--petrol-950);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #dce8e7;
  font-size: 0.86rem;
  font-weight: 650;
}

.trust-list li::before {
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  background: #72c7ad;
  border-radius: 50%;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 7rem;
}

.fragments {
  display: grid;
  gap: 0.8rem;
}

.fragment {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.fragment h3 {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--petrol-950);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.fragment p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.symbol {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: var(--petrol-800);
  background: var(--petrol-50);
  border: 1px solid var(--petrol-100);
  border-radius: 0.7rem;
  font-size: 0.82rem;
  font-weight: 850;
}

.value-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value-card {
  min-height: 230px;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.value-card:nth-child(2) {
  background: var(--petrol-950);
  border-color: var(--petrol-950);
  transform: translateY(-0.9rem);
}

.value-card:nth-child(2) h3,
.value-card:nth-child(2) p {
  color: var(--paper);
}

.value-index {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--sage-600);
  font-size: 0.8rem;
  font-weight: 800;
}

.value-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.flow-wrap {
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1rem;
}

.care-flow {
  display: grid;
  min-width: 1060px;
  grid-template-columns: repeat(11, minmax(76px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.care-flow li {
  position: relative;
  display: grid;
  min-height: 118px;
  padding: 0 0.55rem;
  place-items: center;
  color: var(--petrol-950);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
}

.care-flow li::before {
  display: grid;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  content: attr(data-step);
  place-items: center;
  color: var(--petrol-800);
  background: var(--paper);
  border: 2px solid var(--petrol-100);
  border-radius: 50%;
}

.care-flow li::after {
  position: absolute;
  z-index: 0;
  top: 2.65rem;
  right: -50%;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--petrol-100);
}

.care-flow li:last-child::after {
  display: none;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 680;
}

.status-pill::before {
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: var(--sage-600);
  border-radius: 50%;
}

.status-pill--pilot::before {
  background: var(--amber-700);
}

.status-pill--future::before {
  background: var(--line-strong);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.module-card {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.module-card .symbol {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.2rem;
  font-size: 0.7rem;
}

.module-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.module-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.52;
}

.role-tabs {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.tab-list {
  display: grid;
  gap: 0.55rem;
}

.tab-button {
  display: flex;
  width: 100%;
  padding: 1rem 1.1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  color: var(--petrol-950);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.tab-button::after {
  content: "→";
}

.tab-panel {
  min-height: 330px;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--paper);
  background: var(--petrol-950);
  border-radius: var(--radius-lg);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h3 {
  color: var(--paper);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.tab-panel > p {
  max-width: 48ch;
  color: #c7d9d8;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: inherit;
}

.check-list li::before {
  position: absolute;
  top: 0.28rem;
  left: 0;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  content: "✓";
  place-items: center;
  color: var(--petrol-950);
  background: #72c7ad;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.metrics-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.metric-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  background: #0d4148;
  border: 1px solid #1d5962;
  border-radius: var(--radius-md);
}

.metric-card {
  min-height: 116px;
  padding: 1rem;
  background: #0a353c;
  border: 1px solid #27575d;
  border-radius: 0.8rem;
}

.metric-card span {
  display: block;
  margin-bottom: 1rem;
  color: #bdd2d2;
  font-size: 0.78rem;
}

.metric-card strong {
  color: var(--paper);
  font-size: 1.1rem;
}

.metric-card small {
  display: block;
  margin-top: 0.15rem;
  color: #78c6b0;
}

.metric-note {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  color: #d6e4e3;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #72c7ad;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.88rem;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.security-card {
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.security-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.security-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.caution {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  color: #60471d;
  background: var(--amber-100);
  border: 1px solid #efd19a;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.caution::before {
  content: "●";
  color: var(--amber-700);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.fit-card {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius-md);
}

.fit-card--yes {
  color: var(--paper);
  background: var(--petrol-950);
}

.fit-card--yes h3 {
  color: var(--paper);
  font-size: 1.7rem;
}

.fit-card--no {
  background: var(--cloud);
  border: 1px solid var(--line);
}

.fit-card .check-list li {
  margin-bottom: 0.2rem;
}

.fit-card--no .check-list li::before {
  content: "–";
  color: var(--ink-soft);
  background: var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 1.25rem 3.5rem 1.25rem 0;
  color: var(--petrol-950);
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 1rem;
  right: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  content: "+";
  place-items: center;
  color: var(--petrol-800);
  background: var(--petrol-50);
  border-radius: 50%;
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  max-width: 74ch;
  padding: 0 3rem 1.25rem 0;
  color: var(--ink-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.demo-section {
  position: relative;
  overflow: hidden;
  background: var(--petrol-950);
}

.demo-section::before {
  position: absolute;
  top: -12rem;
  left: -10rem;
  width: 28rem;
  height: 28rem;
  content: "";
  border: 1px solid rgba(114, 199, 173, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(114, 199, 173, 0.025), 0 0 0 8rem rgba(114, 199, 173, 0.015);
}

.demo-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.demo-copy {
  position: sticky;
  top: 7rem;
}

.demo-copy h2 {
  color: var(--paper);
}

.demo-copy p {
  color: #c5d7d6;
}

.demo-form {
  padding: clamp(1.3rem, 4vw, 2.2rem);
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

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

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--petrol-950);
  font-size: 0.88rem;
  font-weight: 720;
}

fieldset.field {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.73rem 0.8rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--petrol-700);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px var(--red-100);
}

.field-help {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 680;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.checkbox-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--petrol-700);
}

.checkbox-field label {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 540;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.form-status {
  display: none;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  color: #7d252e;
  background: var(--red-100);
  border: 1px solid #efb8bd;
}

.form-status--info {
  color: #60471d;
  background: var(--amber-100);
  border: 1px solid #efd19a;
}

.form-status--success {
  color: #185a46;
  background: var(--sage-100);
  border: 1px solid #aad5c7;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: 1.2rem;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
}

.form-actions small {
  max-width: 38ch;
  color: var(--ink-soft);
}

.legal-banner {
  padding: 0.9rem 0;
  color: #60471d;
  background: var(--amber-100);
  border-bottom: 1px solid #efd19a;
  font-size: 0.88rem;
  font-weight: 760;
  text-align: center;
}

.legal-hero {
  padding: 4.5rem 0 3rem;
  background: var(--cloud);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.legal-hero p {
  max-width: 66ch;
  color: var(--ink-soft);
}

.legal-content {
  padding: 4rem 0 6rem;
}

.legal-content h2 {
  max-width: none;
  margin-top: 3rem;
  font-size: 1.6rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 2rem;
  font-size: 1.08rem;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.variable {
  display: inline-block;
  padding: 0 0.28rem;
  color: #6e4610;
  background: var(--amber-100);
  border-radius: 0.2rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

.confirmation,
.error-page {
  display: grid;
  min-height: calc(100vh - 9rem);
  padding: 4rem 1rem;
  place-items: center;
  text-align: center;
  background: var(--petrol-50);
}

.confirmation-card,
.error-card {
  width: min(100%, 680px);
  padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.confirmation-card .symbol,
.error-card .symbol {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.confirmation-card h1,
.error-card h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.confirmation-card p,
.error-card p {
  max-width: 55ch;
  margin-inline: auto;
  color: var(--ink-soft);
}

.site-footer {
  padding: 3.5rem 0 2rem;
  color: #c7d6d5;
  background: #062a30;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 0.65fr;
  gap: 2rem;
}

.site-footer .brand {
  margin-bottom: 1rem;
  color: var(--paper);
}

.site-footer p {
  max-width: 42ch;
  color: #aebfbe;
  font-size: 0.86rem;
}

.footer-heading {
  margin-bottom: 0.9rem;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #c7d6d5;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #92a9a8;
  border-top: 1px solid #24464b;
  font-size: 0.78rem;
}

.footer-bottom--compact {
  margin-top: 0;
}

.noscript-note {
  padding: 0.8rem 1rem;
  color: #60471d;
  background: var(--amber-100);
  text-align: center;
}

@media (max-width: 980px) {
  .nav-shell {
    min-height: 4.4rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 4.4rem 0 auto;
    display: none;
    max-height: calc(100vh - 4.4rem);
    padding: 1rem;
    overflow-y: auto;
    align-items: stretch;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a:not(.button) {
    min-height: 2.8rem;
    padding: 0.6rem;
  }

  .hero-grid,
  .problem-grid,
  .metrics-layout,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .product-window {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .sticky-copy,
  .demo-copy {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .section-heading,
  .role-tabs,
  .fit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1rem;
  }

  .value-panel {
    grid-template-columns: 1fr;
  }

  .value-card:nth-child(2) {
    transform: none;
  }

  .tab-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-button {
    min-height: 4rem;
  }

  .tab-button::after {
    display: none;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container,
  .narrow {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .button-row,
  .button-row .button,
  .form-actions,
  .form-actions .button {
    width: 100%;
  }

  .brand-label {
    max-width: 13rem;
  }

  .mock-body {
    grid-template-columns: 3rem 1fr;
    min-height: 300px;
  }

  .mock-main {
    padding: 0.8rem;
  }

  .mock-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .mock-kpi:last-child {
    display: none;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .tab-list {
    grid-template-columns: 1fr;
  }

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

  .metric-card {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button-row,
  .legal-banner {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .legal-content {
    padding: 0;
  }
}
