:root {
  color-scheme: light dark;
  --page: #ffffff;
  --page-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #4a4a4f;
  --ink-faint: #6e6e73;
  --line: #e3e4e8;
  --line-strong: #d1d2d7;
  --white: #ffffff;
  --blue: #0071e3;
  --blue-dark: #0059b8;
  --blue-soft: #eaf4ff;
  --green-soft: #e8f8ee;
  --green-ink: #257942;
  --amber-soft: #fff2dc;
  --amber-ink: #946200;
  --purple-soft: #f2edff;
  --purple-ink: #6552d0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-muted: #f5f5f7;
  --surface-hover: rgba(247, 248, 250, 0.92);
  --surface-active: rgba(234, 244, 255, 0.9);
  --nav-surface: rgba(248, 248, 250, 0.74);
  --nav-border: rgba(255, 255, 255, 0.72);
  --card-border: rgba(29, 29, 31, 0.08);
  --card-border-soft: rgba(29, 29, 31, 0.06);
  --glass-border: rgba(255, 255, 255, 0.82);
  --shadow-xl: 0 36px 90px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.05);
  --radius-2xl: 36px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--page);
}

.marketing-page,
.onboarding-page {
  background:
    radial-gradient(circle at top center, rgba(0, 113, 227, 0.1), transparent 30%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 35%, #ffffff 100%);
}

.app-page {
  background:
    radial-gradient(circle at top center, rgba(0, 113, 227, 0.08), transparent 22%),
    linear-gradient(180deg, #f8f9fb 0%, #eef2f7 100%);
}

h1,
h2,
h3,
h4,
strong {
  margin: 0;
  letter-spacing: -0.04em;
}

p,
ul {
  margin: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

.hidden {
  display: none !important;
}

.site-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-flow {
  display: grid;
  gap: 4.5rem;
  padding: 1rem 0 5rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0 3rem;
  color: var(--ink-soft);
}

.site-footer strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.site-footer p {
  max-width: 32rem;
  line-height: 1.55;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-footer-links a {
  color: var(--ink-soft);
  font-weight: 600;
}

.legal-hero {
  gap: 2rem;
}

.legal-intro {
  gap: 0.9rem;
}

.legal-disclaimer {
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.legal-grid {
  align-items: flex-start;
}

.legal-card {
  padding: 1.75rem;
}

.legal-copy {
  display: grid;
  gap: 1rem;
  line-height: 1.7;
}

.legal-copy h2 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.legal-copy p,
.support-copy p {
  color: var(--ink-soft);
}

.legal-copy a {
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.support-copy {
  display: grid;
  gap: 1rem;
}

.settings-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compact-pricing-grid .pricing-card {
  min-height: 100%;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  margin-top: 0.6rem;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  background: center / contain no-repeat url("/brand-mark-light.svg?v=4");
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.14));
}

.brand-home {
  gap: 0.68rem;
}

.brand-mark-home {
  width: 1.82rem;
  height: 1.82rem;
  background-image: url("/brand-mark-light.svg?v=4");
  filter:
    drop-shadow(0 12px 20px rgba(15, 23, 42, 0.1))
    drop-shadow(0 1px 4px rgba(15, 23, 42, 0.03));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  width: 2.9rem;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.top-nav[data-nav-open="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}

.top-nav[data-nav-open="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.top-nav[data-nav-open="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.nav-links,
.nav-actions,
.hero-actions,
.preview-badges,
.preview-tag-row,
.preview-role-tags,
.filter-row,
.job-actions-inline,
.signin-actions,
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links {
  gap: 1.4rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.22);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--card-border);
  background: var(--surface-strong);
}

.button.ghost {
  color: var(--ink);
  border-color: var(--card-border);
  background: var(--surface);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.section-kicker,
.hero-label,
.question-label,
.preview-card-label,
.pricing-label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.86rem;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marketing-hero {
  padding: 4.5rem 0 0;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto 3rem;
  text-align: center;
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(3.8rem, 7vw, 6.6rem);
  line-height: 0.92;
}

.hero-copy {
  max-width: 760px;
  margin: 1.25rem auto 0;
  color: var(--ink-soft);
  font-size: 1.22rem;
  line-height: 1.6;
}

.hero-actions {
  justify-content: center;
  margin-top: 1.75rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--ink-faint);
  font-size: 1rem;
}

.dashboard-preview {
  position: relative;
  min-height: 780px;
  padding: 0.75rem 0 0;
  color: var(--ink);
  overflow: visible;
}

.dashboard-preview-stage {
  position: relative;
  min-height: 780px;
}

.hero-visual-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(54px);
  pointer-events: none;
  opacity: 0.95;
}

.hero-visual-glow-a {
  left: -4rem;
  top: 8rem;
  width: 16rem;
  height: 16rem;
  background: rgba(10, 132, 255, 0.16);
}

.hero-visual-glow-b {
  right: -3rem;
  bottom: 9rem;
  width: 15rem;
  height: 15rem;
  background: rgba(96, 165, 250, 0.14);
}

.hero-dashboard-shell,
.hero-float-card {
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 24px 48px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px);
}

.hero-dashboard-shell {
  z-index: 2;
  width: min(820px, calc(100% - 18rem));
  margin: 8.5rem auto 4.5rem;
  padding: 1rem;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  transform: perspective(1800px) rotateX(9deg) rotateY(-7deg);
  transform-origin: center top;
}

.hero-dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-dashboard-topbar strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.08;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #34c759;
  box-shadow: 0 0 0 0.35rem rgba(52, 199, 89, 0.14);
}

.hero-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(312px, 0.92fr);
  gap: 1rem;
}

.hero-dashboard-list,
.hero-dashboard-side {
  border: 1px solid var(--card-border-soft);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.hero-dashboard-list {
  padding: 1rem;
}

.hero-dashboard-side {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.hero-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.hero-column-head strong {
  font-size: 1rem;
}

.hero-column-head span {
  color: var(--ink-faint);
  font-size: 0.84rem;
  font-weight: 600;
}

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

.hero-application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: rgba(247, 248, 250, 0.9);
}

.hero-application-row.active {
  border-color: rgba(10, 132, 255, 0.22);
  background: linear-gradient(180deg, rgba(234, 244, 255, 0.98) 0%, rgba(245, 249, 255, 0.94) 100%);
  box-shadow: 0 16px 28px rgba(10, 132, 255, 0.12);
}

.hero-application-copy strong,
.hero-side-card strong,
.hero-float-card strong {
  display: block;
}

.hero-application-copy strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.hero-application-copy p,
.hero-side-card p,
.hero-float-card p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-application-copy p {
  margin-top: 0.22rem;
  font-size: 0.88rem;
}

.hero-application-time {
  flex-shrink: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-side-card {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  background: rgba(247, 248, 250, 0.92);
}

.hero-side-card strong {
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.18;
}

.hero-side-card p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.hero-mini-meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-meter-card {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.95rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: rgba(247, 248, 250, 0.92);
}

.hero-meter-card span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-meter-card strong {
  font-size: 1.2rem;
  line-height: 1;
}

.hero-float-card {
  position: absolute;
  z-index: 3;
  max-width: 280px;
  padding: 1rem 1.05rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-float-card .preview-card-label {
  align-self: flex-start;
  max-width: 100%;
  padding: 0.34rem 0.74rem;
  font-size: 0.71rem;
  letter-spacing: 0.06em;
}

.hero-float-card strong {
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.14;
}

.hero-float-card p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.hero-float-linkedin {
  left: 1.35rem;
  top: 1.35rem;
  width: 290px;
  transform: rotate(-5deg);
}

.hero-float-rules {
  right: 1.45rem;
  top: 1.75rem;
  width: 240px;
  transform: rotate(5deg);
}

.hero-float-answers {
  left: 2rem;
  bottom: 2.45rem;
  width: 286px;
  transform: rotate(4deg);
}

.hero-float-cover {
  right: 2rem;
  bottom: 2.8rem;
  width: 260px;
  transform: rotate(-4deg);
}

.linkedin-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.linkedin-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #0a66c2 0%, #0a84ff 100%);
  box-shadow: 0 12px 22px rgba(10, 102, 194, 0.28);
  overflow: visible;
}

.linkedin-logo-dot {
  display: none;
}

.linkedin-logo-text {
  position: static;
  display: block;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: translateY(0.04rem);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.linkedin-lockup strong {
  margin-top: 0;
}

.hero-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.hero-mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.preview-pill,
.lane-count,
.role-pill,
.fit-badge,
.mini-chip,
.filter-chip,
.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.source-rail {
  overflow: hidden;
  padding-bottom: 0.3rem;
}

.source-rail-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  margin: 0 auto;
}

.source-rail-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.source-rail-group.is-clone {
  display: none;
}

.source-rail span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
  white-space: nowrap;
}

.section-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.section-intro h2,
.cta-banner h2,
.signin-card h2,
.onboarding-panel h1,
.topbar-copy h1,
.summary-copy h2,
.profile-snapshot h2 {
  margin-top: 0.85rem;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.98;
}

.section-intro p,
.cta-banner p,
.signin-card p,
.question-description,
.topbar-copy p,
.summary-copy p,
.profile-snapshot p,
.metric-card p,
.info-tile p,
.flow-step p,
.faq-item p,
.quick-row span,
.source-row p,
.content-row p,
.content-row-meta,
.role-card-meta,
.role-card-summary,
.input-field span,
.choice-hint,
.analysis-bar-row p,
.side-list {
  color: var(--ink-soft);
  line-height: 1.68;
}

.feature-grid,
.showcase-grid,
.pricing-grid,
.dashboard-grid,
.overview-grid,
.analysis-grid {
  display: grid;
  gap: 1rem;
}

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

.showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.showcase-card {
  display: grid;
  gap: 1rem;
  min-height: 280px;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-lg);
}

.showcase-card.wide {
  grid-column: 1 / -1;
}

.showcase-card.dark {
  background: linear-gradient(135deg, #0f172a 0%, #111827 48%, #1d4ed8 160%);
  color: #ffffff;
}

.showcase-card.dark p,
.showcase-card.dark .section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.showcase-card.dark .section-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.showcase-card h3 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 0.98;
}

.showcase-card p {
  max-width: 42rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.showcase-card.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.showcase-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  white-space: nowrap;
}

.showcase-stat {
  display: grid;
  gap: 0.45rem;
  min-width: 280px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--surface);
}

.showcase-stat strong {
  font-size: 1.4rem;
}

.showcase-stat span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.proof-surface {
  display: grid;
  gap: 1.15rem;
}

.proof-intro {
  max-width: 880px;
}

.proof-layout {
  display: grid;
  gap: 1rem;
}

.proof-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.92fr);
}

.proof-hero-card,
.proof-stat-card {
  border: 1px solid var(--glass-border);
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.proof-hero-card {
  display: grid;
  gap: 1.4rem;
  padding: 2rem;
  background: linear-gradient(145deg, #08111f 0%, #10233d 54%, #184b89 150%);
  color: #ffffff;
}

.proof-card-head {
  display: grid;
  gap: 0.8rem;
}

.proof-card-head .section-kicker {
  justify-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.proof-card-head h3 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 0.98;
}

.proof-card-head p,
.proof-footnote {
  color: rgba(255, 255, 255, 0.78);
}

.proof-card-head p,
.proof-stat-card p {
  line-height: 1.72;
}

.proof-hero-statline {
  display: grid;
  gap: 0.35rem;
}

.proof-hero-statline strong {
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.proof-hero-statline span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.proof-hours-chart {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.proof-hours-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.proof-hours-row span {
  display: block;
  min-height: 6.25rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(41, 151, 255, 0.75) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.proof-hours-row span:nth-child(1) {
  opacity: 0.58;
}

.proof-hours-row span:nth-child(2) {
  opacity: 0.72;
}

.proof-hours-row span:nth-child(3) {
  opacity: 0.86;
}

.proof-hours-row span:nth-child(4) {
  opacity: 1;
}

.proof-footnote {
  font-size: 0.88rem;
}

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

.proof-stat-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.proof-stat-card .section-kicker {
  justify-self: flex-start;
}

.proof-stat-card strong {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.info-tile,
.flow-step,
.faq-item,
.metric-card,
.quick-row,
.content-row,
.detail-section,
.choice-card,
.analysis-bar-row,
.pricing-card,
.signin-card,
.onboarding-side-card,
.onboarding-panel,
.hero-summary-card,
.profile-snapshot,
.surface-card,
.sidebar-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.info-tile,
.flow-step,
.faq-item,
.metric-card,
.detail-section,
.content-row,
.analysis-bar-row {
  padding: 1.25rem;
}

.info-tile h3,
.flow-step strong,
.faq-item h3,
.surface-head h2,
.sidebar-card-head h2,
.lane-head h3,
.question-title,
.pricing-card h3,
.detail-section strong,
.content-row strong,
.quick-row strong {
  display: block;
}

.info-tile h3,
.faq-item h3,
.surface-head h2,
.sidebar-card-head h2,
.lane-head h3,
.question-title,
.detail-section strong,
.content-row strong {
  font-size: 1.18rem;
  line-height: 1.12;
}

.workflow-surface .flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.flow-step {
  display: grid;
  gap: 1rem;
  min-height: 250px;
  padding: 1.5rem;
  align-content: start;
}

.workflow-surface .flow-step strong {
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
  line-height: 1.08;
}

.workflow-surface .flow-step p {
  font-size: 1.02rem;
  line-height: 1.72;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
}

.pricing-card.featured {
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 18px 44px rgba(0, 113, 227, 0.14);
}

.pricing-card h3 {
  font-size: 3rem;
  line-height: 0.95;
}

.pricing-card h3 span {
  color: var(--ink-faint);
  font-size: 1rem;
  font-weight: 600;
}

.pricing-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.bullet-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

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

.faq-item {
  display: grid;
  gap: 0.7rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem 2.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  background: linear-gradient(135deg, #0f172a 0%, #111827 52%, #1d4ed8 150%);
  box-shadow: var(--shadow-xl);
  color: #ffffff;
}

.cta-banner-centered {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.cta-banner-centered .hero-actions {
  justify-content: center;
}

.cta-banner .section-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cta-banner .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 1.6rem;
  width: min(1840px, calc(100% - 2rem));
  margin: 1rem auto;
  padding-bottom: 2.1rem;
}

.app-sidebar {
  position: sticky;
  top: 0.75rem;
  align-self: start;
  display: grid;
  gap: 1.35rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  color: var(--ink-soft);
  font-weight: 600;
}

.sidebar-link.active,
.sidebar-link:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.mobile-tabbar,
.mobile-extension-note {
  display: none;
}

.mobile-tabbar {
  position: fixed;
  left: max(0.6rem, env(safe-area-inset-left));
  right: max(0.6rem, env(safe-area-inset-right));
  bottom: max(0.6rem, env(safe-area-inset-bottom));
  z-index: 30;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid var(--card-border-soft);
  border-radius: 24px;
  background: var(--nav-surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg);
}

.mobile-tabbar-link {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.52rem 0.2rem 0.4rem;
  border-radius: 18px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.mobile-tabbar-link.active {
  color: var(--ink);
  background: var(--surface-active);
}

.mobile-tabbar-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.mobile-extension-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sidebar-card,
.hero-summary-card,
.profile-snapshot,
.surface-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.55rem;
}

.sidebar-card-head,
.surface-head,
.role-card-head,
.content-row,
.analysis-bar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar-card-head h2,
.surface-head h2 {
  margin-top: 0.55rem;
  font-size: 1.3rem;
}

.sidebar-list,
.content-stack,
.cluster-list,
.lane-stack {
  display: grid;
  gap: 0.95rem;
}

.source-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(29, 29, 31, 0.08);
}

.source-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.source-row-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.app-main {
  display: grid;
  gap: 1.35rem;
  align-content: start;
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.45rem 0 0.25rem;
}

.topbar-copy h1 {
  font-size: clamp(2rem, 2.7vw, 2.8rem);
}

.topbar-copy p {
  max-width: 720px;
  margin-top: 0.85rem;
}

.app-main > section {
  display: grid;
  gap: 1.2rem;
}

.overview-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 1.2rem;
}

.hero-summary-card {
  display: grid;
  gap: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.92));
}

.summary-copy p {
  max-width: 720px;
  margin-top: 0.85rem;
}

.summary-copy h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  line-height: 1.02;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.metric-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  margin-bottom: 0.45rem;
  font-size: 1.7rem;
  line-height: 1;
}

.profile-snapshot h2 {
  margin-top: 0.8rem;
  font-size: 1.45rem;
}

.profile-snapshot p {
  margin-top: 0.8rem;
}

.quick-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.resume-status-list {
  margin-bottom: 1.25rem;
}

.quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
}

.quick-row strong {
  max-width: 55%;
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cluster-list {
  grid-template-columns: repeat(auto-fit, minmax(0, max-content));
  margin-top: 1rem;
}

.cluster-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
}

.surface-head {
  margin-bottom: 1.1rem;
}

.surface-head.compact {
  margin-bottom: 0.45rem;
}

.surface-head p {
  max-width: 540px;
}

.surface-subcopy {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.jobs-toolbar,
.applications-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.applications-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.search-field {
  display: grid;
  gap: 0.4rem;
  min-width: min(280px, 100%);
}

.search-field span {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 0.95rem;
  border: 0;
  border-radius: 16px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--card-border);
  color: var(--ink);
}

.filter-row {
  margin-bottom: 1rem;
}

.filter-chip,
.tiny-button {
  border: 1px solid var(--card-border);
  background: var(--surface-strong);
  color: var(--ink);
}

.filter-chip {
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
}

.filter-chip span {
  color: var(--ink-soft);
}

.filter-chip.active {
  border-color: rgba(0, 113, 227, 0.24);
  background: var(--blue-soft);
}

.filter-chip.active span,
.filter-chip.active strong {
  color: var(--blue);
}

.job-table-card {
  display: grid;
  gap: 1rem;
}

.role-board {
  min-width: 0;
}

.job-list-shell {
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--surface-strong);
  overflow: hidden;
}

.job-list-head,
.job-row {
  display: grid;
  grid-template-columns: minmax(240px, 2.1fr) minmax(170px, 1.2fr) minmax(140px, 1fr) 100px minmax(130px, 0.9fr) 92px;
  gap: 0.85rem;
  align-items: center;
}

.job-list-head {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-list-body {
  display: grid;
}

.job-row {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--card-border-soft);
  cursor: pointer;
  transition: background 160ms ease;
}

.job-row:last-child {
  border-bottom: 0;
}

.job-row:hover {
  background: var(--surface-hover);
}

.job-row.active {
  background: var(--surface-active);
}

.job-row-main {
  min-width: 0;
}

.job-row-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.job-row-company,
.job-row-location,
.job-row-time,
.job-row-note {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.35;
}

.job-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.mini-stack {
  display: grid;
  gap: 0.7rem;
}

.mini-row {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 18px;
  background: rgba(247, 248, 250, 0.86);
}

.lane-column {
  min-width: 250px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.lane-head h3 {
  margin-top: 0.35rem;
  font-size: 1.08rem;
}

.lane-count {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.06);
}

.role-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.role-card.active {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.12);
}

.role-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.role-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fit-badge {
  color: var(--blue);
  background: var(--blue-soft);
}

.mini-chip {
  color: var(--ink-soft);
  background: rgba(29, 29, 31, 0.06);
}

.role-pill.review {
  color: var(--amber-ink);
  background: var(--amber-soft);
}

.role-pill.ready {
  color: var(--green-ink);
  background: var(--green-soft);
}

.role-pill.applied {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.08);
}

.role-pill.archived {
  color: var(--purple-ink);
  background: var(--purple-soft);
}

.role-card-comp {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.role-card-summary {
  font-size: 0.93rem;
}

.tiny-button {
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  font-size: 0.76rem;
}

.tiny-button.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.detail-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  padding: 1.3rem;
}

.detail-actions-inline {
  margin-top: 1rem;
}

.facts-grid,
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fact-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  border: 1px solid var(--card-border-soft);
  border-radius: 18px;
  background: var(--surface-hover);
}

.fact-card span {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-card strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.detail-links-top {
  margin-top: 0;
}

.details-pane {
  display: grid;
  gap: 1.25rem;
}

.details-header {
  display: grid;
  gap: 0.7rem;
}

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

.answer-pack-intro {
  margin-top: 0.9rem;
}

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

.field-stack span {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-section strong {
  margin-bottom: 0.6rem;
}

.detail-section {
  display: grid;
  gap: 0.8rem;
}

.detail-section p,
.detail-section li {
  color: var(--ink-soft);
}

.content-row {
  align-items: center;
}

.content-row-copy {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.content-row-copy p:last-child {
  color: var(--ink-faint);
}

.content-row-actions {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.content-row-meta {
  white-space: nowrap;
}

.draft-text {
  white-space: pre-line;
}

.detail-answer-list {
  display: grid;
  gap: 0.75rem;
}

.detail-answer-row,
.answer-row-form {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--card-border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.detail-answer-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}

.detail-answer-row span {
  color: var(--ink-soft);
}

.detail-answer-row strong {
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: right;
}

.answer-groups {
  display: grid;
  gap: 1.25rem;
}

.answer-group {
  display: grid;
  gap: 0.9rem;
}

.answer-group-head strong {
  font-size: 1rem;
  color: var(--ink-soft);
}

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

.answer-row-form {
  grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: center;
}

.answer-row-copy {
  display: grid;
  gap: 0.25rem;
}

.answer-row-copy span {
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.answer-row-input {
  min-width: 0;
}

.answer-row-input input,
.answer-row-input textarea,
.answer-row-input select,
.field-stack input,
.field-stack textarea,
.field-stack select {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px var(--card-border);
  color: var(--ink);
  outline: none;
}

.answer-row-input textarea,
.field-stack textarea {
  min-height: 7.25rem;
  resize: vertical;
}

.answer-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 3.25rem;
}

.answer-readonly strong {
  font-size: 0.95rem;
}

.unresolved-card {
  display: grid;
  gap: 0.95rem;
}

.question-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.review-note,
.empty {
  padding: 0.95rem 1rem;
  border: 1px solid var(--card-border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.surface-state-banner,
.surface-state-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.surface-state-banner {
  margin-bottom: 1rem;
}

.surface-state-card {
  flex-direction: column;
  align-items: stretch;
}

.surface-state-banner[data-tone="error"],
.surface-state-card[data-tone="error"] {
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(255, 240, 239, 0.78);
}

.surface-state-banner[data-tone="loading"] {
  border-color: rgba(0, 113, 227, 0.16);
  background: rgba(234, 244, 255, 0.75);
}

.surface-state-copy {
  display: grid;
  gap: 0.28rem;
}

.surface-state-copy strong {
  font-size: 1rem;
}

.surface-state-copy p {
  color: var(--ink-soft);
  line-height: 1.58;
}

.surface-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skeleton-card,
.skeleton-row {
  position: relative;
  overflow: hidden;
}

.skeleton-card::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: skeleton-slide 1.2s ease-in-out infinite;
}

.skeleton-card {
  min-height: 5.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(229, 233, 241, 0.88), rgba(243, 246, 251, 0.9));
  border: 1px solid rgba(29, 29, 31, 0.05);
}

.skeleton-line {
  position: relative;
  display: inline-flex;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(220, 225, 234, 0.92);
}

.skeleton-line.short {
  width: 5.5rem;
}

.skeleton-line.medium {
  width: 10rem;
}

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

@keyframes skeleton-slide {
  100% {
    transform: translateX(100%);
  }
}

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

.upload-inline-form {
  display: grid;
  gap: 1.15rem;
  margin: 1.25rem 0 1.3rem;
}

.upload-field {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: 24px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--card-border);
}

.upload-field span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.upload-field input[type="file"] {
  width: 100%;
  margin-top: 0.15rem;
}

.upload-copy {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.15rem;
}

.upload-copy strong {
  font-size: 1rem;
  line-height: 1.35;
}

.upload-copy p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.content-stack + .form-grid,
.quick-list + .form-grid,
.quick-list + .upload-inline-form,
.upload-inline-form + .form-grid,
.surface-card > .form-grid + .form-grid {
  margin-top: 0.2rem;
}

.input-field,
.choice-field {
  display: grid;
  gap: 0.5rem;
}

.input-field.full,
.choice-field.full,
.upload-field.full,
.full-span {
  grid-column: 1 / -1;
}

.input-field span,
.choice-field legend {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.input-field input,
.input-field textarea,
.input-field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--card-border);
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  color: var(--ink-faint);
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus {
  border-color: rgba(0, 113, 227, 0.34);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.filter-warning {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 98, 0, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 242, 220, 0.78) 0%, rgba(255, 255, 255, 0.94) 100%);
  color: var(--ink);
}

.filter-warning strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.filter-warning p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.filter-warning[data-tone="caution"] {
  border-color: rgba(148, 98, 0, 0.24);
  background: linear-gradient(180deg, rgba(255, 242, 220, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.filter-warning[data-tone="strong"] {
  border-color: rgba(148, 98, 0, 0.34);
  background: linear-gradient(180deg, rgba(255, 234, 204, 0.98) 0%, rgba(255, 250, 240, 0.98) 100%);
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--card-border);
}

.toggle-field input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
}

.toggle-field span {
  font-weight: 600;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.2rem;
}

.onboarding-aside {
  position: sticky;
  top: 6rem;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.signin-card,
.onboarding-side-card,
.onboarding-panel {
  padding: 1.5rem;
}

.signin-card p {
  margin-top: 0.85rem;
}

.onboarding-side-card {
  display: grid;
  gap: 0.85rem;
}

.onboarding-side-title {
  font-size: 1.45rem;
  line-height: 1.08;
}

.side-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.1rem;
}

.onboarding-stage {
  min-width: 0;
}

.step-meta {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.onboarding-panel h1 {
  max-width: 14ch;
}

.progress-track,
.progress-bar,
.analysis-bar {
  overflow: hidden;
  width: 100%;
  border-radius: 999px;
}

.progress-track {
  height: 0.7rem;
  background: rgba(29, 29, 31, 0.08);
}

.progress-bar-light,
.progress-fill,
.analysis-bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease;
}

.progress-bar-light,
.analysis-bar-fill {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.progress-bar-light {
  width: 0;
}

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

.question-card {
  padding: 1.4rem;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--card-border-soft);
}

.question-title {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.question-description {
  max-width: 48rem;
  margin-top: 0.85rem;
}

.step-fields {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.choice-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-card.selected,
.choice-card:has(input:checked) {
  border-color: rgba(0, 113, 227, 0.26);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.12);
  transform: translateY(-1px);
}

.choice-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.analysis-visual {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.analysis-bar-row {
  align-items: center;
}

.analysis-bar-row strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.analysis-bar {
  width: min(240px, 100%);
  height: 0.75rem;
  background: rgba(29, 29, 31, 0.08);
}

.analysis-bar-fill {
  width: 0;
}

.progress-wrap {
  margin-top: 1rem;
}

.progress-bar {
  height: 0.8rem;
  background: rgba(29, 29, 31, 0.08);
}

.progress-fill {
  width: 0;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.paywall-metrics {
  margin-bottom: 1rem;
}

.settings-disclosure + .settings-disclosure {
  margin-top: 0.9rem;
}

.settings-disclosure {
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--surface);
}

.settings-disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 600;
}

.settings-disclosure summary::-webkit-details-marker {
  display: none;
}

.settings-disclosure-body {
  padding: 0 1.1rem 1.1rem;
}

.setup-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
}

.setup-modal-card {
  width: min(760px, 100%);
  display: grid;
  gap: 1.25rem;
  padding: 1.8rem;
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-xl);
}

.setup-modal-card h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.setup-modal-card p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.setup-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.setup-action {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border: 0;
  border-radius: 24px;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--card-border);
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.2rem;
}

.pager-copy {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pager-actions {
  display: flex;
  gap: 0.55rem;
}

.application-list {
  display: grid;
}

.run-list {
  display: grid;
}

.application-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 180px 140px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--card-border-soft);
}

.application-row:last-child {
  border-bottom: 0;
}

.run-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) 170px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--card-border-soft);
}

.run-row:last-child {
  border-bottom: 0;
}

.application-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.run-copy {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.run-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: space-between;
}

.run-copy strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.application-copy strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.application-copy span,
.application-copy p,
.application-date,
.run-copy p,
.run-copy span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.application-actions {
  display: flex;
  justify-content: flex-end;
}

.run-meta {
  display: grid;
  justify-items: end;
  gap: 0.28rem;
}

.run-meta strong {
  font-size: 0.88rem;
}

.run-meta span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.run-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.run-status-running {
  background: var(--blue-soft);
  color: var(--blue);
}

.run-status-completed {
  background: var(--green-soft);
  color: var(--green-ink);
}

.run-status-paused,
.run-status-skipped {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.run-status-failed {
  background: rgba(255, 59, 48, 0.12);
  color: #b42318;
}

.run-status-duplicate {
  background: var(--surface-muted);
  color: var(--ink-faint);
}

.details-modal-card {
  max-width: 760px;
  gap: 1.5rem;
  padding: 2rem;
  max-height: calc(100vh - 2rem);
}

.details-modal-card #detailsPane {
  min-height: 0;
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.detail-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.cover-letter-section {
  display: grid;
  gap: 1rem;
}

.cover-letter-form {
  display: grid;
  gap: 0.9rem;
}

.cover-letter-output {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--card-border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
  white-space: pre-wrap;
}

.cover-letter-audit {
  margin-top: -0.15rem;
}

.setup-action:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(29, 29, 31, 0.08),
    0 16px 30px rgba(15, 23, 42, 0.06);
}

.setup-action strong {
  font-size: 1.02rem;
}

.setup-action span {
  color: var(--ink-soft);
  line-height: 1.55;
}

.setup-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

body.modal-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 50;
  min-width: 260px;
  max-width: min(520px, calc(100% - 2rem));
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1200px) {
  .overview-grid,
  .onboarding-layout,
  .workspace-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    display: grid;
    gap: 1rem;
    min-height: auto;
    padding-top: 0.3rem;
  }

  .hero-dashboard-shell {
    width: 100%;
    margin: 0;
    transform: none;
    order: 1;
  }

  .hero-float-card {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    transform: none;
    order: 2;
  }

  .hero-visual-glow {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .showcase-grid,
  .workflow-surface .flow-grid,
  .proof-layout,
  .pricing-grid,
  .dashboard-grid,
  .workspace-grid,
  .analysis-grid,
  .choice-grid,
  .form-grid,
  .hero-dashboard-grid,
  .hero-mini-meter {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    gap: 0.85rem;
  }

  .app-sidebar {
    grid-template-columns: 1fr;
  }

  .jobs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .job-list-head {
    display: none;
  }

  .job-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .job-row-actions {
    justify-content: flex-start;
  }

  .application-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .run-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .run-title-row {
    flex-wrap: wrap;
  }

  .answer-row-form,
  .detail-answer-row {
    grid-template-columns: 1fr;
  }

  .application-actions {
    justify-content: flex-start;
  }

  .run-meta {
    justify-items: flex-start;
  }
}

@media (max-width: 760px) {
  .app-page {
    min-height: 100dvh;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    box-sizing: border-box;
  }

  .site-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .site-footer,
  .settings-link-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-footer {
    padding-bottom: 6.5rem;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .cta-banner,
  .app-topbar,
  .surface-head,
  .analysis-bar-row,
  .content-row,
  .quick-row,
  .hero-dashboard-topbar,
  .hero-application-row {
    flex-direction: column;
  }

  .marketing-hero,
  .section-card,
  .cta-banner,
  .signin-card,
  .onboarding-side-card,
  .onboarding-panel,
  .hero-dashboard-shell,
  .hero-summary-card,
  .profile-snapshot,
  .surface-card,
  .sidebar-card,
  .detail-card {
    border-radius: 28px;
  }

  .marketing-hero,
  .section-card,
  .cta-banner {
    padding: 1.4rem;
  }

  .top-nav.top-nav-collapsible {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: 24px;
  }

  .top-nav.top-nav-collapsible .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .top-nav.top-nav-collapsible .brand span:last-child {
    font-size: 0.94rem;
  }

  .top-nav.top-nav-collapsible .nav-actions {
    width: auto;
    margin-left: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
  }

  .top-nav.top-nav-collapsible .nav-actions .button {
    width: auto;
    min-height: 2.6rem;
    padding: 0.72rem 0.92rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .top-nav.top-nav-collapsible .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .top-nav.top-nav-collapsible .nav-links {
    display: none;
    order: 3;
    width: 100%;
    padding-top: 0.35rem;
  }

  .top-nav.top-nav-collapsible[data-nav-open="true"] .nav-links {
    display: grid;
    gap: 0.45rem;
  }

  .top-nav.top-nav-collapsible .nav-links a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.78rem 0.95rem;
    border: 1px solid var(--card-border-soft);
    border-radius: 16px;
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
  }

  .marketing-hero {
    padding-top: 2rem;
  }

  .hero-content {
    margin-bottom: 1.6rem;
  }

  .dashboard-preview {
    display: block;
    position: relative;
    gap: 0;
    --hero-stage-width: 1180px;
    --hero-stage-height: 760px;
    --hero-mobile-scale: clamp(0.28, calc((100vw - 1rem) / var(--hero-stage-width)), 0.4);
    height: calc(var(--hero-stage-height) * var(--hero-mobile-scale));
    min-height: auto;
    padding-top: 0;
    overflow: visible;
  }

  .dashboard-preview-stage {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--hero-stage-width);
    height: var(--hero-stage-height);
    min-width: 0;
    min-height: 0;
    transform: translateX(-50%) scale(var(--hero-mobile-scale));
    transform-origin: top center;
  }

  .dashboard-preview-stage .hero-visual-glow {
    display: block;
  }

  .dashboard-preview-stage .hero-dashboard-shell {
    width: 820px;
    margin: 136px auto 0;
    padding: 1rem;
    border-radius: 34px;
    transform: perspective(1800px) rotateX(9deg) rotateY(-7deg);
    transform-origin: center top;
    order: initial;
  }

  .dashboard-preview-stage .hero-float-card {
    position: absolute;
    inset: auto;
    width: auto;
    max-width: 280px;
    transform: none;
    order: initial;
    padding: 1rem 1.05rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
  }

  .dashboard-preview-stage .hero-float-linkedin {
    left: 24px;
    top: 22px;
    width: 290px;
    transform: rotate(-5deg);
  }

  .dashboard-preview-stage .hero-float-rules {
    right: 24px;
    top: 28px;
    width: 240px;
    transform: rotate(5deg);
  }

  .dashboard-preview-stage .hero-float-answers {
    left: 34px;
    bottom: 34px;
    width: 286px;
    transform: rotate(4deg);
  }

  .dashboard-preview-stage .hero-float-cover {
    right: 30px;
    bottom: 28px;
    width: 260px;
    transform: rotate(-4deg);
  }

  .dashboard-preview-stage .hero-dashboard-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(312px, 0.92fr);
    gap: 1rem;
  }

  .dashboard-preview-stage .hero-mini-meter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .dashboard-preview-stage .hero-dashboard-topbar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .dashboard-preview-stage .hero-application-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .dashboard-preview-stage .hero-application-time {
    align-self: auto;
  }

  .hero-title,
  .section-intro h2,
  .cta-banner h2,
  .onboarding-panel h1,
  .topbar-copy h1 {
    font-size: clamp(2.3rem, 11vw, 4rem);
  }

  .role-board {
    grid-template-columns: 1fr;
  }

  .showcase-card.split,
  .setup-checklist,
  .setup-modal-actions,
  .pager,
  .detail-links {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .button,
  .topbar-actions,
  .hero-actions,
  .signin-actions,
  .onboarding-actions {
    width: 100%;
  }

  .topbar-actions,
  .hero-actions,
  .signin-actions,
  .onboarding-actions {
    display: grid;
  }

  .app-shell {
    width: min(100%, calc(100% - 0.75rem));
    gap: 1rem;
    margin: 0 auto calc(5.75rem + env(safe-area-inset-bottom));
  }

  .app-sidebar {
    display: block;
    gap: 0;
  }

  .app-sidebar > .brand {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0 0.2rem;
  }

  .sidebar-nav {
    display: none;
  }

  .mobile-tabbar {
    display: grid;
  }

  .app-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .app-header-actions .button {
    width: 100%;
  }

  .mobile-hide {
    display: none !important;
  }

  .surface-card,
  .sidebar-card,
  .hero-summary-card,
  .profile-snapshot {
    padding: 1.15rem;
  }

  .app-topbar {
    gap: 0.95rem;
    padding-top: 0;
  }

  .topbar-copy {
    gap: 0.25rem;
  }

  .app-topbar .topbar-actions:not(.app-header-actions) {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .app-topbar .topbar-actions:not(.app-header-actions) .button {
    width: 100%;
  }

  .applications-toolbar {
    gap: 0.85rem;
  }

  .search-field,
  .search-field input {
    width: 100%;
  }

  .application-row,
  .run-row {
    padding: 0.9rem 0.95rem;
    gap: 0.7rem;
  }

  .setup-modal {
    padding: 0.65rem;
  }

  .setup-modal-card,
  .details-modal-card {
    width: min(100%, 100%);
    padding: 1.18rem;
    border-radius: 24px;
    gap: 1rem;
  }

  .details-modal-card #detailsPane {
    max-height: calc(100vh - 8.75rem);
  }

  .marketing-hero .hero-content .hero-actions {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: auto;
    margin-inline: auto;
  }

  .marketing-hero .hero-content .hero-actions .button {
    width: auto;
    flex: 0 0 auto;
  }

  .source-rail {
    overflow: hidden;
    box-sizing: border-box;
    padding-inline: max(0.5rem, env(safe-area-inset-left)) max(0.5rem, env(safe-area-inset-right));
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  }

  .source-rail-track {
    margin: 0;
    gap: 0;
    padding-right: 0;
    animation: source-rail-scroll-mobile 18s linear infinite;
    will-change: transform;
  }

  .source-rail-group {
    padding-inline: 1.2rem;
  }

  .source-rail-group.is-clone {
    display: flex;
  }
}

@media (max-width: 480px) {
  .top-nav.top-nav-collapsible .nav-actions .button {
    min-height: 2.5rem;
    padding: 0.64rem 0.84rem;
    font-size: 0.8rem;
  }

  .dashboard-preview {
    --hero-mobile-scale: clamp(0.25, calc((100vw - 0.75rem) / var(--hero-stage-width)), 0.34);
    height: calc(var(--hero-stage-height) * var(--hero-mobile-scale));
  }

  .mobile-tabbar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 0;
    gap: 0.25rem;
    padding: 0.4rem;
  }

  .mobile-tabbar-link {
    padding: 0.46rem 0.1rem 0.34rem;
    font-size: 0.6rem;
  }

  .mobile-tabbar-icon {
    width: 1rem;
    height: 1rem;
  }
}

@keyframes source-rail-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.3rem));
  }
}

@keyframes source-rail-scroll-mobile {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .source-rail-track {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --page-soft: #0b0b0d;
    --ink: #f5f5f7;
    --ink-soft: #a1a1a6;
    --ink-faint: #86868b;
    --line: #2c2d30;
    --line-strong: #3b3c40;
    --blue: #2997ff;
    --blue-dark: #0077ed;
    --blue-soft: rgba(41, 151, 255, 0.16);
    --green-soft: rgba(48, 209, 88, 0.16);
    --green-ink: #78d998;
    --amber-soft: rgba(255, 159, 10, 0.16);
    --amber-ink: #ffbf47;
    --purple-soft: rgba(191, 90, 242, 0.16);
    --purple-ink: #d8b4fe;
    --surface: rgba(18, 18, 20, 0.84);
    --surface-strong: rgba(20, 20, 22, 0.94);
    --surface-muted: #15161a;
    --surface-hover: rgba(28, 29, 33, 0.92);
    --surface-active: rgba(16, 39, 69, 0.9);
    --nav-surface: rgba(17, 17, 19, 0.8);
    --nav-border: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-border-soft: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-xl: 0 36px 90px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .marketing-page,
  .onboarding-page {
    background:
      radial-gradient(circle at top center, rgba(41, 151, 255, 0.18), transparent 34%),
      linear-gradient(180deg, #020203 0%, #09090b 35%, #111216 100%);
  }

  .app-page {
    background:
      radial-gradient(circle at top center, rgba(41, 151, 255, 0.18), transparent 25%),
      linear-gradient(180deg, #040506 0%, #0b0c10 100%);
  }

  .brand-mark {
    background-image: url("/brand-mark.svg?v=8");
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  }

  .brand-mark-home {
    background-image: url("/brand-mark.svg?v=8");
    filter:
      drop-shadow(0 14px 22px rgba(0, 0, 0, 0.22))
      drop-shadow(0 1px 6px rgba(0, 0, 0, 0.14));
  }

  .dashboard-preview {
    color: var(--ink);
  }

  .dashboard-preview-stage .hero-dashboard-shell,
  .dashboard-preview-stage .hero-float-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 48px rgba(0, 0, 0, 0.28);
  }

  .dashboard-preview-stage .hero-dashboard-shell {
    background: rgba(15, 16, 19, 0.82);
  }

  .dashboard-preview-stage .hero-dashboard-list,
  .dashboard-preview-stage .hero-dashboard-side,
  .dashboard-preview-stage .hero-side-card,
  .dashboard-preview-stage .hero-meter-card,
  .dashboard-preview-stage .hero-float-card,
  .dashboard-preview-stage .hero-application-row {
    background: rgba(19, 20, 24, 0.86);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .dashboard-preview-stage .hero-application-row.active {
    background: linear-gradient(180deg, rgba(15, 43, 76, 0.95) 0%, rgba(14, 28, 48, 0.9) 100%);
    border-color: rgba(41, 151, 255, 0.22);
    box-shadow: 0 18px 30px rgba(10, 132, 255, 0.18);
  }

  .dashboard-preview-stage .hero-status-pill,
  .dashboard-preview-stage .hero-mini-tags span,
  .dashboard-preview-stage .preview-tag-row span,
  .dashboard-preview-stage .preview-role-tags span,
  .dashboard-preview-stage .preview-badges span,
  .dashboard-preview-stage .preview-filter-row span {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-dashboard-shell,
  .hero-float-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 48px rgba(0, 0, 0, 0.28);
  }

  .hero-dashboard-shell {
    background: rgba(15, 16, 19, 0.82);
  }

  .filter-warning {
    border-color: rgba(41, 151, 255, 0.24);
    background: linear-gradient(180deg, rgba(22, 41, 68, 0.9) 0%, rgba(16, 24, 38, 0.96) 100%);
  }

  .filter-warning p {
    color: rgba(245, 245, 247, 0.78);
  }

  .filter-warning[data-tone="caution"] {
    border-color: rgba(41, 151, 255, 0.34);
    background: linear-gradient(180deg, rgba(24, 49, 84, 0.94) 0%, rgba(16, 29, 49, 0.98) 100%);
  }

  .filter-warning[data-tone="strong"] {
    border-color: rgba(102, 178, 255, 0.42);
    background: linear-gradient(180deg, rgba(28, 56, 97, 0.98) 0%, rgba(17, 33, 57, 1) 100%);
  }

  .surface-state-banner,
  .surface-state-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.88);
  }

  .surface-state-banner[data-tone="loading"] {
    border-color: rgba(41, 151, 255, 0.26);
    background: rgba(14, 28, 48, 0.86);
  }

  .surface-state-banner[data-tone="error"],
  .surface-state-card[data-tone="error"] {
    border-color: rgba(255, 69, 58, 0.22);
    background: rgba(52, 18, 18, 0.86);
  }

  .surface-state-copy p {
    color: rgba(245, 245, 247, 0.78);
  }

  .skeleton-card {
    background: linear-gradient(180deg, rgba(34, 36, 42, 0.9), rgba(22, 24, 29, 0.95));
    border-color: rgba(255, 255, 255, 0.08);
  }

  .skeleton-line {
    background: rgba(52, 55, 62, 0.95);
  }

  .cover-letter-output {
    background: rgba(17, 19, 23, 0.92);
  }

  .hero-dashboard-list,
  .hero-dashboard-side,
  .hero-side-card,
  .hero-meter-card,
  .hero-float-card,
  .hero-application-row {
    background: rgba(19, 20, 24, 0.86);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .hero-application-row.active {
    background: linear-gradient(180deg, rgba(15, 43, 76, 0.95) 0%, rgba(14, 28, 48, 0.9) 100%);
    border-color: rgba(41, 151, 255, 0.22);
    box-shadow: 0 18px 30px rgba(10, 132, 255, 0.18);
  }

  .hero-status-pill,
  .hero-mini-tags span {
    background: rgba(255, 255, 255, 0.08);
  }

  .preview-tag-row span,
  .preview-role-tags span,
  .preview-badges span,
  .preview-filter-row span {
    background: rgba(255, 255, 255, 0.08);
  }

  .showcase-card.dark {
    background: linear-gradient(135deg, #050506 0%, #0b0c10 48%, #124c8f 150%);
  }

  .proof-hero-card {
    background: linear-gradient(145deg, #050608 0%, #0c1320 54%, #113e74 150%);
  }

  .proof-stat-card {
    background: linear-gradient(180deg, rgba(18, 18, 20, 0.96), rgba(20, 20, 24, 0.88));
  }
}
