/* OQLIS site: the perspective pages (perspectives.html and one page per perspective) */

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--pc, var(--muted)); letter-spacing: .02em; }
.who { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--t-small); }

/* the opening screen: what the perspective gives you, then the product's own window */
.p-open .chapter-frame { margin-top: var(--s-7); }
.p-open .p-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.p-sw a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: var(--t-small); color: var(--muted); border: 1px solid var(--line); text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.p-sw a:hover { color: var(--ink); border-color: var(--line-strong); }
.p-sw a[aria-current="page"] { color: #fff; background: var(--pc); border-color: var(--pc); }
.p-sw a { gap: 8px; }
.p-sw a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.p-sw a[aria-current="page"]::before { background: #fff; }

/* a feature row: what you get (benefit first), how it works, and the picture of it */
.feats { display: grid; row-gap: var(--s-9); }
.feat { align-items: center; }
.feat__text { display: grid; gap: var(--s-4); align-content: start; }
.feat__label { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--t-label)/1.4 var(--font-text); color: var(--pc, var(--action)); }
.feat__text h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 1vw + 18px, 32px); line-height: 1.15; letter-spacing: var(--display-tracking); }
.feat__text p { color: var(--muted); }
.feat__how { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.feat__how li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-3); font-size: var(--t-small); line-height: 1.5; }
.feat__how li::before { content: ""; width: 6px; height: 6px; margin: 8px 5px 0; border-radius: 50%; background: var(--pc, var(--action)); }
.feat__pic { position: relative; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; min-height: 330px; display: grid; place-items: center; padding: 28px; }
.feat__pic--lit, [data-pc] .feat__pic, .feat__pic[data-pc] { background: radial-gradient(120% 100% at 90% 0%, color-mix(in oklab, var(--pc, var(--action)) 22%, var(--surface)), var(--surface) 62%); }
.feat__pic > * { max-width: 100%; }
.feat--flip .feat__pic { order: -1; }
@media (min-width: 1024px) { .feat--flip .feat__text { grid-column: 8 / span 5; } .feat--flip .feat__pic { grid-column: 1 / span 6; } }
@media (max-width: 1023px) { .feat--flip .feat__pic { order: 0; } .feat__pic { margin-top: var(--s-5); } }

/* also included: the smaller things, three across */
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); margin-top: var(--s-6); }
.also li { display: grid; gap: 4px; align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.also b { font-weight: 500; }
.also span { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
@media (max-width: 1023px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .also { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } }

/* the next perspective, at the foot of each page */
.p-next { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.p-next:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.p-next b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(22px, 1vw + 16px, 30px); letter-spacing: var(--display-tracking); }

/* the overview's five cards: a picture of each perspective, its promise, a link */
.p-card { display: grid; gap: var(--s-3); align-content: start; color: var(--ink); text-decoration: none; }
.p-card .panel { --p-h: 260px; transition: transform var(--dur) var(--ease); }
.p-card:hover .panel { transform: translateY(-2px); }
.p-card > b { font-weight: 500; font-size: var(--t-card); }
.p-card > span:last-child { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }

/* a feature on its own screen: the picture large */
main > section > .wrap > .feat .feat__pic { min-height: clamp(420px, 60vh, 540px); }
@media (min-width: 1024px) and (max-height: 820px) { main > section > .wrap > .feat .feat__pic { min-height: 0; height: 500px; } }
@media (max-width: 639px) { main > section > .wrap > .feat .feat__pic { min-height: 0; padding: 16px; } }

/* a short laptop screen (1024x768): the opening window is cut by a fade so the first screen holds it */
@media (min-width: 1024px) and (max-height: 820px) {
  .p-open .chapter-frame { margin-top: var(--s-5); }
  .p-open .pw__body { min-height: 0; height: 210px; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
  .p-open .t-lead { font-size: var(--t-body); }
  .p-card__pic { --p-h: 190px !important; }
}
/* a tablet: text, then the picture at its own height */
@media (max-width: 1023px) {
  main > section > .wrap > .feat .feat__pic { min-height: 0; padding: 20px; }
  .p-card__pic { --p-h: 170px !important; }
}
/* a phone: each feature takes two screens */
@media (max-width: 639px) {
  main > section:has(> .wrap > .feat) { --h: 2; }
  .p-card__pic { --p-h: 150px !important; }
  .p-card > span:last-child { display: none; }
}
