/* ============================================================
   Saatchi — Shared Stylesheet
   Fonts: Bevan (display), Epilogue (body)
   Design tokens derived from Figma file m9y1E9AnCgNNK6775PIqxn
   ============================================================ */

/* ---------- Font faces ---------- */
@font-face {
  font-family: 'Bevan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bevan-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/epilogue-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/epilogue-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/epilogue-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Epilogue';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/epilogue-italic-400.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --accent:      #8e7ada;
  --accent-light: rgba(184,169,241,0.23);
  --accent-dim:  rgba(184,169,241,0.12);
  --bg:          #f7f7f7;
  --white:       #ffffff;
  --text:        #18171c;
  --text-2:      #4f4f4f;
  --text-3:      #4e4e4e;
  --divider:     #e0e0e0;
  --gray-6:      #f2f2f2;
  --shadow-card: 0 4px 4px 0 #18171c;

  --font-display: 'Bevan', Georgia, serif;
  --font-body:    'Epilogue', system-ui, sans-serif;

  --container:   1440px;
  --inner:       1280px;
  --pad-x:       80px;
  --pad-y-lg:    120px;
  --pad-y-md:    80px;
  --pad-y-sm:    56px;

  --radius-card: 16px;
  --radius-btn:  8px;
  --radius-img:  24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.inner {
  max-width: var(--inner);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--pad-y-lg);
}

.section--white { background: var(--white); }
.section--accent-dim { background: var(--accent-dim); }

/* ---------- Typography ---------- */
.label {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.label--caps {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem); /* 60px desktop */
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem); /* 56px desktop */
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem); /* 40px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.heading-sm {
  font-family: var(--font-display);
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.heading-xs {
  font-family: var(--font-display);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.body-lg {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.375rem); /* 22px */
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-2);
}

.body-md {
  font-family: var(--font-body);
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-2);
}

.body-sm {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-2);
}

.body-xs {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--lg {
  padding: 1rem 3.5rem;
  font-size: 1.125rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar__logo-img {
  height: 46px;
  width: auto;
}

.navbar__logo-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.2;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

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

.navbar__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------- Audio button ---------- */
.audio-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.audio-btn:hover { color: var(--accent); background: var(--accent-dim); }
.audio-btn--active { color: var(--accent); }
.audio-btn--active .audio-btn__play-hint {
  animation: audio-pulse 1.2s ease-in-out infinite;
}
@keyframes audio-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ---------- Audio player bar ---------- */
.audio-bar {
  background: var(--white);
  border-top: 1px solid var(--divider);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  width: 100%;
}
.audio-bar--visible {
  max-height: 64px;
  opacity: 1;
}
.audio-bar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.audio-bar__label {
  font-size: 0.875rem;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.audio-bar__play {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.audio-bar__play:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.audio-bar__track {
  flex: 1;
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  overflow: hidden;
}
.audio-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s linear;
}
.audio-bar__time {
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.audio-bar__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 4px;
  font-size: 1rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}
.audio-bar__close:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  padding-block: 5rem 3rem;
}

.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.footer__top {
  display: flex;
  gap: 4rem;
  align-items: flex-end;
  padding-bottom: 2rem;
}

.footer__brand {
  flex: 0 0 auto;
  max-width: 480px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.footer__contact {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.footer__contact strong {
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.footer__contact a {
  display: block;
  text-decoration: underline;
  color: inherit;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer__social img {
  width: 24px;
  height: 24px;
}

.footer__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s;
}

.footer__nav a:hover { color: var(--accent); }

.footer__divider {
  height: 1px;
  background: var(--text-3);
  opacity: 0.2;
  margin-block: 2rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Section header ---------- */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
}

.section-header .label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 60ch;
}

.section-header--center p {
  margin-inline: auto;
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-6);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--bordered {
  border-color: var(--text);
}

.card--accent {
  border-color: var(--accent);
  background: var(--accent-light);
}

.card--shadow {
  box-shadow: var(--shadow-card);
}

.card__emoji {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  display: block;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card__body {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-2);
  flex: 1;
}

/* ---------- Step sequence ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
}

.step__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
}

.step__body {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Source/document cards ---------- */
.source-card {
  background: rgba(255,255,255,0.8);
  border-radius: 24px;
  box-shadow: 0 4px 4px 0 rgba(0,0,0,0.15);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.source-card__header {
  margin-bottom: 0.5rem;
}

.source-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.source-card__meta {
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.source-card__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
}

.source-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.source-card__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  align-self: flex-end;
}

.source-card__link:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Hero image ---------- */
.hero-img {
  width: 100%;
  border-radius: var(--radius-img);
  object-fit: cover;
  display: block;
}

/* ---------- Pill tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  border: 1px solid;
}

.pill--issued {
  background: rgba(184,169,241,0.19);
  border-color: #b8a9f1;
  color: var(--accent);
}

.pill--pending {
  background: var(--gray-6);
  border-color: var(--text-3);
  color: var(--text-3);
}

/* ---------- Form elements ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-control {
  background: rgba(192,192,192,0.25);
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-2);
  width: 100%;
  letter-spacing: 0.1em;
}

.form-control:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%2318171c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 0.25rem;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem;
  border: 2px dashed rgba(142, 122, 218, 0.4);
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-zone__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 0.25rem;
}

.upload-zone__text {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.upload-zone__hint {
  font-size: 0.8rem;
  color: var(--text-2);
  opacity: 0.7;
}

/* ---------- Misc helpers ---------- */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-2); }
.italic      { font-style: italic; }
.underline   { text-decoration: underline; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split--center { align-items: center; }

.highlight-box {
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  background: var(--accent-dim);
}

.penalty-card {
  background: var(--white);
  border: 1px solid var(--gray-6);
  border-radius: 0 24px 24px 0;
  padding: 1.125rem 2.125rem;
  margin-bottom: 1rem;
}

.penalty-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.penalty-card__value {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Progress stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper__dot {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 7.6px 7.9px 0 rgba(184,169,241,0.5);
}

.stepper__dot--inactive {
  background: #c0c0c0;
  box-shadow: 0 7.6px 7.9px 0 #dbdbdb;
}

.stepper__label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent);
}

.stepper__label--inactive {
  color: #c0c0c0;
}

.stepper__line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
  min-width: 80px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  :root {
    --pad-x: 48px;
  }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --pad-y-lg: 60px;
    --pad-y-md: 40px;
  }

  .body-lg { font-size: 1rem; }
  .body-md { font-size: 1rem; }

  .navbar {
    height: auto;
    padding-block: 1rem;
  }

  .navbar__inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .navbar__links {
    flex-wrap: wrap;
    gap: 1rem;
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .navbar__links a { font-size: 0.9rem; }

  .navbar__logo-name { font-size: 1.5rem; }

  .card-grid--3 { grid-template-columns: 1fr; }
  .card-grid--4 { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 2rem; }

  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .footer__top { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .footer__nav { justify-content: flex-start; }
  .footer__nav ul { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .source-card { padding: 1.25rem; border-radius: 16px; }
  .source-card__title { font-size: 0.875rem; }
  .source-card__desc { font-size: 0.8125rem; }
  .source-card__link { font-size: 0.8125rem; padding: 0.625rem 1rem; }
  .source-card__row { flex-direction: column; align-items: flex-start; }
  .source-card__link { align-self: flex-start; }

  .stepper { flex-wrap: nowrap; gap: 0.25rem; }
  .stepper__item { gap: 0.25rem; }
  .stepper__dot { width: 26px; height: 26px; font-size: 0.75rem; }
  .stepper__label { font-size: 0.625rem; white-space: nowrap; }
  .stepper__line { min-width: 10px; }
}

@media (max-width: 480px) {
  :root { --pad-x: 16px; }
  .navbar__links { gap: 0.75rem; }
  .navbar__links a { font-size: 0.8125rem; }
}

@media (hover: none) {
  .navbar__links a:hover {
    color: var(--text-2);
  }
}
