:root {
  --bg: #f4efe4;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-strong: #ffffff;
  --line: #dfd5c6;
  --ink: #1d2f28;
  --muted: #63756c;
  --accent: #1f5b47;
  --accent-soft: #dff0e8;
  --accent-warm: #c56d34;
  --shadow: 0 18px 48px rgba(42, 52, 45, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 109, 52, 0.12), transparent 22%),
    radial-gradient(circle at bottom right, rgba(31, 91, 71, 0.12), transparent 26%),
    var(--bg);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 228, 0.82);
  border-bottom: 1px solid rgba(31, 91, 71, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #14543f, #d08b4e);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.4rem;
}

.brand small,
.topnav a,
.section-note,
.status-text,
.payment-note,
.hero-copy,
.resume-preview.empty-preview p,
.chip-section p,
.insight-card li,
.file-label small {
  color: var(--muted);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav a {
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.page-shell {
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 240px;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 30px;
  background: linear-gradient(130deg, #174f3d, #3d6e58 58%, #cf8749);
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 72ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.03rem;
  line-height: 1.55;
}

.hero-guest-copy strong {
  color: #fff;
}

.hero-pricing {
  align-self: stretch;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-pricing p,
.hero-pricing span {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-pricing strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 2rem;
}

.workspace {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.builder-panel,
.preview-stack > section {
  background: var(--panel);
  border: 1px solid rgba(31, 91, 71, 0.08);
  box-shadow: var(--shadow);
}

.builder-panel {
  padding: 24px;
  border-radius: 28px;
}

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

.preview-panel > .section-heading {
  padding: 0 6px 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.65rem;
}

.builder-form {
  display: grid;
  gap: 18px;
}

.form-card,
.insight-card,
.payment-card,
.resume-preview-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--panel-strong);
}

.form-card h3,
.insight-card h3,
.payment-card h3,
.resume-preview-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 500;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
  color: var(--ink);
  padding: 14px 16px;
  resize: vertical;
}

textarea {
  min-height: 96px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(31, 91, 71, 0.16);
  border-color: #9fc7b5;
}

.file-label input {
  padding: 11px 14px;
}

.file-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf6f1;
  color: #295948;
  font-size: 0.92rem;
}

.form-actions,
.payment-actions {
  display: grid;
  gap: 12px;
}

.attempt-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8ef;
  border: 1px solid #ecd3b8;
  color: #7b542c;
}

.hidden-banner {
  display: none;
}

.primary-button,
.secondary-button,
.currency-option {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.primary-button {
  padding: 14px 18px;
  background: linear-gradient(135deg, #164d3c, #2f6d57);
  color: #fff;
  font-weight: 700;
}

.secondary-button {
  padding: 13px 16px;
  background: #f0e8dc;
  color: #204437;
  font-weight: 600;
}

.primary-button:hover,
.secondary-button:hover,
.currency-option:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf4ef;
  color: #2b5a49;
  font-size: 0.9rem;
}

.chip.is-gap {
  background: #f4ebe2;
  color: #8a5123;
}

.currency-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f2ecdf;
}

.currency-option {
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.currency-option.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(32, 47, 40, 0.08);
}

.payment-head,
.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.price-tag,
.draft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.price-tag {
  background: #edf4ef;
  color: var(--accent);
}

.draft-badge {
  background: #f2ecdf;
  color: #866034;
}

.draft-badge.ready {
  background: #e4f2eb;
  color: #1f5b47;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-preview {
  min-height: 420px;
  border: 1px solid rgba(31, 91, 71, 0.08);
  border-radius: 20px;
  background: #fbfaf7;
  padding: 20px;
  overflow: auto;
}

.empty-preview {
  display: grid;
  place-items: center;
}

.resume-preview .resume-document {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #ebe3d7;
  box-shadow: 0 12px 32px rgba(41, 48, 44, 0.06);
}

.resume-preview .resume-header {
  border-bottom: 2px solid #d8e4dd;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.resume-preview .resume-header h1 {
  margin: 0;
  font-size: 2rem;
}

.resume-preview .resume-role {
  margin: 7px 0 0;
  color: #2f5b4d;
}

.resume-preview .resume-contact {
  margin: 12px 0 0;
  color: #567068;
  font-size: 0.92rem;
}

.resume-preview .resume-section + .resume-section {
  margin-top: 22px;
}

.resume-preview .resume-section h2 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #235341;
}

.resume-preview .resume-item {
  margin-bottom: 14px;
}

.resume-preview .resume-item-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.resume-preview .resume-item h3 {
  margin: 0;
  font-size: 1rem;
}

.resume-preview .resume-item-subtitle {
  margin: 4px 0 0;
  color: #557167;
}

.resume-preview .resume-item-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
  color: #557167;
  font-size: 0.86rem;
}

.resume-preview ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.resume-preview li + li {
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .workspace,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .topbar {
    padding: 16px;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .payment-head,
  .preview-header {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 1.1rem;
  }

  .hero,
  .builder-panel,
  .form-card,
  .insight-card,
  .payment-card,
  .resume-preview-card {
    border-radius: 22px;
  }

  .resume-preview .resume-document {
    padding: 18px;
  }

  .download-actions {
    display: grid;
  }
}
