/* Security Advisory page: builds on optimisation.css and sentinel.css (shared .opt-page sections). */

/* iPhone Messages thread, scaled up from the homepage card */
.opt-page .snt-phone {
  width: min(320px, 100%);
  justify-self: center;
}
.opt-page .snt-phone .hp-phone {
  height: 540px;
  margin: 6px;
}
.opt-page .snt-phone .hp-status {
  font-size: 13px;
  padding: 10px 22px 2px;
}
.opt-page .snt-phone .hp-contact .hp-pic {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.opt-page .snt-phone .hp-contact span:last-child {
  font-size: 11.5px;
}
.opt-page .snt-phone .hp-thread {
  font-size: 14px;
  line-height: 1.3;
  padding: 8px 14px;
  gap: 3px;
}
.opt-page .snt-phone .hp-msg {
  padding: 7px 12px;
  border-radius: 18px;
}
.opt-page .snt-phone .hp-when,
.opt-page .snt-phone .hp-delivered {
  font-size: 10.5px;
}
.opt-page .snt-phone .hp-compose {
  margin: 6px 12px 10px;
}
.opt-page .snt-phone [hidden] {
  display: none !important;
}
.opt-page .adv-logged {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 14px 2px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--go-bg);
  border: 1px solid var(--go-line);
  color: var(--go);
  font: 700 12px var(--ui-ms);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.opt-page .adv-logged svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.opt-page .adv-logged.hp-show {
  opacity: 1;
  transform: none;
}

/* Engagement calendar: each booked slot pops in */
.opt-page .adv-cal-body {
  padding: 10px 14px 14px;
}
.opt-page .adv-cal-body .svc-table {
  width: 100%;
  margin: 0;
}
.opt-page .adv-cal-body .svc-engagement {
  margin-top: 12px;
}
.opt-page .adv-cal.cal-ready .svc-status {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.opt-page .adv-cal.cal-ready .svc-status.on {
  opacity: 1;
  transform: none;
}

/* Board page: trends, what changed, the decision that gets approved */
.opt-page .bd-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  font: 12.5px var(--ui-ms);
}
.opt-page .bd-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.opt-page .bd-kpis > div {
  border: 1px solid #e9e7e4;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.opt-page .bd-kpis small {
  display: block;
  color: #616161;
  font-size: 10.5px;
}
.opt-page .bd-kpis b {
  font: 700 12.5px "Sora";
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.opt-page .bd-kpis b::before {
  font-family: "JetBrains Mono";
  margin-right: 4px;
}
.opt-page .bd-kpis .up {
  color: var(--go);
}
.opt-page .bd-kpis .up::before {
  content: "↑";
}
.opt-page .bd-kpis .flat {
  color: #42617f;
}
.opt-page .bd-kpis .flat::before {
  content: "→";
}
.opt-page .bd-kpis .down {
  color: #86600f;
}
.opt-page .bd-kpis .down::before {
  content: "!";
}
.opt-page .adv-board.go .bd-kpis b {
  opacity: 1;
}
.opt-page .adv-board.go .bd-kpis div:nth-child(2) b {
  transition-delay: 0.3s;
}
.opt-page .adv-board.go .bd-kpis div:nth-child(3) b {
  transition-delay: 0.6s;
}
.opt-page .bd-sec {
  border-left: 3px solid var(--orange);
  padding: 2px 0 2px 10px;
}
.opt-page .bd-sec b {
  font: 700 12.5px "Sora";
}
.opt-page .bd-sec p {
  margin: 3px 0 0;
  color: #424242;
}
.opt-page .bd-dec {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
  background: #fff4ce;
  color: #6b4b00;
}
.opt-page .bd-dec::before {
  content: "Awaiting decision";
}
.opt-page .bd-dec span {
  display: none;
}
.opt-page .adv-board.done .bd-dec {
  background: var(--go-bg);
  color: var(--go);
  border: 1px solid var(--go-line);
  animation: opt-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .adv-board.done .bd-dec::before {
  content: "✓ Approved at the meeting";
}

@media (max-width: 960px) {
  .opt-page.advisory-page .pa-band {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .opt-page .snt-phone .hp-phone {
    height: 500px;
  }
  .opt-page .adv-cal-body {
    padding: 8px 10px 12px;
  }
  .opt-page .bd-kpis > div {
    padding: 8px;
  }
  /* Keep the calendar a week-by-day grid on phones, not the stacked table fallback */
  .opt-page .adv-cal .svc-calendar {
    display: table;
    table-layout: fixed;
  }
  .opt-page .adv-cal .svc-calendar thead {
    display: table-header-group;
  }
  .opt-page .adv-cal .svc-calendar tbody {
    display: table-row-group;
  }
  .opt-page .adv-cal .svc-calendar tr {
    display: table-row;
  }
  .opt-page .adv-cal .svc-calendar th,
  .opt-page .adv-cal .svc-calendar td {
    display: table-cell;
    padding: 0;
  }
  .opt-page .adv-cal .svc-calendar thead th {
    font-size: 9.5px;
    padding: 4px 0;
  }
  .opt-page .adv-cal .svc-calendar th:first-child {
    width: 15%;
  }
  .opt-page .adv-cal .svc-calendar tbody th {
    font-size: 9.5px;
    padding-right: 4px;
  }
  .opt-page .adv-cal .svc-calendar td {
    border-width: 2px;
  }
  .opt-page .adv-cal .svc-calendar td::before {
    content: none;
  }
  .opt-page .adv-cal .svc-calendar .svc-status {
    font-size: 8.5px;
    padding: 6px 1px;
    line-height: 1.15;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-page .adv-logged,
  .opt-page .adv-cal .svc-status,
  .opt-page .bd-kpis b,
  .opt-page .bd-dec {
    transition: none !important;
    animation: none !important;
  }
}

/* Tighter rhythm: a shorter phone, less padding between rows */
/* "When you don't need this" as a single line under the hero, like Optimisation and Sentinel */
.opt-page.advisory-page .adv-note {
  padding: 22px 0;
}
.opt-page.advisory-page .adv-note .cv-note {
  margin: 0;
}
.opt-page.advisory-page .snt-phone .hp-phone {
  height: 480px;
}
.opt-page.advisory-page .zz {
  padding: 34px 0;
}
@media (max-width: 760px) {
  .opt-page.advisory-page .adv-note {
    padding: 18px 0;
  }
}

/* Security architecture and transformation: four ways we help */
.opt-page .arc-ways {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.opt-page .arc-ways li {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px 18px;
  border-radius: 14px;
}
.opt-page .arc-ways small {
  font: 700 11px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.opt-page .arc-ways b {
  font: 700 16px/1.25 "Sora", sans-serif;
  color: var(--ink);
}
.opt-page .arc-ways span {
  font-size: 14px;
  line-height: 1.45;
  color: #5b5850;
}
.opt-page .arc-eg {
  margin: 18px 0 6px;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.5;
  color: #4b4842;
}
.opt-page .arc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 20px;
  font: 700 15px "Sora", sans-serif;
}
.opt-page .arc-links a {
  color: var(--orange-text);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}
.opt-page .arc-links .arc-more {
  color: var(--ink);
  border-bottom-color: #d6d2c9;
}
.opt-page .arc-links a:hover,
.opt-page .arc-links a:focus-visible {
  color: var(--orange-text);
  border-bottom-color: currentColor;
}
@media (max-width: 1100px) {
  .opt-page .arc-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .opt-page .arc-ways {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Retainer option, sitting under How it runs */
.opt-page .ret {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: 24px 26px;
  border-radius: 16px;
}
.opt-page .ret small {
  font: 700 11px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  color: var(--orange-text);
}
.opt-page .ret h3 {
  font: 700 21px/1.2 "Sora", sans-serif;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  color: var(--ink);
}
.opt-page .ret p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4b4842;
}
.opt-page .ret-link {
  display: inline-block;
  margin-top: 14px;
  font: 700 15px "Sora", sans-serif;
  color: var(--orange-text);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}
.opt-page .ret-link:hover,
.opt-page .ret-link:focus-visible {
  color: var(--ink);
}
.opt-page .ret-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.opt-page .ret-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
}
.opt-page .ret-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a7d38' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 15px no-repeat;
}
@media (max-width: 760px) {
  .opt-page .ret {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 18px;
  }
  .opt-page .ret h3 {
    font-size: 19px;
  }
}

/* ===== Bring us a situation: an interactive decision desk ===== */
.opt-page .desk-band {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}
.opt-page .desk .lw {
  font-family: "Plus Jakarta Sans", sans-serif;
}
.opt-page .desk-hint {
  margin: 14px 18px 8px;
  font-size: 13px;
  color: #616161;
}
.opt-page .desk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 14px;
  border-bottom: 1px solid #f1eee8;
}
.opt-page .desk-tabs button {
  font: 600 13px/1.25 "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background: #faf9f7;
  border: 1px solid #e4e1db;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .desk-tabs button:hover {
  border-color: var(--orange);
}
.opt-page .desk-tabs button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.opt-page .desk-tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.opt-page .desk-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}
.opt-page .desk-panel[hidden] {
  display: none;
}
.opt-page .desk-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.opt-page .desk-step {
  display: grid;
  gap: 6px;
  align-content: start;
}
.opt-page .desk-step small {
  font: 700 10.5px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.opt-page .desk-step p,
.opt-page .desk-step li {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.opt-page .desk-step ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  counter-reset: q;
}
.opt-page .desk-step ol li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.opt-page .desk-step ol li::before {
  content: counter(q);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff1e8;
  color: var(--orange-text);
  font: 700 11px "JetBrains Mono", monospace;
}
.opt-page .desk-skip p {
  color: #6f6b63;
  text-decoration: line-through;
  text-decoration-color: rgba(177, 14, 28, 0.45);
}
.opt-page .desk-get {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--go-bg, #dcf5e3);
  border: 1px solid var(--go-line, #a8e2bb);
}
.opt-page .desk-get small {
  color: var(--go, #0a7d38);
}
.opt-page .desk-get p {
  font-weight: 700;
}
/* Steps arrive one after another when a situation is picked */
@keyframes desk-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.opt-page .desk-panel.anim > .desk-step,
.opt-page .desk-panel.anim .desk-row .desk-step,
.opt-page .desk-panel.anim ol li {
  animation: desk-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.opt-page .desk-panel.anim ol li:nth-child(2) { animation-delay: 0.12s; }
.opt-page .desk-panel.anim ol li:nth-child(3) { animation-delay: 0.24s; }
.opt-page .desk-panel.anim .desk-row .desk-step:first-child { animation-delay: 0.42s; }
.opt-page .desk-panel.anim .desk-row .desk-step:last-child { animation-delay: 0.54s; }
.opt-page .desk-panel.anim > .desk-get { animation-delay: 0.7s; }

/* ===== Designed, not accumulated: tiles settle into layers as you scroll ===== */
.opt-page .arc-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  margin-top: 6px;
}
.opt-page .arc-band .arc-eg {
  margin-top: 14px;
}
.opt-page .est-state span {
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .est-state .est-b {
  margin-left: 6px;
  font-weight: 700;
  color: var(--go, #0a7d38);
  opacity: 0.3;
}
.opt-page .est.done .est-state .est-a {
  opacity: 0.3;
}
.opt-page .est.done .est-state .est-b {
  opacity: 1;
}
.opt-page .est-stage {
  position: relative;
  height: 300px;
  margin: 10px 12px 12px;
  --p: 0;
}
.opt-page .est-row {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--r) * 20%);
  height: 20%;
  display: grid;
  align-content: center;
  padding-left: 8px;
  border-top: 1px dashed #ebe7e0;
  opacity: var(--p);
}
.opt-page .est-row:first-child {
  border-top: 0;
}
.opt-page .est-row b {
  font: 700 12.5px/1.2 "Sora", sans-serif;
  color: var(--ink);
}
.opt-page .est-row em {
  font: 600 10px "JetBrains Mono", monospace;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--go, #0a7d38);
}
.opt-page .est-tile {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%) scale(var(--s, 1));
  width: 30%;
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e1dfdd;
  box-shadow: 0 6px 14px -10px rgba(60, 35, 10, 0.45);
  font: 600 11.5px/1.2 "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  text-align: center;
  opacity: var(--o, 1);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .est.done .est-tile:not(.est-gone) {
  border-color: var(--go-line, #a8e2bb);
  background: var(--go-bg, #dcf5e3);
}
.opt-page .est-gone {
  border-style: dashed;
  color: #8a857c;
}
@media (max-width: 960px) {
  .opt-page .desk-band,
  .opt-page .arc-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}
@media (max-width: 600px) {
  .opt-page .desk-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .opt-page .desk-tabs button {
    font-size: 12.5px;
    padding: 6px 10px;
  }
  .opt-page .est-stage {
    height: 280px;
  }
  .opt-page .est-tile {
    width: 34%;
    font-size: 10.5px;
    padding: 6px 5px;
  }
  .opt-page .est-row b {
    font-size: 11px;
  }
  .opt-page .est-row em {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-page .desk-panel.anim > .desk-step,
  .opt-page .desk-panel.anim .desk-row .desk-step,
  .opt-page .desk-panel.anim ol li {
    animation: none;
  }
  .opt-page .desk-tabs button,
  .opt-page .est-tile,
  .opt-page .est-state span {
    transition: none;
  }
}
@media (max-width: 600px) {
  /* Phones: one swipeable row of situations instead of a tall stack */
  .opt-page .desk-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .opt-page .desk-tabs::-webkit-scrollbar {
    display: none;
  }
  .opt-page .desk-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .opt-page .est-tile {
    width: 32%;
  }
}

/* Retainer as its own section: text and button on the left, the four points as small cards on the right */
.opt-page .ret-sec .ret {
  margin-top: 6px;
  padding: 26px 28px;
  gap: 32px;
}
.opt-page .ret-sec .ret p {
  font-size: 16px;
  max-width: 520px;
}
.opt-page .ret-sec .ret-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 18px 10px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #111;
  font: 700 14.5px "Sora", sans-serif;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .ret-sec .ret-link:hover,
.opt-page .ret-sec .ret-link:focus-visible {
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(255, 104, 27, 0.6);
}
.opt-page .ret-sec .ret-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.opt-page .ret-sec .ret-list li {
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
}
.opt-page .ret-sec .ret-list li::before {
  left: 14px;
  top: 14px;
}
@media (max-width: 760px) {
  .opt-page .ret-sec .ret {
    padding: 20px 18px;
  }
  .opt-page .ret-sec .ret-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-page .ret-sec .ret-link {
    transition: none;
  }
}

/* Architecture page: help list, three ways of working, senior-led band */
.opt-page .k-h{margin:22px 0 8px;font:700 11px/1 "JetBrains Mono";letter-spacing:.06em;text-transform:uppercase;color:var(--orange-text)}
.opt-page .k-list{margin:0;font-size:15.5px}
.opt-page .k-ways{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-top:28px}
.opt-page .k-why-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;align-items:start}
.opt-page .k-why-grid h2{margin:0}
.opt-page .k-why .sec-lede+.sec-lede{margin-top:14px}
@media (max-width:960px){.opt-page .k-ways{grid-template-columns:minmax(0,1fr)!important}.opt-page .k-why-grid{grid-template-columns:minmax(0,1fr);gap:16px}}
