:root {
  --ink: #17221d;
  --muted: #68746e;
  --paper: #f7f5ee;
  --white: #fffef9;
  --green: #285f49;
  --green-deep: #173f31;
  --mint: #dceade;
  --lime: #e0ed8d;
  --coral: #e98e75;
  --line: #d9ddd4;
  --shadow: 0 24px 70px rgba(28, 55, 43, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(224, 237, 141, 0.3), transparent 22rem),
    linear-gradient(180deg, #f9f8f2 0%, #f3f5ed 100%);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

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

button {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 34, 29, 0.12);
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px 4px 10px 4px;
  background: var(--green);
  color: white;
  font-family: "Newsreader", serif;
  font-size: 21px;
}

.header-note {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-upgrade,
.pro-promo button,
.locked-count button,
.demo-unlock {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.header-upgrade {
  padding: 9px 14px;
  border-radius: 8px 3px 8px 3px;
  background: var(--ink);
  color: white;
  font-size: 12px;
}

main {
  flex: 1;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 84px;
  padding: 64px 0 72px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Newsreader", serif;
}

.hero-copy h1 {
  margin: 0;
  max-width: 570px;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.hero-copy h1 em {
  color: var(--green);
  font-weight: inherit;
}

.hero-intro {
  max-width: 520px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.pro-promo {
  max-width: 520px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: -10px 0 30px;
  padding: 14px;
  border: 1px solid rgba(40, 95, 73, 0.16);
  border-radius: 13px 4px 13px 4px;
  background: rgba(255, 254, 249, 0.72);
}

.pro-badge {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  border-radius: 5px 2px 5px 2px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pro-promo div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-promo strong {
  font-size: 13px;
}

.pro-promo div span {
  color: var(--muted);
  font-size: 11px;
}

.pro-promo button {
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-size: 11px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.trust-row span {
  white-space: nowrap;
}

.trust-row b {
  color: var(--green);
  margin-right: 3px;
}

.trust-row i {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.builder-card {
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid rgba(40, 95, 73, 0.14);
  border-radius: 24px 8px 24px 8px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.step-label {
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-heading h2 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.privacy-pill {
  padding: 7px 10px;
  border-radius: 99px;
  color: var(--green);
  background: var(--mint);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.dropzone {
  display: flex;
  min-height: 178px;
  border: 1.5px dashed #9db4a8;
  border-radius: 16px 5px 16px 5px;
  background: #f6faf5;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition: 160ms ease;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--green);
  background: #eff7ef;
  transform: translateY(-2px);
}

.dropzone input {
  display: none;
}

.upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--mint);
}

.upload-icon svg {
  width: 24px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dropzone strong {
  font-size: 15px;
}

.dropzone > span:not(.upload-icon) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.dropzone u {
  color: var(--green);
  font-weight: 600;
}

.dropzone small {
  margin-top: 14px;
  color: #8a958f;
  font-size: 11px;
}

.file-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #f8faf6;
}

.file-icon {
  width: 46px;
  height: 52px;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  border-radius: 5px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.file-meta {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.file-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta span {
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 17px 0;
  color: #8a958f;
  font-size: 11px;
}

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

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--white);
}

textarea {
  min-height: 105px;
  padding: 13px;
  resize: vertical;
  line-height: 1.5;
}

textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 95, 73, 0.08);
}

.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}

.setting-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 10px;
  background: #edf0e9;
}

.segmented button {
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.segmented button.active {
  background: white;
  box-shadow: 0 2px 6px rgba(23, 34, 29, 0.1);
  color: var(--green);
  font-weight: 700;
}

.pro-count-control {
  margin-top: 8px;
}

.locked-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #d9dfb1;
  border-radius: 8px;
  background: #f8fae9;
  color: var(--muted);
  font-size: 10px;
}

.locked-count b {
  color: var(--green);
}

.locked-count button {
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 9px;
  white-space: nowrap;
}

.custom-count {
  display: grid !important;
  grid-template-columns: 1fr 76px;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid #b9caa2;
  border-radius: 8px;
  background: #f8fae9;
}

.custom-count span {
  color: var(--green-deep);
  font-size: 11px;
}

.custom-count input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  text-align: center;
}

select {
  height: 40px;
  padding: 0 10px;
  color: var(--ink);
}

.time-label {
  margin-top: 13px;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 11px 4px 11px 4px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: 160ms ease;
}

.primary-button:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.status-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff0eb;
  color: #9a4532;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.test-view,
.results-view {
  padding: 52px 0 80px;
}

.test-header {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: end;
  gap: 20px;
}

.test-header h1,
.results-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
}

.text-button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.progress-copy {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.test-status {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.timer-display {
  min-width: 104px;
  padding: 8px 11px;
  border: 1px solid #bcd0c4;
  border-radius: 9px 3px 9px 3px;
  background: #eef6ed;
  text-align: center;
}

.timer-display span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timer-display strong {
  color: var(--green-deep);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.timer-display.urgent {
  border-color: #e7a08e;
  background: #fff0eb;
}

.timer-display.urgent strong {
  color: #a84531;
}

.progress-copy b {
  color: var(--ink);
}

.progress-track {
  height: 5px;
  margin: 28px 0 34px;
  overflow: hidden;
  border-radius: 9px;
  background: #dde3da;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 250ms ease;
}

#questions-list {
  display: grid;
  gap: 18px;
}

.question-card,
.review-card {
  padding: 28px;
  border: 1px solid rgba(40, 95, 73, 0.14);
  border-radius: 18px 6px 18px 6px;
  background: rgba(255, 254, 249, 0.92);
}

.question-number {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-card h3,
.review-card h3 {
  margin: 0 0 20px;
  font-family: "Newsreader", serif;
  font-size: 23px;
  line-height: 1.3;
}

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

.option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: 120ms ease;
}

.option:hover {
  border-color: #99b0a4;
  background: #f6faf5;
}

.option:has(input:checked) {
  border-color: var(--green);
  background: #eef6ed;
}

.option input {
  margin-top: 2px;
  accent-color: var(--green);
}

.short-answer {
  min-height: 78px;
}

.submit-button {
  max-width: 360px;
  margin: 30px auto 0;
}

.results-hero {
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: 700px;
  margin: 48px auto;
}

.results-hero p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.score-ring {
  width: 150px;
  height: 150px;
  display: grid;
  flex: 0 0 150px;
  place-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--paper) 79%, transparent 80% 100%),
    conic-gradient(var(--green) var(--score, 0%), var(--mint) 0);
  text-align: center;
}

.score-ring strong {
  font-family: "Newsreader", serif;
  font-size: 34px;
}

.score-ring span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card.correct {
  border-left: 5px solid var(--green);
}

.review-card.incorrect {
  border-left: 5px solid var(--coral);
}

.answer-line {
  margin: 6px 0;
  font-size: 14px;
}

.answer-line b {
  color: var(--green);
}

.source-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.upgrade-modal {
  width: min(470px, calc(100% - 28px));
  padding: 34px;
  border: 1px solid rgba(40, 95, 73, 0.18);
  border-radius: 22px 7px 22px 7px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.upgrade-modal::backdrop {
  background: rgba(16, 29, 23, 0.62);
  backdrop-filter: blur(4px);
}

.upgrade-modal h2 {
  margin: 17px 0 8px;
  font-size: 35px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 17px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 25px;
}

.modal-intro,
.checkout-note {
  color: var(--muted);
  line-height: 1.5;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0;
}

.price-line strong {
  color: var(--green);
  font-family: "Newsreader", serif;
  font-size: 52px;
  line-height: 1;
}

.price-line span {
  color: var(--muted);
  font-size: 12px;
}

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

.feature-list li {
  position: relative;
  padding-left: 25px;
  font-size: 13px;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}

.purchase-button {
  text-decoration: none;
}

.demo-unlock {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: transparent;
  color: var(--green);
  font-size: 12px;
}

.checkout-note {
  margin: 10px 0 0;
  font-size: 10px;
  text-align: center;
}

footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(23, 34, 29, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand span {
  color: var(--green);
  font-weight: 800;
}

.footer-brand small {
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
}

.content-page {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 74px 0 90px;
}

.content-hero {
  margin-bottom: 42px;
}

.content-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.content-hero > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.content-card,
.contact-card {
  padding: 34px;
  border: 1px solid rgba(40, 95, 73, 0.14);
  border-radius: 20px 7px 20px 7px;
  background: rgba(255, 254, 249, 0.92);
  box-shadow: 0 16px 48px rgba(28, 55, 43, 0.08);
}

.content-card + .content-card {
  margin-top: 18px;
}

.content-card h2,
.contact-card h2 {
  margin: 0 0 14px;
  font-size: 29px;
}

.content-card h3 {
  margin: 26px 0 8px;
  font-family: "Newsreader", serif;
  font-size: 21px;
}

.content-card p,
.content-card li,
.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.content-card a,
.contact-card a {
  color: var(--green);
}

.content-card ul {
  padding-left: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  padding: 25px;
  border-radius: 15px 5px 15px 5px;
  background: var(--mint);
}

.value-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Newsreader", serif;
  font-size: 22px;
}

.value-card p {
  margin: 0;
  color: #516158;
  font-size: 13px;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
}

.contact-details {
  display: grid;
  align-content: start;
  gap: 16px;
}

.contact-detail {
  padding: 20px;
  border-radius: 13px 4px 13px 4px;
  background: var(--mint);
}

.contact-detail strong,
.contact-detail span {
  display: block;
}

.contact-detail span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 95, 73, 0.08);
}

.contact-form textarea {
  min-height: 150px;
}

.form-note,
.legal-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.legal-meta {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 10px;
  border-radius: 99px;
  background: var(--mint);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.page-nav a:hover,
.page-nav a[aria-current="page"] {
  color: var(--green);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
  }

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

@media (max-width: 600px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .header-note,
  .trust-row {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .hero {
    padding: 36px 0 50px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .builder-card {
    padding: 22px;
  }

  .pro-promo {
    grid-template-columns: auto 1fr;
  }

  .pro-promo button {
    grid-column: 1 / -1;
  }

  .privacy-pill {
    display: none;
  }

  .settings {
    grid-template-columns: 1fr;
  }

  .test-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .progress-copy {
    text-align: left;
  }

  .test-status {
    align-items: flex-start;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 24px 0;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .page-nav {
    display: none;
  }

  .content-page {
    padding: 50px 0 70px;
  }

  .content-card,
  .contact-card {
    padding: 24px;
  }

  .content-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .upgrade-modal {
    padding: 28px 22px;
  }
}
