/* Actionia Web Contour — unified zones, access boundary, AIO lab */

:root {
  --bg: #f4efe6;
  --bg-strong: #ece3d4;
  --fg: #11202a;
  --muted: #59646e;
  --surface: rgba(255, 250, 242, 0.92);
  --surface-strong: rgba(255, 245, 233, 0.96);
  --line: rgba(17, 32, 42, 0.12);
  --line-strong: rgba(17, 32, 42, 0.24);
  --accent: #a04b26;
  --accent-soft: rgba(240, 215, 200, 0.92);
  --accent-ink: #6f3017;
  --success: #206a4e;
  --warning: #9e5b08;
  --danger: #8e3131;
  --info: #285f84;
  --shadow: 0 26px 70px rgba(17, 32, 42, 0.08);
  --radius: 28px;
  --radius-soft: 18px;
  --mono: "JetBrains Mono", "Fira Code", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(circle at 12% 8%, rgba(160, 75, 38, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(17, 32, 42, 0.08), transparent 20rem),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero,
.panel,
.matrix,
.notice,
.lab-shell,
.result-card,
.composer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  margin-bottom: 1.25rem;
  animation: rise 0.7s ease both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 75, 38, 0.16), transparent 68%);
  pointer-events: none;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kicker {
  background: rgba(17, 32, 42, 0.06);
  color: var(--accent-ink);
}

h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h2,
h3 {
  margin: 0 0 0.65rem;
}

.lede {
  max-width: 62rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.cta-row,
.nav,
.pill-row,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav {
  margin-top: 1.5rem;
}

.nav a,
.chip,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav a:hover,
.chip:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.nav a.active,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(17, 32, 42, 0.06);
  color: var(--fg);
}

.button.utility {
  background: transparent;
}

.grid,
.stats,
.lab-shell {
  display: grid;
  gap: 1rem;
}

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

.stats {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.panel,
.notice,
.matrix,
.composer,
.result-card {
  padding: 1.35rem;
}

.panel,
.notice,
.matrix,
.composer,
.result-card {
  animation: rise 0.7s ease both;
}

.grid > :nth-child(2),
.stats > :nth-child(2),
.lab-shell > :nth-child(2) {
  animation-delay: 0.06s;
}

.grid > :nth-child(3),
.stats > :nth-child(3) {
  animation-delay: 0.12s;
}

.panel p,
.panel li,
.notice p,
.notice li,
.matrix p,
.matrix li,
.composer p,
.result-card p {
  color: var(--muted);
  line-height: 1.6;
}

.panel ul,
.notice ul {
  margin: 0;
  padding-left: 1.1rem;
}

.meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.meta-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.meta-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.matrix {
  margin-top: 1rem;
  overflow-x: auto;
}

.matrix table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.matrix thead th {
  border-top: 0;
  font-size: 0.92rem;
  color: var(--accent-ink);
}

.matrix tbody tr:first-child td {
  border-top: 1px solid var(--line-strong);
}

.notice {
  margin-top: 1rem;
  background: var(--surface-strong);
}

.zone-list,
.flow-list,
.hint-list,
.route-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-item,
.flow-item,
.hint-item,
.route-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.zone-item strong,
.flow-item strong,
.hint-item strong,
.route-item strong {
  font-size: 0.98rem;
}

.pill-row {
  margin-top: 1rem;
}

.pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
}

.status-chip.ok,
.status-ok {
  color: var(--success);
}

.status-chip.warning,
.status-warning {
  color: var(--warning);
}

.status-chip.danger,
.status-danger {
  color: var(--danger);
}

.status-chip.info {
  color: var(--info);
}

.code {
  font-family: var(--mono);
  font-size: 0.92rem;
  background: rgba(17, 32, 42, 0.06);
  padding: 0.12rem 0.38rem;
  border-radius: 0.42rem;
}

.footer {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lab-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  padding: 1rem;
  align-items: start;
}

.composer {
  display: grid;
  gap: 1rem;
}

.composer textarea {
  width: 100%;
  min-height: 15rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--fg);
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.composer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(160, 75, 38, 0.12);
}

.composer .meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.examples button {
  cursor: pointer;
  font: inherit;
}

.results {
  display: grid;
  gap: 1rem;
}

.result-card {
  display: grid;
  gap: 0.7rem;
}

.result-card .value {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.result-card pre {
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(17, 32, 42, 0.05);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.accent-text {
  color: var(--accent-ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .lab-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100%, calc(100% - 1rem));
    padding-top: 1rem;
  }

  .hero,
  .panel,
  .matrix,
  .notice,
  .composer,
  .result-card {
    padding: 1.2rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.25rem);
  }

  .matrix table {
    min-width: 640px;
  }
}
