:root {
  --midnight: #17172f;
  --deep: #29294d;
  --deep-alt: #3a3a66;
  --ivory: #f7f1e9;
  --ivory-deep: #efe5d6;
  --ivory-deeper: #e7dac6;
  --paper: #f3efe6;
  --coral: #ffab83;
  --coral-deep: #e8845a;
  --coral-soft: #ffe4d3;
  --lavender: #a9a2e8;
  --lavender-deep: #7e76d1;
  --ink: #2e2d45;
  --ink-soft: #55536e;
  --white: #ffffff;
  --green: #2e6b4a;
  --green-soft: #e4efe6;
  --brown: #5a3a28;
  --ivory-muted: rgba(247, 241, 233, 0.76);
  --ivory-faint: rgba(247, 241, 233, 0.66);
  --coral-ink: #b4522a;
  --lavender-ink: #5b54b3;
  --line-dark: rgba(247, 241, 233, 0.12);
  --line-light: rgba(23, 23, 47, 0.1);
  --line-strong: rgba(23, 23, 47, 0.2);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section-y: clamp(3.5rem, 6.5vw, 5.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ring: inset 0 0 0 1px rgba(23, 23, 47, 0.07);
  --ring-dark: inset 0 0 0 1px rgba(247, 241, 233, 0.1);
  --lift: 0 34px 64px -34px rgba(23, 23, 47, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--midnight);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--coral);
  color: var(--midnight);
}

:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.invite :focus-visible,
.cta-band :focus-visible,
.include :focus-visible,
.identity :focus-visible,
.mini.is-dark:focus-visible {
  outline-color: var(--coral);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--midnight);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
}

main {
  display: block;
  padding-top: 120px;
}

.home main {
  padding-top: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* type */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--coral);
}

.light-display em {
  color: var(--coral-deep);
}

.h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.h3 {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(126, 118, 209, 0.12);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--lavender-ink);
}

.eyebrow.on-dark {
  background: rgba(247, 241, 233, 0.08);
  color: var(--coral);
}

.lede,
.lead {
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.65;
  color: var(--ink);
}

.lead {
  color: var(--ivory-muted);
  max-width: 42ch;
}

.lede.soft,
.muted {
  color: var(--ink-soft);
}

/* buttons: 56px minimum, pill shaped, with a nested trailing arrow */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.7s var(--ease-spring), background-color 0.5s var(--ease-spring), color 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring), box-shadow 0.7s var(--ease-spring);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:has(> .icon:last-child) {
  padding-right: 8px;
}

.btn > .icon:last-child {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 11px;
  border-radius: 50%;
  box-sizing: border-box;
  transition: transform 0.7s var(--ease-spring), background-color 0.5s var(--ease-spring);
}

.btn:hover > .icon:last-child {
  transform: translate(1px, -1px) scale(1.06);
}

.btn-ivory {
  background: var(--ivory);
  color: var(--midnight);
}

.btn-ivory:hover {
  background: var(--white);
}

.btn-ivory > .icon:last-child {
  background: var(--midnight);
  color: var(--ivory);
}

.btn-coral {
  background: var(--coral);
  color: var(--midnight);
}

.btn-coral:hover {
  background: var(--ivory);
}

.btn-coral > .icon:last-child {
  background: var(--midnight);
  color: var(--coral);
}

.btn-midnight {
  background: var(--midnight);
  color: var(--ivory);
}

.btn-midnight:hover {
  background: var(--deep);
}

.btn-midnight > .icon:last-child {
  background: var(--coral);
  color: var(--midnight);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--midnight);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--midnight);
}

.btn-outline > .icon:last-child {
  background: var(--midnight);
  color: var(--ivory);
}

.btn-outline-dark {
  border-color: rgba(247, 241, 233, 0.26);
  color: var(--ivory);
  background: transparent;
}

.btn-outline-dark:hover {
  border-color: rgba(247, 241, 233, 0.5);
  background: rgba(247, 241, 233, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 600;
  color: var(--midnight);
  text-decoration: underline;
  text-decoration-color: var(--coral-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.7s var(--ease-spring);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 23, 47, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag-feature {
  background: var(--green-soft);
  color: var(--green);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row .tag {
  background: var(--ivory);
  color: var(--ink-soft);
}

/* header: a floating glass island, with a full-screen menu on phones */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  pointer-events: none;
}

.site-header .header-inner {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, calc(100% - 2 * var(--gutter)));
  height: 62px;
  margin: 14px auto 0;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: rgba(23, 23, 47, 0.88);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--ring-dark), 0 24px 48px -24px rgba(23, 23, 47, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
}

.brand img {
  width: auto;
  height: 46px;
  aspect-ratio: 640 / 353;
  border-radius: 10px;
}

.site-footer .brand img {
  height: 68px;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(247, 241, 233, 0.72);
  text-decoration: none;
  transition: color 0.4s var(--ease-spring), background-color 0.4s var(--ease-spring);
}

.primary-nav a:hover {
  color: var(--ivory);
  background: rgba(247, 241, 233, 0.09);
}

.primary-nav a[aria-current="page"] {
  background: var(--ivory);
  color: var(--midnight);
  font-weight: 600;
}

.btn.header-cta {
  display: none;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  background: var(--coral);
  color: var(--midnight);
}

.btn.header-cta:hover {
  background: var(--ivory);
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 241, 233, 0.1);
  color: var(--ivory);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin: -1px 0 0 -10px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.6s var(--ease-spring);
}

.menu-toggle span:first-child {
  transform: translateY(-5px);
}

.menu-toggle span:last-child {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 116px var(--gutter) 32px;
  overflow-y: auto;
  background: rgba(23, 23, 47, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ivory);
  text-decoration: none;
  animation: navIn 0.8s var(--ease-out) backwards;
}

.mobile-nav a:nth-child(2) { animation-delay: 0.06s; }
.mobile-nav a:nth-child(3) { animation-delay: 0.11s; }
.mobile-nav a:nth-child(4) { animation-delay: 0.16s; }
.mobile-nav a:nth-child(5) { animation-delay: 0.21s; }
.mobile-nav a:nth-child(6) { animation-delay: 0.26s; }

.mobile-nav a[aria-current="page"] {
  color: var(--coral);
}

.mobile-nav .mail-link {
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  min-height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--midnight);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.mobile-nav .mail-link svg {
  width: 20px;
  height: 20px;
}

/* hero: full-bleed artwork, copy on the open left side */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 100dvh, 920px);
  padding: 150px 0 96px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(23, 23, 47, 0.94) 0%, rgba(23, 23, 47, 0.72) 36%, rgba(23, 23, 47, 0) 66%),
    url("../assets/pbsl-hero.jpg") center / cover no-repeat,
    var(--midnight);
  color: var(--ivory);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

.hero-title {
  color: var(--ivory);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.hero-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--ivory-faint);
}

.hero-apps {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-apps-label {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--ivory-faint);
}

.hero-apps ul {
  display: flex;
  gap: 10px;
}

.hero-apps a {
  display: flex;
  padding: 6px;
  border-radius: 22px;
  background: rgba(247, 241, 233, 0.1);
  box-shadow: inset 0 0 0 1px rgba(247, 241, 233, 0.16);
  transition: transform 0.7s var(--ease-spring), background-color 0.5s var(--ease-spring);
}

.hero-apps a:hover {
  transform: translateY(-3px);
  background: rgba(247, 241, 233, 0.2);
}

.hero-apps img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .eyebrow {
  animation: rise 1s var(--ease-out) backwards;
}

.hero-title {
  animation: rise 1.1s var(--ease-out) 0.08s backwards;
}

.hero-copy .lead,
.hero-actions,
.hero-note {
  animation: rise 1.1s var(--ease-out) 0.18s backwards;
}

.hero-apps {
  animation: rise 1.1s var(--ease-out) 0.3s backwards;
}

/* sections */
.section {
  padding-block: var(--section-y);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.principles {
  display: grid;
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-light);
}

.principle:nth-child(2) { animation-delay: 0.08s; }
.principle:nth-child(3) { animation-delay: 0.04s; }
.principle:nth-child(4) { animation-delay: 0.12s; }

.principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--ring), 0 18px 36px -22px rgba(23, 23, 47, 0.28);
}

.principle-icon img {
  width: 32px;
  height: 32px;
}

.principle h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.1;
}

.principle p {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.paper {
  background: var(--paper);
}

.featured-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.featured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--ring), var(--lift);
  transition: transform 0.8s var(--ease-spring), box-shadow 0.8s var(--ease-spring);
}

.featured:hover {
  transform: translateY(-4px);
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
}

.featured-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.featured-head img {
  flex: none;
  width: 60px;
  height: 60px;
}

.featured-name {
  margin-top: 6px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1;
}

.featured-tagline {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.featured-body > p:not(.featured-tagline) {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.featured-cta {
  align-self: flex-start;
  margin-top: 8px;
}

.featured-art {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid var(--line-light);
  background: var(--paper);
}

.featured-art img {
  width: 100%;
  border-radius: 26px;
}

.mini-list {
  display: grid;
  gap: 20px;
  grid-auto-rows: 1fr;
}

.mini {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--ring), 0 24px 48px -34px rgba(23, 23, 47, 0.32);
  text-decoration: none;
  transition: transform 0.8s var(--ease-spring), box-shadow 0.8s var(--ease-spring);
}

.mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--ring), 0 36px 60px -30px rgba(23, 23, 47, 0.38);
}

.mini img {
  flex: none;
  width: 52px;
  height: 52px;
}

.mini-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mini-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-ink);
}

.mini-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.mini-tagline {
  font-size: 15px;
  color: var(--ink-soft);
}

.mini-go {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--ivory);
  transition: transform 0.7s var(--ease-spring), background-color 0.5s var(--ease-spring);
}

.mini-go svg {
  width: 20px;
  height: 20px;
}

.mini:hover .mini-go {
  transform: translate(2px, -2px) scale(1.05);
}

.mini.is-dark {
  background: var(--midnight);
  color: var(--ivory);
  box-shadow: none;
}

.mini.is-dark .mini-category {
  color: var(--coral);
}

.mini.is-dark .mini-tagline {
  color: var(--ivory-muted);
}

.mini.is-dark .mini-go {
  background: var(--coral);
  color: var(--midnight);
}

.mini.is-coral {
  background: var(--coral-soft);
  box-shadow: none;
}

.company {
  background: var(--ivory-deep);
}

.company-grid {
  display: grid;
  gap: 48px;
}

.company p.body {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.company p.body:first-child {
  margin-top: 0;
}

.company strong {
  color: var(--midnight);
}

.checks {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.checks li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
  font-weight: 600;
}

.check-dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--coral);
}

.check-dot svg {
  width: 16px;
  height: 16px;
}

.company-link {
  margin-top: 28px;
}

.invite {
  padding-block: 0 var(--section-y);
  background: var(--ivory);
}

.invite-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 44px;
  background: var(--deep);
  color: var(--ivory);
}

.invite-card::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -140px;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 171, 131, 0.22), transparent 65%);
  pointer-events: none;
}

.invite-card p {
  max-width: 48ch;
  font-size: 16px;
  color: var(--ivory-muted);
}

.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.on-dark-title {
  color: var(--ivory);
}

/* footer */
.site-footer {
  background: var(--midnight);
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  gap: 48px;
  padding-block: 88px 64px;
}

.footer-about p {
  max-width: 38ch;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247, 241, 233, 0.66);
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--lavender);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(247, 241, 233, 0.86);
  text-decoration: none;
  transition: color 0.4s var(--ease-spring);
}

.footer-list a:hover {
  color: var(--coral);
}

.footer-list svg {
  width: 16px;
  height: 16px;
}

.footer-base {
  border-top: 1px solid rgba(247, 241, 233, 0.08);
}

.footer-base .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 24px;
  font-size: 13.5px;
  color: rgba(247, 241, 233, 0.62);
}

.brand-dark .brand-name {
  color: var(--ivory);
}

/* page intro (inner pages) */
.page-intro {
  display: grid;
  gap: 36px;
  align-items: end;
  padding-block: 40px 32px;
}

.page-intro .stack {
  gap: 18px;
}

.page-intro .lede {
  max-width: 54ch;
}

.page-intro img {
  width: 100%;
  border-radius: 36px;
}

/* apps catalogue */
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--ring), 0 18px 40px -28px rgba(23, 23, 47, 0.3);
  transition: box-shadow 0.5s var(--ease-spring);
}

.search:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--midnight), 0 18px 40px -28px rgba(23, 23, 47, 0.3);
}

.search svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ink-soft);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.search input::placeholder {
  color: rgba(85, 83, 110, 0.7);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.filter {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--ring);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.5s var(--ease-spring), color 0.5s var(--ease-spring), transform 0.6s var(--ease-spring);
}

.filter:hover {
  transform: translateY(-1px);
}

.filter[aria-pressed="true"] {
  background: var(--midnight);
  color: var(--ivory);
  box-shadow: none;
}

.status {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.app-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.app-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--ring), 0 30px 60px -40px rgba(23, 23, 47, 0.3);
  transition: transform 0.8s var(--ease-spring), box-shadow 0.8s var(--ease-spring);
}

.app-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--ring), var(--lift);
}

.app-row[hidden],
.empty[hidden],
.app-list[hidden] {
  display: none;
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.row-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.row-head img {
  flex: none;
  width: 60px;
  height: 60px;
}

.row-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-ink);
}

.row-name {
  margin-top: 4px;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1;
}

.row-tagline {
  font-size: 16px;
  font-weight: 600;
}

.row-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.app-row .btn {
  align-self: flex-start;
}

.empty {
  margin-top: 24px;
  padding: 56px 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--white);
  text-align: center;
}

.empty > p:not(.display) {
  color: var(--ink-soft);
}

.empty .btn {
  margin-top: 20px;
}

.cta-band {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 44px;
  background: var(--deep);
  color: var(--ivory);
}

.cta-band p {
  max-width: 60ch;
  font-size: 15px;
  color: var(--ivory-muted);
}

.cta-band .btn {
  align-self: flex-start;
}

/* app detail */
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--ring);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.5s var(--ease-spring), color 0.5s var(--ease-spring);
}

.back-pill:hover {
  background: var(--midnight);
  color: var(--ivory);
}

.back-pill svg {
  width: 18px;
  height: 18px;
}

.identity {
  display: grid;
  gap: 32px;
  margin-top: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 44px;
  box-shadow: var(--ring);
}

.identity-icon {
  display: inline-flex;
  width: fit-content;
  padding: 14px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.identity-icon img {
  width: 100px;
  height: 100px;
}

.identity-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(23, 23, 47, 0.85);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
}

.identity h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.identity-value {
  max-width: 30ch;
  font-size: clamp(16px, 0.4vw + 14.5px, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.detail-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding-bottom: 24px;
}

.panel {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--ring), 0 30px 60px -44px rgba(23, 23, 47, 0.35);
}

.panel h2 {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.panel p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.panel p.soft {
  font-size: 15px;
  color: var(--ink-soft);
}

.panel h3 {
  margin-top: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lavender-ink);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--ivory);
  font-size: 15px;
  font-weight: 500;
}

.features .check-dot {
  background: var(--green);
  color: var(--white);
}

.uses {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--midnight);
  color: var(--ivory);
}

.uses h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.uses ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 26px;
}

.uses li {
  padding-left: 20px;
  border-left: 2px solid var(--coral);
}

.uses .title {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.uses p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory-muted);
}

.get-app {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--coral-soft);
}

.get-app h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  line-height: 1.1;
}

.get-app p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--brown);
}

.next {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 96px;
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  background: var(--deep);
  color: var(--ivory);
  text-decoration: none;
  transition: transform 0.8s var(--ease-spring), box-shadow 0.8s var(--ease-spring);
}

.next:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift);
}

.next img {
  flex: none;
  width: 52px;
  height: 52px;
}

.next-body {
  flex: 1;
  min-width: 0;
}

.next-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--lavender);
}

.next-name {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.next-arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--midnight);
  transition: transform 0.7s var(--ease-spring);
}

.next:hover .next-arrow {
  transform: translate(2px, -2px) scale(1.05);
}

.next-arrow svg {
  width: 20px;
  height: 20px;
}

/* about */
.values {
  display: grid;
  gap: 20px;
  padding-bottom: 24px;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--ring), 0 30px 60px -44px rgba(23, 23, 47, 0.3);
}

.value-card.is-dark {
  background: var(--midnight);
  color: var(--ivory);
  box-shadow: none;
}

.value-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  color: var(--coral-ink);
}

.value-card.is-dark .value-kicker {
  color: var(--coral);
}

.value-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.value-card p:not(.value-kicker) {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.value-card.is-dark p:not(.value-kicker) {
  color: var(--ivory-muted);
}

.how {
  display: grid;
  gap: 40px;
  margin-top: 16px;
  margin-bottom: 40px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 44px;
  background: var(--white);
  box-shadow: var(--ring), 0 30px 60px -44px rgba(23, 23, 47, 0.3);
}

.how p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.how .btn {
  align-self: flex-start;
  margin-top: 24px;
}

.steps li {
  padding: 26px 0;
}

.steps li + li {
  border-top: 1px solid var(--line-light);
}

.steps strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* contact */
.contact-layout {
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

.email-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 22px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--ring), 0 30px 60px -40px rgba(23, 23, 47, 0.4);
  text-decoration: none;
  transition: transform 0.8s var(--ease-spring), box-shadow 0.8s var(--ease-spring);
}

.email-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ring), var(--lift);
}

.email-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  background: var(--lavender);
  color: var(--midnight);
}

.email-icon svg {
  width: 24px;
  height: 24px;
}

.email-body {
  flex: 1;
  min-width: 0;
}

.email-body span {
  display: block;
}

.email-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--lavender-ink);
}

.email-address {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.email-arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--ivory);
}

.email-arrow svg {
  width: 20px;
  height: 20px;
}

.include {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--midnight);
  color: var(--ivory);
}

.include h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.include h2 svg {
  width: 20px;
  height: 20px;
  color: var(--coral);
}

.include li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory-muted);
}

.include li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--lavender);
}

.include strong {
  color: var(--ivory);
}

.contact-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside img {
  width: 100%;
  border-radius: 36px;
}

.aside .note {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--ring);
}

.aside .note h2 {
  font-size: 1.35rem;
}

.aside .note p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* privacy */
.policy {
  max-width: 880px;
  padding-block: 48px 96px;
}

.policy h1 {
  margin-top: 16px;
}

.policy .updated {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.policy .sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.policy article {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--ring);
}

.policy article.is-dark {
  background: var(--midnight);
  box-shadow: none;
  color: var(--ivory);
}

.policy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.policy article p,
.policy article li {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.policy article.is-dark p {
  color: var(--ivory-muted);
}

.policy article.is-dark a {
  color: var(--coral);
  font-weight: 600;
}

.policy ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  list-style: disc;
}

.policy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.policy a:not(.btn) {
  font-weight: 600;
  color: var(--midnight);
}

/* 404 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-block: 72px 120px;
}

/* scroll reveal: only hides content when JavaScript is running */
.js .is-reveal:not(.is-visible) {
  opacity: 0;
}

.is-visible {
  animation: rise 1s var(--ease-out) backwards;
}

/* responsive: small screens are the default, larger screens add columns */
@media (min-width: 640px) {
  .hero-actions,
  .invite-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  main {
    padding-top: 120px;
  }

  .home main {
    padding-top: 0;
  }

  .site-header .header-inner {
    height: 66px;
    padding-left: 22px;
  }

  .brand img {
    height: 50px;
  }

  .primary-nav {
    display: flex;
  }

  .btn.header-cta {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
    column-gap: 72px;
  }

  .principle {
    padding: 40px 0 44px;
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: stretch;
  }

  .mini-list {
    gap: 20px;
  }

  .company-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 96px;
    align-items: start;
  }

  .invite-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .invite-actions {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .footer-base .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .app-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .detail-grid > .stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .how {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .aside {
    position: sticky;
    top: 140px;
  }
}

/* email: always one line; on phones the card stacks and the address gets the full width */
.email-address,
.mobile-nav .mail-link,
.footer-list a {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .email-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .email-arrow {
    display: none;
  }

  .email-address {
    font-size: clamp(14px, 4.1vw, 17px);
  }

  .mobile-nav .mail-link {
    font-size: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 124px 0 72px;
    background:
      linear-gradient(180deg, rgba(23, 23, 47, 0.98) 0%, rgba(23, 23, 47, 0.97) 66%, rgba(23, 23, 47, 0.6) 86%, rgba(23, 23, 47, 0.4) 100%),
      url("../assets/pbsl-hero.jpg") 64% 100% / cover no-repeat,
      var(--midnight);
  }

  .hero-inner {
    gap: 44px;
  }
}
