/* =============================================================================
   FoneFluent Careers — Public site
   ========================================================================== */

/* ---- Container ----------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ---- Top navigation ------------------------------------------------------ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(25, 25, 25, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  animation: fade-down 500ms var(--ease-out) both;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s-6);
}
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: #fff;
}
.site-nav__logo img { height: 28px; width: auto; }
.site-nav__logo strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.site-nav__link {
  color: rgba(255, 255, 255, .76);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.site-nav__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav__cta {
  background: var(--brand-orange);
  color: var(--on-accent);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.site-nav__cta:hover { background: var(--brand-orange-600); transform: translateY(-1px); }

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 11vw, 9rem);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
}
.hero::before {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(252, 191, 5, .25), transparent 65%),
    radial-gradient(800px 360px at 0% 110%, rgba(252, 191, 5, .14), transparent 70%);
}
.hero::after {
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-orange);
  background: rgba(252, 191, 5, .12);
  border: 1px solid rgba(252, 191, 5, .35);
  padding: 6px 12px;
  margin-bottom: var(--s-6);
  animation: fade-up 600ms var(--ease-out) both;
  animation-delay: 80ms;
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(252, 191, 5, .25);
  animation: pulse-ring 2.5s var(--ease-in-out) infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: var(--s-6);
  animation: fade-up-lg 700ms var(--ease-out) both;
  animation-delay: 200ms;
}
.hero h1 .accent { color: var(--brand-orange); }
.hero__lead {
  max-width: 56ch;
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, .78);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--s-8);
  animation: fade-up 600ms var(--ease-out) both;
  animation-delay: 380ms;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  animation: fade-up 600ms var(--ease-out) both;
  animation-delay: 520ms;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--brand-orange);
  color: var(--on-accent);
  font-weight: 700;
  font-size: var(--text-md);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--radius-md);
  transition: transform var(--dur) var(--ease-snappy),
              background var(--dur) var(--ease-out);
}
.hero__cta:hover  { background: var(--brand-orange-600); transform: translateY(-2px); }
.hero__cta:active { transform: translateY(0); }
.hero__cta svg { transition: transform var(--dur) var(--ease-snappy); }
.hero__cta:hover svg { transform: translateX(4px); }
.hero__cta-secondary {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: transparent;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 500;
  font-size: var(--text-md);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-md);
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.hero__cta-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); }

/* ---- Stats strip --------------------------------------------------------- */

.stats {
  background: var(--ink-700);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, .06);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-4);
  padding: var(--s-8) 0;
}
.stat {
  text-align: center;
  padding: var(--s-2);
}
.stat {
  text-align: center;
  padding: var(--s-2);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.stat__num .accent { color: var(--brand-orange); }
.stat__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(255, 255, 255, .55);
}

/* ---- Section header ------------------------------------------------------ */

.section { padding: var(--s-20) 0; }
.section--soft { background: var(--surface-2); }

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-10);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  height: 4px;
  width: 0;
  background: var(--brand-orange);
  transition: width 800ms var(--ease-out);
}
.section__head.is-visible .section__title::after { width: 56px; }
.section__sub {
  color: var(--muted);
  max-width: 60ch;
  margin-top: var(--s-2);
  font-size: var(--text-md);
}
.section__count {
  font-size: var(--text-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.section__count strong { color: var(--ink); font-weight: 600; }

/* ---- Filter bar ---------------------------------------------------------- */

.filters {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  margin-bottom: var(--s-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  box-shadow: var(--shadow-xs);
}
.filters__search {
  flex: 1 1 240px;
  position: relative;
}
.filters__search input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 10px 12px 10px 40px;
  font-size: var(--text-sm);
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.filters__search input:focus {
  background: var(--surface);
  border-color: var(--brand-orange);
  outline: none;
}
.filters__search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.filter-select {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 10px 36px 10px 12px;
  font-size: var(--text-sm);
  color: var(--ink);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 140px;
}
.filter-select:focus { border-color: var(--brand-orange); outline: none; }
.filters__reset {
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  padding: 10px 12px;
  border-radius: var(--radius-md);
}
.filters__reset:hover { color: var(--ink); background: var(--surface-3); }

/* ---- Job grid + cards ---------------------------------------------------- */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-4);
}
.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: transform 320ms var(--ease-snappy),
              box-shadow 320ms var(--ease-out),
              border-color 320ms var(--ease-out),
              opacity 600ms var(--ease-out);
  will-change: transform, opacity;
}
.job-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.job-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: var(--shadow-md);
  border-color: rgba(252, 191, 5, .55);
}
.job-card:hover .job-card__title { color: var(--brand-orange-700); }
.job-card:hover .job-card__arrow { transform: translateX(4px); color: var(--brand-orange-700); }

.job-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s-3);
}
.job-card__dept {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand-orange-700);
}
.job-card__pill {
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--surface-3);
  color: var(--ink-soft);
  padding: 4px 10px;
  white-space: nowrap;
}
.job-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  line-height: var(--leading-snug);
  transition: color var(--dur) var(--ease-out);
}
.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--muted);
}
.job-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card__meta svg { width: 14px; height: 14px; }
.job-card__summary {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-card__foot {
  margin-top: auto;
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted);
}
.job-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-sm);
}
.job-card__arrow {
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  width: 16px; height: 16px;
}
.job-card__link {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--s-16) var(--s-6);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-state__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-10);
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-weight: 500;
  background: var(--surface);
  padding-inline: 12px;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.pagination a:hover { border-color: var(--brand-orange); color: var(--brand-orange-700); }
.pagination .is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ---- Job detail page ---------------------------------------------------- */

.job-detail__head {
  background: var(--ink);
  color: #fff;
  padding: var(--s-16) 0 var(--s-12);
  position: relative;
  overflow: hidden;
}
.job-detail__head::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 90% 0%, rgba(252, 191, 5, .18), transparent 60%);
  pointer-events: none;
}
.breadcrumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .6);
  margin-bottom: var(--s-6);
}
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--brand-orange); }

.job-detail__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  position: relative;
  margin-bottom: var(--s-6);
}
.job-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  position: relative;
}
.job-detail__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
}
.job-detail__meta-item svg { width: 14px; height: 14px; }

.job-detail__body {
  padding: var(--s-16) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s-12);
}
@media (max-width: 960px) {
  .job-detail__body { grid-template-columns: 1fr; gap: var(--s-8); }
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  margin: var(--s-10) 0 var(--s-4);
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: var(--s-8) 0 var(--s-3);
  color: var(--ink);
}
.prose p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--ink-600);
  margin: 0 0 var(--s-4);
}
.prose ul, .prose ol {
  padding-left: var(--s-5);
  margin: 0 0 var(--s-5);
  color: var(--ink-600);
}
.prose li { margin: var(--s-2) 0; line-height: var(--leading-relaxed); }
.prose ul li::marker { color: var(--brand-orange-700); }
.prose a { color: var(--brand-orange-700); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 3px solid var(--brand-orange);
  padding: var(--s-2) var(--s-5);
  color: var(--ink-600);
  font-style: italic;
  margin: var(--s-5) 0;
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code {
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: .92em;
  font-family: var(--font-mono);
}

.callout {
  background: linear-gradient(180deg, var(--brand-orange-50), #fff);
  border: 1px solid rgba(252, 191, 5, .25);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--radius-md);
  margin: var(--s-6) 0 var(--s-10);
  color: var(--ink);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

/* ---- Sidebar (apply card sticky) ----------------------------------------- */

.sidecard {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.sidecard__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.sidecard__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border);
}
.sidecard__row:last-child { border-bottom: 0; }
.sidecard__row dt { color: var(--muted); }
.sidecard__row dd { color: var(--ink); font-weight: 600; text-align: right; }

.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--brand-orange);
  color: var(--on-accent);
  font-weight: 700;
  font-size: var(--text-md);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-md);
  transition: transform var(--dur) var(--ease-snappy),
              background var(--dur) var(--ease-out);
}
.btn-primary:hover  { background: var(--brand-orange-600); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .7; pointer-events: none; }
.btn-primary svg { transition: transform var(--dur) var(--ease-snappy); }
.btn-primary:hover svg { transform: translateX(4px); }

/* ---- Apply form ---------------------------------------------------------- */

.apply-section { background: var(--surface-2); padding: var(--s-20) 0; }
.apply-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.apply-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}
.apply-card .lead {
  color: var(--muted);
  margin-bottom: var(--s-8);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--brand-orange); }
.field .help { font-size: var(--text-xs); color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field input[type="datetime-local"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: var(--text-sm);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(252, 191, 5, .18);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--has-error input,
.field--has-error select,
.field--has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--text-xs); margin-top: 2px; }

.dropzone {
  border: 2px dashed var(--border-strong);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-snappy);
}
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--brand-orange);
  background: var(--brand-orange-50);
}
.dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.dropzone__title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.dropzone__hint { font-size: var(--text-xs); color: var(--muted); }
.dropzone__file {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-weight: 700;
  color: var(--brand-orange-700);
}
.dropzone.is-filled .dropzone__file { display: inline-flex; }
.dropzone.is-filled .dropzone__title,
.dropzone.is-filled .dropzone__hint { display: none; }

.checkbox {
  display: flex;
  gap: var(--s-3);
  align-items: start;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: var(--leading-relaxed);
}
.checkbox input { margin-top: 3px; accent-color: var(--brand-orange); }

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---- Recorder (voice + video) -------------------------------------- */

.recorder {
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}
.recorder.is-recording {
  border-color: var(--danger);
  background: #FEF2F2;
}
.recorder.is-recorded {
  border-color: var(--brand-orange);
  background: var(--brand-orange-50);
}
.recorder__preview,
.recorder__playback {
  width: 100%;
  max-height: 320px;
  background: var(--ink);
  display: block;
}
.recorder__playback[controls] { background: var(--surface-3); }
.recorder__controls {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.recorder__timer {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.recorder__status { line-height: var(--leading-relaxed); }
.recorder__bar {
  height: 4px;
  background: var(--surface-4);
  overflow: hidden;
}
.recorder__meter {
  height: 100%;
  width: 0%;
  background: var(--brand-orange);
  transition: width .25s linear;
}
.recorder.is-recording .recorder__meter { background: var(--danger); }

/* Pulsing dot on the record button while recording */
.recorder.is-recording [data-action="stop"] { animation: rec-pulse 1.2s ease-in-out infinite; }
@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .4); }
  50%      { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.form-actions {
  margin-top: var(--s-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.form-actions .meta { font-size: var(--text-xs); color: var(--muted); }

/* ---- Banners (success / error) ------------------------------------------ */

.banner {
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-5);
  display: flex;
  gap: var(--s-3);
  align-items: start;
  font-size: var(--text-sm);
  margin-bottom: var(--s-6);
  line-height: var(--leading-relaxed);
  animation: fade-down 400ms var(--ease-out) both;
}
.banner--success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.banner--error   { background: var(--danger-bg);  color: #991B1B; border: 1px solid #fecaca; }
.banner--info    { background: var(--info-bg);    color: #075985; border: 1px solid #bae6fd; }
.banner__icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: var(--s-12) 0 var(--s-8);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-6);
}
.site-footer__brand img { height: 28px; }
.site-footer__brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-left: 12px;
}
.site-footer__links {
  display: flex;
  gap: var(--s-5);
  font-size: var(--text-sm);
}
.site-footer__links a:hover { color: var(--brand-orange); }
.site-footer__copy {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---- Utilities ---------------------------------------------------------- */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
