/* Web pública de la plataforma: portada i registre. Fa servir els tokens de app.css. */
/* la web pública sempre en blanc, també amb el mòbil en mode fosc */
body.web { font-size: 16px; line-height: 1.55;
  --bg: #ffffff; --bg-elev: #ffffff; --bg-soft: #f6f6f4; --glass: rgba(255, 255, 255, .82);
  --ink: #1b2228; --ink-2: #4c5660; --ink-3: #8a929a; --line: rgba(27, 34, 40, .08); --line-2: rgba(27, 34, 40, .14);
  --brand: #2f3b45; --brand-ink: #f6f1e8; --gold: #b38a4d; --gold-soft: rgba(179, 138, 77, .12); --gold-ink: #7a5a28;
  --ok: #2d7a52; --bad: #b6452f; --bad-soft: rgba(182, 69, 47, .1);
  --shadow: 0 1px 2px rgba(20, 26, 32, .04), 0 8px 24px -8px rgba(20, 26, 32, .12); --shadow-lg: 0 24px 60px -20px rgba(20, 26, 32, .3);
  color-scheme: light; background: #ffffff; color: var(--ink); }
html:has(body.web) { background: #ffffff; }
.w-shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: var(--serif); }
h1.serif, h2.serif { font-weight: 500; letter-spacing: -.02em; line-height: 1.08; margin: 0; }

/* capçalera */
.w-top { position: sticky; top: 0; z-index: 10; background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.w-top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.w-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.w-logo-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6c48c, var(--gold) 60%, #8c6a36); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.w-nav { display: flex; gap: 22px; margin-left: 12px; }
.w-nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.w-nav a:hover { color: var(--ink); }
.w-top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) { .w-nav { display: none; } .w-top-r #lang { display: none; } }

/* portada */
.w-hero { padding: 72px 0 56px; overflow: hidden; }
.w-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.w-hero h1 { font-size: clamp(38px, 5.6vw, 64px); }
.w-lede { font-size: 19px; color: var(--ink-2); margin: 22px 0 0; max-width: 34em; }
.w-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.w-nota { margin: 18px 0 0; color: var(--ink-3); font-size: 13.5px; }
.w-hero-v { display: flex; justify-content: center; }
.w-phone { width: 300px; max-width: 100%; padding: 22px 16px 26px; border-radius: 40px; background: var(--bg-elev); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); position: relative; }
.w-card { border-radius: 22px; padding: 20px; color: #f4efe6; background: radial-gradient(130% 100% at 100% 0%, #44525e, #2f3b45 55%, #26313a); box-shadow: var(--shadow); }
.w-card-top { display: flex; align-items: center; gap: 10px; }
.w-card-top span:not(.w-card-logo) { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.w-card-top b { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.w-card-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #c8a46a; color: #2f3b45; font-size: 18px; }
.w-card-logo.sm { width: 30px; height: 30px; font-size: 14px; }
.w-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0 14px; }
.w-stamps i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(244,239,230,.3); }
.w-stamps i.on { background: #c8a46a; box-shadow: none; animation: w-pop .5s var(--spring) both; }
@keyframes w-pop { from { transform: scale(.4); opacity: 0; } }
.w-card-foot { margin: 0; font-size: 13px; opacity: .85; }
.w-notif { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: var(--bg-soft); font-size: 13px; }
.w-notif p { margin: 0; color: var(--ink-3); }
@media (max-width: 860px) { .w-hero-in { grid-template-columns: 1fr; } .w-hero { padding-top: 44px; } }

/* seccions */
.w-sec { padding: 72px 0; }
.w-sec.alt { background: var(--bg-soft); }
.w-sec h2 { font-size: clamp(30px, 4vw, 42px); }
.w-sub { color: var(--ink-2); margin: 10px 0 0; }
.w-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.w-steps h3, .w-feats h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -.01em; }
.w-steps p, .w-feats p { margin: 0; color: var(--ink-2); font-size: 15px; }
.w-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 14px; }
.w-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 36px; }
.w-feats h3 { margin-top: 0; }
@media (max-width: 760px) { .w-steps, .w-feats { grid-template-columns: 1fr; } .w-sec { padding: 52px 0; } }

/* vídeo «com funciona», al costat dels tres passos */
.w-com { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 56px; align-items: center; margin-top: 36px; }
.w-com .w-steps { grid-template-columns: 1fr; margin: 0; gap: 30px; }
.w-com .w-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; }
.w-com .w-steps .w-n { grid-row: span 2; }
.w-com .w-steps h3 { margin: 5px 0 6px; }
.w-video { margin: 0; }
.w-video video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; background: #f6f1e8; object-fit: cover; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.w-video figcaption { margin-top: 12px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 760px) { .w-com { grid-template-columns: 1fr; gap: 32px; } .w-video { width: min(100%, 320px); margin: 0 auto; } }

/* plans */
.w-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.w-plan { display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); position: relative; }
.w-plan.dest { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--gold); }
.w-plan .w-badge { position: absolute; top: -11px; left: 22px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.w-plan h3 { margin: 0; font-size: 18px; }
.w-plan .w-pd { color: var(--ink-3); font-size: 14px; margin: 4px 0 16px; min-height: 2.8em; }
.w-preu { font-family: var(--serif); font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.w-preu small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.w-preu.txt { font-size: 28px; }
.w-plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); flex: 1; }
.w-plan li { padding-left: 22px; position: relative; }
.w-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
@media (max-width: 960px) { .w-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .w-plans { grid-template-columns: 1fr; } }

/* plans dins del registre: es trien */
.w-plans.mini { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.w-plans.mini .w-plan { cursor: pointer; padding: 18px; text-align: left; font: inherit; color: inherit; border: 0; }
.w-plans.mini .w-plan[aria-checked=true] { box-shadow: var(--shadow), inset 0 0 0 2px var(--gold); }
.w-plans.mini .w-preu { font-size: 30px; margin-top: 10px; }
.w-plans.mini ul { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 720px) { .w-plans.mini { grid-template-columns: 1fr; } }

/* preguntes i entrar */
.w-faq { max-width: 760px; }
.w-faq details { border-bottom: 1px solid var(--line-2); padding: 18px 0; }
.w-faq details:first-of-type { margin-top: 24px; }
.w-faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.w-faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.w-faq details[open] summary::after { content: "–"; }
.w-faq p { color: var(--ink-2); margin: 10px 0 0; }
.w-entrar { max-width: 640px; }
.w-entrar-f, .w-slug { display: flex; align-items: center; gap: 0; margin-top: 18px; flex-wrap: wrap; }
.w-slug { margin-top: 0; flex-wrap: nowrap; }
.w-pre { color: var(--ink-3); font-size: 14px; padding-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.w-entrar-f .input { flex: 1; min-width: 180px; margin-right: 10px; }
.w-entrar-f .btn { margin-top: 0; }
@media (max-width: 560px) { .w-entrar-f .btn { width: 100%; margin-top: 10px; } .w-entrar-f .input { margin-right: 0; } }
.w-foot { padding: 56px 0 36px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.w-foot a { text-decoration: none; }
.w-foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.w-foot-marca p { margin: 12px 0 18px; color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.w-foot-col { display: grid; gap: 10px; align-content: start; }
.w-foot-col b { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.w-foot-col a { color: var(--ink-2); } .w-foot-col a:hover { color: var(--ink); }
.w-foot-baix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.w-foot-baix a { color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) { .w-foot-top { grid-template-columns: 1fr 1fr; } .w-foot-marca { grid-column: 1 / -1; } }

/* registre */
.w-reg { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.w-reg h1 { font-size: clamp(32px, 5vw, 46px); }
.w-pas { padding: 24px; margin-top: 22px; }
.w-pas h2 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin: 0 0 18px; letter-spacing: -.01em; }
.w-gest { font-size: 14px; margin: 16px 0 0; }
.w-gest a { color: var(--gold-ink); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 8px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.check a { color: var(--gold-ink); }
.w-err { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 14px; }
.w-pag { font-size: 13px; text-align: center; margin: 12px 0 0; }
.w-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ok-t { color: var(--ok); font-weight: 600; } .bad-t { color: var(--bad); font-weight: 600; }

/* assistent de disseny (/registre) */
.as { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.as-prev { position: sticky; top: 88px; display: grid; justify-items: center; gap: 12px; }
.as-prev-nota { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 0; max-width: 260px; }
.as-prog { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 26px; }
.as-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.as-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .4s var(--ease); }
.as-pas { border: 0; padding: 0; margin: 0; min-width: 0; animation: as-in .35s var(--ease) both; }
@keyframes as-in { from { opacity: 0; transform: translateY(8px); } }
.as-pas h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.as-ajuda { color: var(--ink-2); margin: -10px 0 20px; }
.input.lg { height: 54px; font-size: 18px; }
.as-tipus { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.as-tip, .as-gran, .as-chip, .as-icona { font: inherit; color: inherit; border: 0; cursor: pointer; background: var(--bg-elev); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .15s var(--ease); }
.as-tip:hover, .as-gran:hover, .as-chip:hover, .as-icona:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
.as-tip:active, .as-chip:active, .as-icona:active { transform: scale(.97); }
.as-tip { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: var(--r); font-weight: 600; text-align: left; }
.as-tip span { font-size: 28px; }
[aria-pressed=true].as-tip, [aria-pressed=true].as-chip, [aria-pressed=true].as-icona { box-shadow: var(--shadow), inset 0 0 0 2px var(--gold); }
.as-opcions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.as-gran { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 26px 18px; border-radius: var(--r-lg); }
.as-gran small { color: var(--ink-3); font-size: 12.5px; }
.as-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); font-size: 22px; margin-bottom: 4px; }
.as-ini { font-family: var(--serif); font-size: 22px; }
.as-swatch { display: flex; flex-wrap: wrap; gap: 10px; }
.as-swatch button, .as-custom { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.as-swatch button[aria-pressed=true] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.as-custom { display: grid; place-items: center; background: conic-gradient(#e66, #ec6, #6c6, #6ce, #66e, #e6e, #e66); color: #fff; font-weight: 700; position: relative; overflow: hidden; }
.as-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.as-foto { display: flex; gap: 10px; }
.as-icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 10px; }
.as-icona { aspect-ratio: 1; border-radius: 16px; font-size: 24px; display: grid; place-items: center; padding: 0; overflow: hidden; }
.as-icona img { width: 70%; height: 70%; object-fit: cover; border-radius: 50%; }
.as-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.as-chips.col { display: grid; margin-bottom: 18px; }
.as-chip { padding: 12px 18px; border-radius: 12px; font-weight: 600; text-align: left; min-width: 56px; }
.as-reco { margin: 22px 0 4px; color: var(--ink-2); }
.as-muntem { margin-top: 20px; padding: 16px 18px; border-radius: var(--r); background: var(--bg-soft); font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.as-muntem b { color: var(--ink); }
.as-muntem a { color: var(--gold-ink); font-weight: 600; }
.as-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.as-nav .btn { min-width: 130px; }
.as-card { position: relative; overflow: hidden; transition: background .3s; }
.as-hero { display: block; width: calc(100% + 40px); margin: -20px -20px 16px; height: 86px; object-fit: cover; }
.as-logo { overflow: hidden; font-family: var(--serif); font-weight: 600; font-size: 15px; }
.as-logo img { width: 100%; height: 100%; object-fit: cover; }
.as-stamps i { display: grid; place-items: center; font-size: 17px; font-style: normal; }
.as-stamps i.img { background-size: cover; background-position: center; }
@media (max-width: 900px) {
  .as { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .as-prev { position: static; order: -1; }
  .as-phone { width: 270px; padding: 14px 12px 16px; border-radius: 30px; }
  .as-phone .w-notif { display: none; }
  .as-prev-nota { display: none; }
}
@media (max-width: 520px) { .as-opcions { grid-template-columns: 1fr; } .as-tipus { grid-template-columns: 1fr 1fr; } }

/* taula comparativa de plans */
.w-taula-t { font-size: 24px; margin: 56px 0 18px; }
.w-taula-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.w-taula { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.w-taula th, .w-taula td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.w-taula tbody tr:last-child th, .w-taula tbody tr:last-child td { border-bottom: 0; }
.w-taula tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.w-taula thead th { vertical-align: bottom; padding-top: 22px; }
.w-taula thead th b { display: block; font-size: 15px; }
.w-taula thead th span { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; margin-top: 2px; }
.w-taula td { color: var(--ink-2); }
.w-taula .dest { background: rgba(179, 138, 77, .08); }
.w-si { color: var(--ok); font-weight: 700; font-size: 17px; }
.w-no { color: var(--ink-3); }
.w-plan li.nou { color: var(--ink); font-weight: 600; }
.w-plan ul { align-content: start; }

/* mensual / anual */
.w-fact { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bg-soft); margin-top: 22px; }
.w-fact button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 9px 18px; border-radius: 99px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.w-fact button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.w-dte { background: var(--ok); color: #fff; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; font-weight: 700; }
.w-any { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.w-any s { color: var(--ink-3); }
.as-fact { display: flex; width: max-content; margin: 12px 0 6px; }
.w-foot .w-logo { color: var(--ink); }
