:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --primary: #6366f1;
  --primary-2: #06b6d4;
  --accent: #ec4899;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* --- Top navigation --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 90deg, var(--primary), var(--primary-2), var(--accent), var(--primary));
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.links a {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.links a:hover { color: var(--primary); }

.right-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  color: #334155;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(99, 102, 241, 0.35); }

.btn-ghost {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: #f8fafc; }

.btn-block { width: 100%; }

/* --- Hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(1100px 480px at 85% 0%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(900px 460px at -10% 50%, rgba(6,182,212,0.16), transparent 65%),
    linear-gradient(180deg, #ffffff, #f7f8fc);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before { width: 320px; height: 320px; left: -80px; top: 80px; background: rgba(236, 72, 153, 0.18); }
.hero::after { width: 260px; height: 260px; right: 10%; bottom: -120px; background: rgba(34, 197, 94, 0.18); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.hero .lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 56ch;
}

.alias-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 1.1rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  max-width: 540px;
}

.alias-prefix { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

.alias-bar input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.4rem;
  background: transparent;
}

.availability {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.chip {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip.ok { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.chip.bad { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.chip[hidden] { display: none; }

.cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.metrics {
  display: flex;
  gap: 1.6rem;
  margin-top: 2rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.metrics b { color: var(--dark); font-size: 1.4rem; display: block; }
.metrics span { font-size: 0.85rem; }

/* --- Hero phone mockup --- */

.phone-stack {
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  width: 280px;
  height: 560px;
  background: #0f172a;
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(160deg, #6366f1, #06b6d4 60%, #ec4899);
  border-radius: 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vcard-mock {
  margin: auto 1.1rem 1.1rem;
  background: #fff;
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
  color: var(--dark);
}

.vcard-mock .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin: -2.7rem auto 0.7rem;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.18);
}

.vcard-mock h4 { margin: 0; font-size: 1.05rem; text-align: center; }
.vcard-mock p { margin: 0.2rem 0 0.9rem; font-size: 0.82rem; color: var(--muted); text-align: center; }

.vcard-mock .row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
}

.vcard-mock .pill {
  width: 28px; height: 28px; border-radius: 8px;
  background: #eef2ff; color: var(--primary); display: grid; place-items: center;
  font-weight: 800; font-size: 0.75rem;
}

.vcard-mock .socials {
  display: flex; gap: 0.4rem; margin-top: 0.6rem; justify-content: center;
}
.vcard-mock .socials span {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f1f5f9;
}

.qr-card {
  position: absolute;
  bottom: 18px;
  right: -32px;
  background: #fff;
  width: 130px;
  height: 130px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transform: rotate(6deg);
}
.qr-card .qr {
  width: 96px; height: 96px;
  background:
    linear-gradient(#0f172a 0 0) top left/30px 30px no-repeat,
    linear-gradient(#0f172a 0 0) top right/30px 30px no-repeat,
    linear-gradient(#0f172a 0 0) bottom left/30px 30px no-repeat,
    repeating-conic-gradient(#0f172a 0% 25%, #fff 0% 50%) 50% / 12px 12px;
  border-radius: 4px;
}

.float-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.float-tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.float-tag.success .dot { background: var(--success); }
.float-tag.brand .dot { background: var(--primary); }
.float-tag-1 { top: 30px; left: -30px; }
.float-tag-2 { bottom: 90px; left: -50px; }

/* --- Sections --- */

section { padding: 5rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 2.6rem;
}

.section-title .eyebrow {
  display: inline-block;
  background: #eef2ff;
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-title h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.3px;
}

.section-title p {
  margin: 0 auto;
  max-width: 64ch;
  color: var(--muted);
}

/* Templates grid */

.templates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

/* --- Mobile-style vCard template previews ---------------------- */

.tpl-card {
  --bg: #0f172a;
  --fg: #f8fafc;
  --muted: #94a3b8;
  --accent: #22c55e;
  --surface: #18223a;
  --hero-from: #1f2937;
  --hero-to: #0f172a;
  --hero-pattern:
    radial-gradient(180px 120px at 30% 30%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(220px 160px at 80% 70%, rgba(255,255,255,0.05), transparent 60%);
  background: var(--bg);
  color: var(--fg);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-size: 11px;
  line-height: 1.4;
}

.tpl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}

.tpl-hero {
  position: relative;
  height: 110px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)),
    var(--hero-pattern),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
}

.tpl-photo {
  position: absolute;
  left: 12px;
  bottom: -20px;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.5) 0 14%, transparent 16%),
    linear-gradient(135deg, var(--accent), var(--hero-from));
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.tpl-headline {
  position: absolute;
  bottom: 10px;
  left: 84px;
  right: 12px;
  color: #fff;
}

.tpl-headline h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.tpl-headline p {
  margin: 0.1rem 0 0;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.85);
}

.tpl-socials {
  display: flex;
  gap: 0.45rem;
  padding: 1.6rem 12px 0.5rem 84px;
}

.tpl-socials span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
}

.tpl-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0.4rem 12px 0.5rem 84px;
  border-radius: 999px;
  opacity: 0.55;
}

.tpl-about {
  padding: 0.5rem 12px 0;
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

.tpl-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 12px;
  margin-top: 0.85rem;
  color: var(--fg);
  font-weight: 800;
  font-size: 0.72rem;
  justify-content: center;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

.tpl-section-title::before,
.tpl-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.tpl-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.6rem;
  padding: 0.5rem 12px 0;
}

.tpl-contact {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.tpl-contact .icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.tpl-contact small {
  color: var(--muted);
  font-size: 0.52rem;
  display: block;
  margin-bottom: 0.1rem;
}

.tpl-contact strong {
  font-size: 0.6rem;
  color: var(--fg);
  font-weight: 700;
}

.tpl-appointment {
  padding: 0.55rem 12px 0;
}

.tpl-appointment h5 {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.tpl-date {
  background: var(--surface);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  font-size: 0.55rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tpl-date::after {
  content: "📅";
  font-size: 0.7rem;
  color: var(--accent);
}

.tpl-hours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.tpl-hours span {
  background: var(--surface);
  border-radius: 4px;
  text-align: center;
  font-size: 0.55rem;
  padding: 0.34rem 0.1rem;
  color: var(--fg);
}

.tpl-services {
  padding: 0.5rem 12px 0.6rem;
}

.tpl-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.tpl-service {
  background: var(--surface);
  padding: 0.6rem 0.55rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tpl-service .ico {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.02);
}

.tpl-service strong {
  font-size: 0.62rem;
  font-weight: 800;
}

.tpl-service small {
  color: var(--muted);
  font-size: 0.52rem;
}

.tpl-meta {
  padding: 0.55rem 12px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tpl-meta h4 {
  margin: 0;
  font-size: 0.78rem;
  color: var(--fg);
}

.tpl-meta span {
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

/* Light variant overrides */
.tpl-card.is-light {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --surface: #f1f5f9;
  border: 1px solid var(--border);
}
.tpl-card.is-light .tpl-section-title::before,
.tpl-card.is-light .tpl-section-title::after { background: rgba(15, 23, 42, 0.12); }
.tpl-card.is-light .tpl-meta { background: #f8fafc; border-top-color: var(--border); }
.tpl-card.is-light .tpl-meta span { border-color: var(--border); }
.tpl-card.is-light .tpl-socials span { background: #f1f5f9; color: var(--accent); }

/* Theme palettes - dark */
.tpl-card.t-gym     { --accent: #22c55e; --hero-from: #1f2937; --hero-to: #0a0e1a; --hero-pattern: radial-gradient(160px 110px at 25% 35%, rgba(34,197,94,0.18), transparent 60%), radial-gradient(180px 140px at 80% 60%, rgba(255,255,255,0.05), transparent 60%); }
.tpl-card.t-tech    { --accent: #38bdf8; --hero-from: #0f172a; --hero-to: #1e3a8a; --hero-pattern: radial-gradient(200px 130px at 30% 30%, rgba(56,189,248,0.22), transparent 60%), radial-gradient(160px 120px at 80% 70%, rgba(99,102,241,0.18), transparent 60%); }
.tpl-card.t-photo   { --accent: #f59e0b; --hero-from: #0c0a09; --hero-to: #1c1917; --hero-pattern: radial-gradient(220px 130px at 20% 30%, rgba(245,158,11,0.18), transparent 60%), radial-gradient(180px 130px at 75% 70%, rgba(255,255,255,0.06), transparent 60%); }
.tpl-card.t-resto   { --accent: #ef4444; --hero-from: #1c1917; --hero-to: #7f1d1d; --hero-pattern: radial-gradient(200px 140px at 30% 40%, rgba(239,68,68,0.25), transparent 60%), radial-gradient(160px 120px at 80% 60%, rgba(245,158,11,0.18), transparent 60%); }

/* Theme palettes - light */
.tpl-card.t-beauty  { --accent: #ec4899; --hero-from: #fce7f3; --hero-to: #fbcfe8; --hero-pattern: radial-gradient(220px 130px at 30% 30%, rgba(236,72,153,0.22), transparent 60%), radial-gradient(180px 130px at 80% 60%, rgba(244,114,182,0.18), transparent 60%); }
.tpl-card.t-doctor  { --accent: #14b8a6; --hero-from: #cffafe; --hero-to: #ccfbf1; --hero-pattern: radial-gradient(200px 130px at 30% 30%, rgba(20,184,166,0.22), transparent 60%), radial-gradient(180px 130px at 80% 60%, rgba(34,197,94,0.16), transparent 60%); }
.tpl-card.t-realty  { --accent: #f97316; --hero-from: #ffedd5; --hero-to: #fed7aa; --hero-pattern: radial-gradient(200px 130px at 30% 30%, rgba(249,115,22,0.22), transparent 60%), radial-gradient(160px 120px at 80% 60%, rgba(239,68,68,0.14), transparent 60%); }
.tpl-card.t-law     { --accent: #6366f1; --hero-from: #e0e7ff; --hero-to: #c7d2fe; --hero-pattern: radial-gradient(200px 130px at 30% 30%, rgba(99,102,241,0.22), transparent 60%), radial-gradient(180px 130px at 80% 60%, rgba(14,165,233,0.16), transparent 60%); }

.see-more { text-align: center; margin-top: 2rem; }

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  color: var(--primary);
  margin-bottom: 0.9rem;
  font-weight: 800;
}

.feature h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Interface section */

.interface {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.interface .panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.interface .panel h3 { margin: 0 0 0.5rem; }
.interface .panel p { margin: 0; color: var(--muted); }
.interface .panel ul { margin: 0.8rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.interface .panel ul li { margin-bottom: 0.3rem; }

.mock-screen {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  color: #fff;
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
.mock-screen::before {
  content: "";
  position: absolute;
  inset: 1.4rem;
  border-radius: 14px;
  background:
    radial-gradient(80px 80px at 30% 30%, rgba(99,102,241,0.4), transparent 70%),
    radial-gradient(120px 120px at 70% 60%, rgba(6,182,212,0.4), transparent 70%);
}
.mock-screen .lines {
  position: absolute; inset: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1rem;
}
.mock-screen .line {
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.mock-screen .line.short { width: 50%; }
.mock-screen .line.mid { width: 70%; }

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.popular { border-color: transparent; box-shadow: var(--shadow-lg); background: linear-gradient(180deg, #ffffff, #fafaff); }
.plan.popular::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.plan-badge {
  position: absolute; top: -14px; right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}

.plan h3 { margin: 0; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.plan .price { margin: 0.4rem 0 0.2rem; font-size: 2.4rem; font-weight: 800; color: var(--dark); }
.plan .price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.plan .desc { color: var(--muted); margin: 0 0 1rem; font-size: 0.9rem; }
.plan .features-list {
  list-style: none; padding: 0; margin: 0 0 1.4rem;
  display: grid; gap: 0.45rem; color: #334155; font-size: 0.93rem;
}
.plan .features-list li { display: flex; align-items: center; gap: 0.5rem; }
.plan .features-list li::before {
  content: "";
  width: 18px; height: 18px; border-radius: 50%;
  background: #ecfdf5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
  flex: 0 0 auto;
}

/* Contact */

.contact {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact h2 { margin-top: 0; }
.contact .info p { margin: 0.4rem 0; color: #334155; }
.contact .info a { color: var(--primary); }

.form {
  display: grid;
  gap: 0.7rem;
}
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }

.newsletter {
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.newsletter h3 { margin: 0 0 0.4rem; }
.newsletter p { margin: 0 0 1rem; color: var(--muted); }
.newsletter form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.newsletter input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
}

/* Footer */

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.footer h4 { color: #fff; margin: 0 0 0.7rem; font-size: 0.95rem; letter-spacing: 0.5px; text-transform: uppercase; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Cookie bar */

.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0f172a;
  color: #fff;
  z-index: 50;
}
.cookie-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0.8rem 0;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-wrap small { opacity: 0.92; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-actions .btn-ghost {
  background: #1f2937;
  color: #fff;
  border: 1px solid #374151;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
}

/* Auth pages */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8fafc;
}
.auth-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 360px at 30% 30%, rgba(99,102,241,0.4), transparent 60%),
    radial-gradient(600px 360px at 80% 70%, rgba(6,182,212,0.4), transparent 60%),
    linear-gradient(160deg, #0f172a, #1e293b);
  color: #fff;
  padding: 3rem;
}
.auth-art .copy { max-width: 360px; }
.auth-art h2 { font-size: 2rem; margin: 0 0 0.6rem; }
.auth-art p { color: rgba(255,255,255,0.78); margin: 0; }

.auth-card {
  display: grid;
  place-items: center;
  padding: 2rem;
}
.auth-form {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.auth-form h1 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.auth-form .muted { color: var(--muted); margin: 0 0 1.5rem; }
.auth-form .form-field { margin-bottom: 0.9rem; }
.auth-form label { display: block; font-size: 0.85rem; color: #334155; font-weight: 600; margin-bottom: 0.35rem; }
.auth-form input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.8rem 0.95rem; font: inherit;
}
.auth-form input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.15); }

.alert {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert[hidden] { display: none; }

.auth-foot { margin-top: 1rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* Dashboard */

.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.app-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}
.app-bar .who { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.app-bar .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}

.app-main {
  width: min(1180px, 95vw);
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}

.sidebar {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem;
  height: fit-content;
}
.sidebar a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: #334155;
  font-weight: 500;
}
.sidebar a:hover, .sidebar a.active { background: #eef2ff; color: var(--primary); }

.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.vcard-table { width: 100%; border-collapse: collapse; }
.vcard-table th, .vcard-table td {
  text-align: left;
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.vcard-table th { color: var(--muted); font-weight: 600; }
.vcard-table .actions { display: flex; gap: 0.3rem; }
.btn-sm { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
.btn-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }

.empty { text-align: center; padding: 2rem; color: var(--muted); }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid; place-items: center;
  z-index: 100;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: min(560px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.5rem;
}
.modal h3 { margin: 0 0 0.8rem; }
.modal[hidden], .modal-backdrop[hidden] { display: none; }

/* Public vcard view */

.public-shell {
  min-height: 100vh;
  background:
    radial-gradient(600px 320px at 20% 10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(600px 320px at 90% 70%, rgba(6,182,212,0.16), transparent 60%),
    linear-gradient(180deg, #f8fafc, #eef2ff);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.public-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.public-card .header {
  height: 130px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  position: relative;
}
.public-card .avatar {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #f1f5f9);
  border: 4px solid #fff;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.public-card .body {
  padding: 3.2rem 1.4rem 1.4rem;
  text-align: center;
}
.public-card h1 { margin: 0; font-size: 1.4rem; }
.public-card .role { color: var(--muted); margin: 0.2rem 0 1rem; }
.public-card .actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1rem; }
.public-card .info { display: grid; gap: 0.4rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.public-card .info-row { display: flex; align-items: center; gap: 0.6rem; justify-content: center; font-size: 0.92rem; color: #334155; }
.public-card .socials { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.7rem; }
.public-card .socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #eef2ff; color: var(--primary);
  display: grid; place-items: center; font-weight: 700;
}

/* Responsive */

@media (max-width: 1024px) {
  .templates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .hero-grid, .pricing, .interface, .contact-grid, .footer-grid, .auth-shell, .app-main {
    grid-template-columns: 1fr;
  }
  .auth-art { padding: 2rem; min-height: 220px; }
  .templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { display: none; }
  .right-tools .lang { display: none; }
  .qr-card { right: 8px; bottom: -28px; }
  .float-tag-2 { display: none; }
}

@media (max-width: 520px) {
  .templates, .features { grid-template-columns: 1fr; }
  section { padding: 3.6rem 0; }
  .form .row { grid-template-columns: 1fr; }
  .newsletter form { grid-template-columns: 1fr; }
  .newsletter form .btn { width: 100%; }
}
