/* The public website (landing, /es/, feature pages, 404). Uses the app's tokens (tokens.css: light/dark, 4.5:1 text).
   No framework; motion only with .anim (set by head.js when reduced motion is off). Generated pages: scripts/make-site.mjs. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: var(--r-chip); box-shadow: var(--shadow-lift); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* The porch light behind the hero */
.glow { position: absolute; inset: -72px 0 auto 0; height: 832px; pointer-events: none; z-index: -1; overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: -160px -10vw 0 -10vw;
  background: radial-gradient(48% 52% at 24% 30%, var(--glow), transparent 70%), radial-gradient(40% 46% at 82% 12%, var(--glow-soft), transparent 75%); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; transition: background 200ms var(--ease), box-shadow 200ms var(--ease); }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9688rem; }
.site-nav a:hover { background: var(--surface-2); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.lang-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.lang-link:hover { background: var(--surface-2); }
@media (max-width: 899px) { .site-nav { display: none; } .head-actions { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px var(--glow); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--glow); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-pill); border: 1px dashed var(--line); color: var(--muted); font-weight: 600; font-size: 0.9375rem; }
.soon svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 28px var(--glow); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--edge); font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { margin-top: 16px; font-size: clamp(2.25rem, 5.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { margin-top: 18px; font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.fine { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* the phone, cycling real screens */
.showcase { display: flex; flex-direction: column; align-items: center; }
.phone { position: relative; width: min(300px, 76vw); aspect-ratio: 560 / 1212; padding: 11px; border-radius: 48px; background: #1B1E24; box-shadow: 0 2px 0 rgba(255,255,255,.06) inset, 0 40px 80px -20px rgba(14,19,32,.45), 0 0 0 1px rgba(255,255,255,.08);
  box-sizing: content-box; }
.screens { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--surface); }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 600ms var(--ease), transform 900ms var(--ease); transform: scale(1.02); }
.screens img.on { opacity: 1; transform: none; }
.phone-wrap { position: relative; }
.phone-wrap::before { content: ""; position: absolute; inset: 8% -18% -4%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; }
.anim .phone-wrap { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.screen-caption { margin-top: 22px; min-height: 1.5em; font-weight: 600; text-align: center; }
.dots { display: flex; gap: 2px; justify-content: center; align-items: center; margin-top: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.dots button span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .45; transition: width 300ms var(--ease), opacity 300ms; }
.dots button[aria-current="true"] span { width: 22px; border-radius: 6px; opacity: 1; background: var(--accent); }
.dots .pause { width: auto; min-width: 44px; height: 32px; padding: 0 10px; border-radius: var(--r-pill); color: var(--text); font: inherit; font-size: 0.8125rem; font-weight: 600; }
.dots .pause:hover { background: var(--surface-2); }

@media (max-width: 899px) { .hero-icon { display: none; } .eyebrow { margin-top: 4px; } }
@media (min-width: 900px) {
  .hero { padding: 48px 0 88px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- promise strip ---------- */
.promise-strip { padding: 0 0 24px; }
.promise-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; }
.promise-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.promise-strip svg { width: 18px; height: 18px; color: var(--ok); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section h2 { margin-top: 10px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
.section .intro { margin-top: 14px; color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.section-head.center .intro { margin-left: auto; margin-right: auto; }

.grid { list-style: none; padding: 0; display: grid; gap: 18px; margin-top: 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--edge); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: 16px; font-size: 1.1875rem; }
.card p { margin-top: 8px; color: var(--muted); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; min-height: 24px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card .more svg { width: 16px; height: 16px; }
.chip-ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); }
.chip-ico svg { width: 24px; height: 24px; }
.c-health { --c: var(--f-health); } .c-delivery { --c: var(--f-delivery); } .c-spot { --c: var(--f-spot); } .c-doorbell { --c: var(--f-doorbell); }
.c-party { --c: var(--f-party); } .c-core { --c: var(--accent); } .c-snow { --c: var(--f-snow); } .c-visits { --c: var(--f-visits); }

/* gallery of the listing images */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 18px; margin-top: 40px; padding: 4px 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; overscroll-behavior-x: contain; }
.gallery { list-style: none; margin-bottom: 0; }
.gallery li { scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.gallery figcaption { margin-top: 10px; font-weight: 600; }
.gallery figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 1200px) { .gallery { padding-left: calc((100vw - 1120px) / 2); padding-right: calc((100vw - 1120px) / 2); scroll-padding: 0 calc((100vw - 1120px) / 2); } }

/* how it works */
.steps { display: grid; gap: 18px; margin-top: 40px; counter-reset: step; list-style: none; padding: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(4, 1fr); } } /* four steps since task 524 (Snapshot Capture) */
.steps li { counter-increment: step; padding: 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.125rem; }
.steps h3 { margin-top: 16px; font-size: 1.1875rem; }
.steps p { margin-top: 8px; color: var(--muted); }

/* privacy */
.privacy { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .privacy { grid-template-columns: 0.9fr 1.1fr; } }
.promises { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; }
.promises li { padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.promises h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.promises h3 svg { width: 22px; height: 22px; color: var(--ok); flex: none; }
.promises p { margin-top: 8px; color: var(--muted); font-size: 0.9688rem; }
.note { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; }

/* pricing */
.price-card { max-width: 520px; margin: 40px auto 0; padding: 34px 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); text-align: center; position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, var(--glow-soft), transparent); pointer-events: none; }
.price-card .badge { display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); background: var(--accent-wash); color: var(--text); font-weight: 700; font-size: 0.875rem; }
.price { margin-top: 18px; font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 1.125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .after { margin-top: 8px; color: var(--muted); }
.checks { margin: 24px auto 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 12px; max-width: 380px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 3px; }
.price-card .cta-row { justify-content: center; }

/* FAQ */
.faq { max-width: 780px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 600; font-size: 1.0625rem; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 200ms var(--ease); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p + p { margin-top: 8px; }

/* final CTA */
.final { text-align: center; padding: 72px 0 80px; }
.final h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
.final p { margin: 12px auto 0; color: var(--muted); max-width: 52ch; font-size: 1.125rem; }
.final .cta-row { justify-content: center; }

/* ---------- footer: one centered column ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.site-footer .brand { justify-content: center; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; list-style: none; padding: 0; margin-top: 14px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text); }
.site-footer .guides a { color: var(--muted); }
.site-footer .legal-line { margin: 18px auto 0; max-width: 60ch; }
.site-footer .copy { margin-top: 6px; font-size: 0.8125rem; }

/* ---------- feature pages ---------- */
.fp-hero { position: relative; padding: 24px 0 56px; }
.fp-hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .fp-hero .wrap { grid-template-columns: 1.05fr 0.95fr; } .fp-hero { padding: 48px 0 72px; } }
.crumbs { font-size: 0.875rem; color: var(--muted); }
.crumbs ol { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); display: inline-flex; min-height: 24px; align-items: center; }
.fp-hero h1 { margin-top: 18px; font-size: clamp(2rem, 4.8vw, 3.125rem); font-weight: 800; letter-spacing: -0.03em; }
.fp-hero .sub { margin-top: 16px; font-size: 1.1875rem; color: var(--muted); max-width: 56ch; }
.fp-art img { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1; margin: 0 auto; border-radius: 28px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.fp-art .phone { margin: 0 auto; }
.prose-block { max-width: 760px; }
.prose-block p + p, .prose-block p + ul, .prose-block ul + p { margin-top: 12px; }
.prose-block ul { padding-left: 1.2em; display: grid; gap: 8px; margin-top: 12px; }
.prose-block li { color: var(--text); }
.two-col { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .card:hover { transform: none; box-shadow: var(--shadow); }
.two-col ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.related a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.related a:hover { background: var(--surface-2); }

/* ---------- scroll-in (only with .anim: motion allowed and JS running) ---------- */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .grid .reveal:nth-child(3n+2), .anim .steps .reveal:nth-child(2) { transition-delay: 80ms; }
.anim .grid .reveal:nth-child(3n), .anim .steps .reveal:nth-child(3) { transition-delay: 160ms; }
.anim .steps .reveal:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .card:hover, .btn.primary:hover { transform: none; }
}
@media (forced-colors: active) {
  .card, .steps li, .promises li, .price-card, .faq details, .promise-strip li, .btn, .lang-link { border: 1px solid CanvasText; }
  .dots button[aria-current="true"] span { background: Highlight; forced-color-adjust: none; }
}
@media print { .site-header, .showcase, .gallery { display: none; } }

/* feature pages: numbered how-to list, card headings, related links */
.how-list { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; counter-reset: how; }
.how-list li { counter-increment: how; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.how-list li::before { content: counter(how); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.how-list p { padding-top: 5px; }
.card h2.h3 { margin-top: 16px; font-size: 1.1875rem; letter-spacing: -0.01em; }
.related-title { margin-top: 56px; font-size: 1.25rem; }
.related.center { justify-content: center; }
