/* The public marketing pages (home + one landing page per business case, in es/ca/eu/gl).
   GENERATED PAGES: every .html that links this file is written by scripts/site/build.py - edit the
   content files there, not the HTML. The legal pages still use site.css. See CLAUDE.md "Public website". */
:root {
    --ink: #1e1b4b;
    --text: #1f2937;
    --muted: #475569;
    --bg: #ffffff;
    --soft: #f5f3ff;
    --soft-2: #eef2ff;
    --border: #e0e7ff;
    --primary: #4338ca;
    --primary-hover: #3730a3;
    --accent: #047857;
    --accent-hover: #065f46;
    --accent-soft: #ecfdf5;
    --danger-soft: #fef2f2;
    --danger: #b91c1c;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(30, 27, 75, 0.08);
    --heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--heading); color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: 999px;
    font-family: var(--heading); font-weight: 600; font-size: 1rem;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn svg { width: 18px; height: 18px; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--heading); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav summary { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; border-radius: 8px; cursor: pointer; }
.nav > a:hover, .nav summary:hover { background: var(--soft); }
.nav .btn { margin-left: 8px; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.dropdown[open] summary svg { transform: rotate(180deg); }
.dropdown-panel {
    position: absolute; right: 0; top: calc(100% + 8px); width: 360px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 8px; display: grid; gap: 2px;
}
.dropdown-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.dropdown-panel a:hover { background: var(--soft); }
.dropdown-panel strong { display: block; color: var(--ink); font-family: var(--heading); font-size: 0.95rem; }
.dropdown-panel span { font-size: 0.87rem; color: var(--muted); }
.dropdown-panel .ico { flex: 0 0 36px; }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 24px; height: 24px; }
.mobile-panel {
    position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 12px 16px 20px; display: grid; gap: 4px; max-height: calc(100vh - 68px); overflow-y: auto;
}
.mobile-panel a { padding: 12px 8px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; }
.mobile-panel a:hover { background: var(--soft); }
.mobile-panel .group { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 12px 8px 4px; }
.mobile-panel .btn { margin-top: 8px; }
.mobile-panel .langs { display: flex; gap: 6px; padding: 8px; }

@media (max-width: 880px) {
    .nav { display: none; }
    .mobile-menu { display: block; }
}

/* ---- Language switch ---- */
.langs a { display: inline-grid; place-items: center; min-width: 44px; min-height: 36px; padding: 4px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border); }
.langs a[aria-current="true"] { color: #fff; background: var(--primary); border-color: var(--primary); }

/* ---- Sections ---- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.soft { background: var(--soft); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--heading); font-weight: 600; font-size: 0.9rem; color: var(--primary); background: var(--soft-2); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.kicker svg { width: 16px; height: 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 500px at 90% -10%, var(--soft-2), transparent 60%), radial-gradient(900px 400px at -10% 110%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding-top: 40px; }
}

/* ---- Chat mockup ---- */
.phone {
    max-width: 360px; margin: 0 auto; border-radius: 32px; background: #0f172a; padding: 10px;
    box-shadow: 0 30px 60px rgba(30, 27, 75, 0.25);
}
.phone-screen { border-radius: 24px; overflow: hidden; background: #e7ebf3; }
.chat-top { display: flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; padding: 12px 14px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; }
.chat-avatar svg { width: 18px; height: 18px; }
.chat-top strong { display: block; font-family: var(--heading); font-size: 0.95rem; }
.chat-top span { font-size: 0.75rem; opacity: 0.85; }
.chat-body { padding: 14px 12px 16px; display: grid; gap: 8px; font-size: 0.9rem; line-height: 1.45; min-height: 380px; align-content: start; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); white-space: pre-line; }
.msg.bot { background: #fff; color: var(--text); border-top-left-radius: 4px; justify-self: start; }
.msg.me { background: #d9fdd3; color: #0f172a; border-top-right-radius: 4px; justify-self: end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; max-width: 92%; }
.chips span { background: #fff; border: 1px solid #c7d2fe; color: var(--primary); font-weight: 600; font-size: 0.82rem; padding: 6px 10px; border-radius: 10px; }
.chips span.picked { background: var(--primary); color: #fff; border-color: var(--primary); }
.phone-caption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* ---- Grids / cards ---- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { margin-bottom: 14px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--primary); }
.ico svg { width: 22px; height: 22px; }
.ico.green { background: var(--accent-soft); color: var(--accent); }
.ico.red { background: var(--danger-soft); color: var(--danger); }
.card p { color: var(--muted); }
a.card { text-decoration: none; color: inherit; transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; display: flex; flex-direction: column; }
a.card:hover { border-color: #a5b4fc; box-shadow: var(--shadow); transform: translateY(-2px); }
a.card .more { margin-top: auto; padding-top: 12px; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
a.card .more svg { width: 16px; height: 16px; }

/* ---- Steps ---- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 20px; left: 24px; width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff; font-family: var(--heading); font-weight: 700; display: grid; place-items: center;
}

/* ---- Channels ---- */
.channel { display: flex; gap: 16px; align-items: flex-start; }
.channel .ico { flex: 0 0 44px; margin: 0; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* ---- Comparison ---- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-family: var(--heading); color: var(--ink); background: var(--soft); }
.compare thead th.us { background: var(--primary); color: #fff; }
.compare td.us { background: #fafaff; font-weight: 600; color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.compare th[scope="row"] { font-weight: 600; color: var(--ink); width: 26%; }

/* ---- Pricing ---- */
.interval { display: inline-flex; background: var(--soft-2); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.interval button { border: 0; background: transparent; padding: 10px 18px; min-height: 44px; border-radius: 999px; font-weight: 600; font-family: var(--heading); color: var(--ink); cursor: pointer; }
.interval button.active { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-family: var(--heading); font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 0.95rem; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--accent); -webkit-mask: var(--check) no-repeat center / contain; mask: var(--check) no-repeat center / contain; }
.plan li.off { color: #94a3b8; }
.plan li.off::before { background: #cbd5e1; -webkit-mask: var(--dash) no-repeat center / contain; mask: var(--dash) no-repeat center / contain; }
.plan .btn { margin-top: auto; }
:root {
    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.note { color: var(--muted); font-size: 0.92rem; }
.plans > .note { grid-column: 1 / -1; text-align: center; }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-family: var(--heading); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 20px; width: 20px; height: 20px; transition: transform 200ms ease; color: var(--primary); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* ---- Pain list ---- */
.pain { display: flex; gap: 14px; align-items: flex-start; }
.pain .ico { flex: 0 0 44px; margin: 0; }
.pain h3 { margin-bottom: 4px; }

/* ---- Quote / proof ---- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: center; }
.proof strong { display: block; font-family: var(--heading); font-size: 2rem; color: var(--primary); }
.proof span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) { .proof { grid-template-columns: 1fr; } }

/* ---- Final CTA ---- */
.cta-band { background: var(--ink); color: #e0e7ff; border-radius: 24px; padding: 48px 32px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d2fe; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .cta-note { color: #a5b4fc; margin: 0 auto; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 24px; color: var(--muted); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h3 { font-size: 0.95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer .langs a { color: var(--muted); }
.site-footer .langs a[aria-current="true"] { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Reveal on scroll (progressive: content is visible without JS) ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, a.card { transition: none; }
    .btn:hover, a.card:hover { transform: none; }
}
