/* Avalidam website styles */
:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --ink: #2E1065;
  --text: #3F3B4F;
  --muted: #5B5670;
  --bg: #FAF5FF;
  --white: #FFFFFF;
  --border: #E4DCFB;
  --border-soft: #EFE8FD;
  --soft: #EDE6FE;
  --green: #15803D;
  --green-bg: #DCFCE7;
  --green-ink: #14532D;
  --error: #B91C1C;
  --radius: 22px;
  --font-head: 'Varela Round', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: #6D28D9; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--font-head); font-weight: 400; letter-spacing: -0.5px; }
h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; }
h3 { font-size: 19px; font-weight: 800; line-height: 1.35; }
p { margin: 0; }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-tight { padding: 24px 0 88px; }
.section-white { background: var(--white); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-dark { background: var(--ink); color: #EDE6FE; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #DDD6FE; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin-bottom: 36px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.align-start { align-items: start; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 245, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid #E9E1FC; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 40px; width: auto; }
.menu { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.menu a:not(.btn) { color: var(--text); text-decoration: none; transition: color 150ms ease; padding: 10px 0; }
.menu a:not(.btn):hover, .menu a[aria-current="page"] { color: #6D28D9; }
.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(46, 16, 101, 0.08); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .menu .btn { margin-top: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background-color 200ms ease, transform 150ms ease; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; min-height: 54px; font-size: 17px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); color: var(--ink); }

/* Pills & badges */
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); color: var(--ink); font-size: 14px; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.pill-green { background: var(--green-bg); border-color: #BBF7D0; color: var(--green-ink); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.badge-ok { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--green-bg); color: var(--green-ink); font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.badge-lg { font-size: 15px; padding: 8px 14px; }

/* Icons */
.ico, .ico-sm, .ico-lg, .ico-xl { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico { width: 20px; height: 20px; }
.ico-sm { width: 14px; height: 14px; stroke-width: 2.4; }
.ico-lg { width: 28px; height: 28px; color: #6D28D9; }
.ico-xl { width: 44px; height: 44px; }
.ok { color: var(--green); }

/* Hero */
.hero { padding: 64px 0 80px; }
.page-hero { padding: 64px 0 56px; }
.page-hero .container { display: flex; flex-direction: column; gap: 18px; }
.page-hero .hero-grid { display: grid; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; }
.page-hero .hero-grid > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: 15px; color: var(--ink); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ico { color: var(--green); }

/* Phone preview */
.phone-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-wrap figcaption { font-size: 13px; color: var(--muted); }
.phone { width: 320px; max-width: 100%; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px rgba(46, 16, 101, 0.18); }
.phone-screen { background: var(--bg); border-radius: 34px; padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; min-height: 600px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; }
.phone-title { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.phone-sub { font-size: 12px; font-weight: 700; color: var(--muted); }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.p-card strong { color: var(--ink); font-size: 14px; }
.p-img { height: 120px; border-radius: 14px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.p-row { flex-direction: row; align-items: center; gap: 12px; }
.p-row > div { display: flex; flex-direction: column; gap: 2px; }
.p-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-avatar .ico-lg { width: 22px; height: 22px; }
.p-meta { font-size: 12px; color: var(--muted); }
.p-ok { font-size: 12px; color: var(--green-ink); font-weight: 700; }
.p-sos { margin-top: auto; background: var(--error); color: #fff; border-radius: 999px; padding: 12px; text-align: center; font-weight: 800; font-size: 14px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color 200ms ease, box-shadow 200ms ease; }
.section-white .card { background: #FCFAFF; border-color: var(--border-soft); }
.card:hover { border-color: #C4B5FD; box-shadow: 0 6px 20px rgba(76, 29, 149, 0.08); }
.card-dark { background: #3B1585 !important; border-color: #5B2DB0 !important; }
.card-dark:hover { box-shadow: none; }
.steps { list-style: none; margin: 0; padding: 0; }
.step-num { width: 44px; height: 44px; border-radius: 999px; background: var(--soft); color: var(--primary-dark); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.big-badge { gap: 16px; padding: 32px; }

/* Lists */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { color: var(--green); margin-top: 3px; }
.checklist.on-dark { color: #F5F3FF; }
.checklist.on-dark .ico { color: #86EFAC; }
.checklist.cross .ico { color: var(--error); }

.note-dark { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #DDD6FE; font-size: 15px; }
.note-dark a { color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--ink); font-size: 15px; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: 0 2px 6px rgba(46, 16, 101, 0.05); }
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-title { font-family: var(--font-head); font-weight: 400; font-size: 24px; color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 800; color: var(--ink); }
.field input, .field select { height: 50px; padding: 0 16px; border: 1.5px solid #D6CCF5; border-radius: 14px; font-family: var(--font-body); font-size: 16px; color: var(--ink); background: #fff; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.error { font-size: 14px; font-weight: 700; color: var(--error); }
.fine { font-size: 13px; color: var(--muted); }
.success { display: flex; gap: 16px; align-items: flex-start; }
.success[hidden] { display: none; }
.success > div { display: flex; flex-direction: column; gap: 6px; }

/* Bands */
.split-band { background: var(--soft); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.split-band > div { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.split-band h2 { font-size: clamp(24px, 3vw, 32px); }
.band-green { background: var(--green-bg); }
.cta-band { background: var(--primary); }
.cta-inner { padding: 80px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta-inner h2 { color: #fff; max-width: 760px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--border-soft); }
.compare thead th { border-top: 0; background: #FCFAFF; color: var(--ink); font-weight: 700; }
.compare thead th.us { background: var(--primary); color: #fff; font-weight: 800; }
.compare tbody th { color: var(--ink); font-weight: 700; }
.compare td.us { background: #F3EEFF; color: var(--ink); font-weight: 800; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #FCFAFF; border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 800; color: var(--ink); min-height: 28px; }
.faq details p { margin-top: 12px; }
.faq-groups { display: flex; flex-direction: column; gap: 20px; }
.faq-groups h2 { font-size: 26px; margin-top: 16px; }
.more-link { margin-top: 20px; font-weight: 800; }

/* Legal pages */
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 24px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.draft-note { background: #FEF3C7; border: 1px solid #FCD34D; color: #78350F; border-radius: 14px; padding: 14px 18px; font-size: 15px; }

/* Footer */
.site-footer { background: var(--ink); color: #DDD6FE; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.footer-brand img { height: 40px; width: auto; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h2 { font-family: var(--font-body); font-size: 14px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #fff; }
.footer-links a { color: #DDD6FE; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #4C2A8F; padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .split-band { padding: 28px; }
  .form-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
