:root {
  --bg: #f5f9ff;
  --bg-accent: #eaf2ff;
  --text: #182233;
  --muted: #5c6b83;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: rgba(248, 251, 255, 0.96);
  --line: rgba(72, 96, 140, 0.16);
  --line-strong: rgba(72, 96, 140, 0.3);
  --accent: #5b61ff;
  --accent-dim: #4348cc;
  --accent-alt: #0ea5b7;
  --accent-glow: rgba(91, 97, 255, 0.14);
  --shadow: 0 20px 48px rgba(19, 35, 64, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top left, rgba(91, 97, 255, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(94, 141, 255, 0.1), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 183, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 36%),
    repeating-linear-gradient(
      90deg,
      rgba(92, 107, 131, 0.06) 0,
      rgba(92, 107, 131, 0.06) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(92, 107, 131, 0.04) 0,
      rgba(92, 107, 131, 0.04) 1px,
      transparent 1px,
      transparent 24px
    );
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 22%),
    radial-gradient(circle at center, transparent 62%, rgba(24, 34, 51, 0.05));
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1040px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 249, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(24, 34, 51, 0.04);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.link {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.logo a {
  text-decoration: none;
}

.site-logo {
  display: block;
  width: auto;
  height: 26px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
}

.top-links .link {
  opacity: 0.95;
  padding: 6px 10px;
  border: 1px solid transparent;
  background: transparent;
}

.top-links .link:hover,
.footer-links .link:hover,
.idea-card a:hover {
  opacity: 1;
  color: var(--accent-dim);
  border-color: var(--line-strong);
}


.hero {
  padding: 82px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  max-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(91, 97, 255, 0.06);
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

h1 {
  margin: 0 0 14px;
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 3px 3px 0 rgba(91, 97, 255, 0.08);
}

.rotating-word-wrap {
  display: inline-grid;
  min-width: 14ch;
  vertical-align: baseline;
}

.rotating-word {
  display: inline-block;
  color: var(--accent);
  transition: transform 220ms ease, opacity 220ms ease;
}

.rotating-word.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.2;
  color: var(--text);
}

h3 {
  color: var(--text);
  line-height: 1.25;
}

.lead {
  max-width: 46ch;
  color: var(--muted);
  margin: 0;
  font-size: 17px;
  position: relative;
}

.lead::before {
  content: "//";
  position: absolute;
  left: -22px;
  top: 0;
  color: var(--accent-alt);
  font-weight: 700;
}

.hero-cta {
  margin-top: 24px;
}

.hero-panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(234, 242, 255, 0.9));
  border-color: var(--line-strong);
}

.hero-panel::after {
  content: "BUSINESS REVIEW";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-alt);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-panel-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-panel h2,
.hero-panel .section-copy,
.hero-points {
  max-width: none;
}

.hero-panel h2 {
  font-size: 20px;
}

.hero-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.hero-points li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--accent-alt);
  transform: translateY(-50%);
}

.lead-list {
  max-width: 56ch;
  color: var(--muted);
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.lead-list li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.lead-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-50%);
}

.card,
.idea-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.card::before,
.idea-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt) 62%, transparent 92%);
}

.hero .card:not(.hero-panel)::after {
  content: "AUTOMATION PLAN";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-alt);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.idea-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  opacity: 0.7;
}

.card:hover,
.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 56px rgba(19, 35, 64, 0.1);
  border-color: var(--line-strong);
}

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: rgba(247, 250, 255, 0.96);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #8a97ab;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

button,
.button-link {
  margin-top: 14px;
  width: 100%;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: white;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(91, 97, 255, 0.18);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button-link.is-loading,
button.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.button-link.is-loading::after,
button.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: button-spin 700ms linear infinite;
}

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

.hero-button {
  width: auto;
  min-width: 250px;
  font-size: 15px;
}

.review-request-form {
  margin: 0;
}

.review-progress {
  margin: 0 0 14px;
}

.review-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.review-progress-track {
  height: 8px;
  border: 1px solid var(--line);
  background: rgba(247, 250, 255, 0.96);
  border-radius: 999px;
  overflow: hidden;
}

.review-progress-fill {
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transition: width 260ms ease;
}

.review-request-form.is-enhanced .review-step {
  display: none;
}

.review-request-form.is-enhanced .review-step.is-active {
  display: block;
}

.review-request-form .review-step label:first-of-type {
  margin-top: 0;
}

.review-request-form textarea {
  min-height: 96px;
}

.review-step-next-button {
  margin-top: 18px;
}

.review-step-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.review-step-actions .button-link {
  margin-top: 0;
  width: auto;
}

.review-step-submit-button {
  flex: 1 1 auto;
}

.review-step-back-button {
  padding: 12px 16px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  box-shadow: none;
}

.review-step-back-button:hover {
  border-color: var(--accent-dim);
  background: rgba(91, 97, 255, 0.08);
}

button:hover,
.button-link:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(91, 97, 255, 0.24);
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ideas {
  padding: 36px 0 84px;
  position: relative;
}

.ideas::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 36px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.who-help-grid {
  position: relative;
}

.who-help-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--card);
  position: relative;
}

.who-help-card::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-alt) 62%, transparent 92%);
}

.who-help-image-wrap {
  display: flex;
  justify-content: center;
}

.who-help-image {
  display: block;
  width: auto;
  height: 250px;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 26px rgba(19, 35, 64, 0.14));
}

.business-cta-card {
  max-width: 760px;
  margin-top: 18px;
}

.quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.quote-intro h2 {
  max-width: 18ch;
}

.quote-intro .section-copy {
  margin-bottom: 0;
}

.quote-form {
  margin: 0;
}

.quote-form .quote-step label:first-of-type {
  margin-top: 0;
}

.quote-form.is-enhanced .quote-step {
  display: none;
}

.quote-form.is-enhanced .quote-step.is-active {
  display: block;
}

.quote-step-next-button {
  margin-top: 18px;
}

.quote-submit-button {
  margin-top: 18px;
}

.contact-card {
  max-width: 760px;
  margin-top: 18px;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-email-row {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
}

.contact-email-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-email-value {
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.contact-email-reveal-button {
  margin-top: 14px;
  width: auto;
}

.contact-email-error {
  margin-top: 10px;
}

.g-recaptcha {
  margin-top: 14px;
}

.form-error {
  margin: 6px 0 0;
  color: #cb3f3f;
  font-size: 13px;
}

.form-success {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(14, 165, 183, 0.36);
  background: rgba(14, 165, 183, 0.08);
  color: #0d7280;
  font-size: 14px;
  grid-column: 1 / -1;
}

.section-copy {
  margin-top: 0;
  color: var(--muted);
}

.section-title {
  margin-top: 44px;
}

.section-title::before {
  content: "// ";
  color: var(--accent-alt);
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.how-it-works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idea-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.idea-card p:last-of-type {
  margin-bottom: 0;
}

.idea-thumbnail-link {
  display: block;
  margin-bottom: 16px;
}

.idea-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f1f6ff;
}

.idea-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.48);
}

.footer-row p {
  position: relative;
}

.footer-row p::before {
  content: "[";
  color: var(--accent-alt);
  margin-right: 4px;
}

.footer-row p::after {
  content: "]";
  color: var(--accent-alt);
  margin-left: 4px;
}

.footer-links .link,
.idea-card a {
  transition: color 160ms ease, opacity 160ms ease;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.legal-page {
  padding: 56px 0 72px;
}

.legal-content {
  max-width: 820px;
}

.legal-content h1 {
  margin-bottom: 10px;
}

.legal-section {
  margin-top: 28px;
}

.legal-section p,
.legal-list {
  color: var(--muted);
}

.legal-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-list li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.error {
  margin-top: 8px;
  color: #d64545;
  font-size: 14px;
}

.success {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav {
    min-height: 68px;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 12px;
  }

  .nav-toggle {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }

  .top-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
    padding: 0 0 12px;
  }

  .nav.is-menu-open .top-links {
    display: flex;
  }

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

  .hero {
    padding-top: 42px;
  }

  .hero-copy::before,
  .lead::before,
  .hero-button::after,
  body::after {
    display: none;
  }

  .top-links .link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
  }

  .who-help-grid {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: none;
  }

  .hero-panel h2 {
    max-width: none;
  }

  .who-help-card {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }

  .quote-intro h2 {
    max-width: none;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
}
