:root { --psd-purple: #251452; --psd-ink: #24163f; }
.psd-steps, .psd-showcase, .psd-phones, .psd-teams { padding: clamp(42px, 6vw, 90px) max(5vw, 22px); }
.psd-steps { background: #261951; }
.psd-steps h2, .psd-showcase h2, .psd-phones h2, .psd-teams h2 {
  margin: 0; font: 500 clamp(30px, 4vw, 52px)/1.12 "Avenir", var(--display);
}
.psd-steps h2 { color: #cafa80; }
.psd-steps > h2, .psd-showcase, .psd-steps > p { text-align: center; }
.psd-intro { max-width: 55ch; margin: 12px auto 28px; line-height: 1.5; }
.psd-steps ol, .psd-phones ol { list-style: none; padding: 0; margin: 0 auto; max-width: 1140px; }
.psd-steps li { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(22px, 7vw, 108px); position: relative; }
.psd-steps li::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #ac87dd77; }
.psd-steps li:nth-child(even) img { grid-column: 2; grid-row: 1; }
.psd-steps li:nth-child(even) div { grid-column: 1; grid-row: 1; text-align: right; }
.psd-steps img { width: 100%; display: block; border-radius: 10px; }
.psd-number, .psd-phones h3 span { display: inline-grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; background: #cafa80; color: #231348; font-weight: 700; }
.psd-steps h3 { margin: 10px 0; font: 600 clamp(21px, 3vw, 36px)/1.1 var(--display); }
.psd-steps li p, .psd-use-cases p, .psd-phones li p { font-size: 16px; line-height: 1.5; margin: 0; }
.psd-showcase, .psd-phones { background: #fff; color: var(--psd-ink); }
.psd-showcase h2, .psd-phones h2 { color: #583c99; }
.psd-dashboard { display: block; width: min(100%, 1140px); margin: 28px auto; border-radius: 10px; box-shadow: 0 6px 28px #4e28902b; }
.psd-phones { background: radial-gradient(ellipse at left center,#efffd2,transparent 50%), #fff; }
.psd-phones h2, .psd-teams h2 { max-width: 1140px; margin: 0 auto 36px; }
.psd-phones ol { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.psd-phones img { display: block; width: 100%; max-width: 210px; border-radius: 12px; }
.psd-phones h3 { margin: 12px 0 8px; }
.psd-phones h3 span { width: 25px; height: 25px; font-size: 13px; }
.psd-teams { color: #fff; background: var(--psd-purple); }
.psd-use-cases { max-width: 1140px; margin: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.psd-use-cases article { padding: 28px 24px; text-align: center; }
.psd-teams { --team-gutter: max(5vw, 22px); padding-inline: var(--team-gutter); }
.psd-white-band { margin-inline: calc(-1 * var(--team-gutter)); padding-inline: var(--team-gutter); background: white; color: var(--psd-ink); }
.psd-use-cases img { width: min(100%,400px); border-radius: 14px; }
.psd-use-cases h3 { margin: 12px 0 8px; font-size: 24px; }
@media(max-width: 650px) {
  .psd-steps ol { display: grid; gap: 38px; }
  .psd-steps li { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .psd-steps li:nth-child(even) div { text-align: left; }
  .psd-steps li::before { display: none; }
  .psd-phones ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .psd-use-cases { grid-template-columns: 1fr; }
}

.experience-more {
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: 600 14px var(--sans);
  cursor: pointer;
}
a.experience-more { display: inline-block; text-decoration: none; }
.experience-more:hover { background: #9373d52a; }
.experience-more span { margin-left: 7px; }
.experience-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 760px);
  max-width: 100%;
  max-height: 85dvh;
  margin: 0 auto;
  padding: clamp(25px, 6vw, 54px);
  border: 1px solid #bba0fd65;
  border-radius: 22px 22px 0 0;
  background: #251452;
  color: white;
}
.experience-dialog[open] { animation: experience-rise .32s ease-out both; }
.experience-dialog::backdrop { background: #0a061bc2; }
.experience-dialog h2 { margin: 0 42px 16px 0; font: 700 clamp(25px, 5vw, 40px)/1.1 var(--display); }
.experience-description { max-width: 60ch; line-height: 1.65; margin: 0 0 24px; }
.experience-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid #bba0fd65; border-radius: 50%; background: transparent; color: white; font-size: 25px; cursor: pointer; }
@keyframes experience-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .experience-dialog[open] { animation: none; } }

.psd-steps {
  --steps-gutter: max(5vw, 22px);
  --timeline-line: #ac87dd77;
  padding-inline: var(--steps-gutter);
  border-bottom: 1px solid var(--timeline-line);
}
.psd-steps > .psd-intro::after {
  content: "";
  display: block;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  border-bottom: 1px solid var(--timeline-line);
}
.psd-steps {
  position: relative;
}
.psd-steps > .psd-intro {
  max-width: none;
  position: relative;
  margin-inline: calc(-1 * var(--steps-gutter));
  padding: 0 var(--steps-gutter) 24px;
}
@media (min-width: 651px) {
  .psd-steps li .psd-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.psd-steps {
  padding-top: clamp(32px, 3vw, 46px);
  border-top: 1px solid var(--timeline-line);
  background: linear-gradient(105deg, transparent 17%, #34196655 17%, transparent 65%), #25184f;
}
.psd-steps > h2 {
  font: 400 clamp(32px, 3.35vw, 52px)/1.12 "Avenir Book", Avenir, var(--display);
}
.psd-steps > .psd-intro {
  margin-top: 3px;
  margin-bottom: 0;
  padding-bottom: clamp(17px, 1.65vw, 26px);
  font: 400 clamp(16px, 1.65vw, 26px)/1.25 "Avenir Book", Avenir, var(--sans);
}
.psd-steps ol { position: relative; padding-top: 24px; }
@media (min-width: 651px) {
  .psd-steps ol::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px solid var(--timeline-line);
  }
  .psd-steps li::before { content: none; }
}

@font-face {
  font-family: "Aikai Avenir";
  src: local("Avenir Book"), local("Avenir-Book");
  font-weight: 400;
}
@font-face {
  font-family: "Aikai Avenir";
  src: local("Avenir Medium"), local("Avenir-Medium");
  font-weight: 500 700;
}
@font-face {
  font-family: "Aikai Avenir";
  src: local("Avenir Black"), local("Avenir-Black");
  font-weight: 800 900;
}
body {
  --sans: "Aikai Avenir", "Avenir Next", "DM Sans", sans-serif;
  --display: var(--sans);
}
.topbar, .hero, .concert-brand small, .psd-steps > .psd-intro {
  font-family: var(--sans);
}
.hero h1, .psd-steps > h2 { font-family: var(--display); }
.desktop-nav a, .nav-actions a { color: #cafa80; }
.nav-actions .button-light { color: #170f35; }
.hero .concert-art { border-bottom-color: #ac87dd77; }
.psd-steps {
  background: radial-gradient(ellipse at 29% 25%, #54228e55, transparent 32%),
    radial-gradient(ellipse at 69% 55%, #702bb753, transparent 34%),
    #25184f;
}
.psd-steps img, .psd-phones img, .psd-dashboard, .psd-use-cases img { height: auto; }
.psd-steps li:first-child img {
  background: radial-gradient(circle at 29% 35%, #c6be5440 0%, #3176d24d 34%, transparent 35%);
}
.psd-steps h3, .psd-use-cases h3, .psd-phones h3 { font-weight: 400; }
.psd-steps li .psd-step-lead { color: #83dcff; font-weight: 500; margin-bottom: 6px; }
.psd-section-intro {
  max-width: 1140px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(18px, 5vw, 70px);
  align-items: start;
}
.psd-section-intro h2 { margin: 0; }
.psd-section-intro p { margin: 0 0 12px; line-height: 1.55; }
.psd-phones h2 span { color: var(--psd-ink); }
.psd-phones {
  background: radial-gradient(ellipse at 0% 20%, #eaffbd8c, transparent 34%),
    radial-gradient(ellipse at 88% 85%, #eaffbd8c, transparent 36%), white;
}
.psd-phones ol {
  background: linear-gradient(transparent 45%, #b583fa25 46%, #a876f53b 51%, transparent 58%);
}
.psd-phones li { position: relative; }
.psd-phones li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 34%;
  right: -19px;
  color: #7945c4;
}
.psd-teams { background: #261150; }
.psd-use-cases article + article { border-inline-start: 1px solid #9a7dc52e; }
.psd-use-cases .psd-case-lead { font-weight: 500; margin-bottom: 6px; }
.psd-use-cases p { max-width: 46ch; margin-inline: auto; }
.psd-teams .psd-use-cases:not(.psd-white-band .psd-use-cases) h3 { color: #cafa80; }
.experience-more { color: #cafa80; background: #261150; }
.experience-more:hover { background: #3b216d; }
.psd-lime, .cta-section .button-dark { color: #24163f; background: #cafa80; }
.psd-lime:hover, .cta-section .button-dark:hover { background: #defda8; }
.cta-section { background: white; }
.cta-section .cta-orbit, .cta-section .cta-note, .cta-section .section-kicker > span:not(:last-child) { display: none; }
@media (max-width: 650px) {
  .psd-section-intro { grid-template-columns: 1fr; }
  .psd-phones li::after { display: none; }
  .psd-use-cases article + article { border-inline-start: 0; }
}

.psd-phones { background: white; }
.phone-flow {
  --phone-gutter: max(5vw, 22px);
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  margin-inline: auto;
  background: radial-gradient(ellipse at top left, #eff9c2a8, transparent 34%);
}
.phone-flow ol { background: none; }
.phone-flow img { position: relative; z-index: 1; }
.phone-flow::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(ellipse at 98% 74%, #eaff8a55, transparent 39%);
}
@media (min-width: 651px) {
  .phone-flow { width: calc(100% + 2 * var(--phone-gutter)); margin-left: max(calc((100% - 1440px) / 2), calc(-1 * var(--phone-gutter))); }
  .phone-flow::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    aspect-ratio: 1440 / 438;
    background: url("/artwork/home/flow-waves-720.webp") center / 100% 100% no-repeat;
    background-image: image-set(url("/artwork/home/flow-waves-720.webp") 1x, url("/artwork/home/flow-waves-1440.webp") 2x);
    mix-blend-mode: multiply;
    pointer-events: none;
  }
  .phone-flow ol {
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4.2%;
    padding-inline: 4.65%;
  }
  .phone-flow img { max-width: none; }
  .phone-flow li:not(:last-child)::after {
    content: "";
    display: block;
    z-index: 1;
    width: 18%;
    aspect-ratio: 110 / 66;
    top: 0;
    margin-top: 48%;
    right: -19.5%;
    background: url("/artwork/home/flow-arrow.webp") center / contain no-repeat;
    mix-blend-mode: multiply;
  }
}
@media (max-width: 650px) {
  .phone-flow::after { background: radial-gradient(ellipse at bottom right, #eaff8a50, transparent 42%); }
}

html:has(:is(#contact, #for-teams, #phone-walkthrough):target) { scroll-padding-top: 96px; }

.contact-section {
  display: grid;
  align-items: start;
  min-height: max(calc(100vw * 687 / 1024), calc(100svh - 96px));
  padding: clamp(32px, 4vw, 64px) 5%;
  background: linear-gradient(90deg, #110c20e8, #110c20ac 43%, transparent 68%),
    #110c20 url("/artwork/home/contact-city.jpg") center / cover no-repeat;
  color: #fff;
}

.contact-copy { width: min(48%, 600px); min-width: 0; }
.contact-kicker { color: #cafa80; font-weight: 600; margin: 0 0 8px; }
.contact-copy h2 { margin: 0; max-width: 25ch; font: 700 clamp(28px, 3vw, 48px)/1.1 var(--display); }
.contact-copy > p:not(.contact-kicker) { color: #ddd0ea; line-height: 1.5; margin: 10px 0 16px; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  background: rgb(21 14 41 / 70%);
  border: 1px solid #a68cc15e;
  border-radius: 14px;
  padding: clamp(12px, 1.4vw, 20px);
}
.contact-form label { display: grid; gap: 7px; font-size: 14px; }
.contact-wide { grid-column: 1 / -1; }
.contact-form :is(input, textarea) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #a68cc17a;
  border-radius: 6px;
  background: #251933;
  color: white;
  font: inherit;
}
.contact-form :is(input, textarea):focus-visible { outline: 2px solid #cafa80; outline-offset: 2px; }
.contact-form :is(input, textarea)::placeholder { color: #bfb0cc; }
.contact-form button { border: 0; cursor: pointer; }
.contact-form button[type="submit"] { margin-block-start: 12px; }
.contact-note, .contact-status { color: #ddd0ea; font-size: 13px; margin: 10px 0 0; }

@media (max-width: 800px) {
  .contact-section {
    min-height: 0;
    padding-bottom: calc(52vw + 20px);
    background:
      linear-gradient(0deg, transparent, #110c20 95%) right bottom / 100% 62vw no-repeat,
      #110c20 url("/artwork/home/contact-city.jpg") center bottom / 100% auto no-repeat;
  }

  .contact-copy { width: min(100%, 600px); }
}
@media (max-width: 420px) { .contact-form { grid-template-columns: 1fr; } }

.voice-contact { min-width: 0; margin: 0; padding: 10px; border: 1px solid #a68cc17a; border-radius: 10px; }
.voice-contact legend { padding: 0 6px; font-weight: 600; }
.voice-contact [hidden] { display: none; }
.record-controls { display: flex; align-items: center; gap: 8px; }
.record-controls button {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #392353;
  color: white;
}
.record-controls .record-contact { background: #cafa80; color: #20142c; }
.record-controls button:focus-visible { outline: 2px solid #cafa80; outline-offset: 3px; }
.record-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.record-wave { flex: 1 1 0; width: 0; min-width: 0; height: 36px; }
.record-time { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.record-status, .contact-download { font-size: 14px; color: #ddd0ea; }
.record-status { margin: 8px 0 0; }
.contact-playback { display: block; width: 100%; margin: 10px 0; }

.contact-status:empty, .record-status:empty { margin: 0; }

.page-shell > .footer { background: #100c31; border-top-color: #c9b5ff35; }
.page-shell > .footer .brand-footer img { display: block; }
.page-shell > .footer :is(.footer-tagline, .footer-right) { color: #ddd0ea; }
.page-shell > .footer .footer-tagline { border-left-color: #c9b5ff55; }

.voice-contact .record-controls {
  padding: 4px;
  border: 1px solid #a68cc17a;
  border-radius: 26px;
  background: #251933;
}
.voice-contact .record-message {
  flex: 1 1 0;
  width: auto;
  border: 0;
  border-radius: 20px;
  background: transparent;
  resize: vertical;
}
.voice-contact .record-contact { align-self: flex-end; margin-inline-start: auto; }
.record-controls:has(.record-contact[hidden]):has(.record-time[hidden]) .record-close { margin-inline-start: auto; }
