/* =========================================================
   PSICOTEDDY SAC — Design System
   ========================================================= */

:root {
  --bg: #06070d;
  --bg-soft: #0b0e18;
  --surface: #10131f;
  --surface-2: #161a2b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0f7;
  --text-muted: #a2a8bd;
  --text-faint: #6b7189;

  --primary: #7c5cff;
  --primary-2: #4f7bff;
  --accent: #00e0c6;
  --accent-2: #ff5ea8;

  --gradient-main: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 50%, var(--accent) 100%);
  --gradient-text: linear-gradient(90deg, #b9a6ff 0%, #8fb2ff 50%, #6df0dc 100%);
  --gradient-radial: radial-gradient(circle at 20% 20%, rgba(124, 92, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(0, 224, 198, 0.25), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 94, 168, 0.15), transparent 45%);

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.35);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 120px 0; }
@media (max-width: 768px) { .section-pad { padding: 80px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 224, 198, 0.08);
  border: 1px solid rgba(0, 224, 198, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary {
  background: var(--gradient-main);
  color: #06070d;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(124,92,255,.5); }

.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateY(-3px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(6, 7, 13, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  box-shadow: 0 6px 20px rgba(124,92,255,.35);
  flex-shrink: 0;
  object-fit: cover;
}
.logo span:last-child { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gradient-main);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; z-index: 1100; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: all .3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1050;
    flex-direction: column; justify-content: center;
    background: rgba(6,7,13,.98); backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 22px; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-radial);
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 75%);
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--primary); top: -120px; right: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--accent); bottom: -100px; left: -60px; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: var(--accent-2); top: 40%; right: 20%; animation-delay: -3s; opacity: .3; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.08); }
  66% { transform: translate(-25px,25px) scale(0.95); }
}

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }

.hero h1 { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: 24px; }
.hero h1 .grad-text { display: inline-block; }
.hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
@media (max-width: 980px) { .hero p.lead { margin-left: auto; margin-right: auto; } }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
@media (max-width: 980px) { .hero-cta { justify-content: center; } }

.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 980px) { .hero-badges { justify-content: center; } }
.hero-badges span {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-badges span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Hero visual: floating code/cloud card */
.hero-visual { position: relative; height: 420px; }
@media (max-width: 980px) { .hero-visual { height: 340px; margin-top: 20px; } }

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

.card-code {
  top: 0; left: 6%; width: 78%;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text-muted);
}
.card-code .dots { display: flex; gap: 6px; margin-bottom: 14px; }
.card-code .dots span { width: 10px; height: 10px; border-radius: 50%; }
.card-code .dots span:nth-child(1) { background: #ff5f57; }
.card-code .dots span:nth-child(2) { background: #febc2e; }
.card-code .dots span:nth-child(3) { background: #28c840; }
.card-code .line { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); margin-bottom: 8px; }
.card-code .line.w1 { width: 90%; } .card-code .line.w2 { width: 65%; background: rgba(124,92,255,.35); }
.card-code .line.w3 { width: 80%; } .card-code .line.w4 { width: 45%; background: rgba(0,224,198,.35); }
.card-code .line.w5 { width: 70%; }

.card-cloud {
  bottom: 6%; right: 0; width: 62%;
  animation-delay: -3s;
  display: flex; align-items: center; gap: 14px;
}
.card-cloud .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gradient-main); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #06070d; font-size: 13px;
}
.card-cloud strong { display: block; font-size: 14px; }
.card-cloud small { color: var(--text-faint); font-size: 12px; }

.card-badge {
  top: 38%; right: -4%; padding: 12px 18px;
  animation-delay: -1.5s;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--accent);
}
@media (max-width: 980px) { .card-badge { right: 4%; } }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .wheel { width: 22px; height: 34px; border: 2px solid var(--border); border-radius: 20px; position: relative; }
.scroll-cue .wheel::after {
  content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px;
  background: var(--accent); border-radius: 2px; transform: translateX(-50%);
  animation: scrolldown 1.6s ease infinite;
}
@keyframes scrolldown { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }

/* ---------- Logos marquee ---------- */
.marquee-wrap {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-label { text-align: center; font-size: 13px; color: var(--text-faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 28px; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 30px; font-weight: 700; font-size: 17px; color: var(--text-muted);
  white-space: nowrap;
}
.marquee-track span i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 30% 0%, rgba(124,92,255,.18), transparent 60%);
  transition: opacity .4s;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(124,92,255,.4); background: var(--surface-2); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--accent);
  position: relative; z-index: 1;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { color: var(--text-muted); font-size: 14.5px; position: relative; z-index: 1; }

/* ---------- Stats ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}
@media (max-width: 768px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.stat .label { color: var(--text-muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
  opacity: .3;
}
@media (max-width: 640px) { .timeline::before { left: 22px; } }
.timeline-item { position: relative; padding-left: 78px; margin-bottom: 44px; }
@media (max-width: 640px) { .timeline-item { padding-left: 60px; } }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  color: var(--accent);
}
@media (max-width: 640px) { .timeline-num { width: 44px; height: 44px; font-size: 15px; } }
.timeline-item h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-item p { color: var(--text-muted); font-size: 15px; max-width: 560px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--gradient-main);
  padding: 64px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #06070d;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .cta-banner { flex-direction: column; text-align: center; padding: 48px 28px; } }
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; color: #06070d; }
.cta-banner p { color: rgba(6,7,13,.75); font-size: 16px; }
.cta-banner .btn-primary { background: #06070d; color: #fff; box-shadow: none; }
.cta-banner .btn-primary:hover { background: #14162a; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.contact-info-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(0,224,198,.1); border: 1px solid rgba(0,224,198,.25);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.contact-info-item .ic svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { color: var(--text-muted); font-size: 14px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text); font-size: 14.5px; font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); }
.field-check input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.field-check a { color: var(--accent); text-decoration: underline; }

.form-note { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-note.show { display: block; }
.form-note.ok { background: rgba(0,224,198,.1); border: 1px solid rgba(0,224,198,.3); color: var(--accent); }
.form-note.err { background: rgba(255,94,94,.1); border: 1px solid rgba(255,94,94,.3); color: #ff8a8a; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 72px 0 28px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 18px 0 22px; max-width: 320px; }
.footer-col h4 { font-size: 14px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: all .25s;
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 13px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text-muted); }

/* ---------- Floating action buttons ---------- */
.fab-group { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), opacity .3s;
}
.fab-wsp { background: #25D366; color: #06070d; }
.fab-wsp svg { width: 28px; height: 28px; }
.fab-top {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  opacity: 0; pointer-events: none; transform: translateY(10px);
}
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-stagger.active > * { }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* =========================================================
   Legal / inner pages
   ========================================================= */
.page-hero {
  padding: 170px 0 70px;
  position: relative;
  background: var(--gradient-radial);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 640px; }
.breadcrumb { font-size: 13.5px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

.legal-content { padding: 70px 0 100px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } }

.legal-toc {
  position: sticky; top: 110px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px;
}
.legal-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 14px; }
.legal-toc li { margin-bottom: 10px; }
.legal-toc a { font-size: 13.5px; color: var(--text-muted); }
.legal-toc a:hover { color: var(--accent); }

.legal-body h2 { font-size: 24px; margin: 40px 0 16px; scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 18px; margin: 24px 0 10px; }
.legal-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 20px; color: var(--text-muted); font-size: 15px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--accent); text-decoration: underline; }
.info-box {
  background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.25);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; font-size: 14.5px; color: var(--text-muted);
}
.updated-badge {
  display: inline-block; font-size: 12.5px; color: var(--text-faint);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; margin-bottom: 8px;
}

/* ---------- Libro de Reclamaciones ---------- */
.lr-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.lr-tab {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: all .25s;
}
.lr-tab.active, .lr-tab:hover { color: #06070d; background: var(--gradient-main); border-color: transparent; }

.lr-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
@media (max-width: 640px) { .lr-form-card { padding: 26px 20px; } }
.lr-section-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  margin: 32px 0 16px; display: flex; align-items: center; gap: 10px;
}
.lr-section-title:first-child { margin-top: 0; }
.lr-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-pill {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft); font-size: 13.5px; cursor: pointer;
  transition: all .2s;
}
.radio-pill input { accent-color: var(--primary); }
.radio-pill:has(input:checked) { border-color: var(--primary); background: rgba(124,92,255,.12); }

.lr-summary {
  display: none; margin-top: 28px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px;
}
.lr-summary.show { display: block; }
.lr-summary h4 { font-size: 15px; margin-bottom: 14px; }
.lr-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 13.5px; }
@media (max-width: 560px) { .lr-summary-grid { grid-template-columns: 1fr; } }
.lr-summary-grid dt { color: var(--text-faint); }
.lr-summary-grid dd { color: var(--text); margin-bottom: 8px; word-break: break-word; }
.lr-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.lr-legal-note {
  display: flex; gap: 14px; background: rgba(0,224,198,.06); border: 1px solid rgba(0,224,198,.2);
  border-radius: var(--radius-md); padding: 22px; margin-bottom: 36px; font-size: 14px; color: var(--text-muted);
}
.lr-legal-note svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

/* back to top of legal toc active state */
.legal-toc a.active { color: var(--accent); }

/* ---------- Utility classes (avoid inline style attributes: CSP-friendly) ---------- */
.no-pad-top { padding-top: 0; }
.btn-block { width: 100%; }
.mt-32 { margin-top: 32px; }
.text-hint { font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Producto estrella / App ---------- */
.product-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-radial);
  opacity: .5;
  z-index: 0;
}
@media (max-width: 900px) { .product-card { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; } }

.product-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.product-visual img { width: 100%; max-width: 300px; filter: drop-shadow(0 20px 50px rgba(0,0,0,.45)); animation: floaty 7s ease-in-out infinite; }

.product-content { position: relative; z-index: 1; }
.product-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #06070d; background: var(--gradient-main);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.product-content h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.product-content > p.lead-sm { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; max-width: 520px; }
@media (max-width: 900px) { .product-content > p.lead-sm { margin-left: auto; margin-right: auto; } }

.product-features { display: grid; gap: 12px; margin-bottom: 30px; }
@media (max-width: 900px) { .product-features { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; } }
.product-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.product-features li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.download-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
@media (max-width: 900px) { .download-row { justify-content: center; } }
.btn-download { gap: 12px; }
.btn-download svg { width: 22px; height: 22px; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .store-badges { justify-content: center; } }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  transition: all .25s;
}
.store-badge:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.store-badge svg { width: 22px; height: 22px; }
.store-badge span { display: block; }
.store-badge .store-label { font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.store-badge .store-name { font-size: 14px; font-weight: 700; }

.product-note { font-size: 13px; color: var(--text-faint); }
