/* ============================================================
   omniOne: the application's building blocks on the public site.
   Shared by the start page and every product page: section head
   with the page-head tile, tab pills, segmented control, app view
   card with rows, phone frame, FAQ, closing call to action.
   Values come from the tokens in styles.css.
   ============================================================ */

/* ----------  Section head: the tile beside the heading, like a page head in the application  ---------- */
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 16px;
  max-width: 800px;
}
.sec-head h2,
.page-head h1,
.final-cta h2 {
  margin: 0;
  color: var(--c-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
.sec-head p,
.page-head .lede {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--c-600);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.62;
  text-wrap: pretty;
}
.tile {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--sky-bg);
  color: var(--action);
}
.tile svg { width: 23px; height: 23px; }
.ic { width: 16px; height: 16px; flex: none; }

/* ----------  Text link  ---------- */
.lnk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--action);
  font-weight: 600;
}
.lnk svg { width: 16px; height: 16px; transition: transform 150ms ease; }
.lnk:hover { color: var(--action-hover); }
.lnk:hover svg { transform: translateX(3px); }
.lnk:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

/* ----------  Copy beside an app view  ---------- */
.two {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}
/* The copy starts a little below the top of the view, at the same place on every tab. */
.two > .copy { padding-top: clamp(12px, 2.4vw, 36px); }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.copy h3 {
  margin: 0;
  color: var(--c-900);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.copy p { margin: 14px 0 0; color: var(--c-600); font-size: 1.02rem; line-height: 1.62; text-wrap: pretty; }

/* ----------  Pills: tabs and jump marks  ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-chip);
  color: var(--c-700);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.pill:hover { color: var(--c-900); }
.pill[aria-selected="true"],
.pill[aria-current="true"] { background: var(--action); color: var(--on-action); }
.pill:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.sec-head + .tabs { margin-top: 32px; }
.pills.swipe { gap: 6px; }
.pills.swipe .pill { gap: 6px; padding: 0 12px; }
.tab-panel { margin-top: 30px; scroll-margin-top: 150px; }
.tab-panel[hidden] { display: none; }
/* Without JavaScript every panel stands in the page, one under the other. */
.tabs:not([data-ready]) .tab-panel + .tab-panel { margin-top: 64px; }

/* ----------  A card of rows: the lists and tables of the site itself.
   A view of the application is no such card; it lives in app-frame.css and the kit files.  ---------- */
.av {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--frame);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--c-700);
  font-size: 0.9rem;
}
.rw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 10px 18px;
  border-top: 1px solid var(--rule);
}
.rw:first-child { border-top: 0; }
.rw > :last-child:not(:first-child) { flex: none; text-align: right; }
.rw b { color: var(--c-900); font-weight: 600; }
.stack { display: grid; gap: 2px; min-width: 0; }
.m { color: var(--c-500); font-size: 0.82rem; }
.rw-ic {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--tone-bg, var(--sky-bg));
  color: var(--tone, var(--action));
}
.rw-ic svg { width: 16px; height: 16px; }
.lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
a.rw { transition: background 150ms ease; }
a.rw:hover { background: var(--tone-fill); }
a.rw:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
a.rw > svg { width: 18px; height: 18px; color: var(--c-400); }

/* Status badge */
.bdg {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tone-bg, var(--quiet));
  color: var(--tone, var(--c-700));
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.rw-ic { font-size: 0.66rem; font-weight: 700; }

/* ----------  FAQ: one card of rows  ---------- */
.faq-wrap { max-width: 820px; margin-top: 36px; }
.faq-list {
  display: grid;
  padding: 6px 0;
  border: 1px solid var(--frame);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  color: var(--c-900);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid var(--c-500);
  border-bottom: 2px solid var(--c-500);
  transform: rotate(45deg);
  transition: transform 150ms ease, margin 150ms ease;
}
.faq-item[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; border-radius: 14px; }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { margin: 0; color: var(--c-600); line-height: 1.65; }
.faq-answer a { color: var(--action); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group-title { margin: 0 0 14px 4px; color: var(--c-900); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

/* ----------  Closing call to action: the one centred block besides the hero  ---------- */
.final-cta { max-width: 720px; margin-inline: auto; text-align: center; }
.final-cta h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
.final-cta > p { max-width: 560px; margin: 18px auto 0; color: var(--c-600); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.62; text-wrap: pretty; }
.final-cta .hero-actions { justify-content: center; }

/* ----------  Product page: page head, jump marks, sections  ---------- */
.page-head { padding: clamp(28px, 5vw, 60px) 0 0; }
.ph-line { display: flex; align-items: center; gap: 16px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; }
.page-head .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.page-head .hero-actions { margin-top: 26px; }
.page-head .hero-proof { margin-top: 18px; }
.anchors {
  position: sticky;
  top: 62px;
  z-index: 20;
  margin-top: 30px;
  padding: 10px 0;
  background: var(--page-bg);
}
.feat { padding: clamp(40px, 6vw, 84px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 130px; }
.anchors + .feat { border-top: 0; padding-top: clamp(28px, 4vw, 48px); }
/* A view that needs the whole width: the copy sits above it in one column, as wide as the view. */
.feat.wide { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 34px); }
.feat h2:where(:not(.app *)),
.block h2:where(:not(.app *)) {
  margin: 0;
  color: var(--c-900);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.feat p a:where(:not(.app *)) { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.feat p a:where(:not(.app *)):hover { color: var(--action-hover); }
.feat p:where(:not(.app *)) { margin: 14px 0 0; color: var(--c-600); font-size: 1.04rem; line-height: 1.64; text-wrap: pretty; }
/* What the colours of the dashboard mean: a dot in each status colour of the application. */
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--c-700); font-size: 0.94rem; line-height: 1.4; }
.legend li { display: inline-flex; align-items: center; gap: 9px; }
.legend li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.legend .is-critical { --dot: var(--tone-red); }
.legend .is-action { --dot: var(--amber); }
.legend .is-waiting { --dot: var(--sky); }
.legend .is-good { --dot: var(--green); }
.legend .is-neutral { --dot: var(--c-400); }
.block { padding: clamp(36px, 5vw, 64px) 0 0; }
.block-lede { max-width: 640px; margin: 12px 0 0; color: var(--c-600); font-size: 1.04rem; line-height: 1.6; }
.block .hero-actions { margin-top: 22px; }
.block h2.faq-group-title { margin: 0 0 16px; font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.faq-page .faq-wrap { margin-top: 0; }
.block .av,
.block .faq-wrap { max-width: 820px; margin-top: 20px; }
.views { display: grid; gap: 16px; min-width: 0; }

@media (max-width: 900px) {
  .two,
  .two.even { grid-template-columns: minmax(0, 1fr); }
  .two > .copy { padding-top: 0; }
}
@media (max-width: 720px) {
  /* The tab row swipes sideways on a phone, edge to edge. */
  .pills.swipe {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(50% - 50vw);
    padding: 4px calc(50vw - 50%);
    scrollbar-width: none;
  }
  .pills.swipe::-webkit-scrollbar { display: none; }
  .pills.swipe .pill { flex: none; }
  .anchors { top: 56px; }
}
@media (max-width: 560px) {
  .tile { width: 42px; height: 42px; border-radius: 13px; }
  .tile svg { width: 20px; height: 20px; }
  .sec-head { gap: 0 12px; }
  .ph-line { gap: 12px; }
  .rw { padding-inline: 14px; }
  .faq-list { border-radius: 18px; }
  .faq-item summary { padding: 16px 18px; font-size: 0.98rem; }
  .faq-answer { padding: 0 18px 18px; }
  .av { border-radius: 18px; }
}
