:root {
  --bg: #f4f0e8;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-dark: #10252b;
  --text: #152227;
  --muted: #5d6a72;
  --line: rgba(21, 34, 39, 0.12);
  --line-strong: rgba(21, 34, 39, 0.18);
  --accent: #b85a34;
  --accent-deep: #8a3f20;
  --accent-soft: #f2dccf;
  --teal: #20484f;
  --teal-soft: #dbe8e8;
  --ink-inverse: #f7f3eb;
  --ok: #1f765c;
  --warn: #956318;
  --danger: #9c4130;
  --shadow: 0 20px 60px rgba(39, 32, 25, 0.12);
  --shadow-soft: 0 18px 40px rgba(26, 22, 18, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(184, 90, 52, 0.16), transparent 26%),
    radial-gradient(circle at right 20%, rgba(32, 72, 79, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  max-width: 11ch;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  line-height: 1.1;
}

p,
li,
th,
td,
input,
select,
button {
  line-height: 1.65;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 28px 0 64px;
  color: var(--ink-inverse);
  background:
    radial-gradient(circle at top left, rgba(255, 247, 239, 0.16), transparent 22%),
    linear-gradient(140deg, #10252b 0%, #18383f 44%, #97502f 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 110px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 248, 241, 0.08);
  filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 24px;
}

.brand-mark {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark-dark {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(247, 243, 235, 0.24);
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.08);
  color: var(--ink-inverse);
  padding: 0.7rem 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  font-weight: 700;
  text-decoration: none;
}

.header-cta {
  margin-left: 8px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: end;
  padding-top: 28px;
}

.eyebrow,
.section-kicker,
.preview-kicker {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text,
.support-line,
.section-heading p,
.preview-note,
.preview-meta,
.footer-copy,
.admin-note,
#results-copy {
  color: var(--muted);
}

.hero-text,
.support-line {
  color: rgba(247, 243, 235, 0.84);
}

.hero-copy-block {
  max-width: 680px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}

.cta-row-end {
  justify-content: flex-end;
}

.button-primary,
.button-secondary,
.button-tertiary,
.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button-primary:hover,
.button-secondary:hover,
.button-tertiary:hover,
.button-small:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff6ef;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 24px rgba(138, 63, 32, 0.24);
}

.button-secondary {
  color: var(--ink-inverse);
  border: 1px solid rgba(247, 243, 235, 0.26);
  background: rgba(247, 243, 235, 0.08);
}

.button-secondary-dark {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button-tertiary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
}

.button-inline {
  min-height: 48px;
}

.support-line {
  max-width: 58ch;
}

.proof-panel {
  padding: 28px;
  border: 1px solid rgba(247, 243, 235, 0.12);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(247, 243, 235, 0.12), rgba(247, 243, 235, 0.06));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.proof-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.proof-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f6b08d;
  flex: none;
}

.proof-stats {
  display: grid;
  gap: 12px;
}

.proof-stat {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 241, 0.08);
  border: 1px solid rgba(247, 243, 235, 0.12);
}

.proof-stat span,
.metric-label {
  display: block;
  color: rgba(247, 243, 235, 0.72);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-stat strong,
.metric-card strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.trust-strip {
  padding-top: 18px;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0 0 18px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  text-align: center;
}

.content-section {
  padding: 56px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.section-layout,
.about-layout,
.result-layout {
  display: grid;
  gap: 28px;
}

.section-heading {
  max-width: 760px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.preview-grid,
.card-grid,
.step-grid,
.vacancy-grid,
.portal-stat-grid {
  display: grid;
  gap: 18px;
}

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

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

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.preview-card,
.info-card,
.portal-vacancy-card,
.metric-card,
.panel,
.result-panel,
.portal-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  box-shadow: var(--shadow-soft);
}

.preview-card,
.info-card,
.portal-vacancy-card,
.result-panel,
.metric-card {
  padding: 22px;
}

.preview-card {
  display: grid;
  align-content: start;
  min-height: 240px;
}

.preview-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.preview-kicker,
.preview-company {
  color: var(--teal);
}

.preview-company {
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.preview-meta,
.preview-note {
  font-size: 0.96rem;
}

.preview-state {
  display: grid;
  gap: 18px;
}

.preview-state-copy,
.closing-line {
  font-weight: 700;
}

.preview-card-skeleton {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 241, 234, 0.76));
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32, 72, 79, 0.08), rgba(184, 90, 52, 0.14), rgba(32, 72, 79, 0.08));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.skeleton-line + .skeleton-line {
  margin-top: 14px;
}

.skeleton-line-short {
  width: 42%;
}

.skeleton-line-medium {
  width: 64%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.result-panel {
  max-width: 760px;
}

.result-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 18px;
}

.about-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.final-cta-section {
  padding-bottom: 72px;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(16, 37, 43, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at right top, rgba(184, 90, 52, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 243, 235, 0.9));
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 0 0 56px;
}

.contact-section {
  padding-top: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-point strong {
  font-size: 1.15rem;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(184, 90, 52, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 243, 235, 0.92));
  box-shadow: var(--shadow);
}

.contact-form,
.contact-grid {
  display: grid;
  gap: 16px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-actions {
  display: grid;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.contact-submit {
  border: 0;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.privacy-note {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-feedback {
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.contact-feedback-success {
  color: var(--ok);
  background: rgba(31, 118, 92, 0.1);
}

.contact-feedback-error {
  color: var(--danger);
  background: rgba(156, 65, 48, 0.1);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.portal-shell {
  padding: 28px 0 56px;
}

.portal-lock-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 243, 235, 0.9));
  box-shadow: var(--shadow);
}

.portal-lock-copy,
.portal-lock-error {
  max-width: 52ch;
}

.portal-lock-form {
  display: grid;
  gap: 16px;
  margin: 28px 0 18px;
}

.portal-lock-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.portal-lock-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.portal-lock-button {
  border: 0;
  cursor: pointer;
}

.portal-lock-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.portal-lock-error {
  color: var(--danger);
  font-weight: 700;
}

.portal-lock-back {
  margin-top: 10px;
}

.portal-hero {
  padding: 28px;
  margin-bottom: 24px;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: end;
}

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

.portal-stat-grid .metric-card {
  background: linear-gradient(180deg, rgba(247, 248, 248, 0.95), rgba(238, 243, 243, 0.92));
}

.portal-stat-grid .metric-label {
  color: var(--muted);
}

.panel {
  padding: 24px;
}

.filters-panel {
  margin-bottom: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.filters-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.filters-grid input,
.filters-grid select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.filters-grid input:focus,
.filters-grid select:focus,
.site-nav a:focus,
.button-primary:focus,
.button-secondary:focus,
.button-tertiary:focus,
.menu-toggle:focus,
.tab:focus {
  outline: 3px solid rgba(184, 90, 52, 0.28);
  outline-offset: 3px;
}

.view-switch {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(32, 72, 79, 0.08);
}

.tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  color: var(--muted);
}

.tab.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 10px 18px rgba(26, 22, 18, 0.08);
}

.results-bar {
  margin-bottom: 14px;
}

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

.portal-vacancy-card {
  min-height: 100%;
}

.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-default {
  background: rgba(32, 72, 79, 0.08);
  color: var(--teal);
}

.badge-location {
  background: rgba(184, 90, 52, 0.1);
  color: var(--accent-deep);
}

.badge-source,
.badge-date,
.badge-fresh {
  background: rgba(21, 34, 39, 0.08);
  color: var(--text);
}

.badge-approved {
  background: rgba(31, 118, 92, 0.12);
  color: var(--ok);
}

.badge-pending,
.badge-critical {
  background: rgba(149, 99, 24, 0.12);
  color: var(--warn);
}

.badge-suppressed {
  background: rgba(156, 65, 48, 0.12);
  color: var(--danger);
}

.card-title,
.company-line,
.notes,
.card-footer {
  margin-bottom: 0;
}

.company-line,
.signal-subline {
  color: var(--muted);
}

.card-footer {
  margin-top: 18px;
}

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

.signals-table {
  width: 100%;
  border-collapse: collapse;
}

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

.signal-title,
.signal-subline {
  margin-bottom: 0;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1080px) {
  .preview-grid,
  .card-grid-four,
  .vacancy-grid,
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout,
  .portal-hero-grid,
  .final-cta,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 6px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(17, 37, 43, 0.96);
    border: 1px solid rgba(247, 243, 235, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-cta {
    margin-left: 0;
  }

  .preview-grid,
  .card-grid-three,
  .card-grid-four,
  .step-grid,
  .vacancy-grid,
  .portal-stat-grid,
  .filters-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .portal-topbar,
  .footer-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .section-actions,
  .cta-row-end {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
  }

  .hero-section {
    padding-bottom: 44px;
  }

  .content-section {
    padding: 42px 0;
  }

  .preview-card,
  .info-card,
  .portal-vacancy-card,
  .metric-card,
  .panel,
  .final-cta,
  .proof-panel,
  .portal-hero,
  .portal-lock-card {
    padding: 20px;
  }

  .button-primary,
  .button-secondary,
  .button-tertiary,
  .portal-lock-button {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
