:root {
  --color-canvas: #f7f4ee;
  --color-panel: #f0ebe2;
  --color-mist: #dcebe7;
  --color-ink: #18232f;
  --color-muted: #64707d;
  --color-line: #ded6ca;
  --color-accent: #0f8f83;
  --color-accent-strong: #0b6f67;
  --color-ruby: #b7445c;
  --color-gold: #c8912d;
  --shadow-soft: 0 24px 80px rgba(24, 35, 47, 0.1);
  --site-header-height: 62px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-canvas);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

::selection {
  background: var(--color-accent);
  color: white;
}

.app-body {
  min-height: 100vh;
  background: var(--color-canvas);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--color-line);
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(18px);
}

.site-nav,
.hero-inner,
.apps-section {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.nav-links,
.pulse-heading,
.section-heading,
.filter-list,
.app-card-top,
.app-card-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  color: var(--color-ink);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  gap: 1.75rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-ink);
}

.nav-action {
  border-radius: 0.375rem;
  background: var(--color-accent);
  color: white;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 143, 131, 0.22);
  transition: background 0.2s ease;
}

.nav-action:hover {
  background: var(--color-accent-strong);
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0 0 auto;
  height: 18rem;
  background: linear-gradient(135deg, var(--color-mist), transparent 62%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  padding-block: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(24, 35, 47, 0.06);
}

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

h1 {
  max-width: 48rem;
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.pulse-panel {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.pulse-heading {
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.pulse-heading span:last-child {
  border-radius: 0.375rem;
  background: var(--color-mist);
  color: var(--color-accent);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.pulse-grid,
.app-grid {
  display: grid;
  gap: 1rem;
}

.pulse-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pulse-grid div {
  border-radius: 0.375rem;
  background: var(--color-panel);
  padding: 1rem;
}

.pulse-grid span,
.pulse-grid small {
  display: block;
}

.pulse-grid span {
  font-size: 1.5rem;
  font-weight: 750;
}

.pulse-grid small {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.apps-section {
  padding-bottom: 4rem;
}

.section-heading {
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-line);
  padding-top: 2rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 750;
}

.section-heading p {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.filter-list {
  gap: 0.5rem;
}

.filter-list span {
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  color: var(--color-muted);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-list .is-active {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: white;
}

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

.app-card {
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: white;
  padding: 1.25rem;
  box-shadow: 0 8px 22px rgba(24, 35, 47, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(24, 35, 47, 0.1);
}

.app-card-top,
.app-card-footer {
  justify-content: space-between;
  gap: 1rem;
}

.app-card-top {
  margin-bottom: 2rem;
}

.app-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 750;
}

.app-icon-teal {
  background: var(--color-accent);
}

.app-icon-ruby {
  background: var(--color-ruby);
}

.app-icon-gold {
  background: var(--color-gold);
}

.app-icon-ink {
  background: var(--color-ink);
}

.status-pill {
  border-radius: 0.375rem;
  background: var(--color-panel);
  color: var(--color-muted);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-card h3 {
  font-size: 1.125rem;
  font-weight: 750;
}

.app-card p {
  min-height: 3rem;
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.app-card-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.app-card-footer span:first-child {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.app-card-footer span:last-child {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 750;
}

@media (min-width: 48rem) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 5rem;
  }

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

@media (max-width: 47.9375rem) {
  .nav-links {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.welcome-page {
  display: grid;
  min-height: calc(100vh - 73px);
  place-content: center;
  gap: 1rem;
  text-align: center;
}

.welcome-page h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.welcome-page a {
  color: var(--color-accent);
  font-weight: 750;
}

.aero-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: calc(100dvh - var(--site-header-height));
  background: #f5f7f4;
}

.aero-sidebar {
  position: sticky;
  top: var(--site-header-height);
  align-self: start;
  display: flex;
  height: calc(100dvh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid #d8ded8;
  background: #10292c;
  color: white;
  padding: 1.25rem;
}

.aero-sidebar h1 {
  font-size: 2.2rem;
}

.aero-sidebar p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.aero-kicker {
  margin: 0 0 0.35rem;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aero-sidebar .aero-kicker {
  color: #8ddfd6;
}

.aero-tabs {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  flex: 1;
}

.aero-tabs button,
.secondary-action {
  border: 1px solid transparent;
  border-radius: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.aero-tabs button {
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  padding: 0.8rem 0.9rem;
  text-align: left;
}

.aero-tabs button:hover,
.aero-tabs button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.aero-workspace {
  min-width: 0;
  padding: 1rem 1.25rem 1.25rem;
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
}

.tool-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.aero-status,
.secondary-action {
  border-radius: 0.45rem;
  background: #dff4ed;
  color: #0f766e;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.aero-card-grid,
.result-grid,
.tool-split {
  display: grid;
  gap: 1rem;
}

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

.aero-card,
.mini-tool,
.metric-card,
.checklist-list,
.wb-layout {
  border: 1px solid #d8ded8;
  border-radius: 0.55rem;
  background: white;
  box-shadow: 0 10px 30px rgba(16, 41, 44, 0.06);
}

.aero-card {
  min-height: 11rem;
  cursor: pointer;
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 41, 44, 0.1);
}

.aero-card h3,
.mini-tool h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.aero-card p {
  margin-top: 0.75rem;
  color: #5e6f70;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

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

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

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

.tool-panel label,
.mini-tool label {
  display: grid;
  gap: 0.35rem;
  color: #425456;
  font-size: 0.85rem;
  font-weight: 750;
}

.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5d1;
  border-radius: 0.45rem;
  background: #fbfcfa;
  color: #10292c;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
}

.tool-panel input:focus,
.tool-panel select:focus,
.tool-panel textarea:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

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

.metric-card {
  padding: 1rem;
}

.metric-card span {
  display: block;
  color: #5e6f70;
  font-size: 0.85rem;
  font-weight: 750;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f766e;
  font-size: 2rem;
}

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

.mini-tool {
  padding: 1rem;
}

.mini-tool h3 {
  margin-bottom: 1rem;
}

.result-main {
  color: #0f766e;
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1.15;
}

.result-sub {
  margin-top: 0.35rem;
  color: #5e6f70;
  line-height: 1.45;
}

.checklist-list {
  overflow: hidden;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.secondary-action.primary {
  background: #0f766e;
  color: white;
}

.checklist-item {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  border-bottom: 1px solid #e6ebe7;
  cursor: pointer;
  padding: 0.9rem 1rem;
}

.checklist-item.is-hidden {
  border-bottom-style: dashed;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-item strong {
  color: #10292c;
}

.checklist-item span {
  color: #445b5d;
  font-weight: 750;
}

.checklist-item.is-hidden strong,
.checklist-item.is-hidden span {
  visibility: hidden;
}

.checklist-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.wb-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: 1rem;
  padding: 1rem;
}

.aero-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.aero-table th,
.aero-table td {
  border-bottom: 1px solid #e6ebe7;
  padding: 0.45rem;
  text-align: right;
}

.aero-table th:first-child,
.aero-table td:first-child {
  text-align: left;
}

.aero-table tr:last-child td {
  border-bottom: 0;
  font-weight: 850;
}

#wbCanvas {
  width: 100%;
  height: 24rem;
  border: 1px solid #e0e6e1;
  border-radius: 0.45rem;
  background: white;
}

.mini-tool.wide {
  grid-column: 1 / -1;
}

.profile-result-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.65fr) minmax(20rem, 1.35fr);
  gap: 1rem;
  margin-top: 1rem;
}

.profile-points {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.profile-point-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr 0.8fr auto;
  gap: 0.65rem;
  align-items: end;
  border: 1px solid #e0e6e1;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.profile-notes {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  color: #445b5d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-notes div {
  border-left: 3px solid #0f766e;
  background: #f0faf6;
  padding: 0.55rem 0.7rem;
}

#profileCanvas {
  width: 100%;
  height: 24rem;
  border: 1px solid #e0e6e1;
  border-radius: 0.45rem;
  background: white;
}

@media (max-width: 68rem) {
  .aero-shell {
    grid-template-columns: 1fr;
  }

  .aero-sidebar {
    position: static;
    height: auto;
    min-height: auto;
    gap: 1rem;
  }

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

  .aero-tabs button {
    text-align: center;
  }

  .aero-card-grid,
  .result-grid,
  .tool-split,
  .wb-layout,
  .profile-result-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 42rem) {
  .aero-workspace {
    padding: 0.85rem;
  }

  .aero-tabs,
  .tool-grid.two,
  .tool-grid.three,
  .tool-grid.four,
  .profile-point-row {
    grid-template-columns: 1fr;
  }

  .checklist-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
