/* AITOPILOTS landing page. Visual system: elayadesign landing-page-design @456d9e0 (type scale, spacing, radius, motion). */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s25: 2px; --s50: 4px; --s75: 8px; --s100: 12px; --s200: 16px; --s300: 24px; --s400: 32px; --s500: 40px; --s600: 48px; --s700: 64px; --s800: 80px; --s900: 96px;
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
}

/* Look A: warm and trustworthy (light) */
[data-look="a"] {
  --font: "Manrope", system-ui, sans-serif;
  --bg: #FAF8F3; --surface: #FFFFFF; --surface-2: #F1EEE6; --line: #E4DFD3;
  --text: #1B1A17; --muted: #5E5A52; --primary: #0E5A55; --on-primary: #FFFFFF; --accent: #E79A2E;
  --hero-from: #000000; --hero-to: #666666; --chat-in: #FFFFFF; --chat-out: #DDEFE9; --nav: rgba(250, 248, 243, 0.72);
}
/* Look B: confident and modern (dark) */
[data-look="b"] {
  --font: "Geist", system-ui, sans-serif;
  --bg: #131209; --surface: #1F1F1F; --surface-2: #272727; --line: #313131;
  --text: #F4F4F0; --muted: #A3A39B; --primary: #C8F03C; --on-primary: #131209; --accent: #7FD3C4;
  --hero-from: #FFFFFF; --hero-to: #9B9B9B; --chat-in: #272727; --chat-out: #313131; --nav: rgba(19, 18, 9, 0.72);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Text styles (named exactly as the skill defines them) */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--muted); }

.skip { position: absolute; left: var(--s200); top: -64px; background: var(--primary); color: var(--on-primary); padding: var(--s75) var(--s100); border-radius: var(--r-lg); z-index: 100; text-decoration: none; transition: transform 300ms var(--ease); }
.skip:focus { transform: translateY(80px); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s300); }
section { padding: var(--s900) 0; }

/* Navigation: floating, blurred, sized to content */
.nav { position: fixed; top: var(--s200); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: var(--s300);
  padding: var(--s75) var(--s75) var(--s75) var(--s300); background: var(--nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r-full); width: max-content; max-width: calc(100% - var(--s400)); }
.brand { display: flex; align-items: center; gap: var(--s75); text-decoration: none; }
.brand-mark { width: 24px; height: 24px; }
.nav-links { display: flex; gap: var(--s300); list-style: none; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 300ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); width: 40px; height: 40px; border-radius: var(--r-full); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--nav); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; gap: var(--s300); padding: var(--s900) var(--s300); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { text-decoration: none; opacity: 0; transform: translateY(24px); transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.mobile-menu.open a { opacity: 1; transform: none; }

/* Buttons and states */
.btn { display: inline-flex; align-items: center; gap: var(--s75); padding: var(--s75) var(--s100); border-radius: var(--r-full); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: scale(0.98); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-lg); }
.btn-lg { padding: var(--s100) var(--s300); }

/* Hero */
.hero { padding-top: 160px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s700); align-items: center; }
.eyebrow { display: inline-flex; gap: var(--s75); align-items: center; padding: var(--s50) var(--s100); border: 1px solid var(--line); border-radius: var(--r-full); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); }
.hero h1 { max-width: 680px; margin: var(--s300) 0 var(--s200); background: linear-gradient(90deg, var(--hero-from), var(--hero-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { padding-bottom: 0.12em; }
.hero .sub { max-width: 680px; }
@media (max-width: 1100px) { br.lg { display: none; } }
.cta-row { display: flex; gap: var(--s100); flex-wrap: wrap; margin: var(--s400) 0 var(--s300); }
.proof { display: flex; gap: var(--s75); align-items: center; }

/* Phone mock: what a parent sees after hours */
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3xl); padding: var(--s200); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08); }
.phone-head { display: flex; align-items: center; gap: var(--s100); padding-bottom: var(--s200); border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.chat { display: flex; flex-direction: column; gap: var(--s75); padding: var(--s200) 0; }
.bubble { max-width: 85%; padding: var(--s75) var(--s100); border-radius: var(--r-xl); background: var(--chat-in); border: 1px solid var(--line); }
.bubble.out { align-self: flex-end; background: var(--chat-out); border-color: transparent; }
.bubble .time { display: block; text-align: right; margin-top: var(--s25); }
.chip-row { display: flex; gap: var(--s75); flex-wrap: wrap; }
.chip { padding: var(--s50) var(--s100); border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface-2); }

/* Sections */
.section-head { max-width: 680px; margin-bottom: var(--s600); }
.section-head p { margin-top: var(--s200); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s300); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s300); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s300); }
.card .icon { width: 40px; height: 40px; border-radius: var(--r-lg); background: var(--surface-2); display: grid; place-items: center; margin-bottom: var(--s200); color: var(--primary); font-size: 24px; }
[data-look="b"] .card .icon { color: var(--primary); }
.card h3 { margin-bottom: var(--s75); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full); border: 1px solid var(--line); margin-bottom: var(--s200); }
.alt { background: var(--surface-2); }
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s700); align-items: start; }

/* Scorecard sample */
.scorecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s300); }
.score-row { display: flex; justify-content: space-between; align-items: center; padding: var(--s100) 0; border-bottom: 1px solid var(--line); }
.score-row:last-of-type { border-bottom: 0; }
.sample-tag { display: inline-block; padding: var(--s25) var(--s75); border-radius: var(--r-md); border: 1px solid var(--line); color: var(--muted); }
.bar { height: 8px; border-radius: var(--r-full); background: var(--surface-2); width: 120px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: var(--r-full); }

/* Tagline reveal */
.reveal-section { padding: var(--s900) 0; }
.tagline { max-width: 880px; }
.tagline .w { color: var(--text); opacity: 1; }
.js .tagline .w { opacity: 0.3; transition: opacity 500ms var(--ease); }
.js .tagline .w.on { opacity: 1; }

/* Offer */
.offer { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s400); align-items: center; }
.price-list { list-style: none; padding: 0; display: grid; gap: var(--s100); margin: var(--s300) 0; }
.price-list li { display: flex; justify-content: space-between; gap: var(--s200); padding: var(--s100) 0; border-bottom: 1px solid var(--line); }
.placeholder { color: var(--accent); }
.price-list span, .card p, .bubble { overflow-wrap: anywhere; }

/* FAQ */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: var(--s200) 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s200); }
summary::-webkit-details-marker { display: none; }
summary .plus { transition: transform 500ms var(--ease); }
details[open] summary .plus { transform: rotate(45deg); }
details p { margin-top: var(--s100); }

/* Final CTA and footer */
.final { text-align: center; }
.final h2 { max-width: 680px; margin: 0 auto var(--s300); }
footer { padding: var(--s600) 0; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: var(--s300); flex-wrap: wrap; }
.foot ul { list-style: none; padding: 0; display: flex; gap: var(--s200); flex-wrap: wrap; }

/* Scroll reveals */
.js .rise { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .rise.in { opacity: 1; transform: none; }


@media (max-width: 960px) {
  .hero-grid, .problem, .offer { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: var(--s800) 0; }
  .hero { padding-top: 128px; }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav { left: var(--s200); right: var(--s200); transform: none; width: auto; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
  .js .tagline .w { opacity: 1; }
}

/* Comparison table (homepage) */
.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: var(--s100) var(--s100); border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { color: var(--muted); }
.compare thead th:last-child, .compare td:last-child { color: var(--primary); }
.compare tbody th { color: var(--text); font-weight: 500; }
.compare td { color: var(--muted); }

/* Hero background loop (Concept E) */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(19,18,9,0.92) 0%, rgba(19,18,9,0.6) 55%, rgba(19,18,9,0.35) 100%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero-bg { display: none; } .hero { background: #131209 url(hero-poster.jpg) center / cover no-repeat; } }

/* Front Door Check sample report */
.report { padding: var(--s300); }
.report .check { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--s100); align-items: start; padding: var(--s100) 0; border-bottom: 1px solid var(--line); }
.report .check i { font-size: 22px; line-height: 24px; }
.report .ok { color: var(--primary); }
.report .warn { color: #F2B544; }
.report .bad { color: #F27059; }
.report .top3 { margin-top: var(--s200); padding: var(--s200); border-radius: var(--r-xl); background: var(--surface-2); }
.report .top3 .body-6 { margin-top: var(--s75); }
