:root {
  --orange: #ec7817;
  --orange-dark: #d96b14;
  --orange-soft: rgba(236, 120, 23, 0.09);
  --orange-line: rgba(236, 120, 23, 0.38);
  --black: #050505;
  --charcoal: #111111;
  --carbon: #1a1a1a;
  --paper: #ffffff;
  --bone: #f7f7f5;
  --cream: #efeee9;
  --rule: #dedbd2;
  --ink: #101010;
  --ink-soft: #2d2d2d;
  --muted: #6e6a63;
  --danger: #b42318;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.quiz-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(236, 120, 23, 0.24), transparent 32rem),
    linear-gradient(180deg, #030303 0%, #0a0a0a 55%, #151515 100%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  color: var(--paper);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
}

.hero-top,
.hero-main {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-mark .accent {
  fill: var(--orange);
}

.brand-mark .ink {
  fill: #ffffff;
}

.brand-word {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-word span {
  color: var(--orange);
}

.free-tag {
  border: 1px solid var(--orange-line);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.free-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(236, 120, 23, 0.7);
}

.hero-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 48px 0 28px;
}

.hero-copy {
  max-width: 700px;
}

.hero-eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.03;
  margin: 0;
}

h1 {
  color: #ffffff;
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 900;
  letter-spacing: 0;
  max-width: 760px;
  text-transform: uppercase;
}

.subhead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 620px;
  margin: 24px 0 0;
}

.hero-stat {
  border-left: 3px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0;
  padding-left: 20px;
}

.hero-stat strong {
  display: block;
  color: var(--orange);
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.72);
  max-width: 300px;
}

.start-btn,
.quiz-cta,
.secondary-btn {
  border: 0;
  border-radius: 4px;
  background: var(--orange);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.start-btn {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 420px);
}

.start-btn:hover,
.quiz-cta:hover:not(:disabled),
.secondary-btn:hover {
  background: var(--orange-dark);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.micro {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  margin-top: 14px;
}

.tool-about {
  display: grid;
  gap: 16px;
  max-width: 520px;
  position: relative;
}

.tool-about::before {
  content: none;
}

.tool-about-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tool-about h2 {
  color: #ffffff;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
  margin-top: 12px;
  text-transform: uppercase;
}

.tool-about p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  margin: 12px 0 0;
}

.tool-points {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-points li {
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  display: grid;
  font-size: 14px;
  gap: 12px;
  grid-template-columns: 10px minmax(0, 1fr);
  padding-top: 10px;
}

.tool-points li::before {
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(236, 120, 23, 0.7);
  content: "";
  height: 7px;
  margin-top: 8px;
  width: 7px;
}

.static-preview {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  pointer-events: none;
}

.static-preview-bar {
  align-items: center;
  background: #171717;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
}

.static-preview-bar span {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

.static-preview-bar strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-left: auto;
  text-transform: uppercase;
}

.static-preview-screen {
  background:
    linear-gradient(90deg, rgba(236, 120, 23, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(236, 120, 23, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  background-size: 28px 28px, 28px 28px, auto;
  padding: 18px;
}

.static-preview-title {
  color: #ffffff;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.static-preview-subtitle {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  margin-top: 6px;
}

.static-preview-rows {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.static-preview-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(88px, 0.9fr) minmax(0, 1.4fr);
  min-height: 38px;
  padding: 8px 11px;
}

.static-preview-row span,
.static-preview-result span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.static-preview-row strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.static-preview-result {
  background: rgba(236, 120, 23, 0.14);
  border: 1px solid var(--orange-line);
  border-radius: 4px;
  margin-top: 12px;
  padding: 12px;
}

.static-preview-result strong {
  color: #ffffff;
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 5px;
}

.static-preview-caption {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  padding: 12px 14px;
}

.quiz {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 50;
  flex-direction: column;
}

.quiz.active {
  display: flex;
}

.quiz-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.quiz-back {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
}

.quiz-back[aria-hidden="true"] {
  visibility: hidden;
}

.progress-track {
  background: var(--rule);
  border-radius: 999px;
  flex: 1;
  height: 4px;
  overflow: hidden;
}

.progress-bar {
  background: var(--orange);
  height: 100%;
  transition: width 0.28s ease;
  width: 0;
}

.progress-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  min-width: 58px;
  text-align: right;
}

.quiz-body {
  flex: 1;
  overflow-y: auto;
  padding: 48px 20px 28px;
}

.quiz-inner {
  width: min(640px, 100%);
  margin: 0 auto;
}

.card {
  display: none;
}

.card.active {
  display: block;
  animation: enter 0.24s ease;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.card h2 {
  color: var(--ink);
  font-size: clamp(29px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 14px 0 24px;
}

.reassure {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  padding: 14px 16px;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 17px 18px;
  text-align: left;
  width: 100%;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.option:hover {
  background: var(--cream);
  border-color: var(--orange);
}

.option.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.option-mark {
  border: 2px solid currentColor;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 19px;
  margin-top: 2px;
  opacity: 0.42;
  width: 19px;
}

.option.multi .option-mark {
  border-radius: 4px;
}

.option.selected .option-mark {
  background: var(--orange);
  border-color: var(--orange);
  opacity: 1;
  position: relative;
}

.option.selected .option-mark::after {
  color: #ffffff;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  left: 3px;
  line-height: 1;
  position: absolute;
  top: 1px;
}

.option-stack {
  min-width: 0;
}

.option-label {
  display: block;
  font-weight: 800;
  line-height: 1.35;
}

.option-detail {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

.option.selected .option-detail {
  color: rgba(255, 255, 255, 0.68);
}

.conditional-panel {
  background: var(--cream);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  display: none;
  margin-top: 16px;
  padding: 18px;
}

.conditional-panel.visible {
  display: block;
}

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

.field-label {
  color: var(--ink);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 15px 0 7px;
  text-transform: uppercase;
}

.field-label .opt {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

input {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  display: block;
  font-size: 16px;
  min-height: 52px;
  padding: 13px 14px;
  width: 100%;
}

input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(236, 120, 23, 0.12);
  outline: 0;
}

.hidden-field {
  left: -10000px;
  position: absolute;
  top: auto;
}

.field-error {
  border-color: var(--danger);
}

.err-text,
.submit-error {
  color: var(--danger);
  display: none;
  font-size: 13px;
  margin-top: 7px;
}

.err-text.visible,
.submit-error.visible {
  display: block;
}

.submit-error {
  background: rgba(180, 35, 24, 0.08);
  border-left: 3px solid var(--danger);
  border-radius: 4px;
  color: #8f1d13;
  margin-top: 18px;
  padding: 13px 15px;
}

.quiz-footer {
  background: linear-gradient(180deg, rgba(247, 247, 245, 0), var(--bone) 24%);
  display: flex;
  justify-content: center;
  padding: 22px 20px;
}

.quiz-cta {
  flex: 0 1 640px;
  margin: 0;
  width: min(640px, 100%);
}

.quiz-cta:disabled {
  background: #c9c6bf;
  color: #827d75;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  animation: spin 0.7s linear infinite;
  border: 2px solid currentColor;
  border-radius: 999px;
  border-top-color: transparent;
  display: inline-block;
  height: 13px;
  width: 13px;
}

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

.confirm-card {
  text-align: center;
}

.check {
  background: var(--orange-soft);
  border: 2px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  display: grid;
  font-size: 32px;
  font-weight: 900;
  height: 76px;
  margin: 0 auto 28px;
  place-items: center;
  width: 76px;
}

.secondary-btn {
  background: var(--ink);
  margin-top: 10px;
}

.subnote {
  background: var(--cream);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  color: var(--ink-soft);
  margin-top: 28px;
  padding: 17px;
  text-align: left;
}

.variant-index {
  min-height: 100vh;
  background: var(--black);
  color: #ffffff;
  padding: 36px 24px 72px;
}

.variant-index-inner {
  margin: 0 auto;
  width: min(1080px, 100%);
}

.variant-index h1 {
  font-size: clamp(38px, 7vw, 72px);
  margin-top: 58px;
  max-width: 850px;
}

.variant-index p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  max-width: 680px;
}

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

.variant-card {
  background: var(--carbon);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #ffffff;
  display: block;
  min-height: 190px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.variant-card-image {
  background: var(--variant-image) center / cover no-repeat;
  height: 96px;
  opacity: 0.72;
}

.variant-card-body {
  padding: 16px;
}

.variant-card strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.15;
}

.variant-card span {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .tool-about {
    max-width: 560px;
  }

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

@media (max-width: 560px) {
  .hero {
    padding: 20px;
  }

  .hero-top {
    align-items: flex-start;
  }

  .brand-word {
    font-size: 13px;
  }

  .free-tag {
    padding: 7px 9px;
  }

  .hero-main {
    padding-top: 36px;
  }

  .hero-stat {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .crm-grid,
  .variant-grid {
    grid-template-columns: 1fr;
  }

  .quiz-body {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
