/* ===========================================================
   TRIVLA - Solutions page styles
   Builds on tokens.css + website.css + pricing.css
   =========================================================== */

/* ---------- audience cards ---------- */
.aud { padding: 50px 0 8px; }
.aud__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.audc {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px 30px 28px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.audc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent, var(--green-500)); opacity: .85;
}
.audc:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--ink-200); }
.audc__top { display: flex; align-items: center; gap: 14px; }
.audc__ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft, var(--green-50)); color: var(--accent, var(--green-600)); }
.audc__for { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-400); }
.audc__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink-900); margin-top: 2px; }
.audc__desc { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--ink-500); }
.audc__ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.audc__ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-700); line-height: 1.45; }
.audc__ul .ck { flex: none; width: 21px; height: 21px; border-radius: 6px; margin-top: 1px;
  background: var(--accent-soft, var(--green-50)); color: var(--accent, var(--green-600)); display: grid; place-items: center; }
.audc__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px; }
.audc__stat { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink-900); }
.audc__statl { font-size: 13px; color: var(--ink-400); }

/* ===========================================================
   HIGH-LEVEL ARCHITECTURE DIAGRAM
   =========================================================== */
.arch { padding: 96px 0 0; }
.arch__frame {
  margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(6,191,140,0.05), transparent 70%),
    var(--bg-soft);
  padding: 38px 34px 34px;
}
.arch__row {
  display: grid; grid-template-columns: 1fr 78px 1.28fr 78px 1fr; align-items: stretch; gap: 0;
}

/* a layered region (one of the three columns) */
.zone { display: flex; flex-direction: column; }
.zone__hd { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.zone__hd .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); flex: none; }
.zone__hd h4 { font-family: var(--font-display); font-size: 15px; color: var(--ink-800); white-space: nowrap; }
.zone__hd .tagm { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); }
.zone__box {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}

/* small node card inside a zone */
.node2 { display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.node2__ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft, var(--green-50)); color: var(--accent, var(--green-600)); }
.node2__t { font-weight: 700; font-size: 14px; color: var(--ink-800); }
.node2__s { font-size: 12px; color: var(--ink-400); margin-top: 1px; }

/* emphasized core */
.zone--core .zone__box {
  border-color: var(--green-300); background: linear-gradient(180deg, var(--green-50), #fff 60%);
  box-shadow: var(--sh-glow);
}
.zone--core .zone__hd .dot { background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
.zone--core .zone__hd h4 { color: var(--green-800); }
.core__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.core__mod { border: 1px solid var(--green-100); border-radius: var(--r-md); background: #fff;
  padding: 13px 13px; text-align: left; }
.core__mod .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  margin-bottom: 9px; }
.core__mod .t { font-weight: 700; font-size: 13.5px; color: var(--ink-900); }
.core__mod .s { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; line-height: 1.35; }
.core__base { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--green-700);
  background: var(--green-50); border: 1px dashed var(--green-200); border-radius: var(--r-sm); padding: 8px; }

/* connector columns between zones */
.conn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.conn__lane { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.conn__lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-400);
  text-transform: uppercase; white-space: nowrap; }
.conn__line { position: relative; width: 100%; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--green-400) 0 7px, transparent 7px 14px);
  background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .conn__line { animation: archflow 1.1s linear infinite; }
  .conn__line.rev { animation: archflow-rev 1.4s linear infinite; }
}
@keyframes archflow { to { background-position: 14px 0; } }
@keyframes archflow-rev { to { background-position: -14px 0; } }
.conn__line.muted { background: repeating-linear-gradient(90deg, var(--ink-300) 0 7px, transparent 7px 14px); }
.conn__line::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 7px solid var(--green-400); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.conn__line.muted::after { border-left-color: var(--ink-300); }
.conn__line.flip::after { right: auto; left: -1px; border-left: none;
  border-right: 7px solid var(--ink-300); }

/* legend under diagram */
.arch__legend { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-top: 30px;
  padding-top: 26px; border-top: 1px solid var(--line); }
.arch__legend .lg { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-500); }
.arch__legend .sw { width: 26px; height: 4px; border-radius: 3px; }
.arch__legend .sw.up { background: var(--green-500); }
.arch__legend .sw.down { background: var(--ink-300); }
.arch__legend .sw.out { background: linear-gradient(90deg, var(--green-500), var(--green-300)); }

/* ---------- data-flow steps ---------- */
.flow { padding: 96px 0 0; }
.flow__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; counter-reset: fl; }
.flowc { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.flowc__n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--green-600); }
.flowc__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-600);
  display: grid; place-items: center; margin: 12px 0 14px; }
.flowc h4 { font-family: var(--font-display); font-size: 17px; color: var(--ink-900); }
.flowc p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-500); }
.flowc:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -13px; width: 14px; height: 2px;
  background: var(--ink-200); z-index: 1;
}

@media (max-width: 980px) {
  .aud__grid { grid-template-columns: 1fr; }
  .arch__row { grid-template-columns: 1fr; gap: 14px; }
  .conn { flex-direction: row; min-height: 64px; }
  .conn__lane { flex-direction: row; gap: 10px; }
  .conn__line { width: 60px; height: 2px; }
  .arch__frame { padding: 26px 18px; }
  .flow__grid { grid-template-columns: 1fr 1fr; }
  .flowc:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .core__grid { grid-template-columns: 1fr; }
  .flow__grid { grid-template-columns: 1fr; }
}
