/* ==========================================================================
   CleanApp Go — marketing site
   Tokens derived from the shipped app (lib/core/theme/app_theme.dart,
   lib/core/widgets/cleanapp_go_logo.dart, lib/app/router.dart splash bg).
   ========================================================================== */

:root {
  --forest-950: #073d32;
  --forest-900: #0d2b24;
  --brand-500: #3cb371;
  --brand-600: #219a63;
  --teal-700: #087a5f;
  --sage-500: #54736a;
  --mist-50: #f6f7f8;
  --white: #ffffff;
  --mint-100: #eaf8f3;
  --mint-200: #beefe2;
  --gold-400: #ffd166;
  --line: #e5e7eb;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(7, 61, 50, 0.06), 0 12px 32px -16px rgba(7, 61, 50, 0.22);
  --shadow-lift: 0 24px 60px -24px rgba(7, 61, 50, 0.35);

  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--forest-900);
  background: var(--mist-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--sage-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold-400);
  display: inline-block;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--teal-700));
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(60, 179, 113, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px -12px rgba(60, 179, 113, 0.65);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--forest-900);
}

.btn-ghost:hover {
  border-color: var(--brand-500);
  color: var(--teal-700);
}

.btn-light {
  background: var(--white);
  color: var(--forest-950);
}

.btn-light:hover {
  box-shadow: var(--shadow-card);
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-950);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--forest-900);
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--teal-700);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--forest-900);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------- store banner ---------- */

.store-banner {
  background: var(--forest-950);
  color: var(--mint-100);
  border-bottom: 3px solid var(--gold-400);
}

.store-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 24px;
  flex-wrap: wrap;
}

.store-banner-text {
  max-width: 640px;
}

.store-banner-text h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 6px;
}

.store-banner-text p {
  color: var(--mint-200);
  margin: 0;
  font-size: 0.95rem;
}

.store-banner-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  position: relative;
  opacity: 0.85;
}

.store-badge::after {
  content: "Soon";
  position: absolute;
  top: -9px;
  right: -8px;
  background: var(--gold-400);
  color: var(--forest-950);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
}

.store-badge small {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mint-200);
  margin-bottom: 1px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 88% -15%, rgba(60, 179, 113, 0.22), transparent 70%),
    radial-gradient(520px 520px at -10% 95%, rgba(8, 122, 95, 0.14), transparent 70%),
    radial-gradient(circle, rgba(60, 179, 113, 0.5) 1.4px, transparent 1.4px) 0 0 / 30px 30px,
    var(--mist-50);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  color: var(--forest-950);
}

.hero h1 .line {
  display: block;
}

.hero h1 mark {
  background: none;
  color: inherit;
  position: relative;
  padding: 0 2px;
}

.hero h1 mark::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 4px;
  height: 0.32em;
  background: var(--gold-400);
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--sage-500);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--sage-500);
}

.hero-meta strong {
  color: var(--forest-900);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------- the receipt (signature element) ---------- */

.receipt-stage {
  position: relative;
  width: min(408px, 100%);
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  border-radius: 10px;
}

.receipt {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: var(--white);
  border-radius: 6px;
  padding: 28px 26px 34px;
  box-shadow: var(--shadow-lift);
  transform: rotate(2.5deg);
  font-family: var(--font-mono);
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 96%,
    96% 100%, 92% 96%, 88% 100%, 84% 96%, 80% 100%, 76% 96%, 72% 100%,
    68% 96%, 64% 100%, 60% 96%, 56% 100%, 52% 96%, 48% 100%, 44% 96%,
    40% 100%, 36% 96%, 32% 100%, 28% 96%, 24% 100%, 20% 96%, 16% 100%,
    12% 96%, 8% 100%, 4% 96%, 0% 100%
  );
}

.receipt::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--mint-200);
  pointer-events: none;
}

.receipt-head {
  text-align: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.receipt-head .r-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest-950);
  letter-spacing: 0.02em;
}

.receipt-head .r-id {
  font-size: 0.72rem;
  color: var(--sage-500);
  margin-top: 4px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  padding: 5px 0;
  color: var(--forest-900);
}

.receipt-row.muted {
  color: var(--sage-500);
}

.receipt-divider {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 12px 0;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-950);
  padding-top: 4px;
}

.receipt-stamp {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--mint-200);
}

.receipt-stamp .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

.receipt-wipe {
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: -25%;
  width: 75%;
  z-index: 2;
  background: linear-gradient(135deg, var(--brand-500), var(--teal-700));
  clip-path: polygon(0 0, 82% 0, 100% 100%, 18% 100%);
  transform: translateX(0%);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.receipt-stage.is-revealed .receipt-wipe {
  transform: translateX(230%);
}

@media (prefers-reduced-motion: reduce) {
  .receipt-wipe {
    display: none;
  }
}

/* ---------- trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 18px 24px;
  justify-content: center;
  font-size: 0.86rem;
  color: var(--sage-500);
  font-family: var(--font-mono);
}

.trust-strip strong {
  color: var(--forest-950);
  font-weight: 600;
}

/* ---------- generic section scaffolding ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--forest-950);
}

/* ---------- how it works: real status pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--mint-200) 0 8px, transparent 8px 14px);
}

.pipe-step {
  position: relative;
  padding: 0 14px;
  text-align: left;
}

.pipe-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.pipe-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
}

.pipe-step h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
}

.pipe-step p {
  font-size: 0.88rem;
  color: var(--sage-500);
  margin-bottom: 0;
}

/* ---------- pricing / services (receipt line items) ---------- */

.services-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-card);
}

.service-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px dashed var(--line);
}

.service-line:last-child {
  border-bottom: none;
}

.service-line .name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--forest-950);
  margin-bottom: 4px;
}

.service-line .desc {
  font-size: 0.88rem;
  color: var(--sage-500);
}

.service-line .price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--teal-700);
  white-space: nowrap;
  font-size: 1rem;
}

.price-note {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--sage-500);
}

/* ---------- for cleaners (dark band) ---------- */

.band-dark {
  background: var(--forest-950);
  color: var(--mint-100);
}

.band-dark .section-head h2 {
  color: var(--white);
}

.band-dark .section-head p {
  color: var(--mint-200);
}

.cleaner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.cleaner-points {
  display: grid;
  gap: 18px;
}

.cleaner-point {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.cleaner-point .fig {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-400);
  font-size: 1.1rem;
  min-width: 3ch;
}

.cleaner-point h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--white);
}

.cleaner-point p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mint-200);
}

/* ---------- payments & trust ---------- */

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 8px;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--forest-950);
  box-shadow: var(--shadow-card);
}

.provider-badge .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.trust-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--sage-500);
  margin-bottom: 0;
}

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

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--teal-700);
  transition: transform 0.2s ease;
}

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

.faq-item p {
  color: var(--sage-500);
  font-size: 0.92rem;
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- final CTA ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--brand-500), var(--teal-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--mint-100);
  max-width: 52ch;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest-950);
  color: var(--mint-200);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-word {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 32ch;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--mint-200);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(234, 248, 243, 0.6);
}

/* ---------- legal pages ---------- */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page .wrap {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--forest-950);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sage-500);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  color: var(--forest-950);
}

.legal-page p,
.legal-page li {
  color: var(--forest-900);
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 1.2em;
}

.callout {
  background: var(--mint-100);
  border: 1px solid var(--mint-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.92rem;
  margin: 24px 0;
}

.placeholder {
  background: rgba(255, 209, 102, 0.55);
  border-bottom: 1px dashed var(--teal-700);
  padding: 0 4px;
  border-radius: 3px;
  color: var(--forest-950) !important;
}

/* ---------- responsive ---------- */

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

  .receipt-stage {
    order: -1;
  }

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

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

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

  .pipeline {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pipeline::before {
    display: none;
  }
}

@media (max-width: 1040px) {
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow-card);
  }

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

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  section {
    padding: 64px 0;
  }

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

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

  .cta-band {
    padding: 36px 24px;
  }

  .store-banner .wrap {
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
  }

  .store-banner-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-nav .wrap {
    height: auto;
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-word {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-primary {
    padding: 11px 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 400px) {
  .receipt-stage {
    padding: 14px;
  }

  .receipt {
    padding: 22px 18px 28px;
  }

  .receipt-row,
  .receipt-total {
    font-size: 0.74rem;
  }

  .receipt-total {
    font-size: 0.92rem;
  }
}
