/* ─────────────────────────────────────────────
   DATASHEQ — estilos del sitio
   Paleta: PALETA-COLORES (#10102a · #1b33c8 · #c200ff · #04dd75), color primario = morado #c200ff
   (igual que el sitio de C-Legal). Tipografía según las guías "TAMAÑOS TEXTOS".
   Tamaños de diseño (px del artboard) → CSS: tamaño × 100vw / 792, con mínimos legibles.
   ───────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette — primary: purple */
  --purple: #c200ff;     /* primary */
  --purple-600: #a702df; /* hover / small text (85% purple + 15% ink) */
  --purple-50: #fae8ff;
  --purple-100: #f4d1ff;
  --indigo: #1b33c8;
  --ink: #10102a;        /* titles */
  --navy: #14253b;       /* plan names, prices, ES/EN active */
  --text: #4b586b;       /* body */
  --muted: #5b6579;
  --soft-text: #8f8c8c;  /* design #aca9a9, darkened for legibility */
  --disabled: #a3adb8;
  --green: #04dd75;
  --line: #e4e7ec;
  --soft: #f6f7f9;
  --panel: #e5e9ec;
  --white: #fff;
  --danger: #c62828;
  --danger-50: #fdecec;

  /* Type scale (design px → fluid CSS px) */
  --fs-display: clamp(34px, 3.41vw, 56px);  /* 27 Extrabold */
  --fs-title: clamp(26px, 1.77vw, 32px);    /* 14 Black */
  --fs-lead: clamp(18px, 1.77vw, 27px);     /* 14 Bold */
  --fs-btn: clamp(16px, 1.52vw, 22px);      /* 12 Bold */
  --fs-nav: clamp(15px, 1.26vw, 19px);      /* 10 Bold */
  --fs-card-title: clamp(18px, 1.26vw, 21px);
  --fs-btn-sm: clamp(14px, 1.14vw, 17px);   /* 9 Bold */
  --fs-name: clamp(15px, 1.14vw, 18px);     /* 9 */
  --fs-body: clamp(15px, 1.01vw, 17px);     /* 8 Medium */
  --fs-small: clamp(14px, 0.9vw, 16px);     /* 7 */
  --fs-eyebrow: clamp(11px, 0.76vw, 13px);  /* 6 Extrabold caps */
  --fs-price: clamp(26px, 1.9vw, 32px);     /* 15 Extrabold */

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 42, 0.06), 0 2px 8px rgba(16, 16, 42, 0.05);
  --shadow: 0 10px 30px rgba(16, 16, 42, 0.08), 0 2px 6px rgba(16, 16, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(16, 16, 42, 0.18);

  --header-h: 96px;
  --container: 1200px;
  --gutter: 24px;
  --bleed: calc((min(100vw, calc(var(--container) + var(--gutter) * 2)) - 100vw) / 2 - var(--gutter));

  --font: 'Helvetica Now Display', 'Helvetica Now Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.icon { flex: none; }
.d-block { display: block; }
.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; }

section[id], [id='mision'], [id='vision'], [id='equipo'] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(194, 0, 255, 0.45); outline-offset: 2px; border-radius: 6px; }

/* ───────── Typography ───────── */
.display { font-size: var(--fs-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); }
.title { font-size: var(--fs-title); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.lead { font-size: var(--fs-lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.body { font-size: var(--fs-body); font-weight: 500; line-height: 1.38; color: var(--text); }
.eyebrow { font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.hl { color: var(--purple); }
.muted { color: var(--muted); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-size: var(--fs-btn-sm); font-weight: 700; line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(194, 0, 255, 0.25); }
.btn-primary:hover { background: var(--purple-600); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--ink); }
.btn-outline:hover { color: var(--purple); border-color: var(--purple); }
.btn-lg { font-size: var(--fs-btn); min-height: clamp(52px, 4.2vw, 66px); min-width: clamp(170px, 15vw, 240px); padding: 0 32px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: clamp(28px, 3vw, 44px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--purple); font-weight: 700; font-size: 15px; text-decoration: none;
}
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 10px 30px rgba(16, 16, 42, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 140px; height: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav-list a { font-size: var(--fs-nav); font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-list a:hover { color: var(--purple); }
.nav-list a.is-active { color: var(--purple); border-bottom-color: var(--purple); }
.nav-mobile-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1.5px var(--line), var(--shadow-sm); }
.lang-switch a { min-width: 42px; padding: 8px 10px; border-radius: 7px; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; line-height: 1.2; }
.lang-switch a[aria-current='true'] { background: var(--navy); color: #fff; }
.btn-sm { min-height: 50px; padding: 0 22px; }
.btn-header { min-width: 170px; }
.download-link { display: inline-flex; color: var(--purple); padding: 4px; border-radius: 8px; }
.download-link:hover { color: var(--purple-600); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); border-radius: 8px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded='true'] .i-close { display: block; }
.menu-toggle[aria-expanded='true'] .i-menu { display: none; }

/* ───────── Hero ───────── */
/* The mockup touches the header, bleeds off the right edge and sits on the bottom of the hero. */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 24px; }
.hero-copy { padding: 56px 0 80px; }
.hero .lead { margin-top: clamp(22px, 2.2vw, 34px); max-width: 640px; }
.hero-media { align-self: stretch; display: flex; justify-content: flex-end; margin-right: var(--bleed); }
.hero-media img { width: 100%; height: 100%; max-width: 920px; object-fit: cover; object-position: right bottom; }

/* ───────── Sections ───────── */
.section { padding: clamp(64px, 7vw, 112px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .title { margin-bottom: 14px; }
.section-head .body + .body { margin-top: 10px; }

/* C-Legal */
.clegal { position: relative; overflow: hidden; padding-top: clamp(56px, 6vw, 96px); }
.clegal-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.clegal-copy { padding-bottom: clamp(40px, 5vw, 96px); }
.clegal .lead { margin-top: clamp(22px, 2.2vw, 34px); max-width: 640px; }
.clegal-media { align-self: end; }
.clegal-media img { width: 100%; max-width: 600px; margin-left: auto; }

/* 01 / 02 / 03 */
.why { background: var(--soft); padding-bottom: clamp(110px, 10vw, 160px); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); align-items: stretch; }
.why-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--purple); border-radius: 28px;
  padding: clamp(28px, 2.6vw, 40px) clamp(22px, 2.2vw, 34px) 0;
  min-height: clamp(560px, 46vw, 700px);
}
.why-num { font-size: var(--fs-card-title); font-weight: 900; color: var(--purple); line-height: 1; }
.why-card h3 { font-size: var(--fs-card-title); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 14px 0 26px; max-width: 18ch; }
.pain-list li { position: relative; padding-left: 16px; font-size: var(--fs-small); font-weight: 500; line-height: 1.43; color: var(--text); margin-bottom: 12px; }
.pain-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pain-list strong { color: var(--ink); font-weight: 700; }
.tick-list li { display: flex; align-items: center; gap: 14px; font-size: calc(var(--fs-small) + 1px); font-weight: 500; color: var(--text); margin-bottom: 14px; }
.tick-list .tick { color: var(--purple); }
.benefit-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 26px; }
.benefit-icon { color: var(--purple); padding-top: 2px; }
.benefit-list strong { display: block; font-size: var(--fs-small); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.benefit-list p { font-size: var(--fs-small); font-weight: 500; line-height: 1.43; color: var(--text); }
.why-img { margin-top: auto; height: auto; max-width: none; pointer-events: none; }
.why-img--laptop { width: 128%; margin: 28px 0 -56px -34%; }
.why-img--phones { width: 114%; margin: 28px -7% -88px; }

/* Plans */
.plans .section-head .body { color: var(--text); }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; border: 1.5px solid #eef0f3;
  box-shadow: var(--shadow); padding: 34px 26px 26px;
}
.plan-card.is-recommended { box-shadow: 0 22px 50px rgba(194, 0, 255, 0.14), 0 2px 6px rgba(16, 16, 42, 0.04); }
.plan-card.is-highlight { border-color: var(--purple); }
.plan-badge { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-size: 14px; font-weight: 700; padding: 8px 24px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: var(--fs-name); font-weight: 800; color: var(--navy); }
.plan-price { margin-top: 16px; min-height: 2.2em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--navy); }
.plan-price strong { font-size: var(--fs-price); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan-price span { font-size: 15px; font-weight: 700; color: var(--muted); }
.plan-price--soon { align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--muted); }
.plan-price .dash { width: 30px; height: 3px; background: var(--navy); border-radius: 2px; }
.plan-features { margin: 20px 0 28px; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; font-weight: 600; color: #17243c; }
.plan-features .tick { color: var(--purple); }
.plan-features li.off { color: var(--disabled); }
.plan-features .dash-sm { width: 14px; height: 2px; background: var(--disabled); flex: none; }
.plan-cta { min-height: 58px; font-size: var(--fs-nav); }

/* CTA */
.cta { text-align: center; padding: clamp(80px, 9vw, 150px) 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .lead { margin: clamp(20px, 2vw, 30px) auto clamp(30px, 3vw, 44px); max-width: 920px; }
.cta-eco { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin-top: clamp(36px, 4vw, 56px); }
.cta-eco > span:first-child { font-size: var(--fs-lead); font-weight: 400; color: var(--text); }
.cta-eco-arrow { color: var(--purple); display: inline-flex; }
.cta-eco .btn { font-size: var(--fs-lead); min-height: clamp(52px, 4.2vw, 64px); padding: 0 24px; }

/* Solutions (modules) */
.solution { background: var(--soft); }
.modules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.module-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border-radius: 14px; padding: 24px 24px 18px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 16, 42, 0.12); }
.module-top { display: flex; align-items: center; gap: 16px; }
.module-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(135deg, var(--indigo), var(--purple)); color: #fff; }
.module-card h3 { font-size: var(--fs-card-title); font-weight: 800; letter-spacing: -0.01em; }
.module-sub { font-size: 14px; color: var(--text); font-weight: 500; margin-top: 2px; }
.module-desc { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); flex: 1; }
.module-card .link-arrow { align-self: flex-start; }
.module-card--cta { grid-column: span 2; justify-content: center; align-items: flex-start; background: linear-gradient(120deg, var(--ink) 0%, #12174a 60%, #570a7f 100%); color: #d6d3ea; padding: 30px 32px; }
.module-card--cta h3 { color: #fff; font-size: 22px; }
.module-card--cta p { max-width: 520px; }
.module-card--cta:hover { transform: none; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-cover { height: 150px; display: grid; place-items: center; color: #fff; font-size: 32px; font-weight: 900; letter-spacing: -0.01em; }
.news-cover--1 { background: linear-gradient(135deg, #6e1ae4 0%, var(--purple) 100%); }
.news-cover--2 { background: linear-gradient(135deg, var(--purple) 0%, #d759ff 100%); }
.news-cover--3 { background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--purple-50); color: var(--purple); font-weight: 700; }
.news-card h3 { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.news-card p { font-size: 15px; color: var(--muted); flex: 1; }

/* App */
.app { overflow: hidden; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.app .lead { margin-top: clamp(20px, 2vw, 30px); max-width: 620px; }
.app-access { margin-top: clamp(26px, 2.6vw, 40px); font-size: var(--fs-lead); font-weight: 700; color: var(--text); }
.app-stores { margin-top: 10px; }
.app-label { display: block; font-size: var(--fs-btn); font-weight: 400; color: var(--text); margin-bottom: 14px; }
.store-icons { display: flex; gap: 18px; align-items: center; }
.store-icons img { width: 56px; height: 56px; transition: transform .15s; }
.store-icons a:hover img { transform: translateY(-2px); }
.app-cta { margin-top: clamp(24px, 2.4vw, 36px); }
.app-media img { width: 100%; max-width: 560px; margin-left: auto; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.about-copy .title { margin-top: clamp(30px, 3vw, 48px); }
.about-copy .eyebrow + .title { margin-top: 0; }
.about-copy .body { margin-top: 14px; max-width: 640px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 18px; }
.member { width: calc((100% - 36px) / 3); max-width: 240px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.member-photo { width: 100%; aspect-ratio: 1; border-radius: 50%; margin-bottom: 14px; }
.member strong { font-size: var(--fs-name); font-weight: 700; color: var(--ink); line-height: 1.2; }
.member span { font-size: var(--fs-name); font-weight: 400; color: var(--ink); line-height: 1.3; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-copy .title { margin-bottom: 14px; }
.contact-copy .body { max-width: 560px; }
.contact-list { display: grid; gap: 18px; margin-top: 40px; }
.contact-list li { display: flex; align-items: center; gap: 18px; }
.ci { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.contact-list strong { display: block; font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a.strong-link { font-weight: 700; font-size: var(--fs-body); }
.contact-list a:hover { color: var(--purple); }
.contact-panel { background: var(--panel); border-radius: 12px; padding: clamp(28px, 3vw, 44px) clamp(22px, 3vw, 48px); }

/* ───────── Form ───────── */
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 14px; min-width: 0; }
.field label, .field .label { display: block; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.req { color: var(--purple); margin-left: 2px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.contact-form input[type='text'], .contact-form input[type='email'], .contact-form input[type='tel'],
.contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1.5px solid transparent; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(16, 16, 42, 0.05);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6579' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-form ::placeholder { color: #9aa1ad; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(194, 0, 255, 0.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 500; }
.field.has-error .field-error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 15px; border-radius: 999px;
  background: #fff; border: 1.5px solid transparent; box-shadow: 0 0 0 1px rgba(16, 16, 42, 0.08);
  font-size: 14px; font-weight: 600; color: var(--text); transition: all .15s; user-select: none;
}
.chip:hover span { box-shadow: 0 0 0 1px rgba(16, 16, 42, 0.25); }
.chip input:checked + span { background: var(--purple-50); border-color: var(--purple); color: #7b06aa; }
.chip input:focus-visible + span { outline: 3px solid rgba(194, 0, 255, 0.45); outline-offset: 2px; }

.field--check { margin: 6px 0 16px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 14px !important; color: var(--text) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--purple); flex: none; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; background: var(--danger-50); color: #8e1c1c; font-size: 14px; font-weight: 500; }
.form-alert[hidden] { display: none; }
.btn-submit { min-height: 58px; font-size: clamp(16px, 1.26vw, 19px); font-weight: 800; }
.form-footnote { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 500; color: var(--soft-text); }
.req-note { white-space: nowrap; margin-left: 6px; }

.form-success { text-align: center; padding: 28px 8px 8px; }
.form-success:focus { outline: none; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--purple); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(194, 0, 255, 0.3); }
.form-success h3 { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.form-success p { max-width: 420px; margin: 0 auto 6px; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ───────── Modal ───────── */
.modal { width: min(780px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; color: var(--text); }
.modal::backdrop { background: rgba(16, 16, 42, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease-out; }
.modal[open]::backdrop { animation: fade .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 36px 40px 32px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); border: 0; cursor: pointer; color: var(--ink); }
.modal-close:hover { background: var(--line); }
.modal-head { margin-bottom: 24px; padding-right: 40px; }
.modal-card.is-done .modal-head { display: none; }
.modal-head h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-head p:not(.eyebrow) { color: var(--text); font-weight: 500; }
.modal .contact-form input[type='text'], .modal .contact-form input[type='email'], .modal .contact-form input[type='tel'],
.modal .contact-form select, .modal .contact-form textarea { background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.modal .contact-form input:focus, .modal .contact-form select:focus, .modal .contact-form textarea:focus { background: #fff; }
.modal .chip span { background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.modal .chip input:checked + span { background: var(--purple-50); }
.modal--news { width: min(640px, calc(100vw - 32px)); }
.modal--news .modal-card { padding: 0; }
.news-cover--modal { height: 160px; font-size: 42px; border-radius: 16px 16px 0 0; }
.news-article { padding: 26px 34px 32px; }
.news-article h2 { font-size: 24px; font-weight: 900; margin: 12px 0 16px; }
.news-article p { margin-bottom: 12px; }
.news-article .btn { margin-top: 10px; }

/* ───────── Footer ───────── */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: 140px; margin-bottom: 16px; }
.footer-brand p { max-width: 380px; color: var(--muted); }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); font-weight: 800; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 24px; font-size: 13px; color: var(--muted); }

/* Back to top */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 40px); bottom: clamp(16px, 2.5vw, 40px); z-index: 40;
  display: grid; place-items: center; width: clamp(54px, 4.4vw, 72px); height: clamp(54px, 4.4vw, 72px);
  border-radius: 50%; border: 3px solid var(--purple); color: var(--purple); background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(194, 0, 255, 0.15);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background-color .15s, color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--purple); color: #fff; }

/* ───────── Responsive ───────── */
@media (max-width: 1239px) {
  .btn-login, .btn-header { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; box-shadow: 0 18px 30px rgba(16, 16, 42, 0.12);
    padding: 12px var(--gutter) 22px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-list a.is-active { border-bottom-color: var(--line); }
  .nav-mobile-actions { display: grid; gap: 10px; margin-top: 18px; }
  .header-actions { margin-left: auto; gap: 10px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { width: 112px; }
  .hero-grid, .clegal-grid, .app-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 0 0; }
  .hero-media { justify-self: end; width: min(100% + var(--gutter), 720px); margin-right: calc(var(--gutter) * -1); }
  .hero-media img { height: auto; }
  .clegal-copy { padding-bottom: 0; }
  .clegal-media img { margin: 0 auto; max-width: 480px; }
  .why-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .why-card { min-height: 0; }
  .why-card--3 { padding-bottom: 8px; }
  .why-img--laptop { width: 100%; margin: 24px 0 -40px; }
  .why-img--phones { width: 100%; margin: 24px 0 -48px; }
  .why-grid { gap: 72px; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-copy { position: static; }
  .app-media { order: -1; }
  .app-media img { margin: 0 auto; max-width: 420px; }
  .team-grid { max-width: 640px; margin: 0 auto; }

  /* Centred content on tablet / mobile (desktop stays left-aligned) */
  .hero-copy, .app-copy, .about-copy, .site-footer { text-align: center; }
  .hero .lead, .app .lead, .about-copy .body, .footer-brand p { margin-left: auto; margin-right: auto; }
  .btn-row, .store-icons { justify-content: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .hero-media { justify-self: center; width: min(100%, 720px); margin-right: 0; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .lang-switch a { min-width: 36px; padding: 7px 8px; font-size: 14px; }
  .plans-grid, .modules-grid, .news-grid { grid-template-columns: 1fr; }
  .module-card--cta { grid-column: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-panel { padding: 24px 18px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .member { width: calc((100% - 18px) / 2); }
  .cta-eco { flex-direction: column; }
  .cta-eco-arrow { transform: rotate(90deg); }

  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .modal-card { max-height: 100dvh; height: 100dvh; border-radius: 0; padding: 24px 18px 28px; }
  .modal--news .modal-card { padding: 0; }
  .news-cover--modal { border-radius: 0; }
  .news-article { padding: 22px 20px 28px; }
  .modal-head h2 { font-size: 24px; }
}

@media (max-width: 400px) {
  .brand img { width: 96px; }
}
