:root {
  --bg: #f4ead8;
  --bg-soft: #fbf6ed;
  --surface: #fffaf1;
  --surface-strong: #efe3d1;
  --navy: #152c4d;
  --ink: #22211f;
  --muted: #786b5e;
  --line: #decab0;
  --orange: #e7601e;
  --orange-dark: #bf4d18;
  --blue: #325f9b;
  --teal: #1f8a73;
  --gold: #c89324;
  --green: #3d7f49;
  --danger: #9f3721;
  --shadow: 0 18px 50px rgba(21, 44, 77, 0.08);
  --radius: 26px;
  --radius-small: 16px;
  --radius-pill: 999px;
  --page-width: 1240px;
  --heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(231, 96, 30, 0.08), transparent 22rem),
    linear-gradient(180deg, #f8efe2 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
video,
audio {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 0.94;
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
}

p {
  margin: 0;
  line-height: 1.65;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 44, 77, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  width: min(var(--page-width), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-weight: 700;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.15);
}

.brand-wordmark {
  font-family: var(--heading);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.topnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.locale-pill,
.profile-pill,
.live-pill,
.attention-pill,
.status-chip,
.language-chip,
.wizard-step {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.locale-pill,
.profile-pill {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.page-shell {
  width: min(var(--page-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.8rem 0 7rem;
}

.notice-banner {
  width: min(var(--page-width), calc(100% - 2rem));
  margin: 1rem auto 0;
  background: #fff1d8;
  border: 1px solid #eab869;
  color: #6d4d14;
  border-radius: var(--radius-small);
  padding: 0.95rem 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(21, 44, 77, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.panel.soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.88));
}

.panel.invert {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: none;
}

.stack-list {
  display: grid;
  gap: 1.25rem;
}

.stack-list.compact {
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.button.ghost {
  color: var(--navy);
  background: transparent;
  border-color: var(--line);
}

.button.ghost:hover {
  background: rgba(21, 44, 77, 0.04);
  border-color: var(--navy);
}

.button.nav-signin {
  color: var(--navy);
  background: #fffaf1;
  border-color: #fffaf1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button.nav-signin:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.button.nav-signout {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.button.nav-signout:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.56);
}

.button.light,
.button.ghost.light {
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.button.small {
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
}

.button.inline-remove {
  margin-left: auto;
}

.hero-grid,
.job-detail-grid,
.marketplace-grid,
.post-grid,
.settings-grid,
.translate-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid,
.job-detail-grid,
.translate-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.marketplace-grid {
  grid-template-columns: 18rem 1fr;
}

.post-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.settings-grid {
  grid-template-columns: 18rem 1fr;
  align-items: start;
}

.review-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.hero-copy,
.hero-audio {
  min-height: 34rem;
}

.hero-copy {
  padding: 3rem;
}

.hero-audio {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: 2.1rem;
}

.accent-dot {
  color: var(--orange);
}

.lede {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 32rem;
  margin-top: 1rem;
}

.hero-actions,
.card-actions,
.head-actions,
.wizard-row,
.status-row,
.language-chip-row,
.split-form,
.pill-selector,
.deliverable-tabs,
.stats-row,
.mini-spec-grid,
.price-line,
.section-head-inline,
.record-toolbar,
.narration-head,
.site-footer-inner,
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.stats-row {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stats-row > div {
  flex: 1 1 9rem;
  display: grid;
  gap: 0.3rem;
}

.stats-row strong {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--orange);
  font-family: var(--heading);
}

.stats-row span,
.meta-line,
.helper-copy,
.micro-kicker,
.kicker {
  color: var(--muted);
}

.kicker,
.micro-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.micro-kicker {
  font-size: 0.72rem;
}

.waveform {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: 0.4rem;
  min-height: 4rem;
}

.waveform span {
  display: block;
  background: linear-gradient(180deg, #ef8b51, var(--orange));
  border-radius: 999px;
}

.waveform span:nth-child(1) { height: 35%; }
.waveform span:nth-child(2) { height: 78%; }
.waveform span:nth-child(3) { height: 60%; }
.waveform span:nth-child(4) { height: 87%; }
.waveform span:nth-child(5) { height: 45%; }
.waveform span:nth-child(6) { height: 100%; }
.waveform span:nth-child(7) { height: 50%; }
.waveform span:nth-child(8) { height: 72%; }
.waveform span:nth-child(9) { height: 55%; }

.waveform.large {
  min-height: 5rem;
}

.quote-card,
.context-box,
.source-card,
.translation-box,
.estimate-card,
.escrow-box,
.charter-box,
.warning-panel {
  background: var(--surface-strong);
  border-radius: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(191, 77, 24, 0.12);
}

.language-chip {
  background: white;
  border: 1px solid var(--line);
}

.language-chip.muted {
  color: var(--muted);
}

.dark-band {
  margin-top: 2rem;
  background: var(--navy);
  color: white;
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 2rem;
}

.section-block {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.section-heading {
  display: grid;
  gap: 0.5rem;
}

.split-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.dual-grid,
.dashboard-links,
.three-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card,
.mode-card,
.choice-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-card strong,
.mode-card strong,
.choice-card strong {
  font-size: 1.1rem;
}

.mode-card.active,
.choice-card.featured {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(231, 96, 30, 0.22);
}

.choice-card.muted {
  color: var(--muted);
}

.page-head,
.page-head.split-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.page-head.split-head {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.filter-panel,
.nav-panel,
.sticky-panel,
.page-rail {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group.align-end {
  align-content: end;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: white;
  padding: 0.9rem 1rem;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.job-card-head,
.split-panel,
.section-head-inline,
.translate-grid,
.record-layout {
  display: grid;
  gap: 1rem;
}

.job-card-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.pay-block {
  display: grid;
  gap: 0.25rem;
  text-align: right;
}

.pay-block strong,
.price-hero {
  color: var(--orange);
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3rem);
}

.mini-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-spec-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-spec-grid > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(21, 44, 77, 0.04);
}

.mini-spec-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-chip {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.status-chip.blue { background: #d9e7ff; color: var(--blue); }
.status-chip.gold { background: #f5e8bb; color: #8a6311; }
.status-chip.teal { background: #d6f3eb; color: var(--teal); }
.status-chip.orange { background: #ffe0cf; color: var(--orange-dark); }
.status-chip.green { background: #d9f0de; color: var(--green); }
.status-chip.slate { background: #ece9e3; color: #60574d; }

.attention-pill {
  background: #ffebc4;
  color: #8e5b14;
}

.live-pill {
  background: #d9efde;
  color: var(--green);
}

.live-pill.subtle {
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.back-link {
  display: inline-flex;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.price-panel {
  display: grid;
  gap: 1rem;
}

.stack-divider {
  display: grid;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.price-line {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.application-list {
  display: grid;
  gap: 0.85rem;
}

.application-row,
.ledger-row,
.page-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.ledger-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ledger-tags span {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(21, 44, 77, 0.06);
}

.auth-wrap {
  max-width: 40rem;
  margin: 0 auto;
}

.auth-wrap.contact-wrap {
  max-width: 52rem;
}

.auth-panel.wide {
  max-width: none;
}

.target-list {
  display: grid;
  gap: 1rem;
}

.target-card {
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.modality-toggles label,
.pill-selector label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(21, 44, 77, 0.05);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-grid .panel {
  display: grid;
  gap: 0.35rem;
}

.stat-grid strong {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  color: var(--orange);
}

.record-layout {
  grid-template-columns: 16rem 1fr;
  align-items: start;
}

.page-rail {
  display: grid;
  gap: 0.65rem;
}

.rail-head {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-link {
  justify-content: flex-start;
  gap: 0.8rem;
}

.page-link span {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(21, 44, 77, 0.08);
}

.page-link.active {
  border-color: var(--orange);
  background: #fff4ec;
}

.deliverable-tab,
.wizard-step {
  border: 1px solid var(--line);
  background: rgba(21, 44, 77, 0.04);
  color: var(--muted);
}

.deliverable-tab.active,
.wizard-step.active,
.wizard-step.done {
  color: var(--navy);
  background: #eef4ff;
}

.wizard-step.active {
  border-color: var(--orange);
  background: #fff0e5;
}

.translation-box textarea,
.source-card,
.context-box,
.media-box,
.empty-panel,
.self-heal-card {
  display: grid;
  gap: 0.85rem;
}

.media-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.media-box {
  background: rgba(21, 44, 77, 0.04);
  border-radius: 1.1rem;
  padding: 1rem;
}

.warning-panel {
  border-color: #ebb55a;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 52rem;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.choice-stack {
  display: grid;
  gap: 0.8rem;
}

.self-heal-card {
  max-width: 42rem;
  margin: 0 auto;
}

.site-footer {
  border-top: 1px solid rgba(21, 44, 77, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.site-footer-inner {
  width: min(var(--page-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 6rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.sound-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--orange);
  border-radius: 999px;
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: rgba(21, 44, 77, 0.94);
  border-radius: 1.3rem;
  padding: 0.55rem;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  box-shadow: 0 20px 40px rgba(21, 44, 77, 0.25);
}

.mobile-nav-link {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding: 0.7rem 0.3rem;
  border-radius: 0.95rem;
}

.mobile-nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.muted {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-grid,
  .job-detail-grid,
  .marketplace-grid,
  .post-grid,
  .settings-grid,
  .translate-grid,
  .review-grid,
  .record-layout,
  .split-heading,
  .page-head.split-head {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .nav-panel,
  .sticky-panel,
  .page-rail {
    position: static;
  }

  .dashboard-links,
  .dual-grid,
  .three-up,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(var(--page-width), calc(100% - 1rem));
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-audio {
    min-height: auto;
    padding: 1.4rem;
  }

  .dashboard-links,
  .dual-grid,
  .three-up,
  .stat-grid,
  .media-review-grid,
  .mini-spec-grid,
  .mini-spec-grid.compact {
    grid-template-columns: 1fr;
  }

  .split-form,
  .job-card-head,
  .site-footer-inner,
  .record-toolbar,
  .section-head-inline,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pay-block {
    text-align: left;
  }

  .button,
  .button.ghost {
    width: 100%;
  }

  .mobile-nav {
    display: grid;
  }

  .site-footer-inner {
    padding-bottom: 7rem;
  }
}
