/* Cleaning Buddy — landing page. Ported 1:1 from the Claude Design landing
   (Cleaning Buddy Landing.dc.html): same palette, type, and layout. Static, no
   build step — deploys straight to cPanel public_html. */

/* Palette = the app's current "modern" theme (src/theme/tokens.ts), so the site
   matches the product 1:1. Bright fresh green #1FA75A, cool green paper bg. */
:root {
  --bg: #EFF3EF;
  --surface: #FFFFFF;
  --ink: #18201A;
  --ink-soft: #66716A;
  --green: #1FA75A;
  --green-deep: #157A40;
  --green-tint: #E4F6EA;      /* accentSoft */
  --green-line: #BFE9CC;      /* accentLine */
  --line: #DFE7E0;
  --track: #EBF1EB;
  --coral: #FF7A4D;           /* buddyCheek — used as the warm accent dot */
  --buddy-body: #FF8A33;
  --buddy-cheek: #FF7A4D;
  --buddy-eye: #2A2621;
}

* { box-sizing: border-box; }
/* [hidden] must always win over component display rules (e.g. the success card's
   display:flex) — without this the hidden success card showed alongside the form. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--green-deep); }
a:hover { color: var(--green); }
img, svg { display: block; }

/* ---- shared ---- */
.center { text-align: center; }
.mb-lg { margin-bottom: 44px; }
.pt-0 { padding-top: 0 !important; }

.btn {
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 13px;
  padding: 14px 22px;
  text-decoration: none;
  transition: transform .16s cubic-bezier(.2,.7,.2,1), box-shadow .16s ease, background .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--green-line); outline-offset: 2px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px -6px rgba(31,167,90,0.55); }
.btn-primary:hover { background: #23B461; color: #fff; box-shadow: 0 10px 24px -8px rgba(31,167,90,0.6); }
.btn-light { background: #fff; color: var(--green-deep); margin-top: 26px; box-shadow: 0 6px 18px -8px rgba(0,0,0,0.25); }
.btn-light:hover { color: var(--green-deep); box-shadow: 0 10px 26px -8px rgba(0,0,0,0.3); }
.btn-sm { font-size: 14px; padding: 10px 18px; border-radius: 12px; }

.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow-green { color: var(--green); }
.eyebrow-coral { color: var(--coral); }
.eyebrow-light { opacity: .8; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.08em; color: var(--green);
  background: var(--green-tint); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px;
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 34px; line-height: 1.15; margin: 12px 0 0;
  text-wrap: balance;
}
.h2.on-dark { color: #fff; }
.lead {
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  margin: 18px auto 0; max-width: 620px; text-wrap: pretty;
}
.lead.on-dark { color: #EAF3EC; opacity: .92; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238,243,236,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: radial-gradient(120% 120% at 30% 18%, #2FBE72 0%, #1FA75A 46%, #12833F 100%);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px -2px rgba(18,131,63,0.45);
  overflow: hidden;
}
.brand-mark svg { width: 74%; height: 74%; }
.brand-mark.sm { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.brand-name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; color: var(--ink); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -160px; right: -120px; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(238,138,102,0.18), rgba(238,138,102,0) 70%);
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 70px 24px 40px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center;
}
.hero-title {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 52px;
  line-height: 1.06; letter-spacing: -0.02em; margin: 20px 0 0; text-wrap: balance;
}
.hero-sub { font-size: 18px; line-height: 1.55; color: var(--ink-soft); margin: 18px 0 0; max-width: 520px; text-wrap: pretty; }

.hero-mascot { display: flex; justify-content: center; }
.mascot-wrap { position: relative; width: 290px; height: 320px; animation: cl-float 5.5s ease-in-out infinite; }
.mascot-halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--green-tint), rgba(228,237,224,0) 68%); }
.buddy { position: relative; width: 100%; height: 100%; }
.buddy svg { width: 100%; height: 100%; }
.buddy-sm { width: 96px; height: 104px; margin: 0 auto; }

@keyframes cl-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .mascot-wrap { animation: none; } }

/* ---- waitlist ---- */
.waitlist { margin-top: 28px; max-width: 480px; scroll-margin-top: 90px; }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1; min-width: 220px; font-family: inherit; font-size: 15px;
  border: 1.5px solid #C9D5C4; border-radius: 13px; padding: 14px 16px;
  background: #fff; color: var(--ink);
}
.waitlist-form input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.waitlist-form button { white-space: nowrap; }
.waitlist-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.waitlist-note strong { color: var(--ink); }
.waitlist-success {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 6px 20px rgba(20,18,14,0.06);
}
.waitlist-success .check {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  background: #E7F1E9; color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800;
}
.success-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; }
.success-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.waitlist-error { font-size: 13px; color: #B4552F; margin-top: 10px; }

/* ---- bands / sections ---- */
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.section { max-width: 1120px; margin: 0 auto; padding: 70px 24px 60px; }
.faq { max-width: 760px; }

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

.step {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 22px; box-shadow: 0 4px 16px rgba(20,18,14,0.04);
}
.step-n {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-tint); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600;
}
.step-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; margin-top: 16px; }
.step-body { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; text-wrap: pretty; }

.feature { border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.feature-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }
.feature-body { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-top: 10px; max-width: 440px; text-wrap: pretty; }

/* ---- pricing ---- */
.pricing { background: var(--green-deep); color: #E9F7EE; }
.pricing-inner { max-width: 920px; margin: 0 auto; padding: 64px 24px; }
.pricing .lead strong, .pricing .h2 strong { color: #fff; }

/* ---- faq ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.faq-q { font-size: 16px; font-weight: 700; color: var(--ink); }
.faq-a { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 7px; text-wrap: pretty; }

/* ---- footer ---- */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13px; color: var(--ink-soft);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; font-weight: 600; }

/* ---- micro-interactions ---- */
.step, .feature, .faq-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.step:hover, .feature:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(20,18,14,0.14); }
.faq-item:hover { border-color: var(--green-line); }
.eyebrow-pill { transition: transform .18s ease; }
.eyebrow-pill:hover { transform: translateY(-1px); }
.nav .btn-sm { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.footer-links a { transition: color .14s ease; }

/* ---- scroll reveal (added by JS; reduced-motion falls straight to visible) ---- */
[data-reveal].reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].reveal.is-in { opacity: 1; transform: none; }
/* stagger children of a revealed grid/list */
#steps.reveal.is-in .step,
#features.reveal.is-in .feature,
#faqs.reveal.is-in .faq-item { animation: cl-rise .55s cubic-bezier(.2,.7,.2,1) both; }
#steps.reveal.is-in .step:nth-child(2),
#features.reveal.is-in .feature:nth-child(2),
#faqs.reveal.is-in .faq-item:nth-child(2) { animation-delay: .08s; }
#steps.reveal.is-in .step:nth-child(3),
#features.reveal.is-in .feature:nth-child(3),
#faqs.reveal.is-in .faq-item:nth-child(3) { animation-delay: .16s; }
#features.reveal.is-in .feature:nth-child(4),
#faqs.reveal.is-in .faq-item:nth-child(4) { animation-delay: .24s; }
@keyframes cl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal, [data-reveal].reveal.is-in { opacity: 1 !important; transform: none !important; }
  #steps .step, #features .feature, #faqs .faq-item { animation: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 40px; text-align: center; }
  .hero-mascot { order: -1; }
  .mascot-wrap { width: 196px; height: 216px; }
  .hero-title { font-size: 38px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .eyebrow-pill { margin: 0 auto; }
  .waitlist { margin-left: auto; margin-right: auto; }
  .waitlist-note, .waitlist-error { text-align: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .h2 { font-size: 27px; }
  .nav-inner { padding: 12px 18px; }
  .brand-name { font-size: 17px; }
  .section { padding: 52px 20px 44px; }
  .band-inner { padding: 48px 20px; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 32px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input, .waitlist-form button { width: 100%; }
  .nav .btn-sm { padding: 9px 14px; }
}
