:root {
  color-scheme: light;
  --ink: #13202f;
  --muted: #5b6675;
  --line: #d8e0e8;
  --paper: #fbfcf8;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #ef6f5e;
  --gold: #d8a23d;
  --shadow: 0 18px 60px rgba(19, 32, 47, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid rgba(216, 224, 232, 0.85);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(19, 32, 47, 0.18);
}

.main-nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.28);
}

.button-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.54);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 36px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 32, 47, 0.84), rgba(19, 32, 47, 0.44) 48%, rgba(19, 32, 47, 0.14)),
    linear-gradient(0deg, rgba(19, 32, 47, 0.42), rgba(19, 32, 47, 0.04) 44%);
}

.hero-content {
  width: min(760px, 100%);
  padding: clamp(86px, 15vw, 150px) clamp(20px, 6vw, 72px) clamp(56px, 10vw, 96px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.product-strip div {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: var(--white);
}

.product-strip span,
.section-heading p,
.feature-card p,
.price-card p,
.security-list p {
  color: var(--muted);
  line-height: 1.65;
}

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

.builder-section {
  background: #eef6f4;
}

.account-section {
  background: #fffefa;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.builder-form,
.preview-panel,
.feature-card,
.price-card,
.security-list,
.account-card,
.user-manager {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.account-card h3 {
  margin-bottom: 0;
}

.account-status {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.user-manager {
  margin-top: 20px;
  padding: 22px;
}

.manager-heading,
.user-row,
.user-actions {
  display: flex;
  align-items: center;
}

.manager-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.manager-heading h3 {
  margin-bottom: 0;
}

.manager-heading span {
  color: var(--muted);
  font-weight: 800;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.user-row.current {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: inset 4px 0 0 var(--teal);
}

.user-row div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.status-pill.active {
  background: rgba(15, 118, 110, 0.13);
  color: var(--teal-dark);
}

.status-pill.inactive {
  background: rgba(239, 111, 94, 0.13);
  color: #9b392d;
}

.user-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.user-actions .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.empty-state {
  margin-bottom: 0;
  color: var(--muted);
}

.builder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 4vw, 32px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

label:has(textarea),
.form-actions {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffefa;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.preview-panel {
  position: sticky;
  top: 84px;
  padding: 22px;
}

.score-band {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.score-band div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.score-label {
  color: var(--muted);
  font-weight: 800;
}

#ats-score {
  color: var(--teal-dark);
  font-size: 1.8rem;
}

progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8edf1;
}

progress::-webkit-progress-bar {
  background: #e8edf1;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}

.cv-preview {
  min-height: 340px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fffefa;
}

.cv-preview h3 {
  font-size: 1.55rem;
}

.cv-preview h4 {
  margin: 18px 0 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.cv-preview p {
  color: #263545;
  line-height: 1.55;
  white-space: pre-wrap;
}

.checklist {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.check-dot {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ecf0f3;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.check-item.complete {
  color: var(--ink);
}

.check-item.complete .check-dot {
  background: var(--teal);
  color: var(--white);
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.price-card {
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--coral);
  font-weight: 900;
}

.pricing-section {
  background: var(--ink);
  color: var(--white);
}

.pricing-section .section-heading p,
.price-card p {
  color: rgba(255, 255, 255, 0.72);
}

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

.price-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.price-card.highlighted {
  border-color: rgba(239, 111, 94, 0.8);
}

.price {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 900;
}

.security-list {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.security-list p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #0e1723;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(19, 32, 47, 0.86), rgba(19, 32, 47, 0.24));
  }

  .product-strip,
  .account-grid,
  .builder-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    padding: 12px 16px;
  }

  .site-header .button {
    min-height: 38px;
    padding: 0 12px;
  }

  .brand span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .builder-form {
    grid-template-columns: 1fr;
  }

  .user-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
