/* WebRevenue Scan (by AutoGPT World). Mobile-first; no external assets. */

:root {
  --ink: #0c1a2b;
  --ink-soft: #3d4b5e;
  --bg: #ffffff;
  --tint: #f2f7f3;
  --line: #d5dde3;
  --control-border: #66758a;
  --green: #0e7a36;
  --green-dark: #0a5f2a;
  --green-wash: #e6f4ea;
  --focus: #1d4ed8;
  --error: #b42318;
  --error-wash: #fef3f2;
  --navy: #0c1a2b;
  --radius: 10px;
  --header-height: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 6.2vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 760px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--tint);
}

.btn-outline {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--tint);
}

.btn-large {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.125rem;
}

.btn-small {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  background: #55606e;
  border-color: #55606e;
  color: #fff;
  cursor: progress;
}

.link-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  flex: none;
}

.site-nav {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  padding: 44px 0 52px;
  background: linear-gradient(180deg, var(--green-wash) 0%, #fff 100%);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.lead {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 22px;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%230e7a36'/%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Sections ---------- */

.section {
  padding: 52px 0;
}

.section-tint {
  background: var(--tint);
}

.section-intro {
  max-width: 44rem;
  color: var(--ink-soft);
}

.section-note {
  max-width: 44rem;
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section-cta {
  margin: 28px 0 0;
}

.section-cta .btn {
  width: 100%;
}

.card-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

/* ---------- Form ---------- */

.form-layout {
  display: grid;
  gap: 28px;
}

.reassurance {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #b7dcc3;
  border-radius: var(--radius);
  background: var(--green-wash);
}

.reassurance h3 {
  font-size: 1.05rem;
}

.reassurance ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

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

.reassurance p {
  margin: 0;
  font-weight: 600;
}

.form-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(12, 26, 43, 0.08);
}

.form-hint {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.req {
  color: var(--error);
  font-weight: 700;
}

.optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.field-help {
  margin: -2px 0 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--control-border);
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--ink);
  /* 16px minimum stops iOS zooming the page when a field is focused. */
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%230c1a2b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
  border-radius: var(--radius);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  background-color: var(--error-wash);
}

.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Honeypot: kept in the layout flow for bots, removed from view and from
   keyboard/assistive-technology reach for people. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  min-height: 65px;
}

.form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 2px solid var(--error);
  border-radius: var(--radius);
  background: var(--error-wash);
  color: var(--error);
  font-weight: 600;
}

.form-footnote {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.form-success {
  padding: 16px 4px;
  text-align: center;
}

.form-success h3 {
  margin-top: 14px;
  font-size: 1.4rem;
}

.form-success p {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%230c1a2b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.15s ease;
}

.faq[open] summary::after {
  transform: rotate(180deg);
}

.faq p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0 44px;
  background: var(--navy);
  color: #e7edf3;
}

.site-footer a {
  color: #fff;
}

.footer-brand {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.footer-small {
  margin: 0;
  color: #c3ceda;
  font-size: 0.9rem;
}

/* ---------- Consent banner ---------- */

.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(12, 26, 43, 0.22);
}

.consent p {
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------- Plain content pages (privacy) ---------- */

.prose {
  padding: 40px 0 56px;
}

.prose h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.3rem;
}

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

[data-todo] {
  padding: 0 4px;
  background: #fff3bf;
  outline: 2px dashed #b54708;
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-points {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .section-cta .btn {
    width: auto;
  }

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

  .form-card {
    padding: 30px 28px;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .section {
    padding: 76px 0;
  }

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

  .form-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: start;
  }

  .form-intro {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

/* Phones: a compact header, and a form at least 300px wide on 360px screens
   (the width the standard Turnstile widget needs). */
@media (max-width: 399px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .btn-small {
    padding: 8px 10px;
    font-size: 0.875rem;
  }

  .form-card {
    padding: 20px 12px;
  }
}

@media (max-width: 359px) {
  .container {
    padding: 0 14px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .btn-small {
    padding: 8px;
    font-size: 0.8125rem;
  }

  .form-card {
    padding: 20px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Background images are dropped in forced-colours mode, so hand the select
   arrow back to the system rather than lose it. */
@media (forced-colors: active) {
  .field select {
    -webkit-appearance: auto;
    appearance: auto;
    padding-right: 14px;
    background-image: none;
  }

  .btn {
    border-color: ButtonText;
  }
}
