/* Estils propis de les landings de Catfy (ca i es). El gruix del disseny
   son classes de Tailwind CDN; aqui nomes hi ha el que Tailwind no cobreix.
   Compartit per / i /es/ — un sol lloc per tocar. */
body {
    background-color: #fdf8f7;
    font-family: 'Hanken Grotesk', sans-serif;
    color: #1a1c1c;
}
.granat-glow {
    box-shadow: 0 8px 24px rgba(139, 26, 46, 0.14);
}
.granat-glow-hover:hover {
    box-shadow: 0 12px 32px rgba(139, 26, 46, 0.22);
    transform: translateY(-4px);
}
.paper-card {
    background: #ffffff;
    border: 1px solid rgba(139, 26, 46, 0.1);
}
/* Full de paper ratllat (fons del hero) */
.hero-paper {
    background-image: linear-gradient(transparent 31px, rgba(222, 191, 192, 0.7) 32px);
    background-size: 100% 32px;
}
/* Marca d'aigua de tampó de correcció */
.stamp-watermark {
    border: 10px solid #69001b;
    border-radius: 18px;
    padding: 20px 44px;
    font-size: 96px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #69001b;
    transform: rotate(-15deg);
    opacity: 0.04;
    user-select: none;
}
/* Tampó «APTE» flotant */
.grading-stamp {
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #69001b;
    border: 3px double #69001b;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 17px;
    transform: rotate(-8deg);
}
/* Segells de nivell del recorregut */
.garnet-seal, .gold-seal {
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    text-align: center;
    line-height: 1.1;
}
.garnet-seal {
    width: 76px;
    height: 76px;
    font-size: 15px;
    background: linear-gradient(135deg, #8b1a2e 0%, #69001b 100%);
    box-shadow: 0 8px 20px rgba(105, 0, 27, 0.3), 0 0 0 2px rgba(105, 0, 27, 0.25);
}
.gold-seal {
    width: 96px;
    height: 96px;
    font-size: 18px;
    background: linear-gradient(135deg, #b07f00 0%, #e6a800 100%);
    box-shadow: 0 10px 24px rgba(176, 127, 0, 0.35), 0 0 0 2px rgba(176, 127, 0, 0.3);
}
/* Subratllat d'anotació de corrector (creix en hover de la targeta) */
.annotate {
    position: relative;
    display: inline-block;
}
.annotate::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 3px;
    width: 0;
    background: #8b1a2e;
    border-radius: 2px;
    opacity: 0.7;
    transform: rotate(-1deg);
    transition: width 0.3s;
}
.group:hover .annotate::after {
    width: 100%;
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Compensa la barra de navegació fixa (anunci + nav) quan es navega a una àncora */
section[id] {
    scroll-margin-top: 136px;
}
/* Les icones són lligadures de font: amagades fins que la font carrega,
   perquè no es vegi el nom («school», «timer»…) en text pla */
.material-symbols-outlined {
    visibility: hidden;
}
.fonts-ready .material-symbols-outlined {
    visibility: visible;
}
/* Focus visible per a navegació amb teclat */
a:focus-visible, button:focus-visible {
    outline: 2px solid #69001b;
    outline-offset: 3px;
    border-radius: 4px;
}
/* Carrusel del mòbil del hero */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.hero-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(105, 0, 27, 0.25);
    transition: background 0.3s;
}
.hero-dots span.is-active { background: #8b1a2e; }
/* «Posa't a prova» */
.prova-opt {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: 1.5px solid #debfc0;
    border-radius: 12px;
    background: #ffffff;
    color: #1a1c1c;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.prova-opt:hover:not(:disabled) { border-color: #8b1a2e; background: rgba(139, 26, 46, 0.04); }
.prova-opt:disabled { cursor: default; opacity: 0.85; }
.prova-opt.prova-correct { border-color: #1b7f4d; background: rgba(27, 127, 77, 0.1); opacity: 1; font-weight: 700; }
.prova-opt.prova-wrong { border-color: #b3261e; background: rgba(179, 38, 30, 0.08); }
.prova-explain-ok { background: rgba(27, 127, 77, 0.1); color: #14532d; }
.prova-explain-ko { background: rgba(179, 38, 30, 0.08); color: #7f1d1d; }
/* FAQ: sense marcador natiu, chevron propi */
.faq-list summary { list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    position: absolute; right: 2px; top: 50%;
    transform: translateY(-50%);
    color: #8b1a2e; font-weight: 800; font-size: 18px;
}
.faq-list details[open] summary::after { content: '−'; }
