/*======== Global ========*/
:root {
  --space-section: 96px;
  --space-head: 48px;
  --space-heading: 16px;
  --bg: #FAF8F5;
  --card-bg: #efefeaff;
  --line: rgba(36, 36, 35, 0.12);
  --ink: #242423;
  --muted: #242423;
  --secondary: #7B886B;
  --tertiary: #e57a44ff;
  /* --tertiary: #ff8e72; */
  /* --tertiary: #9b8816; */
  --primary: #0B6E4F;
  --radius: 4px;
}

/*======== Base ========*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/*======== Header ========*/
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  --nav-h: 90px;
  height: var(--nav-h);
  padding: 0 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: calc(var(--nav-h) - 14px);
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-self: flex-end;
  padding-bottom: 8px;
}

.nav-links a {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--secondary);
  transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

/*======== Hero ========*/
.hero {
  position: relative;
  padding: 64px 0 var(--space-section);
  overflow: hidden;
  text-align: center;
}

.hero-mark {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-mark img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.hero-kicker {
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-heading);
}

.nowrap {
  white-space: nowrap;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 72ch;
  margin: 0 auto 32px;
  text-wrap: balance;
}

/*======== Buttons + CTA ========*/
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  background: var(--primary);
  color: #FAF8F5;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, background .15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--tertiary);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  background: none;
  color: var(--primary);
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--primary);
  color: #FAF8F5;
  transform: translateY(-2px);
}

/*======== Headphones Note ========*/
.placeholder-note {
  margin: 22px auto 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-accent {
  color: var(--tertiary);
  font-weight: 700;
}

/*======== Sections + Headings ========*/
section {
  padding: var(--space-section) 0;
  position: relative;
  scroll-margin-top: 70px;
}

h2.section-head {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(36px, 3.2vw, 53px);
  line-height: 1.12;
  max-width: 18ch;
  margin: 0 0 var(--space-heading);
  text-wrap: balance;
}

h2.section-head.is-centred {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-lede {
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
  text-wrap: balance;
}

.section-head-row {
  margin-bottom: var(--space-head);
}

.section-head-row.is-centred {
  text-align: center;
}

.section-head-row.is-centred .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/*======== Audio Demos ========*/
.audio-demos-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}

.audio-demos-text>*,
.audio-demos-text h2.section-head {
  max-width: none;
}

.audio-demos-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.audio-demos-illustration {
  width: 100%;
  max-width: 560px;
  height: auto;
  justify-self: center;
}

.audio-demos-card--wide {
  margin-top: var(--space-head);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  align-items: center;
  padding: 32px 36px;
}

.audio-demos-card-note {
  margin: 8px 0 0;
  max-width: none;
}

.audio-demos-headphones-note {
  margin: var(--space-head) 0 0;
  max-width: none;
  justify-content: flex-end;
  text-align: right;
}

.audio-demos-headphones-note + .audio-demos-card--wide {
  margin-top: 10px;
}

.audio-demos-card {
  background: linear-gradient(180deg, rgba(229, 122, 68, 0.07), rgba(229, 122, 68, 0.03)), var(--bg);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 28px 28px 12px;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-play {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--secondary);
  color: #FAF8F5;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}

.player-play:hover {
  transform: scale(1.05);
}

.player-play svg {
  width: 28px;
  height: 28px;
}

.player .icon-pause,
.player.is-playing .icon-play {
  display: none;
}

.player.is-playing .icon-pause {
  display: block;
}

.player.is-loading .player-play svg {
  display: none;
}

.player.is-loading .player-play::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid currentColor;
  border-right-color: transparent;
  animation: player-spin .8s linear infinite;
}

.player.is-loading .player-play {
  background: rgba(123, 136, 107, 0.22);
  color: var(--secondary);
}

@keyframes player-spin {
  to { transform: rotate(360deg); }
}

.player-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-now {
  color: var(--secondary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 29px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 56px;
  margin: 24px 0 8px;
  cursor: pointer;
}

.player-wave span {
  flex: 1;
  border-radius: 2px;
  background: rgba(123, 136, 107, 0.22);
  transition: background .2s ease;
}

.player-wave span.played {
  background: var(--secondary);
}

.player.is-swift .player-wave span.played {
  background: var(--primary);
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-weight: 400;
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 18px;
}

.player-elapsed {
  flex-shrink: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.player-3d {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 18px;
}

.player-3d-btn {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  transition: transform .15s ease;
}

.player-3d-btn:hover {
  transform: scale(1.05);
}

.player-3d-btn .icon-3d-on,
.player-3d-btn[aria-pressed="true"] .icon-3d-off {
  display: none;
}

.player-3d-btn[aria-pressed="true"] .icon-3d-on {
  display: block;
}

.player-3d-btn img {
  width: 100%;
  height: 100%;
}

.swiftify {
  font-weight: 700;
  color: var(--primary);
}

/* .player-3d-label {
  font-size: 17px;
  color: var(--muted);
} */

.player-3d-label {
  font-size: 17px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
    align-items: center;
}

.playlist {
  list-style: none;
}

.playlist li+li {
  border-top: 1px solid var(--line);
}

.playlist-track {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 4px;
  background: none;
  border: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .15s ease;
}

.playlist-track:hover {
  color: var(--tertiary);
}

.playlist-track.active {
  color: var(--secondary);
  font-weight: 700;
}

.playlist-duration {
  order: 3;
  font-size: 16px;
}

.playlist-num {
  order: 2;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.playlist-title {
  flex: 1;
  order: 1;
  font-size: 16px;
}

.playlist-eq {
  display: none;
  width: 3px;
  background: var(--secondary);
  border-radius: 1px;
  animation: eq-bounce 0.9s ease-in-out infinite;
}

.playlist-eq:nth-child(2) {
  animation-delay: -0.3s;
}

.playlist-eq:nth-child(3) {
  animation-delay: -0.6s;
}

@keyframes eq-bounce {

  0%,
  100% {
    height: 30%;
  }

  50% {
    height: 100%;
  }
}

.player.is-playing~.playlist .playlist-track.active .playlist-num {
  display: flex;
}

.player.is-playing~.playlist .playlist-track.active .playlist-eq {
  display: block;
}

.audio-demos-list {
  list-style: none;
  margin-top: 24px;
  max-width: 52ch;
}

.audio-demos-list li {
  font-size: 16px;
  color: var(--ink);
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.audio-demos-list li:first-child {
  border-top: none;
}

/*======== Steps ========*/
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-img {
  width: 100%;
  height: var(--h, 144px);
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.08) contrast(1.15);
  margin-bottom: 22px;
}

.step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step-num {
  min-width: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 29px;
  line-height: 1.1;
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 29px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.step h3,
.step .step-num {
  color: var(--c, var(--ink));
}

.step p {
  color: var(--muted);
  font-size: 16px;
}

/*======== What Sets SWIFTAudio Apart ========*/
#about h2.section-head {
  max-width: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 16px;
}

.trust-card {
  text-align: center;
}

.trust-icon {
  --s: 0.9;
  width: 100%;
  height: calc(var(--h, 100px) * var(--s));
  object-fit: contain;
  margin: calc((100px - var(--h, 100px)) * var(--s) / 2) auto calc(22px + (100px - var(--h, 100px)) * var(--s) / 2);
}

.trust-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 29px;
  line-height: 1.3;
  max-width: 8.5em;
  margin: 0 auto 10px;
  text-wrap: balance;
  color: var(--c, var(--ink));
}

.trust-card p {
  color: var(--muted);
  font-size: 16px;
  text-wrap: balance;
}

/*======== Contact Modal ========*/
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36, 36, 35, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--line);
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 40px 40px 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(36, 36, 35, 0.25);
}

.modal-illustration {
  height: 96px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 20px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  font-size: 28px;
  color: var(--muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 29px;
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1.2;
}

.modal-card .modal-desc {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-field {
  margin-bottom: 16px;
}

.modal-field label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}

.modal-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.modal-field input:focus,
.modal-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.modal-submit {
  margin-top: 8px;
}

/*======== Final CTA ========*/
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(36px, 3.2vw, 53px);
  line-height: 1.12;
  margin: 0 auto 20px;
}

.final-cta-img {
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto 44px;
}

/*======== Footer ========*/
footer {
  padding: 34px 0;
  background: var(--card-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  justify-self: start;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.7;
}

.footer-logo {
  height: 40px;
  width: auto;
  transform: translate(-6px, -10px);
}

.footer-links {
  justify-self: end;
  display: flex;
  gap: 24px;
  font-size: 16px;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--primary);
}

/*======== About: Intro ========*/
.about-intro-section {
  padding-top: 64px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 60ch) 1fr;
  column-gap: 48px;
  align-items: center;
  position: relative;
}

.about-intro p {
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
}

.about-intro-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto;
}

.about-intro .about-intro-img {
  position: absolute;
  grid-column: 2;
  grid-row: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*======== About: Team Photo ========*/
section.about-team {
  padding-top: 0;
}

.about-team-img {
  width: 75%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
}

/*======== About: Partner Logos ========*/
.logo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.logo-row img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* hides white JPEG backgrounds */
}

.logo-row > :not(:last-child) {
  max-height: 125px;
}

.logo-row > :last-child {
  max-width: 93.5%;
}

.logo-row > :first-child {
  transform: scale(1.25);
}

/*======== Mobile (≤ 860px) ========*/
@media (max-width: 860px) {

  :root {
    --space-section: 64px;
    --space-head: 32px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-card {
    padding: 40px 20px 24px;
  }

  .modal-illustration {
    height: 64px;
    margin-bottom: 16px;
  }

  .modal-card h3 {
    font-size: 24px;
  }

  .modal-field textarea {
    min-height: 112px;
  }

  .audio-demos-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .audio-demos-card--wide {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding: 20px 16px 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .footer-inner .logo {
    order: 1;
  }

  .footer-links {
    order: 2;
    justify-self: center;
  }

  .footer-copy {
    order: 3;
    justify-self: center;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
    white-space: nowrap;
  }

  .audio-demos-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 360px;
    margin: 0 auto;
  }

  .step {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    column-gap: 6px;
    align-items: baseline;
  }

  .step-img,
  .step p {
    grid-column: 1 / -1;
  }

  .step-marker {
    grid-column: 2;
    margin-bottom: 0;
  }

  .step h3 {
    grid-column: 3;
  }

  .step-img {
    height: calc(var(--h, 144px) * 0.8);
    margin: 0 auto 16px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-icon {
    --s: 0.72;
  }

  .audio-demos-illustration {
    max-width: 280px;
  }

  .wrap,
  .nav-inner {
    padding: 0 20px;
  }

  .nav-inner {
    --nav-h: 64px;
    gap: 16px;
  }

  h2.section-head,
  .final-cta h2 {
    font-size: 30px;
  }

  .step h3,
  .trust-card h3 {
    font-size: 24px;
  }

  h2.section-head br,
  .section-lede br {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-kicker {
    font-size: 15px;
  }

  .hero .cta-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero .cta-row a {
    justify-content: center;
  }

  .playlist-now {
    font-size: 20px;
  }

  .player-3d-btn {
    width: 72px;
    height: 72px;
  }

  .player-play {
    width: 48px;
    height: 48px;
  }

  .player-top {
    gap: 14px;
  }

  .player-elapsed,
  .player-3d-label {
    font-size: 15px;
  }

  .player-wave {
    height: 40px;
    margin: 16px 0 4px;
  }

  .player-3d {
    margin: 12px 0;
  }

  .playlist-track {
    font-size: 15px;
    min-height: 44px;
  }

  .about-intro-section {
    padding-top: 40px;
  }

  .about-team-img {
    width: 100%;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro .about-intro-img {
    position: static;
    grid-column: auto;
    grid-row: auto;
    transform: none;
    max-width: 240px;
    margin: 32px auto 0;
  }

  .logo-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/*======== Accessibility ========*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
