/* Sylaris One — how it works page (how-it-works/index.html). Loads after one.css. */

/* hero */
.hw-hero { padding: 160px 0 100px; }
.hw-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hw-hero .pill { cursor: default; }
.hw-hero .pill b { white-space: nowrap; }
.hw-hero h1 { max-width: 9.5em; }
.hw-hero .lead { margin-top: 24px; }
.hw-hero-shot { transform: rotate(1.2deg); }
@media (max-width: 960px) {
  .hw-hero-grid { grid-template-columns: 1fr; }
  .hw-hero-shot { transform: none; max-width: 640px; }
}
@media (max-width: 760px) { .hw-hero { padding: 132px 0 64px; } }

/* ---------- animated patient journey ---------- */
.flow { --cycle: 6.4s; position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; counter-reset: f; }
.flow::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; border-radius: 2px; background: #ffffff1f; }
.flow::after { content: ""; position: absolute; top: 20px; left: 0; width: 90px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--lime)); box-shadow: 0 0 18px #d7ff6299; opacity: 0; }
.flow.in-view::after { opacity: 1; animation: flow-x var(--cycle) linear infinite; }
@keyframes flow-x { from { left: 0; } to { left: calc(100% - 90px); } }
.flow li { position: relative; z-index: 1; display: grid; align-content: start; gap: 18px; }
.flow-dot { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff2e; border-radius: 50%; background: var(--black); color: var(--text-inv-3); font-family: var(--font-mono); font-size: .74rem; transition: background .3s, color .3s; }
.flow.in-view .flow-dot { animation: flow-node var(--cycle) infinite; animation-delay: calc(var(--i) * var(--cycle) / 8 + .3s); }
@keyframes flow-node {
  0%, 16% { border-color: var(--lime); background: var(--lime); color: var(--black); box-shadow: 0 0 0 6px #d7ff6224, 0 0 26px #d7ff6266; }
  30%, 100% { border-color: #d7ff6266; background: var(--black); color: #e6e9ed; box-shadow: none; }
}
.flow h3 { font-size: 1.02rem; letter-spacing: -0.03em; }
.flow p { margin-top: 8px; color: var(--text-inv-2); font-size: .86rem; line-height: 1.5; }
.flow-who { display: inline-block; margin-top: 12px; padding: 4px 9px; border-radius: 99px; background: #ffffff10; color: var(--lime); font-family: var(--font-mono); font-size: .66rem; line-height: 1.4; }
@media (max-width: 1100px) {
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 620px; }
  .flow::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .flow::after { top: 0; left: 20px; width: 4px; height: 90px; background: linear-gradient(180deg, transparent, var(--lime)); }
  .flow.in-view::after { animation-name: flow-y; }
  .flow li { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow h3 { margin-top: 11px; }
}
@keyframes flow-y { from { top: 0; } to { top: calc(100% - 90px); } }
@media (prefers-reduced-motion: reduce) {
  .flow.in-view::after { animation: none; opacity: 0; }
  .flow.in-view .flow-dot { animation: none; border-color: var(--lime); color: #fff; }
}

/* ---------- inside the system ---------- */
.inside-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .inside-grid { grid-template-columns: 1fr; } }
.inside-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-1); }
.inside-card figure { margin: 0; padding: 10px 10px 0; }
.inside-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 16px; background: var(--paper-2); }
.inside-card > div { padding: 22px 26px 28px; }
.inside-step { margin-bottom: 8px; color: var(--text-3); font-family: var(--font-mono); font-size: .74rem; }
.inside-card h3 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -0.03em; }
.inside-card p:not(.inside-step):not(.fine) { font-size: .95rem; }
.inside-card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.inside-card.is-wide figure { padding: 10px; }
.inside-card.is-wide > div { padding: 26px 36px 26px 20px; }
@media (max-width: 760px) {
  .inside-card.is-wide { grid-template-columns: 1fr; }
  .inside-card.is-wide figure { padding: 10px 10px 0; }
  .inside-card.is-wide > div { padding: 22px 26px 28px; }
}

/* ---------- responsibility matrix ---------- */
.rm-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 18px; font-size: .88rem; }
.rm-legend li { display: inline-flex; align-items: center; gap: 10px; }
.rm { display: inline-block; padding: 4px 10px; border-radius: 99px; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.rm-lead { background: var(--black); color: var(--lime); }
.rm-sup { border: 1px solid var(--line-2); background: #fff; color: var(--text-2); }
.rm-no { color: #8a919c; }
.rm-hint { display: none; margin-bottom: 10px; }
@media (max-width: 900px) { .rm-hint { display: block; } }
.rm-wrap { position: relative; box-shadow: var(--shadow-1); }
.rm-wrap:focus-visible { outline-offset: 2px; }
table.matrix { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .9rem; }
.matrix th, .matrix td { padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matrix thead th { color: var(--text); font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; text-align: center; background: #fbfbfa; }
.matrix thead th:first-child { text-align: left; }
.matrix tbody th { position: sticky; left: 0; z-index: 1; width: 30%; background: #fff; color: var(--text); font-weight: 500; text-align: left; line-height: 1.4; }
.matrix thead th:first-child { position: sticky; left: 0; z-index: 2; }
.matrix td { text-align: center; }
.matrix .c-you { background: #f8fde9; }
.matrix thead .c-you { background: var(--lime); color: var(--black); }
.matrix tr.is-clinical th::after { content: "Clinical"; display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: #e3f0ff; color: #0b3d75; font-size: .64rem; font-weight: 700; vertical-align: 1px; }
.matrix tr:last-child > * { border-bottom: 0; }
@media (max-width: 900px) { .matrix tbody th { box-shadow: 1px 0 0 var(--line); } }
.rm-note { max-width: 72ch; margin-top: 18px; }

/* ---------- trust ---------- */
.trust-grid .card h3 { margin-bottom: 10px; }

/* ---------- build to launch timeline ---------- */
.timeline { display: grid; margin-top: 32px; counter-reset: t; }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 24px 52px; }
.timeline li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: -4px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--text); font-family: var(--font-display); font-size: .82rem; font-weight: 700; }
.timeline li::after { content: ""; position: absolute; left: 17px; top: 30px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.is-live::before { content: "✓"; border-color: var(--black); background: var(--black); color: var(--lime); }
.timeline b { color: var(--text); font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.02em; }
.timeline span { font-size: .94rem; max-width: 52ch; }
.timeline a { color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  table.matrix { min-width: 700px; font-size: .82rem; }
  .matrix tbody th, .matrix thead th:first-child { width: 148px; min-width: 148px; padding: 12px 10px 12px 14px; }
  .matrix th, .matrix td { padding: 12px 8px; }
  .matrix tr.is-clinical th::after { display: block; width: fit-content; margin: 4px 0 0; }
}
