/* ==========================================================================
   PiPO HRIS — LAYER 08 · PLATFORM SECTION (Homepage Phase 3)
   Six pillars, one data layer. Tab semantics are real: role=tablist,
   arrow-key navigation, and every destination is a crawlable link.
   ========================================================================== */

.plat { background: #fff; position: relative; }
.plat__head { max-width: 780px; }
.plat__head h2 { margin-top: 1.1rem; }
.plat__head .lede { margin-top: 1.1rem; }

/* ── Tab rail ───────────────────────────────────────────────────────────── */
.plat__rail { margin-top: clamp(34px, 4vw, 56px); }
.plat__tabs {
  display: flex; gap: clamp(2px, .6vw, 10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.plat__tabs::-webkit-scrollbar { display: none; }
.ptab {
  position: relative; flex: none;
  display: inline-flex; align-items: baseline; gap: .5em;
  padding: .85em 1.05em 1.1em;
  background: none; border: 0; cursor: pointer;
  font-size: 1.02rem; font-weight: 500; letter-spacing: -.018em;
  color: var(--muted); white-space: nowrap;
  transition: color var(--t-fast) var(--e-out);
  min-height: 48px;
}
.ptab:hover { color: var(--ink); }
.ptab .n { font-family: var(--font-mono); font-size: .66rem; opacity: .55; }
.ptab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.ptab[aria-selected="true"]::after {
  content: ''; position: absolute; left: .7rem; right: .7rem; bottom: -1px;
  height: 2px; background: var(--emerald); border-radius: 2px;
}

/* the connected-platform signal, directly under the rail */
.plat__layer {
  display: flex; align-items: center; gap: .9rem;
  padding: .75rem .2rem 0;
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
}
.plat__layer i {
  flex: 1; height: 1px; display: block;
  background: var(--grad-pipo);
  opacity: .5;
}

/* ── Panels ─────────────────────────────────────────────────────────────── */
.ppanel { display: none; padding-top: clamp(30px, 3.6vw, 52px); }
.ppanel.on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ppanel.on { animation: pfade .32s var(--e-out); }
}
@keyframes pfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ppanel__grid { display: grid; grid-template-columns: 40fr 60fr; gap: clamp(28px, 3.6vw, 60px); align-items: center; }
@media (max-width: 1020px) { .ppanel__grid { grid-template-columns: 1fr; } }

.ppanel__label {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .4em .75em; border-radius: var(--r-xs);
  background: var(--emerald-tint); color: var(--emerald-700);
}
.ppanel[data-accent="violet"]  .ppanel__label { background: var(--st-info-bg); color: var(--indigo-deep); }
.ppanel[data-accent="magenta"] .ppanel__label { background: #FBECF5; color: var(--magenta); }
.ppanel[data-accent="teal"]    .ppanel__label { background: var(--teal-tint); color: var(--teal); }

.ppanel h3 { margin-top: 1.1rem; font-size: clamp(1.5rem, 2.3vw, 2.05rem); letter-spacing: -.032em; }
.ppanel__copy { margin-top: 1rem; font-size: 1.02rem; line-height: 1.65; color: var(--ink-3); max-width: 46ch; }

/* capabilities — a checklist, not six cards */
.pcaps { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.4rem; margin-top: 1.7rem; }
@media (max-width: 560px) { .pcaps { grid-template-columns: 1fr; } }
.pcaps li { display: flex; gap: .55rem; align-items: baseline; font-size: .94rem; color: var(--ink-2); }
.pcaps li::before {
  content: ''; width: 5px; height: 5px; border-radius: 1.5px; flex: none;
  background: var(--emerald); transform: translateY(-2px);
}
.ppanel[data-accent="violet"]  .pcaps li::before { background: var(--violet); }
.ppanel[data-accent="magenta"] .pcaps li::before { background: var(--magenta); }
.ppanel[data-accent="teal"]    .pcaps li::before { background: var(--teal); }

/* workflow microcopy */
.pflow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  margin-top: 1.7rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.pflow b { font-weight: 500; color: var(--ink-2); }
.pflow span { color: var(--muted-2); }

.ppanel .btn { margin-top: 1.7rem; }

/* ── Product surface ────────────────────────────────────────────────────── */
.psurface {
  background: #fff; border-radius: var(--r-shot);
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(11,26,22,.05), 0 26px 64px rgba(11,26,22,.11);
  overflow: hidden; font-size: 12px; color: var(--ink-2);
}
.psurface__bar { display: flex; align-items: center; gap: .5rem; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.psurface__bar .dots { display: flex; gap: 5px; }
.psurface__bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #D3DBD7; display: block; }
.psurface__bar .url { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); margin-inline: auto; }

/* the product's own top navigation, as it really is */
.psurface__nav { display: flex; gap: 2px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.psurface__nav span {
  padding: 9px 10px; font-size: 10.5px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.psurface__nav span.on { color: var(--emerald-700); border-bottom-color: var(--emerald); font-weight: 600; }

.psurface__body { padding: 16px 18px 20px; background: var(--paper); min-height: 320px; }
.psurface__crumb { font-size: 9.5px; color: var(--muted-2); font-family: var(--font-mono); letter-spacing: .04em; }
.psurface__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 5px 0 14px; }
.psurface__h h4, .psurface__h b { font-size: 15px; font-weight: 700; letter-spacing: -.024em; color: var(--ink); }
.psurface__h p { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.pbtn { font-size: 10.5px; font-weight: 600; padding: 7px 11px; border-radius: 7px; background: var(--emerald); color: #fff; white-space: nowrap; }
.pbtn--ghost { background: #fff; color: var(--ink-3); border: 1px solid var(--line); }

/* instruction strip — the product uses these a lot */
.pnote {
  background: #FDF9EC; border: 1px solid #F0E4C4; border-radius: 9px;
  padding: 9px 11px; font-size: 10px; line-height: 1.5; color: #7A6320;
  margin-bottom: 11px;
}
.pnote b { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; color: var(--st-warning-ink); }

/* stat tiles */
.ptiles { display: grid; gap: 8px; }
.ptiles--3 { grid-template-columns: repeat(3, 1fr); }
.ptiles--4 { grid-template-columns: repeat(4, 1fr); }
.ptiles--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 620px) { .ptiles--4, .ptiles--5 { grid-template-columns: repeat(2, 1fr); } }
.ptile { background: #fff; border: 1px solid var(--line-soft); border-radius: 9px; padding: 10px; text-align: center; }
.ptile .k { font-size: 9px; color: var(--muted); line-height: 1.3; }
.ptile .v { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); margin-top: 4px; line-height: 1; }
.ptile--on { border-color: rgba(8,127,91,.3); background: var(--emerald-tint); }
.ptile--on .v { color: var(--emerald-700); }

/* panel with rows */
.pcard { background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.pcard__h { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.pcard__h b { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.pcard__h span { font-family: var(--font-mono); font-size: 9px; color: var(--muted-2); letter-spacing: .06em; }
.pcard__tabs { display: flex; gap: 14px; padding: 0 12px; border-bottom: 1px solid var(--line-soft); }
.pcard__tabs i { font-style: normal; font-size: 10.5px; padding: 8px 0; color: var(--muted); border-bottom: 1.5px solid transparent; }
.pcard__tabs i.on { color: var(--emerald-700); border-color: var(--emerald); font-weight: 600; }

.prow { display: grid; gap: 8px; padding: 8px 12px; align-items: center; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.prow:last-child { border-bottom: 0; }
.prow.hd { background: var(--paper); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.prow .who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pav { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #fff; }
.prow b { font-weight: 600; color: var(--ink); }
.prow .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.ptag { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 100px; white-space: nowrap; }
.ptag::before { content: ''; width: 4.5px; height: 4.5px; border-radius: 50%; background: currentColor; }
.ptag--ok { background: var(--emerald-tint); color: var(--emerald-700); }
.ptag--wait { background: var(--st-warning-bg); color: var(--st-warning-ink); }
.ptag--info { background: var(--st-info-bg); color: var(--indigo-deep); }
.ptag--stop { background: var(--st-error-bg); color: var(--st-error); }

/* approval chain */
.pchain { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; margin-top: 10px; }
.pchain div { background: #fff; padding: 8px 12px; display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; font-size: 10.5px; color: var(--ink-3); }
.pchain .s { font-family: var(--font-mono); font-size: 9px; color: var(--muted-2); letter-spacing: .06em; }

/* mini bars */
.pbars { display: grid; gap: 7px; padding: 12px; }
.pbars > div { display: grid; grid-template-columns: 88px 1fr 38px; align-items: center; gap: 9px; font-size: 10.5px; color: var(--muted); }
.pbars i { height: 7px; border-radius: 4px; display: block; }
.pbars b { font-family: var(--font-mono); font-size: 10px; color: var(--ink); text-align: right; font-weight: 500; }

/* weighted scoring table */
.pscore { display: grid; gap: 1px; background: var(--line-soft); }
.pscore > div { background: #fff; display: grid; grid-template-columns: 1fr 54px 48px 54px; gap: 8px; padding: 8px 12px; font-size: 10.5px; align-items: center; }
.pscore .hd { background: var(--paper); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

/* ── Closing statement + architecture ───────────────────────────────────── */
.plat__close { margin-top: clamp(50px, 6vw, 88px); text-align: center; }
.plat__close h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); letter-spacing: -.034em; }
.plat__close p { margin: 1rem auto 0; max-width: 62ch; color: var(--muted); font-size: 1rem; }

.parch {
  margin-top: clamp(28px, 3.2vw, 44px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: #fff; padding: clamp(22px, 2.6vw, 36px);
}
.parch__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
@media (max-width: 760px) { .parch__row { grid-template-columns: repeat(3, 1fr); } }
.parch__row span {
  padding: 10px 6px; border-radius: var(--r-xs); text-align: center;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-soft);
}
.parch__core {
  margin: 12px 0; padding: 14px; border-radius: var(--r);
  background: linear-gradient(120deg, rgba(8,127,91,.1), rgba(63,50,141,.1));
  border: 1px solid rgba(8,127,91,.22);
  text-align: center;
}
.parch__core b { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -.022em; color: var(--ink); }
.parch__core span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.parch__row--roles span { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; font-size: .8rem; }
@media (max-width: 760px) { .parch__row--roles { grid-template-columns: repeat(3, 1fr); } }

.plat__foot { margin-top: 1.6rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); text-align: center; }

/* Roadmap marker — capability named on the site, not yet live in product */
.cap-soon {
  font-family: var(--font-mono); font-size: .56rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); border: 1px solid var(--line);
  border-radius: 4px; padding: .12em .4em; margin-left: .45em;
  vertical-align: 2px; white-space: nowrap;
}

/* ── Section 9 · product UI colour strategy ──────────────────────────────
   Core HR emerald · Payroll violet · Attendance emerald/teal ·
   Performance magenta/violet · Analytics emerald (violet and magenta appear
   in its charts) · Employee experience soft mint.
   Each panel publishes --acc / --acc-deep / --acc-tint; the mockup chrome
   below reads those instead of hardcoding emerald. */
.ppanel {
  --acc:      var(--emerald);
  --acc-deep: var(--emerald-700);
  --acc-tint: var(--emerald-tint);
  --acc-line: rgba(8,127,91,.30);
}
.ppanel[data-accent="violet"] {
  --acc: var(--violet); --acc-deep: var(--violet-deep);
  --acc-tint: var(--st-info-bg); --acc-line: rgba(63,50,141,.30);
}
.ppanel[data-accent="magenta"] {
  --acc: var(--magenta); --acc-deep: var(--magenta-deep);
  --acc-tint: var(--magenta-tint); --acc-line: rgba(153,42,144,.30);
}
.ppanel[data-accent="teal"] {
  --acc: var(--teal); --acc-deep: var(--teal-deep);
  --acc-tint: var(--teal-tint); --acc-line: rgba(11,140,120,.30);
}
.ppanel[data-accent="mint"] {
  --acc: var(--emerald); --acc-deep: var(--emerald-700);
  --acc-tint: var(--mist); --acc-line: rgba(19,185,129,.34);
}
/* mint reads through the surface, not the fill */
.ppanel[data-accent="mint"] .psurface__body { background: linear-gradient(180deg, var(--mist) 0%, #fff 34%); }

/* the mockup chrome now follows the module */
.ppanel .psurface__nav span.on { color: var(--acc-deep); border-bottom-color: var(--acc); }
.ppanel .pbtn                  { background: var(--acc); }
.ppanel .pbtn--ghost           { background: transparent; color: var(--acc-deep); border: 1px solid var(--acc-line); }
.ppanel .ptile--on             { border-color: var(--acc-line); background: var(--acc-tint); }
.ppanel .ptile--on .v          { color: var(--acc-deep); }
.ppanel .pcard__tabs i.on      { color: var(--acc-deep); border-color: var(--acc); }
.ppanel .ptag--ok              { background: var(--acc-tint); color: var(--acc-deep); }
.ppanel .pav                   { background: var(--acc) !important; }
.ppanel .pbar i                { background: var(--acc); }


/* One executive data point per analytics surface, in PiPO Gold. On the white
   product surface gold is 3.06:1, so it carries the rule and the number is
   large and bold enough to clear the large-text threshold. */
.ptile--gold { border-color: var(--gold-line); background: rgba(176,143,69,.06); }
.ptile--gold .v { color: var(--ink); border-top: 2px solid var(--gold);
                  padding-top: .35rem; margin-top: .2rem; }
