:root {
  color-scheme: light;
  --bg: #fff8ef;
  --surface: #fffdf8;
  --text: #121418;
  --muted: #716a60;
  --line: #eadcc9;
  --primary: #121418;
  --primary-dark: #000000;
  --accent: #ff9f1c;
  --accent-dark: #df7d00;
  --accent-soft: #fff0d5;
  --accent-line: #ffd291;
  --warn: #fff4da;
  --warn-line: #ffc766;
  --error: #fff1f0;
  --error-line: #ea8b82;
  --shadow: 0 20px 50px rgba(18, 20, 24, 0.1);
  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: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 128px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(42px, 7vw, 78px) clamp(18px, 7vw, 96px) 56px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: clamp(50px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.hero-showcase {
  min-height: 460px;
  position: relative;
}

.product-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.popup-preview {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 620px);
  padding: 18px;
}

.task-preview-card {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: min(88%, 480px);
  padding: 18px;
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.window-bar span:first-child {
  background: var(--accent);
}

.window-bar span:nth-child(2) {
  background: var(--text);
}

.popup-title-row,
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.popup-title-row h2,
.section-heading h2,
.boundary-copy h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.scan-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  font-weight: 800;
}

.download-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.preview-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-soft);
}

.preview-thumb span {
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--accent);
  transform: translateX(3px);
}

.download-fields {
  min-width: 0;
}

.download-fields h3 {
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-grid div {
  min-width: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.field-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-grid strong {
  display: block;
  font-size: 15px;
  white-space: nowrap;
}

.status-line {
  color: var(--text);
  font-weight: 750;
}

.status-line.muted {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 750;
  text-transform: uppercase;
  font-size: 12px;
}

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

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:not(:disabled):hover {
  background: var(--accent);
  color: var(--text);
}

.button.secondary {
  background: #fffaf2;
  border-color: var(--line);
  color: var(--text);
}

.button.secondary:not(:disabled):hover {
  border-color: var(--accent);
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 159, 28, 0.34);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hero-panel,
.task-card,
.ad-slot,
.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.hero-panel::before,
.feature-grid article::before {
  content: "";
  display: block;
  height: 4px;
  margin: -22px -22px 18px;
  background: var(--accent);
}

.feature-grid article::before {
  margin: -24px -24px 18px;
}

.task-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}

.preview-top {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.preview-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.preview-top span:first-child {
  background: var(--accent);
}

.preview-top span:nth-child(2) {
  background: var(--text);
}

.preview-row {
  height: 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #efe3d3;
}

.preview-row.strong {
  width: 78%;
  background: var(--text);
}

.preview-row.short {
  width: 52%;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe3d3;
}

.progress-track div {
  width: 42%;
  height: 100%;
  background: var(--accent);
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.preview-meta span,
.badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--text);
}

.badge.muted {
  background: #f1ece4;
  color: var(--muted);
}

.badge.live {
  background: var(--primary);
  color: #fff;
}

.band {
  padding: 36px clamp(18px, 7vw, 96px) 80px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--primary);
  color: #fff;
}

.trust-strip div {
  min-width: 0;
  padding: 20px clamp(18px, 4vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 16px;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 7vw, 96px);
}

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

.section-heading.compact {
  max-width: 620px;
}

.section-heading p,
.boundary-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.workflow-section {
  background: var(--surface);
}

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

.workflow-grid article,
.boundary-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.workflow-grid article {
  padding: 20px;
}

.workflow-grid article span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.workflow-grid h3,
.feature-grid h3,
.boundary-grid h3 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.2;
}

.workflow-grid p,
.boundary-grid li,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-section {
  background: var(--bg);
}

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

.feature-grid article {
  padding: 24px;
  overflow: hidden;
}

.feature-grid h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature-grid p,
.page p {
  color: var(--muted);
  line-height: 1.65;
}

.boundary-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.boundary-grid article {
  padding: 22px;
}

.boundary-grid ul {
  margin: 0;
  padding-left: 18px;
}

.boundary-grid li + li {
  margin-top: 8px;
}

.faq-section {
  background: var(--bg);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 6vw, 58px) clamp(18px, 7vw, 96px);
  background: var(--primary);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .eyebrow {
  color: var(--accent);
}

.cta-band .button.primary {
  background: var(--accent);
  color: var(--text);
}

.cta-band .button.primary:not(:disabled):hover {
  background: #fff;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 20px 90px;
}

.page h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
}

.task-body {
  min-height: 100vh;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 820px) minmax(160px, 220px);
  gap: 18px;
  align-items: start;
  padding: 28px clamp(12px, 3vw, 36px) 60px;
}

.task-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(20px, 4vw, 34px);
}

.task-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-title-row h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ad-slot {
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  box-shadow: none;
}

.ad-slot span {
  font-size: 12px;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--text);
}

.empty-state {
  margin-top: 42px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.muted-text {
  color: var(--muted);
}

.task-preview {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.task-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.task-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.task-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf2;
}

.task-meta dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.task-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.progress-block {
  margin-top: 24px;
}

.progress-label,
.progress-details {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0;
}

#progressBar {
  width: 0%;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--warn-line);
  background: var(--warn);
  border-radius: 8px;
  color: #5b3a00;
  white-space: pre-line;
}

.notice.error {
  border-color: var(--error-line);
  background: var(--error);
  color: #812d27;
}

.variant-box {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.variant-box h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .hero,
  .trust-strip,
  .workflow-grid,
  .feature-grid,
  .boundary-section,
  .boundary-grid,
  .task-layout,
  .task-meta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-showcase {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .popup-preview,
  .task-preview-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .task-preview-card {
    bottom: auto;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .ad-slot {
    min-height: 90px;
  }

  .task-title-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  .download-card,
  .field-grid,
  .cta-band,
  .progress-label,
  .progress-details {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .download-card,
  .field-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .preview-thumb {
    width: 100%;
  }

  .download-card .button {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 15vw, 60px);
  }
}
