/* VISTÒ public website: landing and legal pages. No external fonts or resources (CSP: self only). */
:root {
  --ink: #18241e;
  --muted: #5b6a60;
  --line: #dde4dc;
  --paper: #ffffff;
  --soft: #f3f6f1;
  --deep: #172d29;
  --deep-2: #24443a;
  --green: #375d46;
  --teal: #19a7b8;
  --amber: #f0b429;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(23, 45, 41, .96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { height: 36px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: #dce8de; text-decoration: none; font-size: .92rem; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.site-header nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-header .nav-login { border: 1px solid rgba(255,255,255,.35); margin-left: 6px; }
.site-footer { background: var(--deep); color: #c8d6cb; padding: 28px 0; font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
@media (max-width: 760px) {
  .site-header nav a:not(.nav-login):not([href="/#demo"]) { display: none; }
  .site-header nav a { font-size: .85rem; padding: 7px 8px; }
}

/* Buttons and type */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.button.primary { background: var(--amber); color: #1d1a10; }
.button.primary:hover { background: #ffc441; }
.button.ghost { border-color: currentColor; color: inherit; background: transparent; }
.eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--soft); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin: 0 0 32px; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, rgba(25,167,184,.28), transparent 45%), linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 60%, var(--green) 100%); color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.hero h1 span { color: #bfe3d0; }
.hero .lead { font-size: 1.15rem; color: #dbe7de; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-actions .ghost { color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #cfe0d4; font-size: .93rem; }
.hero-points li::before { content: "✓ "; color: var(--amber); font-weight: 800; }

/* Hero mock-ups (pure CSS) */
.hero-visual { position: relative; min-height: 400px; }
.mock { position: absolute; background: #0d1512; border-radius: 14px; padding: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.mock-screen { height: 100%; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; position: relative; overflow: hidden; color: #fff; }
.mock-tag { position: absolute; top: 10px; left: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 999px; }
.mock strong { font-size: 1.25rem; line-height: 1.1; }
.mock em { font-style: normal; font-size: .85rem; opacity: .9; }
.mock-wall { top: 0; left: 0; right: 0; height: 150px; }
.mock-wall .mock-screen { background: linear-gradient(110deg, #9c2a2a, #d9772b 55%, #f0b429); }
.mock-wall .mock-screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.35), transparent 40%); animation: glow 8s ease-in-out infinite alternate; }
.mock-tablet { left: 4%; top: 175px; width: 56%; height: 200px; }
.mock-tablet .mock-screen { background: linear-gradient(140deg, #1d5e6a, var(--teal)); padding-right: 84px; }
.mock-qr { position: absolute; right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 6px; background:
  conic-gradient(#fff 0 25%, #0d1512 0 50%, #fff 0 75%, #0d1512 0) 0 0 / 13px 13px; border: 4px solid #fff; }
.mock-phone { right: 4%; top: 150px; width: 31%; height: 250px; border-radius: 22px; padding: 7px; }
.mock-phone .mock-screen { background: #f7faf6; color: var(--ink); justify-content: flex-start; padding-top: 38px; border-radius: 16px; }
.mock-phone .mock-tag { background: var(--green); color: #fff; }
.mock-phone b { font-size: .95rem; margin-bottom: 4px; }
.mock-phone p { margin: 0; font-size: .74rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.mock-social { position: absolute; left: 60%; top: 412px; display: flex; gap: 8px; }
.mock-social span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--deep); font-weight: 800; font-size: .85rem; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
@keyframes glow { from { transform: scale(1); } to { transform: scale(1.15) translateX(-4%); } }
@media (prefers-reduced-motion: reduce) { .mock-wall .mock-screen::after { animation: none; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.card p { margin: 0; color: var(--muted); }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e3efe7; color: var(--green); font-size: 1.3rem; margin-bottom: 14px; }
.audience { border-top: 4px solid var(--teal); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--soft); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps strong { font-size: 1.2rem; }
.steps p { margin: 6px 0 0; color: var(--muted); }

/* Trust */
.section-dark { background: var(--deep); color: #fff; }
.section-dark .section-lead { color: #cfe0d4; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px 18px; color: #cfe0d4; }
.trust-list strong { display: block; color: #fff; margin-bottom: 2px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan .plan-for { color: var(--muted); margin: 0 0 16px; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.plan .button.ghost { color: var(--green); }
.plan.featured { border: 2px solid var(--green); box-shadow: 0 18px 40px rgba(23,45,41,.12); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; max-width: 860px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Demo form */
.demo { background: linear-gradient(180deg, var(--soft), #e7efe8); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.demo-note { font-weight: 700; color: var(--green); }
.demo-form { background: var(--paper); border-radius: 18px; padding: 28px; box-shadow: 0 24px 50px rgba(23,45,41,.12); display: grid; gap: 14px; }
.demo-form label { display: grid; gap: 6px; font-weight: 650; font-size: .92rem; }
.demo-form small { font-weight: 500; color: var(--muted); }
.demo-form input, .demo-form select, .demo-form textarea { font: inherit; font-weight: 400; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d4c8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.demo-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--muted); }
.demo-form .consent input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; }
.demo-form .button { justify-self: start; }
.website-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.form-status.ok { background: #e3f2e6; color: #20512d; border: 1px solid #bfdcc6; }
.form-status.error { background: #fbeceb; color: #8a2a22; border: 1px solid #f0c9c4; }

/* Legal pages */
.legal { padding: 48px 0 72px; max-width: 860px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.35rem; margin-top: 34px; }
.legal h3 { font-size: 1.08rem; margin-top: 22px; }
.legal p, .legal li { color: #2c3a31; }
.legal-updated { color: var(--muted); font-size: .9rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.legal th { background: var(--soft); }
.legal code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .trust, .demo-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; max-width: 560px; width: 100%; margin-inline: auto; }
  .cards, .steps, .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .steps, .plans, .form-row { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .mock-wall { height: 120px; }
  .mock-tablet { top: 140px; width: 62%; height: 170px; }
  .mock-phone { top: 128px; width: 36%; height: 210px; }
  .mock-social { top: 325px; left: 8%; }
  .demo-form { padding: 20px; }
}
