/* Premier Business Systems: the eight screens and the reference page.
   Colors and type follow the company design tokens (v1.1) and the graphite
   picture style of "Fifty. Ten. One." */

:root {
  --ground: #0F1216;
  --graphite: #1C2126;
  --steel: #2D343C;
  --panel: #030A10;
  --panel-edge: #2E546C;
  --page: #1C2126;
  --page-edge: #2D343C;
  --white: #FCFCFC;
  --text: #E2E8EE;
  --say: #CBD2DA;      /* the screen's own words: the one bright block of text */
  --ask: #98A2AE;      /* a question waiting to be opened: quiet */
  --answer: #AEB7C1;   /* an opened answer: readable, below the screen's words */
  --muted: #A6ACB4;
  --dim: #78828E;
  --orange: #F25C05;
  --orange-deep: #C9430A;
  --green: #1F9D55;
  --green-bright: #37C978;

  --band-steel: linear-gradient(90deg, #4E6886, #2E4056);
  --band-amber: linear-gradient(90deg, #C08C50, #8C6034);
  --band-orange: linear-gradient(90deg, #C9430A, #963008);
  --mark-steel: #8AACD6;
  --mark-amber: #E0B078;
  --mark-orange: #F25C05;

  --font-display: "Space Grotesk", "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-body: clamp(1.06rem, 1.02rem + 0.2vw, 1.19rem);
  --fs-lead: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-title: clamp(1.4rem, 1.1rem + 1.5vw, 2.3rem);
  --fs-big: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(242, 92, 5, 0.17), rgba(242, 92, 5, 0) 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(78, 104, 134, 0.16), rgba(78, 104, 134, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- top bar ---------- */

.bar {
  position: sticky; top: 0; z-index: 10;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(14px, 3vw, 32px);
  background: rgba(15, 18, 22, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bar .logo-link { display: flex; align-items: center; flex: none; text-decoration: none; }

/* the company wordmark, as prebizsys.com draws it in its header */
.wm { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1; }
.wm-n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
  color: #FFFFFF; line-height: 1; white-space: nowrap;
}
.wm-n i { font-style: normal; color: var(--orange); }
.wm-f {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
@media (max-width: 560px) { .bar .wm-f { display: none; } }
footer .wm { font-size: 1.3em; align-items: center; }
footer .wm-n { font-size: 1.75rem; }
footer .wm-f { font-size: 0.8rem; }

.steps { display: flex; gap: clamp(3px, 1vw, 8px); list-style: none; margin: 0; padding: 0; }
.steps a {
  display: grid; place-items: center;
  width: clamp(25px, 6.4vw, 32px); height: clamp(25px, 6.4vw, 32px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  text-decoration: none;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.steps a:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.steps a.on { background: var(--orange); border-color: var(--orange); color: #fff; }

.back {
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; text-decoration: none; color: var(--muted);
  padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
}
.back:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

/* ---------- screens ---------- */

main { padding: clamp(14px, 3vw, 40px) clamp(10px, 3vw, 32px) 0; }

.screen {
  max-width: 1080px;
  margin: 0 auto clamp(22px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: calc(var(--bar-h) + 14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --band: var(--band-steel);
  --mark: var(--mark-steel);
}
.screen.amber { --band: var(--band-amber); --mark: var(--mark-amber); }
.screen.orange { --band: var(--band-orange); --mark: var(--mark-orange); }

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(13px, 2vw, 20px) clamp(16px, 3vw, 34px);
  background: var(--band);
}
.band h2, .band h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-title); line-height: 1.12; letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.count {
  flex: none;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(0.82rem, 0.7rem + 0.5vw, 1.05rem);
  color: #fff; white-space: nowrap;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}

.body { padding: clamp(18px, 3.2vw, 38px) clamp(16px, 3vw, 34px) clamp(18px, 3vw, 34px); }

.say p {
  margin: 0 0 0.7em;
  font-size: var(--fs-lead); line-height: 1.5;
  color: var(--say);
  max-width: 40em;
}
.say p:last-child { margin-bottom: 0; }

.big {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-big) !important; line-height: 1.12 !important; letter-spacing: -0.02em;
  color: var(--white) !important;
  text-wrap: balance;
}
.big em { font-style: normal; color: var(--orange); }

/* ---------- the picture ---------- */

.picture { margin: clamp(18px, 3vw, 30px) 0 0; }
.picture > a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--page-edge); }
.picture img { display: block; width: 100%; height: auto; }
.picture figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.picture figcaption a { color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 0.18em; }

.closeups, .pan { display: none; }
@media (max-width: 760px) {
  /* on a phone: the same picture again, large, to slide sideways */
  .pan {
    display: block;
    margin: 12px -16px 0; padding: 0 16px 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pan::-webkit-scrollbar { display: none; }
  .pan img { width: 290%; max-width: none; border-radius: 12px; border: 1px solid var(--page-edge); }
  .closeups {
    display: flex; gap: 10px;
    margin: 12px -16px 0; padding: 0 16px 6px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .closeups::-webkit-scrollbar { display: none; }
  .closeups div {
    flex: none; width: 86%;
    aspect-ratio: 840 / 1010;
    scroll-snap-align: center;
    border-radius: 12px; border: 1px solid var(--page-edge);
    background-image: url("fifty-ten-one.png");
    background-size: 327.62% auto;
    background-repeat: no-repeat;
  }
  .closeups div:nth-child(1) { background-position: 3.66% 55.13%; }
  .closeups div:nth-child(2) { background-position: 50% 55.13%; }
  .closeups div:nth-child(3) { background-position: 96.34% 55.13%; }
}

/* ---------- screen 4: the worries ---------- */

.worries { display: grid; gap: 12px; margin: 0 0 clamp(16px, 2.6vw, 26px); padding: 0; }
.worries p {
  margin: 0; justify-self: start;
  max-width: 30em;
  padding: 14px 20px;
  background: var(--steel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px 18px 18px 4px;
  font-size: var(--fs-lead); line-height: 1.4; color: var(--white);
}
.worries p:nth-child(2) { justify-self: end; border-radius: 18px 18px 4px 18px; }
@media (max-width: 560px) { .worries p:nth-child(2) { justify-self: start; margin-left: 22px; } }

/* ---------- screen 6: the degrees ---------- */

.degrees {
  list-style: none; margin: clamp(18px, 3vw, 30px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.degrees li {
  background: var(--page); border: 1px solid var(--page-edge); border-radius: 12px;
  padding: 16px 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.degrees .n {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--mark);
}
.degrees .pips { display: flex; gap: 5px; }
.degrees .pips i { height: 6px; flex: 1; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.degrees .pips i.f { background: var(--mark); }
.degrees b { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.25; color: var(--white); }
.degrees span.d { color: var(--muted); font-size: 1rem; line-height: 1.45; }
@media (max-width: 860px) { .degrees { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .degrees { grid-template-columns: 1fr; } }

/* ---------- questions: tap to open ---------- */

/* Three levels, so the white does not compete: the screen's words are the
   bright block; a closed question is quiet; an opened one lights its question
   in the screen's color and shows the answer one step below the screen text. */

.qs {
  margin-top: clamp(22px, 3.4vw, 38px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

details { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
summary {
  position: relative;
  list-style: none; cursor: pointer;
  padding: 13px 44px 13px 2px;
  font-weight: 500; font-size: 1rem; line-height: 1.4; color: var(--ask);
  transition: color 140ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  width: 24px; height: 24px; margin-top: -12px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; line-height: 1;
  color: var(--mark);
  transition: transform 260ms var(--ease);
}
details[open] > summary { color: var(--mark); font-weight: 600; }
details[open] > summary::after { transform: rotate(45deg); }
summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
summary:hover { color: var(--text); }
details[open] > summary:hover { color: var(--mark); }
.a {
  margin: 0 0 16px 2px; padding: 2px 0 2px 16px;
  border-left: 2px solid var(--mark);
  color: var(--answer); font-size: 1rem; line-height: 1.6;
  max-width: 40em;
}
.a p { margin: 0 0 0.6em; }
.a p:last-child { margin-bottom: 0; }
.a a { color: var(--text); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.18em; word-break: break-word; }

/* ---------- screen 8: the six ---------- */

.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; align-items: start; }
.six details {
  background: var(--page); border: 1px solid var(--page-edge); border-radius: 12px;
  transition: border-color 140ms var(--ease);
}
.six details[open] { border-color: var(--mark); }
.six summary {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--white);
  padding: 18px 48px 18px 18px;
}
.six summary::after { right: 14px; }
.six summary:hover, .six details[open] > summary, .six details[open] > summary:hover { color: var(--white); }
.six .a { margin: 0 18px 18px; }
.six .tag {
  display: block; margin-top: 7px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green-bright);
}
.six details.proof { border-color: var(--green); }
@media (max-width: 860px) { .six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .six { grid-template-columns: 1fr; } }

/* ---------- end link, footer ---------- */

.more {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 34px);
  border-radius: 18px;
  background: var(--orange);
  color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(242, 92, 5, 0.32);
  transition: background 140ms var(--ease), transform 260ms var(--ease);
}
.more:hover { background: var(--orange-deep); transform: translateY(-2px); }
.more b { font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.15; letter-spacing: -0.015em; }
.more .arrow { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; flex: none; }

footer {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 8px clamp(28px, 5vw, 48px);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- the reference page ---------- */

.ref-title {
  max-width: 1080px; margin: 0 auto clamp(18px, 3vw, 34px);
  padding: clamp(10px, 2vw, 22px) 6px 0;
}
.ref-title h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.ref-title h1 em { font-style: normal; color: var(--orange); }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fs-lead); line-height: 1.5; color: var(--text);
  max-width: 46em;
}
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 9px; height: 9px; border-radius: 999px; background: var(--mark);
}
.points li b { color: var(--white); }
.points ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.points ul li { font-size: var(--fs-body); color: var(--muted); }
.points ul li::before { width: 7px; height: 7px; background: transparent; border: 2px solid var(--mark); top: 0.6em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
