/* SnapHome landing v2
   One accent (brand blue), one cool grey family, one typeface (Bricolage Grotesque).
   Shape rule: actions are pills, panels 24, chat surfaces 18, inner cards 12. */
:root {
  --blue: #0063d6;
  --blue-hover: #0055b8;
  --ink: #0d1b2e;
  --muted: #52607a;
  --page: #ffffff;
  --plano: #eaf1fb;
  --line: #dce4ef;
  --bubble: #f1f4f8;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --gutter: 40px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: none; }
h1, h2, h3, p, dl, dd, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.h2 { font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.5; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 500; font-size: 16px; transition: background-color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--small { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--plano); }

/* Logo: the same vector parts as the brand file */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 26px; letter-spacing: -.04em; }
.logo__mark { position: relative; width: 36.492px; height: 44.693px; transform: scaleX(-1); flex: none; zoom: .74; }
.logo__shape { width: 100%; height: 100%; }
.logo__eye { position: absolute; top: 16.67px; width: 3.827px; height: 6.014px; border-radius: 99px; background: var(--eye, #f5f5f5); }
.logo__eye:nth-of-type(1) { left: 17.08px; }
.logo__eye:nth-of-type(2) { left: 28.83px; }
.logo__smile { position: absolute; left: 20.35px; top: 25.96px; width: 9.306px; height: 3.883px; transform: scaleX(-1); }

.nav { padding-top: 24px; }
.nav__row { display: flex; align-items: center; justify-content: space-between; }

/* Hero: the claim on the left, the assistant working on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 56px; padding-block: 64px 96px; }
.hero h1 { font-weight: 500; font-size: clamp(44px, 6.2vw, 84px); line-height: .98; letter-spacing: -.04em; }
.hero h1 span { display: block; }
.hero .lead { max-width: 520px; margin: 28px 0 36px; }

/* Bot avatar: the logo vector, white on blue */
.bot { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); overflow: hidden; }
.bot__face { position: absolute; inset: 0; }
.bot__shape { position: absolute; left: 7.7px; top: 4.4px; width: 20.57px; height: 25.19px; transform: scaleX(-1); }
.bot__eye { position: absolute; top: 13.8px; width: 2.16px; height: 3.39px; border-radius: 99px; background: var(--blue); }
.bot__eye:nth-of-type(1) { left: 9.9px; }
.bot__eye:nth-of-type(2) { left: 16.5px; }
.bot__smile { position: absolute; left: 11.6px; top: 19px; width: 5.245px; height: 2.189px; }

.person { flex: none; width: 36px; height: 36px; }
.person__photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--plano); }

/* Chat surfaces */
.bubble { padding: 12px 16px; border-radius: 18px; line-height: 1.38; max-width: 82%; }
.bubble p + p { margin-top: 8px; }
.msg { display: flex; flex: none; }
.msg--user { justify-content: flex-start; }
.msg--bot { justify-content: flex-end; }
.msg--user .bubble { background: var(--bubble); border-bottom-left-radius: 6px; }
.msg--bot .bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }

.showcase { position: relative; height: 580px; border-radius: 24px; background: var(--plano); padding: 32px; }
.scene { position: relative; height: 100%; }
.chat { display: flex; flex-direction: column; height: 100%; padding: 20px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 16px 40px rgba(13, 27, 46, .08); transition: opacity .5s var(--ease), transform .7s var(--ease), filter .5s var(--ease); }
.chat__head { display: flex; align-items: center; gap: 10px; margin: 0 -20px 16px; padding: 0 20px 16px; border-bottom: 1px solid var(--line); line-height: 1.2; }
.chat__head strong, .wa__head strong { display: block; font-weight: 500; }
.chat__head small, .wa__head small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.chat__log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; font-size: 15px; transition: opacity .35s ease; }
.chat__log.is-clearing { opacity: 0; }

.msg--typing { display: none; }
.chat-anim .chat__log .msg { display: none; }
.chat-anim .chat__log .msg.is-on, .chat-anim .chat__log.is-typing .msg--typing { display: flex; animation: msg-in .4s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.typing { display: flex; gap: 5px; padding: 15px 16px; background: var(--blue); border-radius: 18px 18px 6px 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

/* Second scene: the chat steps back, the summary lands on top */
.pop { position: absolute; z-index: 2; top: 56px; right: -56px; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .45s var(--ease), transform .6s var(--ease); pointer-events: none; }
.pop__caption { display: inline-block; margin-bottom: 10px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.showcase.is-summary .chat { opacity: .35; transform: translateX(-24px) scale(.95); filter: blur(1.5px); }
.showcase.is-summary .pop { opacity: 1; transform: none; transition-delay: .2s; }

/* The WhatsApp message Laura gets */
.wa { width: 340px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 20px 48px rgba(13, 27, 46, .16); }
.wa--flat { box-shadow: 0 1px 2px rgba(13, 27, 46, .06); }
.wa__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.2; }
.wa__body { padding: 18px 20px 22px; }
.wa__msg { position: relative; padding: 12px 14px 0; background: var(--bubble); border-radius: 0 12px 12px 12px; font-size: 14.5px; line-height: 1.4; }
.wa__msg::before { content: ""; position: absolute; left: -8px; top: 0; border-top: 10px solid var(--bubble); border-left: 8px solid transparent; }
.wa__msg b { font-weight: 600; }
.summary { display: grid; gap: 4px; margin-top: 8px; }
.summary div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 500; }
.wa__time { display: block; margin-top: 4px; text-align: right; font-size: 11px; color: var(--muted); }
.wa__btn { display: block; margin: 8px -14px 0; padding: 11px; border-top: 1px solid var(--line); text-align: center; color: var(--blue); font-weight: 500; font-size: 14px; }

/* Problem */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; padding-block: 64px 120px; border-top: 1px solid var(--line); padding-top: 96px; }
.problem .h2 { max-width: 560px; }
.problem .lead { max-width: 520px; }

/* How it works: one rail of examples, the text always on the left */
.how { background: var(--plano); padding-block: 112px; }
.how__title { max-width: 720px; margin-bottom: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.feature h3 { font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.feature__text p { margin-top: 12px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.panel { display: flex; align-items: center; justify-content: center; min-height: 340px; padding: 40px; border-radius: 24px; background: #fff; }
.thread { display: flex; flex-direction: column; gap: 10px; width: min(420px, 100%); font-size: 15px; }
.listing { width: 300px; padding: 16px 18px; background: var(--blue); color: #fff; border-radius: 18px 18px 6px 18px; line-height: 1.4; }
.listing strong { display: block; font-weight: 600; margin-bottom: 4px; }
.listing dl { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--ink); }
.listing dl div { display: flex; justify-content: space-between; padding-block: 3px; }
.listing dt { color: var(--muted); }
.listing dd { font-weight: 500; }

/* Real case: 91 inquiries drawn as 91 dots */
.case { background: var(--ink); color: #fff; padding-block: 112px; }
.case__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.case__lead { margin-top: 20px; color: rgba(255, 255, 255, .7); font-size: 19px; line-height: 1.5; }
.dots { margin: 0; grid-row: span 2; }
.dots__grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 10px; }
.dots__grid i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.dots__grid i.on { background: var(--blue); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.dots__legend { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; color: rgba(255, 255, 255, .75); font-size: 16px; }
.dots__legend span { display: inline-flex; align-items: center; gap: 10px; }
.dots__legend b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.key { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.key--on { background: var(--blue); }
.case__speed { align-self: end; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .75); font-size: 19px; line-height: 1.4; }
.case__speed b { display: block; color: #fff; font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }

/* Three steps: a real sequence, drawn as a line */
.steps { padding-block: 120px 96px; }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; list-style: none; counter-reset: none; }
.steps__list li { position: relative; padding-top: 32px; border-top: 2px solid var(--line); }
.steps__list li:first-child { border-top-color: var(--blue); }
.steps__num { position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; }
.steps h3 { font-weight: 500; font-size: 22px; letter-spacing: -.015em; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 320px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 64px; padding-block: 64px 120px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; font-weight: 500; font-size: 20px; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--plano); color: var(--blue); font-weight: 500; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: -6px; padding-bottom: 24px; max-width: 600px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.faq .pending { font-style: italic; }

/* Closing */
.closing { background: var(--blue); color: #fff; padding-block: 88px; }
.closing__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing p { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 19px; }

/* Footer, with the maker credit */
.footer { background: var(--ink); color: #fff; padding-block: 56px; }
.footer__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.logo--footer { --eye: var(--ink); }
.logo--footer .logo__shape { filter: brightness(0) invert(1); }
.maker p { margin-top: 16px; max-width: 460px; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.6; }
.maker__logo { display: inline-block; width: 74px; height: auto; vertical-align: -2px; margin-inline: 2px; filter: brightness(0) invert(1); }
.footer__nav { display: flex; gap: 28px; font-size: 15px; color: rgba(255, 255, 255, .75); }
.footer__nav a:hover { color: #fff; }
.footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); font-size: 13px; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 72px; }
  .showcase { max-width: 600px; width: 100%; margin-inline: auto; }
  .pop { right: -16px; }
  .problem, .case__grid, .faq { grid-template-columns: 1fr; gap: 24px 40px; }
  .dots { grid-row: auto; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .faq { gap: 32px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .lead, .case__lead, .case__speed, .closing p { font-size: 17px; }
  .hero { padding-top: 32px; }
  .hero .lead { margin: 20px 0 28px; }
  .showcase { height: 520px; padding: 12px; border-radius: 20px; }
  .chat { padding: 14px; }
  .chat__head { margin-inline: -14px; padding-inline: 14px; }
  .chat__log { font-size: 14px; }
  .bubble { max-width: 88%; }
  .pop { top: 40px; left: 0; right: 0; width: fit-content; margin-inline: auto; zoom: .88; }
  .showcase.is-summary .chat { transform: scale(.95); }
  .problem { padding-block: 64px 72px; }
  .how, .case { padding-block: 72px; }
  .how__title { margin-bottom: 32px; }
  .feature { padding-block: 32px; }
  .feature h3 { font-size: 24px; }
  .feature__text p, .steps p { font-size: 16px; }
  .panel { padding: 24px 12px; min-height: 0; border-radius: 20px; }
  .panel .wa { zoom: .9; }
  .dots__grid { gap: 7px; }
  .case__speed b { font-size: 48px; }
  .steps { padding-block: 72px 48px; }
  .steps__list { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .faq { padding-block: 40px 72px; }
  .faq summary { font-size: 17px; }
  .closing { padding-block: 64px; }
  .closing .btn { width: 100%; }
  .footer__row { grid-template-columns: 1fr; }
  .footer__nav { flex-wrap: wrap; gap: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chat, .pop, .faq summary::after { transition: none; }
}
