/* DalVivo landing. Same palette as the app and the poll page (/p/…): cream, deep green, lime. No external resources. */
:root {
  --bg: #f6f1e7; --bg-2: #efe8da; --card: #fffdf8; --ink: #16241d; --muted: #5f6b64; --line: #e3dccd;
  --accent: #1d6b57; --accent-soft: #e1eee7; --lime: #c8e85a; --chestnut: #a4441c; --shadow: 0 30px 60px -30px rgb(22 36 29 / .35);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101613; --bg-2: #151d19; --card: #1b2420; --ink: #eef2ee; --muted: #9ba7a0; --line: #2a3530;
    --accent: #5cc2a3; --accent-soft: #1f352d; --chestnut: #f0936b; --shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
h2 { font: 600 clamp(2rem, 5vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.025em; margin-bottom: 1.2rem; max-width: 18ch; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .45rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
section { padding: clamp(72px, 11vw, 140px) 0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* The live dot: "dal vivo" means live. */
.live { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--lime); margin-right: .4em;
  box-shadow: 0 0 0 0 rgb(200 232 90 / .7); animation: pulse 2.4s infinite; vertical-align: .08em; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(200 232 90 / .7); } 70% { box-shadow: 0 0 0 .6em rgb(200 232 90 / 0); } 100% { box-shadow: 0 0 0 0 rgb(200 232 90 / 0); } }

/* Header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font: 700 1.3rem/1 var(--serif); letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: center; }
.pill { font-size: .8rem; font-weight: 600; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1rem; padding: .95em 1.4em; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn-soon { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1.5px solid var(--line); transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--lime); color: #16241d; }

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 7vw, 90px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 55%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); opacity: .35; pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
h1 { font: 600 clamp(3rem, 8.4vw, 6.6rem)/.95 var(--serif); letter-spacing: -.04em; margin-bottom: 1.6rem; }
h1 em, .final em { font-style: italic; color: var(--chestnut); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.4rem; }
.fine { font-size: .92rem; color: var(--muted); }

/* Phone and chat */
.phone { justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 18.5; border-radius: 48px; padding: 12px; background: #0f1512;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #2b3530; transform: rotate(2deg); }
.phone-screen { height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 38px 16px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head small { color: var(--muted); font-size: .75rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.1rem; }
.chat { list-style: none; margin: 0; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; flex: 1; overflow: hidden; font-size: .86rem; line-height: 1.35; }
.msg { align-self: flex-start; max-width: 82%; background: var(--card); padding: 7px 11px 8px; border-radius: 16px 16px 16px 5px; box-shadow: 0 1px 1px rgb(0 0 0 / .06); }
.msg .who { display: block; font-size: .72rem; margin-bottom: 1px; }
.c1 { color: #1d6b57; } .c2 { color: #a4441c; } .c3 { color: #5a55b5; }
@media (prefers-color-scheme: dark) { .c1 { color: #5cc2a3; } .c2 { color: #f0936b; } .c3 { color: #a9a4ff; } }
.msg.me { align-self: flex-end; border-radius: 16px 16px 5px 16px; }
.sys { align-self: center; font-size: .72rem; color: var(--muted); background: color-mix(in srgb, var(--card) 70%, transparent); padding: 3px 10px; border-radius: 999px; }
.poll { width: 88%; max-width: none; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1.5px solid var(--accent); }
.poll strong { font: 600 1rem/1.15 var(--serif); }
.poll-brand { font-size: .7rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.poll-sub { color: var(--muted); font-size: .76rem; margin-bottom: 4px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; padding: 6px 0 2px; border-top: 1px solid var(--line); }
.opt-t { font-size: .78rem; font-weight: 600; }
.opt-n { font-size: .75rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.opt-bar { grid-column: 1 / -1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.opt-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.opt.lead-opt .opt-t::after { content: " ✓"; color: var(--accent); }
.msg.win { background: var(--lime); color: #16241d; }
.msg.win .who { color: #16241d; }

/* Chat animation: script.js adds .play and reveals steps; without JS or with reduced motion everything is visible. */
.chat.play > li:not(.on) { display: none; }
.chat.play > li.on { animation: pop .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* Problem */
.problem { background: var(--ink); color: var(--bg); }
.big { font: 500 clamp(2rem, 5.2vw, 4rem)/1.08 var(--serif); letter-spacing: -.03em; max-width: 20ch; margin-bottom: 2rem; }
.quote { font-style: italic; color: var(--lime); }
.big-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; opacity: .8; }
@media (prefers-color-scheme: dark) { .problem { background: #0a0f0c; color: var(--ink); } }

/* How */
.steps3 { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps3 li { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.steps3 p, .cards p { color: var(--muted); margin: 0; }
.n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: #16241d; font: 700 1.2rem/1 var(--serif); margin-bottom: 1.4rem; }

/* Real plan */
.real { background: var(--bg-2); }
.real-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.real-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.plan { background: var(--card); border-radius: 28px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.plan h3 { font: 600 clamp(1.4rem, 2.4vw, 1.8rem)/1.1 var(--serif); margin-bottom: .6rem; }
.plan header > p { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: .85rem; padding: .35em .8em; border-radius: 999px; background: var(--accent-soft); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline time { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline .where { color: var(--muted); }
.timeline p { margin: .2rem 0 .3rem; font-size: .96rem; }
.timeline small { color: var(--muted); font-size: .8rem; }

/* Values */
.cards { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards li { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); }
.cards li:nth-child(1) { background: var(--accent); color: #fff; border-color: transparent; }
.cards li:nth-child(1) p { color: rgb(255 255 255 / .82); }
@media (prefers-color-scheme: dark) { .cards li:nth-child(1) { color: #0f1512; } .cards li:nth-child(1) p { color: rgb(15 21 18 / .8); } }

/* Where */
.where { text-align: center; }
.where h2 { margin-inline: auto; }
.cities { font: 600 clamp(2rem, 6.5vw, 5rem)/1.1 var(--serif); letter-spacing: -.035em; display: flex; flex-wrap: wrap; justify-content: center; gap: .1em .5em; margin: 1.5rem 0 2rem; }
.cities span:nth-child(odd) { font-style: italic; color: var(--accent); }
.where-sub { max-width: 38em; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

/* Final */
.final { background: var(--accent); color: #fff; }
.final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.final h2 { font-size: clamp(2.4rem, 6.5vw, 5rem); max-width: none; margin: 0; }
.final em { color: var(--lime); }
@media (prefers-color-scheme: dark) { .final { background: #173f34; } }

/* Footer */
.foot { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: .85rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.logo-sm { font-size: 1.05rem; color: var(--ink); }

/* Scroll reveal (only when script.js runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-in, .real-in { grid-template-columns: 1fr; }
  .phone { transform: none; width: min(340px, 100%); }
  .steps3 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pill-soon { display: none; }
  .btn { width: 100%; justify-content: center; }
  .timeline li { grid-template-columns: 3.6em 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
