/* pelu.online — estils del lloc */
:root {
  --pink: #ed425d;
  --pink-dark: #c92f48;
  --orange: #f19300;
  --ink: #2b2b2b;
  --muted: #666;
  --line: #eee;
  --nc-accent: #ed425d;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--pink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; font-size: 17px;
  padding: 13px 28px; border-radius: 8px; border: 2px solid #fff; background: #fff; color: var(--pink);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #fff3f5; transform: translateY(-1px); }
.btn--solid { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn--solid:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Portada */
.hero { position: relative; min-height: 82vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--pink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(237,66,93,.78); }
.hero-content { position: relative; z-index: 2; padding: 60px 20px; max-width: 760px; }
.hero-logo { width: 220px; height: auto; margin: 0 auto 24px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); }
.hero-lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 600px; margin: 0 auto 30px; }

/* Avantatges */
.features { max-width: 1100px; margin: 0 auto; padding: 80px 20px; }
.features h2 { text-align: center; color: var(--pink); font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--pink); border-radius: 10px; padding: 26px 22px; box-shadow: 0 6px 18px rgba(0,0,0,.05); text-align: center; }
.card h3 { color: var(--pink); font-size: 21px; }
.card p { margin: 0; color: var(--muted); }
.cta { text-align: center; margin: 50px 0 0; }

/* Peu */
.site-footer { background: var(--pink); color: #fff; text-align: center; padding: 26px 20px; font-size: 15px; }
.site-footer p { margin: 4px 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-legal a, .footer-legal button { color: #fff; text-decoration: none; }
.footer-legal a:hover, .footer-legal button:hover { text-decoration: underline; }

/* Finestra de sol·licitud */
.demo { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 12px; padding: 30px 28px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.demo::backdrop { background: rgba(0,0,0,.5); }
.demo h2 { color: var(--pink); font-size: 26px; padding-right: 24px; }
.demo-intro { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.demo-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; color: #999; cursor: pointer; }
.form { display: grid; gap: 12px; }
.form label { display: block; font-size: 15px; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"] {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; font-weight: 400; font-size: 16px;
  border: 1px solid #ccc; border-radius: 6px;
}
.form input:focus { outline: 2px solid rgba(237,66,93,.3); border-color: var(--pink); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; }
.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b00020; }

/* Pàgines legals */
.page-head { background: var(--pink); color: #fff; padding: 22px 20px; }
.page-head .wrap { max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-head img { width: 120px; height: auto; }
.page-head a { color: #fff; font-weight: 700; text-decoration: none; }
.legal { max-width: 860px; margin: 0 auto; padding: 50px 20px 70px; }
.legal h1 { color: var(--pink); font-size: clamp(28px, 4vw, 38px); }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: #fafafa; }
.legal .todo { background: #fff3cd; padding: 0 4px; border-radius: 3px; }

/* Mode edició: la finestra es veu dins la pàgina */
.is-admin .demo { position: static; display: block; margin: 0 auto 60px; box-shadow: 0 0 0 2px var(--pink); }
.is-admin .demo-close { display: none; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
