/* =====================================================================
   P02 v2 additions: vector brand, before/after, phone UI, FAQ
   ===================================================================== */
.ytp {
  display: inline-block;
  line-height: 0;
}
.ytp svg {
  display: block;
  height: 100%;
  width: auto;
}
.nav__logo .ytp {
  height: 32px;
}
.loader__mark {
  height: 76px;
  color: #fff;
}
.loader__mark path {
  fill: transparent;
  stroke: #fff;
  stroke-width: 5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.hero__mark {
  height: 64px;
  color: #fff;
  margin-bottom: 0.4rem;
}
.mini__lock {
  height: 2.6cqw;
  color: var(--ink);
}
@container (orientation: portrait) {
  .mini__lock {
    height: 6cqw;
  }
}
.foot__lock {
  height: 34px;
  margin-bottom: 1.4rem;
  color: #fff;
}
.foot__brand-xl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin: 6rem 0 3rem;
  color: #fff;
}
.foot__brand-xl .foot__mark {
  height: clamp(5rem, 15vw, 15rem);
  color: var(--signal);
}
.foot__brand-xl .foot__word {
  height: clamp(3.4rem, 10vw, 10.5rem);
  color: #fff;
  margin: 0;
  font-size: 0;
  line-height: 0;
  text-align: left;
}
@media (max-width: 700px) {
  .foot__brand-xl {
    flex-direction: column;
    gap: 1.5rem;
  }
  .foot__brand-xl .foot__word {
    height: auto;
    width: 86vw;
  }
  .foot__brand-xl .foot__word svg {
    width: 100%;
    height: auto;
  }
}

/* before / after compare */
.compare {
  padding: var(--pad-y) 0;
}
.compare__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.compare__head .lead {
  justify-self: end;
}
.cmp {
  position: relative;
  height: clamp(28rem, 62vh, 38rem);
  border-radius: var(--r-l);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.cmp__side {
  position: absolute;
  inset: 0;
  padding: 2rem;
}
.cmp__before {
  background: #d9d0bd;
  background-image: radial-gradient(rgba(10, 12, 16, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cmp__after {
  background: var(--night);
  color: #fff;
  clip-path: inset(0 0 0 var(--pos));
}
.cmp__tag {
  position: absolute;
  top: 1.4rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 99px;
  z-index: 2;
}
.cmp__before .cmp__tag {
  left: 1.4rem;
  background: rgba(255, 255, 255, 0.7);
  color: #8a3b25;
}
.cmp__after .cmp__tag {
  right: 1.4rem;
  background: rgba(3, 255, 150, 0.12);
  color: var(--signal);
  border: 1px solid rgba(3, 255, 150, 0.3);
}
.mess span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r));
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.mess span i {
  color: #9a927f;
}
.mess span.warn {
  background: #fff1eb;
  color: #a3402a;
}
.mess span.warn i {
  color: #e2694a;
}
.flowline {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(44%, 34rem);
  display: grid;
  gap: 1.4rem;
}
.flowline__owner {
  display: grid;
  grid-template-columns: 3rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--pine);
}
.flowline__owner .ytp {
  grid-row: span 2;
  height: 3rem;
  color: var(--signal);
}
.flowline__owner b {
  font-weight: 500;
}
.flowline__owner small {
  color: rgba(255, 255, 255, 0.65);
}
.flowline ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.flowline li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: var(--night-3);
  border: 1px solid rgba(3, 255, 150, 0.25);
  font-size: 0.9rem;
}
.flowline li i {
  color: var(--signal);
}
.cmp__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 3;
  cursor: ew-resize;
}
.cmp__handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #fff;
}
.cmp__handle i {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}
@media (max-width: 900px) {
  .compare__head {
    grid-template-columns: 1fr;
  }
  .compare__head .lead {
    justify-self: start;
  }
  .cmp {
    height: 34rem;
  }
  .mess span {
    font-size: 0.75rem;
    padding: 0.5rem 0.7rem;
  }
  .flowline {
    right: 1rem;
    width: 58%;
  }
  .flowline ol {
    grid-template-columns: 1fr 1fr;
  }
  .flowline li {
    font-size: 0.72rem;
    padding: 0.55rem 0.6rem;
  }
  .flowline__owner {
    grid-template-columns: 2.2rem 1fr;
    padding: 0.7rem;
  }
  .flowline__owner .ytp {
    height: 2.2rem;
  }
}

/* lifecycle phone UI */
.life {
  height: 260vh;
}
.life__pin {
  height: 100vh;
  height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(60% 60% at 70% 50%, rgba(28, 61, 54, 0.55), transparent 70%),
    var(--night);
}
.life__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.life__copy {
  display: grid;
  gap: 1.4rem;
}
.life__copy .lead {
  color: var(--fog);
  opacity: 1;
}
.life__steps {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
}
.life__steps li {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-d);
  color: var(--fog-2);
  transition: color 0.5s;
}
.life__steps li i {
  width: 1.2rem;
  color: var(--fog-2);
  transition: color 0.5s;
}
.life__steps li.on {
  color: #fff;
}
.life__steps li.on i {
  color: var(--signal);
}
.phone-ui {
  position: relative;
  justify-self: center;
}
.phone-ui__frame {
  width: min(21rem, 78vw);
  height: min(40rem, 74vh);
  border-radius: 2.8rem;
  background: #0b0f0d;
  border: 8px solid #1c2129;
  box-shadow:
    0 60px 120px -50px rgba(3, 255, 150, 0.25),
    0 40px 80px -40px #000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.phone-ui__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 1.1rem 0.9rem;
  background: #111a17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-ui__bar .ytp {
  height: 2.2rem;
  width: 2.2rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: var(--pine);
  color: var(--signal);
  display: grid;
  place-items: center;
}
.phone-ui__bar b {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
}
.phone-ui__bar small {
  color: var(--signal);
  font-size: 0.7rem;
}
.phone-ui__bar > i {
  margin-left: auto;
  color: var(--fog);
}
.phone-ui__chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1rem;
  background: #0b0f0d;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pm {
  max-width: 82%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
}
.pm--in {
  align-self: flex-start;
  background: #1c2420;
  border-bottom-left-radius: 0.25rem;
}
.pm--out {
  align-self: flex-end;
  background: #145c43;
  border-bottom-right-radius: 0.25rem;
}
.pm--day {
  align-self: center;
  font-size: 0.58rem;
  color: var(--fog-2);
  background: #151c19;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
}
.pm--file {
  align-self: flex-end;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  background: #145c43;
}
.pm--file i {
  font-size: 1.4rem;
  color: #d9ffef;
}
.pm--file b {
  display: block;
  font-weight: 500;
}
.pm--file small {
  opacity: 0.7;
}
.phone-ui__input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 99px;
  background: #151c19;
  color: var(--fog-2);
  font-size: 0.82rem;
}
.phone-ui__input i {
  color: var(--signal);
}
.float-card {
  position: absolute;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(21, 26, 35, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-d);
  box-shadow: 0 20px 40px -20px #000;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  white-space: nowrap;
}
.float-card i {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(3, 255, 150, 0.12);
  color: var(--signal);
}
.float-card b {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}
.float-card small {
  color: var(--fog);
  font-size: 0.72rem;
}
.f1 {
  left: -11rem;
  top: 14%;
}
.f2 {
  right: -12rem;
  top: 40%;
}
.f3 {
  left: -10rem;
  bottom: 14%;
}
@media (max-width: 900px) {
  .life {
    height: auto;
  }
  .life__pin {
    height: auto;
    padding: var(--pad-y) 0;
  }
  .life__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .f1 {
    left: -0.5rem;
    top: -1.5rem;
  }
  .f2 {
    right: -0.5rem;
    top: auto;
    bottom: 22%;
  }
  .f3 {
    display: none;
  }
  .pm,
  .float-card {
    opacity: 1;
    transform: none;
  }
}

/* FAQ */
.faq {
  padding: var(--pad-y) 0;
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.faq__list details {
  border-top: 1px solid var(--line-l);
}
.faq__list details:last-child {
  border-bottom: 1px solid var(--line-l);
}
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.faq__list summary::-webkit-details-marker {
  display: none;
}
.faq__list summary i {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line-l);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  transition:
    transform 0.5s var(--e-out),
    background 0.4s,
    color 0.4s;
}
.faq__list details[open] summary i {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
}
.faq__list p {
  padding: 0 4rem 1.6rem 0;
  color: var(--ink-2);
  max-width: 58ch;
}
@media (max-width: 900px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .faq__list p {
    padding-right: 0;
  }
}

.hero__intro {
  top: max(5.2rem, 8vh);
}
.hero__mark {
  height: 52px;
}

@media (max-width: 900px) {
  .cmp__after .cmp__tag {
    top: auto;
    bottom: 1.2rem;
  }
  .f1 {
    left: auto;
    right: -0.5rem;
    top: -3.6rem;
  }
}

/* home: work cards and hiring card open their pages */
.wcard {
  position: relative;
}
.wcard__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
.wcard__link:focus-visible {
  outline: none;
}
.wcard:has(.wcard__link:focus-visible) .wcard__img {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}
a.member--more {
  color: inherit;
}

/* loader: centred and phone-safe */
.loader__box {
  width: 100%;
  max-width: 30rem;
  padding: 0 1.5rem;
  text-align: center;
}
.loader__pct {
  position: relative;
}
.loader__pct sup {
  position: absolute;
  left: 100%;
  top: 0.9em;
  margin-left: 0.35em;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--fog);
}
.loader__line {
  width: min(14rem, 62vw);
}
.loader__cap {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  line-height: 1.5;
}
.loader__cap span:first-child {
  color: #fff;
}
@media (max-width: 560px) {
  .loader__mark {
    height: 56px;
  }
  .loader__box {
    gap: 1.1rem;
  }
  .loader__pct {
    font-size: clamp(3.6rem, 18vw, 4.6rem);
  }
  .loader__cap {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
}

/* footer logo links home */
.foot__home {
  display: inline-flex;
  transition: opacity 0.3s;
}
.foot__home:hover {
  opacity: 0.75;
}

/* team heading: lead + button aligned together on the right */
.team__aside {
  justify-self: end;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  max-width: 36rem;
}
.team__aside .lead {
  justify-self: start;
}
@media (max-width: 1000px) {
  .team__aside {
    justify-self: start;
  }
}

/* pages rendered from data: reserve the screen so the footer never flashes up and jumps */
main#page:empty {
  min-height: 100vh;
}
