/* Index page styles (moved out of an inline <style> block so the CSP needs no 'unsafe-inline'). */
/* Hero */
.hero {
    min-height: 85svh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 2rem; gap: 2rem;
}
.hero-logo {
    max-width: min(360px, 70vw); height: auto;
    filter: brightness(1.3) drop-shadow(0 0 32px var(--trail-glow));
    margin-bottom: -0.25rem;
}
.hero h1 { max-width: 800px; }
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.7;
    color: var(--text-2); max-width: 560px; font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 0.5rem; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.5rem; }
/* Four cards in a staggered 2x2: wide + narrow, then narrow + wide. */
.features-grid > .card:nth-child(1) { grid-column: 1 / span 4; }
.features-grid > .card:nth-child(2) { grid-column: 5 / span 3; }
.features-grid > .card:nth-child(3) { grid-column: 1 / span 3; }
.features-grid > .card:nth-child(4) { grid-column: 4 / span 4; }
.card-strip { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; padding: 1.25rem 2rem; }
.card-strip .card-icon { margin-bottom: 0; flex-shrink: 0; }
.card-strip h3 { margin-bottom: 0.15rem; }
@media (max-width: 899px) {
    .features-grid { grid-template-columns: 1fr; }
    .features-grid > .card { grid-column: auto !important; }
    .card-strip { flex-direction: column; align-items: flex-start; }
}

/* How it works */
.steps { display: flex; flex-direction: column; gap: 2.5rem; max-width: 720px; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-number {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--ink-800); border: 1.5px solid var(--waypoint);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; color: var(--trail-400);
    position: relative; z-index: 1;
}
.step-content h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.step-content p { color: var(--text-2); line-height: 1.6; font-size: 0.95rem; }

/* Languages */
.languages { text-align: center; }
.languages > p {
    color: var(--text-2); font-size: 0.85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.25rem;
}
.lang-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; max-width: 700px; margin: 0 auto; }
.languages .platforms-line { margin-top: 1.5rem; margin-bottom: 0; }

/* CTA */
.cta-section { text-align: center; }
/* .cta-card and the store buttons live in css/guidalia.css: ForCreators uses them too. */
.cta-waypoint { position: absolute; top: 2.25rem; left: 50%; width: 1px; height: 1px; }

/* Carousel (spotlight): shared with ForGuides, see css/guidalia.css */

/* Responsive */
@media (max-width: 640px) {
    .hero { min-height: 75svh; padding: 1.5rem; }
    .step { gap: 1rem; }
}

/* ----- Christmas gift campaign hero (until Epiphany, see XmasCampaign) -----
   With JS (.xmas--garland, every width): xmas.js draws a horizontal garland of fir swags just under
   the nav and the gift button hangs from its centre hook on two cords; on load the button and cords
   swing like a damped pendulum for 3 s (.xmas--swing). The cords are an SVG inside the button, so they
   rotate with it around the fixed hook as one piece.
   .xmas--wide (room beside the logo/tagline): the sleigh and gifts sit beside the logo/tagline.
   Otherwise (small screens, or no JS) there is no sleigh and no gifts. Without JS the button stays in the flow. */
.hero--xmas {
    --xmas-cta-top: 130px;   /* button top edge, from the hero top (just under the nav) */
    --xmas-hang: 108px;      /* centre hook to the button top edge; xmas.js reads it */
    position: relative; overflow-x: clip;
}
.hero--xmas > * { position: relative; z-index: 1; }
.hero--xmas > .xmas-garland {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; overflow: visible; pointer-events: none;
}

/* Neon gift button, with a smaller second line ("in Toscana") */
.xmas-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
    min-height: 48px; padding: 0.6rem 1.5rem; border-radius: 999px;
    border: 2px solid #ff5c93; background: rgba(255, 46, 110, 0.14);
    color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none;
    text-shadow: 0 0 6px #ff5c93, 0 0 16px #ff2e6e;
    box-shadow: 0 0 6px #ff5c93, 0 0 18px rgba(255, 46, 110, 0.85), 0 0 46px rgba(255, 46, 110, 0.45),
                inset 0 0 14px rgba(255, 92, 147, 0.55);
    margin-bottom: -0.75rem;
    animation: xmas-neon 2.8s ease-in-out infinite;
    transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.xmas-cta svg { flex-shrink: 0; filter: drop-shadow(0 0 4px #ff5c93); }
.xmas-cta-text { display: flex; flex-direction: column; align-items: center; }
.xmas-cta-region { font-size: 0.78em; font-weight: 600; letter-spacing: 0.02em; opacity: 0.92; }
.xmas-cta:hover, .xmas-cta:focus-visible { color: #fff; background: rgba(255, 46, 110, 0.26); transform: scale(1.04); }
@keyframes xmas-neon {
    0%, 100% { box-shadow: 0 0 6px #ff5c93, 0 0 18px rgba(255, 46, 110, 0.85), 0 0 46px rgba(255, 46, 110, 0.45), inset 0 0 14px rgba(255, 92, 147, 0.55); }
    50% { box-shadow: 0 0 9px #ff7aa8, 0 0 28px rgba(255, 46, 110, 1), 0 0 70px rgba(255, 46, 110, 0.6), inset 0 0 18px rgba(255, 92, 147, 0.75); }
}

/* Garland mode: the button hangs at the top, centred, pivoting on the centre hook. */
.hero--xmas.xmas--garland { padding-top: calc(var(--xmas-cta-top) + 5.5rem); }
.hero--xmas.xmas--garland > .xmas-cta {
    position: absolute; top: var(--xmas-cta-top); left: 50%; translate: -50% 0; margin: 0;
    white-space: nowrap; transform-origin: 50% calc(-1 * var(--xmas-hang));
}
/* Cords: inside the button, from the hook (top centre, --xmas-hang above it) down to its top edge.
   Hidden without the garland, when the button sits in the flow. */
.xmas-cta-cords { display: none; }
.hero--xmas.xmas--garland > .xmas-cta > .xmas-cta-cords {
    display: block; position: absolute; left: 0; top: calc(-1 * var(--xmas-hang));
    width: 100%; height: var(--xmas-hang); overflow: visible; pointer-events: none; filter: none;
}
/* No hover zoom while hanging: scaling around the hook would stretch the cords. */
.hero--xmas.xmas--garland > .xmas-cta:hover,
.hero--xmas.xmas--garland > .xmas-cta:focus-visible { transform: none; }
.xmas--swing > .xmas-cta { animation: xmas-neon 2.8s ease-in-out infinite, xmas-swing 3s ease-in-out 1; }
/* Damped pendulum: each swing smaller than the last, at rest after 3 s. */
@keyframes xmas-swing {
    0% { rotate: 11deg; }
    11% { rotate: -8.5deg; }
    22% { rotate: 6.5deg; }
    33% { rotate: -4.8deg; }
    44% { rotate: 3.4deg; }
    55% { rotate: -2.2deg; }
    66% { rotate: 1.3deg; }
    77% { rotate: -0.7deg; }
    88% { rotate: 0.3deg; }
    100% { rotate: 0deg; }
}

/* Lights */
.xmas-bulb { animation: xmas-twinkle 2.4s ease-in-out infinite; }
.xmas-bulb.t1 { animation-delay: -0.6s; animation-duration: 2.9s; }
.xmas-bulb.t2 { animation-delay: -1.2s; animation-duration: 2.1s; }
.xmas-bulb.t3 { animation-delay: -1.8s; animation-duration: 3.3s; }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Sleigh + gifts: only beside the logo/tagline on wide screens (xmas.js sizes and places them).
   Small screens, or no JS: hidden. */
.hero--xmas:not(.xmas--wide) > .xmas-scene { display: none; }
.xmas-scene { pointer-events: none; }
.xmas-sleigh, .xmas-gifts { height: auto; }
.hero--xmas.xmas--wide > .xmas-scene { position: absolute; inset: 0; width: auto; margin: 0; display: block; z-index: 2; }
.xmas--wide .xmas-sleigh, .xmas--wide .xmas-gifts { position: absolute; }
.xmas--wide .xmas-sleigh { transform: rotate(-18deg); animation: xmas-fly 5s ease-in-out infinite; }
@keyframes xmas-fly {
    0%, 100% { transform: rotate(-18deg) translateY(0); }
    50% { transform: rotate(-18deg) translateY(-10px); }
}
.xmas-sparkles { animation: xmas-twinkle 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .xmas-cta, .xmas--swing > .xmas-cta,
    .xmas-bulb, .xmas-sparkles, .xmas--wide .xmas-sleigh { animation: none; }
}
@media (max-width: 599px) {
    .xmas-cta { font-size: 0.98rem; padding: 0.55rem 1.2rem; }
}
