/* Kyora marketing site. Palette = mobile app theme (mobile/src/theme/colors.ts). */
:root {
  --primary: #2F6FED;
  --primary-dark: #1E54C4;
  --accent: #FF6B4A;
  --sun: #FFB020;
  --moon: #FDE5A7;
  --teal: #2BB5A0;
  --violet: #8B5CF6;
  --bg: #F6F8FC;
  --bg-alt: #EEF3FC;
  --surface: #FFFFFF;
  --ink: #14213D;
  --muted: #5B6680;
  --line: #DFE6F2;
  --shadow: 0 18px 50px -20px rgba(20, 33, 61, .28);
  --radius: 20px;
  --font: "Inter", "Segoe UI", "Avenir Next", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --primary: #6B9BFF;
  --primary-dark: #4A7FE8;
  --accent: #FF8A70;
  --sun: #FFC14D;
  --teal: #3DD6BE;
  --violet: #A78BFA;
  --bg: #0E1424;
  --bg-alt: #131B2F;
  --surface: #182238;
  --ink: #EEF2FA;
  --muted: #A3AECA;
  --line: #26324D;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  transition: background-color .3s ease, color .3s ease;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .5rem 1rem; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.mainnav { display: flex; gap: 1.4rem; margin-left: auto; }
.mainnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.mainnav a:hover { opacity: 1; color: var(--primary); }
.topbar__tools { display: flex; align-items: center; gap: .5rem; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.langs a { font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: .3rem .6rem; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--primary); color: #fff; }
[data-theme="dark"] .langs a[aria-current="true"] { color: #0E1424; }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.iconbtn svg { width: 20px; height: 20px; }
.i-sun { color: var(--sun); }
.i-moon { color: var(--moon); display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }
.menubtn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -12px var(--primary); }
[data-theme="dark"] .btn--primary { color: #0E1424; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--light { background: #fff; color: #14213D; }
.btnrow { display: flex; flex-wrap: wrap; gap: .75rem; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.stores--center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem .55rem .9rem; border-radius: 14px; background: #0B1222; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .14); min-width: 170px; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.store small { font-weight: 500; font-size: .7rem; opacity: .8; }
[data-theme="dark"] .store { background: #fff; color: #0B1222; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); background:
  radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--sun) 28%, transparent), transparent 60%),
  radial-gradient(900px 500px at -10% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%); }
[data-theme="dark"] .hero { background:
  radial-gradient(1000px 520px at 85% -10%, rgba(253, 229, 167, .16), transparent 60%),
  radial-gradient(900px 500px at -10% 20%, rgba(107, 155, 255, .18), transparent 60%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
.hero h1::after { content: ""; display: block; width: 84px; height: 6px; margin-top: .9rem; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--sun)); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li { font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.badges li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.hero__visual { position: relative; }
.hero__art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--bg-alt); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.img-dark { display: none; }
[data-theme="dark"] .img-light { display: none; }
[data-theme="dark"] .img-dark { display: block; }
.phone--hero { position: absolute; width: 36%; right: -4%; bottom: -14%; }

/* Sky: sun in light mode, moon in dark mode */
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun, .moon { position: absolute; top: 28px; right: 6%; width: 88px; height: 88px; border-radius: 50%; transition: opacity .6s ease, transform .6s ease; }
.sun { background: radial-gradient(circle at 40% 40%, #FFE08A, var(--sun) 62%); box-shadow: 0 0 60px 12px color-mix(in srgb, var(--sun) 40%, transparent); }
.sun span { position: absolute; inset: -22px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--sun) 55%, transparent) 0deg 8deg, transparent 8deg 30deg); -webkit-mask: radial-gradient(circle, transparent 54px, #000 56px, #000 66px, transparent 68px); mask: radial-gradient(circle, transparent 54px, #000 56px, #000 66px, transparent 68px); animation: spin 28s linear infinite; }
.moon { opacity: 0; transform: translateY(-20px) scale(.9); background: radial-gradient(circle at 35% 35%, #FFF6D8, var(--moon) 60%, #E8C97A); box-shadow: 0 0 50px 8px rgba(253, 229, 167, .28); overflow: hidden; }
.moon span { position: absolute; inset: 0; border-radius: 50%; background: #0E1424; transform: translateX(62%); animation: phase 9.6s ease-in-out infinite; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .6s ease; animation: twinkle 3.2s ease-in-out infinite; }
.s1 { top: 14%; left: 55%; } .s2 { top: 30%; left: 70%; animation-delay: .8s; } .s3 { top: 9%; left: 78%; animation-delay: 1.6s; } .s4 { top: 22%; left: 40%; animation-delay: 2.1s; } .s5 { top: 40%; left: 88%; animation-delay: 1.1s; }
[data-theme="dark"] .sun { opacity: 0; transform: translateY(20px) scale(.9); }
[data-theme="dark"] .moon { opacity: 1; transform: none; }
[data-theme="dark"] .star { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes phase { 0% { transform: translateX(62%); } 45% { transform: translateX(118%); } 45.01% { transform: translateX(-118%); } 100% { transform: translateX(62%); } }
@keyframes twinkle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.8); } }

/* Phones */
.phone { border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #1F2A44, #0B1222); box-shadow: var(--shadow); }
.phone img { border-radius: 26px; width: 100%; }
[data-theme="dark"] .phone { background: linear-gradient(160deg, #2C3A5C, #121A2E); }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(1rem, 4vw, 3rem); }
.highlight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.highlight h2 { font-size: 1.2rem; }
.highlight p { color: var(--muted); margin: 0; }
.highlight:nth-child(1) h2::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 6px; background: var(--primary); margin-bottom: .8rem; }
.highlight:nth-child(2) h2::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 6px; background: var(--sun); margin-bottom: .8rem; }
.highlight:nth-child(3) h2::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 6px; background: var(--teal); margin-bottom: .8rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(160deg, #14213D, #1E3A8A); color: #EEF2FA; }
[data-theme="dark"] .section--dark { background: linear-gradient(160deg, #0B1222, #1A2550); }
.section--dark .eyebrow { color: var(--sun); }
.section--dark p { color: #C8D3EE; }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section__head p { color: #C8D3EE; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: 2rem 0; }
.feature__text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature__text p { color: var(--muted); font-size: 1.1rem; }
.feature__shot { display: flex; justify-content: center; position: relative; }
.feature__shot::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; top: 10%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%); }
.feature:nth-child(3) .feature__shot::before { background: radial-gradient(circle, color-mix(in srgb, var(--sun) 30%, transparent), transparent 70%); }
.feature__shot .phone { width: min(300px, 80%); position: relative; }
.feature--flip .feature__text { order: 2; }

.modgroup { margin-bottom: 2.5rem; }
.modgroup__title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.modgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mod__shot { aspect-ratio: 13 / 12; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mod__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Real iOS widget screenshot (transparent corners): show it whole. */
.mod__shot--widget { padding: 10% 14% 0; }
.mod__shot--widget img { object-fit: contain; object-position: center top; filter: drop-shadow(0 8px 18px rgba(15, 25, 60, .18)); }
.mod__body { padding: 1rem 1.1rem 1.2rem; }
.mod__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mod__head h4 { margin: 0; font-size: 1.1rem; }
.mod p { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.plan { font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.plan--free { background: color-mix(in srgb, var(--teal) 18%, transparent); color: color-mix(in srgb, var(--teal) 70%, var(--ink)); }
.plan--plus { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.plan--premium { background: color-mix(in srgb, var(--sun) 24%, transparent); color: color-mix(in srgb, var(--sun) 55%, var(--ink)); }

/* ClubOnline */
.club { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.club h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: .2rem 1rem; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--teal); }
[data-theme="dark"] .steps li::before { color: #0E1424; }
.steps span { color: var(--muted); }
.note { font-size: .95rem; color: var(--muted); border-left: 4px solid var(--teal); padding-left: .9rem; }
.club__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.phone--offset { margin-top: 3.5rem; }

/* Security */
.secgrid { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.secgrid li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.5rem; }
.secgrid h3 { font-size: 1.15rem; color: #fff; }
.secgrid h3::before { content: "🔒"; display: block; font-size: 1.4rem; margin-bottom: .6rem; }
.secgrid li:nth-child(2) h3::before { content: "🇪🇺"; }
.secgrid li:nth-child(3) h3::before { content: "🛡️"; }
.secgrid li:nth-child(4) h3::before { content: "🎛️"; }
.secgrid li:nth-child(5) h3::before { content: "🧒"; }
.secgrid li:nth-child(6) h3::before { content: "🚫"; }
.secgrid p { margin: 0; font-size: .98rem; }

/* Assistants */
.assist { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.8rem, 5vw, 3.5rem); box-shadow: var(--shadow); }
.assist h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checks li { padding: .9rem 1rem .9rem 3rem; border-radius: 14px; background: var(--bg-alt); position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-size: .8rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.plancard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.8rem; position: relative; }
.plancard h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.plancard__tag { color: var(--muted); }
.plancard__price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: .5rem 0 1rem; }
.plancard__price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plancard ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.plancard li { padding-left: 1.6rem; position: relative; }
.plancard li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.plancard--plus { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plancard--premium { background: linear-gradient(180deg, color-mix(in srgb, var(--sun) 10%, var(--surface)), var(--surface)); }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); transition: transform .2s ease; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* CTA + footer */
.cta { padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.cta__in { text-align: center; border-radius: 32px; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; background: linear-gradient(135deg, var(--primary), #6A4CF0 55%, var(--accent)); color: #fff; }
.cta__in img { margin: 0 auto 1rem; border-radius: 22px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }
.cta__in h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta__in p { opacity: .92; }
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer nav { display: flex; flex-direction: column; gap: .45rem; }
.footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .4rem; }
.footer nav a { color: var(--ink); text-decoration: none; }
.footer nav a:hover { color: var(--primary); text-decoration: underline; }
.footer__brand p { color: var(--muted); margin-top: .8rem; }
.footer__company { font-size: .85rem; white-space: pre-line; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.notfound main { padding: 5rem 0; display: grid; justify-items: center; }

/* Reveal on scroll (JS adds .is-visible; without JS everything stays visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero__in, .feature, .club, .assist { grid-template-columns: 1fr; }
  .feature--flip .feature__text { order: 0; }
  .hero__visual { max-width: 620px; margin-inline: auto; width: 100%; margin-bottom: 3rem; }
  .highlights, .secgrid, .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menubtn { display: inline-grid; }
  .topbar__tools { margin-left: auto; }
  .sun, .moon { width: 64px; height: 64px; top: 16px; right: 5%; }
  .sun span { inset: -16px; -webkit-mask: radial-gradient(circle, transparent 38px, #000 40px, #000 48px, transparent 50px); mask: radial-gradient(circle, transparent 38px, #000 40px, #000 48px, transparent 50px); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topbar .langs a { padding: .3rem .45rem; }
  .sky .sun, .sky .moon { display: none; }
  .modgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .mod__body { padding: .75rem .8rem .9rem; }
  .mod__head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .mod__head h4 { font-size: 1rem; }
  .mod p { font-size: .85rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .store { min-width: 0; flex: 1 1 150px; }
  .phone--hero { width: 40%; right: -2%; bottom: -18%; }
  .club__shots { gap: .7rem; }
}
/* Widgets card: « Voir les widgets » gallery (native details/summary) */
.wgal { margin-top: .8rem; }
.wgal__btn { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-alt); color: var(--primary); font-weight: 700; font-size: .9rem; transition: background .2s ease, border-color .2s ease; }
.wgal__btn::-webkit-details-marker { display: none; }
.wgal__btn:hover { border-color: var(--primary); }
.wgal__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.wgal__btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.wgal[open] .wgal__btn svg { transform: rotate(180deg); }
.wgal__less, .wgal[open] .wgal__more { display: none; }
.wgal[open] .wgal__less { display: inline; }
.wgal__panel { margin-top: 1rem; animation: wgal-in .25s ease; }
@keyframes wgal-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wgal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.wgal__item { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.wgal__img { position: relative; height: 240px; padding: 1rem; border-radius: 16px; background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%), radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 60%), var(--bg-alt); border: 1px solid var(--line); }
.wgal__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(15, 25, 60, .16)); }
[data-theme="dark"] .wgal__img img { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.wgal__item figcaption { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.wgal__soon { display: inline-block; padding: .1rem .5rem; margin-right: .2rem; border-radius: 999px; background: color-mix(in srgb, var(--sun) 24%, transparent); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.wgal__item--soon .wgal__img { border-style: dashed; }
.wgal__note { margin: .9rem 0 0 !important; font-size: .8rem !important; font-style: italic; opacity: .85; }
/* Open: the card spans the whole row and hands its cover image over to the gallery. */
.mod--widgets:has(.wgal[open]) { grid-column: 1 / -1; transform: none; }
.mod--widgets:has(.wgal[open]) .mod__shot { display: none; }
.mod--widgets:has(.wgal[open]) .mod__body { padding: 1.3rem 1.4rem 1.4rem; }
@media (min-width: 900px) {
  .wgal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wgal__img { height: 300px; }
  .wgal__item--ideas { grid-column: 1 / -1; }
  .wgal__item--ideas .wgal__img { height: 340px; }
}
@media (max-width: 560px) {
  .wgal__btn { font-size: .82rem; padding: .4rem .75rem; }
  .wgal__grid { grid-template-columns: 1fr; }
  .wgal__img { height: 210px; }
  .mod--widgets:has(.wgal[open]) .mod__body { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
