:root {
  --bg: #f4f1ea;
  --bg-ink: #11110f;
  --ink: #171713;
  --muted: #69665d;
  --soft: #ebe6dc;
  --line: rgba(23, 23, 19, 0.16);
  --panel: #fffdf8;
  --panel-2: #f8f4ec;
  --accent: #ff4f1f;
  --accent-2: #175cff;
  --chart: #18a999;
  --amber: #c68413;
  --shadow: 0 28px 80px rgba(28, 24, 18, 0.18);
  --tight-shadow: 0 14px 34px rgba(28, 24, 18, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 17, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.hero-actions,
.proof-row,
.preview-header,
.headshot-card,
.workspace-header,
.stage-heading,
.stage-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-copy,
.footer-brand {
  display: grid;
  gap: 2px;
}

.brand-parent,
.footer-brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-product,
.footer-brand strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.05;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: var(--bg-ink);
  color: #fffdf8;
  box-shadow: inset 0 -10px 24px rgba(255, 79, 31, 0.18);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.nav-links {
  gap: 8px;
  color: #48453e;
  font-size: 14px;
  font-weight: 760;
}

.nav-links a {
  border-radius: 8px;
  padding: 10px 13px;
}

.nav-links a:hover {
  background: rgba(255, 253, 248, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.82fr);
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100vh - 76px);
  padding: clamp(52px, 7vw, 98px) clamp(18px, 5vw, 76px) 40px;
  align-items: center;
}

.eyebrow,
.label {
  margin: 0 0 9px;
  color: #5e3a13;
  font-size: 11px;
  font-weight: 920;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.2vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  max-width: 660px;
  color: #4c493f;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 22px;
}

.primary-action,
.secondary-action,
.primary-button,
.ghost-button,
.example-buttons button,
.tab-button,
.copy-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-ink);
  color: #fffdf8;
  box-shadow: 0 12px 26px rgba(17, 17, 15, 0.24);
}

.primary-action:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(17, 17, 15, 0.28);
}

.secondary-action,
.ghost-button,
.example-buttons button,
.tab-button,
.copy-button {
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  border-color: var(--line);
}

.secondary-action:hover,
.ghost-button:hover,
.example-buttons button:hover,
.tab-button:hover,
.copy-button:hover {
  border-color: rgba(23, 23, 19, 0.32);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #8d887d;
  box-shadow: none;
}

.proof-row {
  flex-wrap: wrap;
  gap: 10px;
}

.proof-row span,
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 253, 248, 0.78);
  color: #3d3931;
  font-size: 13px;
  font-weight: 820;
}

.result-preview,
.app-shell,
.pricing-strip,
.sample-gallery,
.flow-panel,
.steps-panel,
.live-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.result-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 244, 236, 0.98)),
    var(--panel);
}

.result-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--chart));
}

.preview-header {
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 18px;
  border-bottom: 1px solid var(--line);
}

.status-pill {
  color: #174036;
}

.headshot-card {
  gap: 14px;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 8px;
  background: #11110f;
  color: #fffdf8;
}

.headshot-card .label,
.headshot-card p {
  color: rgba(255, 253, 248, 0.72);
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(145deg, #ff6a2a, #175cff 58%, #10100e);
  color: #fff;
  font-weight: 950;
}

.avatar.large {
  width: 96px;
  height: 96px;
  font-size: 26px;
}

.preview-grid,
.workspace,
.package-grid {
  display: grid;
  gap: 14px;
}

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

.preview-grid > div,
.doc-stack article,
.checkout-box,
.output-card,
.panel-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.preview-grid > div {
  min-height: 112px;
  padding: 16px;
}

.score {
  display: block;
  color: var(--accent-2);
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.doc-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.doc-stack article,
.panel-block {
  padding: 16px;
}

.doc-stack article {
  position: relative;
  overflow: hidden;
}

.doc-stack article::after {
  content: "";
  display: block;
  width: 72%;
  height: 8px;
  margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(23, 92, 255, 0.18), rgba(255, 79, 31, 0.08));
}

.doc-stack p,
.headshot-card p,
.preview-grid p,
.stage-heading p,
.panel-block p,
.footer {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-strip {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 76px) 34px;
  overflow: hidden;
  border-radius: 8px;
  padding: 0;
  background: var(--line);
}

.pricing-strip > div {
  min-height: 132px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.9);
}

.pricing-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.pricing-strip div:first-child strong {
  font-size: 36px;
  letter-spacing: -0.05em;
}

.pricing-strip span {
  color: var(--muted);
}

.sample-gallery {
  margin: 0 clamp(18px, 5vw, 76px) 34px;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--tight-shadow);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

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

.sample-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.9);
}

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

.sample-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.sample-card strong {
  color: var(--ink);
}

.feedback-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(22px, 5vw, 64px);
  margin: 0 clamp(18px, 5vw, 76px) 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(120deg, rgba(23, 92, 255, 0.07), transparent 42%),
    rgba(255, 253, 248, 0.9);
  box-shadow: var(--tight-shadow);
}

.feedback-strip h2 {
  max-width: 700px;
}

.feedback-strip p {
  color: var(--muted);
  line-height: 1.6;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.feedback-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.app-shell {
  margin: 0 clamp(18px, 5vw, 76px) 54px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
}

.workspace-header {
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 79, 31, 0.08), transparent 36%),
    #fffdf8;
}

.workspace {
  grid-template-columns: 230px minmax(0, 1fr) 314px;
  gap: 0;
  border: 0;
  box-shadow: none;
}

.steps-panel,
.live-panel,
.flow-panel {
  border: 0;
  box-shadow: none;
}

.steps-panel,
.live-panel {
  background: #f7f1e7;
  padding: 22px;
}

.flow-panel {
  min-height: 640px;
  padding: 28px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
}

.step-list li.active {
  border-color: rgba(255, 79, 31, 0.28);
  background: rgba(255, 79, 31, 0.09);
  color: #6d260f;
}

.step-list li.complete {
  color: var(--ink);
}

.step-dot,
.step-badge {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6ded1;
  color: #4b463d;
  font-weight: 950;
}

.step-dot {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.step-badge {
  width: 40px;
  height: 40px;
  background: var(--bg-ink);
  color: #fffdf8;
}

.stage {
  display: none;
}

.stage.active {
  display: block;
}

.stage-heading {
  gap: 14px;
  margin-bottom: 24px;
}

.stage-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

textarea:focus,
input:focus {
  border-color: rgba(23, 92, 255, 0.54);
  box-shadow: 0 0 0 4px rgba(23, 92, 255, 0.12);
}

textarea[aria-invalid="true"] {
  border-color: rgba(255, 79, 31, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 79, 31, 0.12);
}

textarea {
  min-height: 188px;
  padding: 15px;
  resize: vertical;
  line-height: 1.55;
}

.example-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}

.upload-zone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 188px;
  border: 1px dashed rgba(17, 17, 15, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    #fffaf0;
  background-size: 22px 22px;
  text-align: center;
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone span {
  font-size: 18px;
  font-weight: 950;
}

.upload-zone small,
.upload-summary {
  color: var(--muted);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.resume-text {
  min-height: 154px;
}

.upload-summary,
.selfie-preview {
  margin: 14px 0 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.selfie-preview {
  display: flex;
  align-items: center;
  gap: 16px;
}

.selfie-preview img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.package-card {
  position: relative;
  min-height: 286px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fffdf8;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.package-card:hover {
  border-color: rgba(17, 17, 15, 0.36);
}

.package-card.selected {
  border-color: rgba(23, 92, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(23, 92, 255, 0.11);
}

.package-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 79, 31, 0.08), transparent 40%),
    #fffdf8;
}

.package-card.featured::after {
  content: "Best ad offer";
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #11110f;
  color: #fffdf8;
  font-size: 12px;
  font-weight: 900;
}

.package-card h4 {
  max-width: 65%;
  margin: 0 0 8px;
  font-size: 18px;
}

.price {
  margin: 16px 0;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.package-card ul,
.deliverables,
.diagnosis-section ul,
.diagnosis-section ol {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: #4d493f;
}

.diagnosis-result {
  display: grid;
  gap: 14px;
}

.diagnosis-empty,
.diagnosis-section,
.score-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  padding: 16px;
}

.diagnosis-empty p,
.diagnosis-section p,
.diagnosis-status,
.fallback-note {
  color: var(--muted);
  line-height: 1.55;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-card strong {
  display: block;
  color: var(--accent-2);
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.diagnosis-section p:last-child,
.diagnosis-section ul,
.diagnosis-section ol,
.diagnosis-status,
.fallback-note {
  margin-bottom: 0;
}

.fallback-note {
  border: 1px solid rgba(198, 132, 19, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(198, 132, 19, 0.08);
  font-weight: 780;
}

.checkout-box,
.error-box {
  display: grid;
  gap: 20px;
  max-width: 600px;
  padding: 22px;
  box-shadow: var(--tight-shadow);
}

.checkout-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.error-box {
  max-width: none;
  border: 1px solid rgba(255, 79, 31, 0.35);
  border-radius: 8px;
  background: rgba(255, 79, 31, 0.06);
  box-shadow: none;
}

.wide {
  width: 100%;
}

.generation-progress {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.generation-progress.active {
  display: flex;
}

.generation-progress span {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(17, 17, 15, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.output-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.download-button {
  margin-bottom: 14px;
}

.tab-button.active {
  background: var(--bg-ink);
  color: #fffdf8;
}

.output-card {
  padding: 22px;
  box-shadow: var(--tight-shadow);
}

.output-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.output-card pre {
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
  color: #28251f;
  font-family: inherit;
  line-height: 1.68;
}

.quote-block {
  border-color: rgba(255, 79, 31, 0.22);
  background: rgba(255, 79, 31, 0.06);
}

.quote-block blockquote {
  margin: 0;
  color: #342d23;
  font-size: 17px;
  line-height: 1.45;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #4c493f;
  font-weight: 760;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 42px);
}

.legal-page h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
}

.legal-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--tight-shadow);
}

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

.legal-card th,
.legal-card td {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  width: 34%;
  padding-right: 18px;
}

.todo-marker {
  color: var(--accent);
  font-weight: 900;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .hero {
    min-height: auto;
  }

  .result-preview {
    max-width: 720px;
  }

  .workspace {
    display: block;
  }

  .flow-panel {
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero {
    padding-top: 34px;
  }

  .pricing-strip,
  .feedback-strip,
  .package-grid,
  .step-list,
  .sample-grid,
  .diagnosis-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .pricing-strip > div {
    min-height: auto;
  }

  .workspace-header,
  .footer,
  .output-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .flow-panel,
  .steps-panel,
  .live-panel,
  .workspace-header {
    padding: 20px;
  }

  .package-card h4 {
    max-width: none;
  }

  .package-card.featured::after {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
}
