/* MyWabaLink landing page. No web fonts, no JavaScript. */

:root {
  --brand: #6d3ce8;
  --brand-dark: #5b2fd6;
  --brand-soft: #f1ebff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --bg-alt: #f8f7fc;
  --ink: #0f0a1f;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid rgba(109, 60, 232, .45); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--brand-soft); color: #4c1d95; padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.visually-hidden { 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-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 650; font-size: 1rem; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border: 1.5px solid #d4c7fb; color: var(--brand-dark); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .97rem; }
.main-nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.link-login { color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #e9e0ff 0%, rgba(233, 224, 255, 0) 60%), linear-gradient(#fff, #fbfaff); padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }

.hero-visual { display: grid; gap: 14px; justify-items: center; }
.phone { width: min(360px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 16px; box-shadow: 0 24px 48px rgba(46, 16, 101, .12); display: grid; gap: 8px; }
.phone-bar { font-size: .8rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; }
.bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.bubble.in { background: #f3f4f6; justify-self: start; border-bottom-left-radius: 4px; }
.bubble.out { background: #ede7ff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble .tag { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--brand); color: #fff; border-radius: 6px; padding: 1px 6px; vertical-align: 1px; }
.bubble .tag-owner { background: #0f766e; }
.flow-line { width: 2px; height: 28px; background: repeating-linear-gradient(var(--brand) 0 6px, transparent 6px 11px); }
.server { width: min(380px, 100%); background: var(--ink); color: #e9e5ff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(15, 10, 31, .25); }
.server-bar { font-family: var(--mono); font-size: .78rem; color: #b8a6ff; margin-bottom: 6px; }
.server pre { margin: 0; font-size: .8rem; line-height: 1.5; overflow-x: auto; }
.server code { background: none; color: inherit; padding: 0; }
.server-note { margin: 8px 0 0; font-size: .8rem; color: #c9bfff; }
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 46em; margin: 0 auto 44px; font-size: 1.05rem; }
.definition { padding: 64px 0; }
.definition h2 { font-size: 1.6rem; }
.answer { font-size: 1.12rem; color: #1f2937; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* use cases */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.usecase { border-left: 4px solid var(--brand); background: #fff; padding: 6px 0 6px 20px; }
.usecase p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .usecases { grid-template-columns: 1fr; } }

/* comparison table */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .97rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafafa; }
.compare tbody th { font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .col-us { background: #faf7ff; font-weight: 650; color: #3b1d8f; }
.compare thead .col-us { color: var(--brand-dark); }

/* developers */
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.code-card { margin: 0; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.code-card figcaption { padding: 12px 18px; color: #c9bfff; font-size: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-card figcaption strong { color: #fff; }
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; color: #ece8ff; font-size: .82rem; line-height: 1.6; }
.code-card code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }
.dev-facts { list-style: none; padding: 0; margin: 28px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; max-width: 980px; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .code-grid, .dev-facts { grid-template-columns: 1fr; } }

/* facts list */
.facts { padding-left: 1.2em; margin: 0; }
.facts li { margin-bottom: .7em; color: #1f2937; }

/* pricing */
.price-card { max-width: 620px; margin: 0 auto; background: #fff; border: 2px solid #d4c7fb; border-radius: 20px; padding: 36px; text-align: center; box-shadow: 0 18px 40px rgba(46, 16, 101, .08); }
.price-head { font-size: 1.35rem; font-weight: 750; margin-bottom: 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: grid; gap: 10px; }
.price-list li { padding-left: 28px; position: relative; color: #374151; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price-note { margin: 22px 0 0; font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq details p { color: #374151; margin: 0 0 20px; }

/* CTA */
.cta { background: linear-gradient(135deg, #6d3ce8, #4c1d95); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e4dcff; font-size: 1.1rem; margin-bottom: 28px; }

/* footer */
.site-footer { background: var(--ink); color: #cfc8e6; padding: 56px 0 28px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin: 12px 0 0; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: #e9e5ff; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.7; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #a39bbf; }
.footer-legal p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* 404 page */
.notfound { text-align: center; }
.notfound .brand { justify-content: center; margin-bottom: 24px; }
.notfound .lead { margin-inline: auto; }

/* header: keep the two links on one line on small phones */
.header-cta a { white-space: nowrap; }
@media (max-width: 400px) { .header-inner { gap: 10px; } .header-cta { gap: 12px; } .brand { gap: 8px; font-size: 1.05rem; } .brand img { width: 28px; height: 28px; } .header-cta .btn-sm { padding: 0 12px; font-size: .9rem; } }

/* comparison table: one card per row on phones (cells labelled via data-label) */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; background: none; border: 0; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
  .compare tbody th { padding: 14px 16px 6px; border: 0; }
  .compare td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; border: 0; border-top: 1px solid var(--border); }
  .compare td::before { content: attr(data-label); flex: none; white-space: nowrap; color: var(--muted); font-weight: 500; }
  .compare td { text-align: right; }
  .compare tr:last-child td { border-top: 1px solid var(--border); }
}

/* hero: "connected to" card */
.connect-card { width: min(380px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: 0 18px 40px rgba(46, 16, 101, .10); }
.connect-title { margin: 0 0 10px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; font-size: .88rem; padding: 6px 12px; border-radius: 999px; }

/* trust strip */
.trust { border-block: 1px solid var(--border); background: #fff; }
.trust-list { list-style: none; padding: 26px 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-list strong { display: block; font-size: 1.1rem; color: var(--brand-dark); }
.trust-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }

/* benefit cards with icons */
.cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-3 .card { padding: 28px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; }
.industry::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand); }
.industry p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } }

/* developer band */
.dev-band { background: var(--ink); color: #e9e5ff; padding: 64px 0; }
.dev-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.dev-band h2 { color: #fff; }
.dev-band p { color: #c9bfff; margin: 0; font-size: 1.05rem; }
.dev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dev-list li { padding-left: 30px; position: relative; }
.dev-list li::before { content: "✓"; position: absolute; left: 0; color: #b8a6ff; font-weight: 800; }
@media (max-width: 800px) { .dev-inner { grid-template-columns: 1fr; gap: 24px; } }

/* price */
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: -4px 0 24px; }
.price-value { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--text); letter-spacing: -0.02em; }
.price-unit { color: var(--muted); font-size: 1rem; }

/* legal pages (terms, privacy, data deletion) */
.legal-hero { background: linear-gradient(#fbfaff, #fff); border-bottom: 1px solid var(--border); padding: 48px 0 36px; }
.legal-hero .back { display: table; font-size: .95rem; font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 8px; }
.legal-hero .updated { color: var(--muted); margin: 0; font-size: .95rem; }
.legal { padding: 40px 0 80px; }
.legal h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.legal p, .legal li { color: #1f2937; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal .toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.legal .toc strong { display: block; margin-bottom: 8px; }
.legal .toc ol { margin: 0; columns: 2; column-gap: 32px; }
.legal .toc li { margin-bottom: 4px; break-inside: avoid; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }
.legal .table-wrap { margin: 0 0 1.2em; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.legal thead th { background: #fafafa; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal tbody td:first-child { font-weight: 600; width: 34%; }
.legal tr:last-child td { border-bottom: 0; }
.legal .note { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: 14px 16px; font-size: .95rem; }
.legal address { font-style: normal; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; line-height: 1.8; }
