/*
 * "Mosaic" theme: a product site in the colours of the logo. A navy-to-blue hero with a faint
 * grid of tiles, a screenshot in a browser frame, bands across the whole width, tile-shaped
 * feature icons and a dark navy footer. Colours come from the palette (customizer); the rest is
 * derived from them. Full-width bands are drawn with a large box-shadow clipped to the band's
 * height, so nothing overflows the page.
 */
:root {
  --radius: 14px;
  --card-bg: var(--color-background);
  --card-border: color-mix(in srgb, var(--color-primary) 14%, transparent);
  --card-shadow: 0 12px 32px -18px color-mix(in srgb, var(--color-primary) 45%, transparent);
  --soft: color-mix(in srgb, var(--color-primary) 9%, var(--color-background));
  --band-soft: color-mix(in srgb, var(--color-primary) 5%, var(--color-background));
  --navy: color-mix(in srgb, var(--color-primary) 40%, #050b1f);
  --hero-from: color-mix(in srgb, var(--color-primary) 35%, #04091c);
  --hero-to: var(--color-primary);
  --tile-light: #7cc4ff;
  --footer-bg: color-mix(in srgb, var(--color-primary) 22%, #050a18);
  --header-bg: color-mix(in srgb, var(--color-background) 92%, transparent);
  --good: #16a34a;
}
:root[data-scheme="dark"] {
  --color-background: #0b1120; --color-surface: #111a2e; --color-text: #e6ecf8; --color-muted: #a3b0c8;
  --color-primary: #6aa5ff; --color-on-primary: #06102a; --color-accent: #fbbf24;
  --card-bg: #0f1729; --card-border: color-mix(in srgb, #fff 9%, transparent);
  --card-shadow: 0 12px 32px -14px rgba(0, 0, 0, .75);
  --soft: color-mix(in srgb, var(--color-primary) 14%, var(--color-background));
  --band-soft: #0e1626; --navy: #050a16; --hero-from: #050b1d; --hero-to: #1e3a8a; --footer-bg: #050913;
  --header-bg: color-mix(in srgb, #0b1120 90%, transparent); --good: #4ade80;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --color-background: #0b1120; --color-surface: #111a2e; --color-text: #e6ecf8; --color-muted: #a3b0c8;
    --color-primary: #6aa5ff; --color-on-primary: #06102a; --color-accent: #fbbf24;
    --card-bg: #0f1729; --card-border: color-mix(in srgb, #fff 9%, transparent);
    --card-shadow: 0 12px 32px -14px rgba(0, 0, 0, .75);
    --soft: color-mix(in srgb, var(--color-primary) 14%, var(--color-background));
    --band-soft: #0e1626; --navy: #050a16; --hero-from: #050b1d; --hero-to: #1e3a8a; --footer-bg: #050913;
    --header-bg: color-mix(in srgb, #0b1120 90%, transparent); --good: #4ade80;
    color-scheme: dark;
  }
}

.theme-mosaic { background: var(--color-background); }
:where(.theme-mosaic) :is(h1, h2, h3) { font-weight: 800; letter-spacing: -.025em; }
:where(.theme-mosaic) h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
.theme-mosaic .button { border-radius: 10px; padding: .72em 1.35em; font-weight: 700; }
.theme-mosaic .button--accent { background: var(--color-accent); color: #1a1203; box-shadow: 0 10px 24px -10px var(--color-accent); }
.theme-mosaic .button--ghost { box-shadow: inset 0 0 0 1.5px currentColor; }
.theme-mosaic main { padding-block: 2rem 3.5rem; }
.theme-mosaic.is-home main:not(:has(article)) { padding: 0; min-height: 0; }
.theme-mosaic .block__title, .eyebrow { color: var(--color-primary); }
.eyebrow { display: block; margin: 0 0 .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* the brand mark: four tiles when the site has no symbol of its own */
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; flex: none; }
.brand__icon { width: 2.4rem; height: 2.4rem; border-radius: 10px; }
.brand__mark { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: linear-gradient(135deg, var(--tile-light), var(--color-primary)); }
.brand__mark i { border-radius: 3px; background: #fff; }
.brand__mark i:nth-child(2), .brand__mark i:nth-child(3) { opacity: .3; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font: 800 1.3rem var(--font-heading); letter-spacing: -.02em; }
.brand__tagline { font-size: .7rem; color: var(--color-muted); max-width: 11rem; margin-top: .2rem; }

/* header */
.theme-mosaic .site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--card-border); }
.theme-mosaic .site-header__inner { flex-wrap: nowrap; gap: .75rem 2rem; padding-block: .75rem; }
.theme-mosaic .site-nav { margin-inline: auto; }
.theme-mosaic .site-nav a { font-weight: 600; font-size: .95rem; padding: .45rem .1rem; }
.theme-mosaic .site-nav a:hover, .theme-mosaic .site-nav a[aria-current="page"] { color: var(--color-primary); text-decoration: none; box-shadow: inset 0 -2px 0 var(--color-primary); }
.theme-mosaic .site-nav li:hover > ul, .theme-mosaic .site-nav li:focus-within > ul { background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: 12px; min-width: 13rem; top: 100%; z-index: 30; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.header-actions__link { font-weight: 700; color: var(--color-text); text-decoration: none; font-size: .95rem; }
.header-actions__link:hover { color: var(--color-primary); }
.header-actions__main { padding: .55em 1.1em !important; font-size: .95rem; }
@media (max-width: 960px) {
  .theme-mosaic .site-header__inner { flex-wrap: wrap; }
  .theme-mosaic .site-nav { order: 3; width: 100%; margin: 0; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 460px) { .header-actions__link { display: none; } .brand__tagline { display: none; } }

/* areas and full-width bands */
.theme-mosaic .area--top { padding-top: 0; }
.theme-mosaic .area--top .container, .theme-mosaic .area--bottom .container { gap: 0; }
.theme-mosaic .area--top .block + .block, .theme-mosaic .area--bottom .block + .block { margin-top: 0; }
.theme-mosaic .area--bottom { padding-bottom: 0; }
.theme-mosaic .area .block { padding-block: clamp(2.75rem, 6.5vw, 5rem); }
.theme-mosaic .area .block--style-box { padding: 1.5rem; margin-block: 2rem; }
.theme-mosaic .area .block__title { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem; text-align: center; }
.block--style-band, .block--style-band-soft, .block--style-band-dark { position: relative; box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); }
.block--style-band { --band: var(--color-surface); }
.block--style-band-soft { --band: var(--band-soft); }
.block--style-band-dark { --band: var(--navy); color: #e6ecf8; }
.block--style-band-dark .block__title, .block--style-band-dark .eyebrow { color: var(--tile-light); }
.block--style-band-dark :is(h2, h3) { color: #fff; }
.block--style-band-dark .section-head p, .block--style-band-dark p { color: #b8c4dc; }
.theme-mosaic .block--style-hero {
  position: relative; color: #fff; border: 0; border-radius: 0; background: none; box-shadow: none; clip-path: none;
  border-image: linear-gradient(125deg, var(--hero-from) 10%, var(--hero-to)) fill 0 / 0 / 0 100vmax;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 8vw, 5.5rem);
}
/* a faint grid of tiles over the hero gradient */
.theme-mosaic .block--style-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}

/* hero */
.hero--mosaic { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.75rem, 4.5vw, 4rem); }
.hero--mosaic.hero--left .hero__media { order: -1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .8rem; font-weight: 700; }
.hero__dot { width: .5rem; height: .5rem; border-radius: 2px; background: var(--color-accent); }
.hero--mosaic .hero__heading { font: 800 clamp(2.4rem, 5.8vw, 4rem)/1.04 var(--font-heading); letter-spacing: -.035em; margin: 0 0 1.25rem; color: #fff; }
.hero__accent { display: block; font-style: normal; background: linear-gradient(90deg, var(--tile-light), #c7e6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--mosaic .hero__lead { font-size: 1.14rem; color: #d6e2f8; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.hero__note { margin: 1.25rem 0 0; font-size: .88rem; color: #b8c8e6; }
.window { border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .15); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hero--left .window { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); transform-origin: right center; }
.window__bar { display: flex; align-items: center; gap: .35rem; margin: 0; padding: .55rem .8rem; background: #e9eef7; color: #4f5d78; font-size: .72rem; }
.window__bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #f87171; }
.window__bar i:nth-child(2) { background: #fbbf24; } .window__bar i:nth-child(3) { background: #34d399; }
.window__bar span { margin-left: .75rem; padding: .1rem .75rem; border-radius: 6px; background: #fff; flex: 1; max-width: 16rem; }
.hero--mosaic .window img { display: block; width: 100%; height: auto; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.5rem, 1.4vw, .9rem); max-width: 26rem; margin-inline: auto; padding: clamp(1rem, 3vw, 1.75rem); border-radius: 28%; background: linear-gradient(135deg, var(--tile-light), #3b82f6 50%, #1d4ed8); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .35); }
.tiles__t { aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .14); animation: tile 7s ease-in-out infinite; }
/* the M of the logo */
.tiles__t--1, .tiles__t--4, .tiles__t--5, .tiles__t--8, .tiles__t--9, .tiles__t--12, .tiles__t--13, .tiles__t--16 { background: #fff; }
.tiles__t--6, .tiles__t--7 { background: #e0f2fe; transform: rotate(45deg) scale(.85); animation: none; }
.tiles__t--2 { animation-delay: -1s; } .tiles__t--3 { animation-delay: -3s; } .tiles__t--10 { animation-delay: -2s; } .tiles__t--11 { animation-delay: -5s; } .tiles__t--14 { animation-delay: -4s; } .tiles__t--15 { animation-delay: -6s; }
@keyframes tile { 50% { background: rgba(255, 255, 255, .32); } }
@media (max-width: 860px) {
  .hero--mosaic { grid-template-columns: minmax(0, 1fr); }
  .window, .hero--left .window { transform: none; }
  .hero--mosaic.hero--left .hero__media { order: 0; }
}

/* content sections written as HTML blocks */
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: .1rem 0 .75rem; }
.section-head p { color: var(--color-muted); margin: 0; font-size: 1.08rem; }
.section-head--left { text-align: left; margin-inline: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.features .feature { display: block; }
.feature { padding: 1.5rem 1.4rem; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card-bg); box-shadow: var(--card-shadow); }
.feature h3 { margin: .9rem 0 .4rem; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--color-muted); font-size: .96rem; }
.feature__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; font-size: 1.35rem; background: linear-gradient(135deg, color-mix(in srgb, var(--tile-light) 45%, var(--color-background)), var(--soft)); box-shadow: inset 0 0 0 1px var(--card-border); }
.features--plain .feature { border: 0; box-shadow: none; background: none; padding: .5rem 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { margin: .1rem 0 .9rem; }
.split p { color: var(--color-muted); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--reverse > :first-child { order: 0; } }
.shot { margin: 0; border-radius: 12px; overflow: hidden; background: var(--card-bg); box-shadow: var(--card-shadow), 0 0 0 1px var(--card-border); }
.shot::before { content: ""; display: block; height: 1.6rem; background: radial-gradient(circle at .9rem 50%, #f87171 .3rem, transparent .32rem), radial-gradient(circle at 1.8rem 50%, #fbbf24 .3rem, transparent .32rem), radial-gradient(circle at 2.7rem 50%, #34d399 .3rem, transparent .32rem), var(--color-surface); border-bottom: 1px solid var(--card-border); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: .6rem 1rem; font-size: .85rem; color: var(--color-muted); border-top: 1px solid var(--card-border); }

.checks { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 6px; background: var(--good); color: #fff; font-size: .75rem; font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.3rem; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--card-border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .8rem; border-radius: 9px; background: var(--color-primary); color: var(--color-on-primary); font-weight: 800; }
.step h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--color-muted); font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem; text-align: center; }
.stat { padding: 1.25rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(127, 160, 220, .2); }
.stat strong { display: block; font: 800 clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--font-heading); letter-spacing: -.03em; color: var(--color-primary); }
.block--style-band-dark .stat strong { color: var(--tile-light); }
.stat span { display: block; margin-top: .3rem; font-size: .92rem; color: var(--color-muted); }
.block--style-band-dark .stat span { color: #b8c4dc; }

.pills { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li { padding: .35rem .8rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--card-border); font-size: .9rem; font-weight: 600; }
.block--style-band-dark .pills li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e6ecf8; }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem 2rem; max-width: 64rem; margin-inline: auto; }
.faq__item { padding: 1.1rem 0; border-top: 1px solid var(--card-border); }
.faq__item h3 { margin: 0 0 .4rem; font-size: 1.05rem; letter-spacing: -.01em; }
.faq__item p { margin: 0; color: var(--color-muted); font-size: .96rem; }

.cta { text-align: center; max-width: 44rem; margin: 0 auto; }
.cta h2 { margin: 0 0 .75rem; }
.cta p { margin: 0 0 1.5rem; }
.cta .button + .button { margin-left: .5rem; }
.cta__note { margin-top: 1rem !important; font-size: .88rem; opacity: .8; }

.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: .7rem .8rem; border-bottom: 1px solid var(--card-border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); }
.table-scroll { overflow-x: auto; }
.table-scroll .compare { min-width: 34rem; }

.note-box { padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--color-accent) 60%, transparent); background: color-mix(in srgb, var(--color-accent) 8%, var(--color-background)); font-size: .95rem; }
.prose .link-arrow, .link-arrow { font-weight: 700; text-decoration: none; }

/* page cards: realizations and other child pages */
.theme-mosaic .cards:not(.cards--list):not(.cards--slider) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
.theme-mosaic .card-item { border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.theme-mosaic .card-item:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--color-primary) 60%, transparent); }
.theme-mosaic .card-item__media img { aspect-ratio: 16 / 10; object-position: top; }
.theme-mosaic .card-item__title { font-size: 1.15rem; }
.theme-mosaic .card-item__title a { color: var(--color-text); text-decoration: none; }
.theme-mosaic .card-item__more { font-weight: 700; text-decoration: none; margin-top: auto; }

/* pricing cards inside the theme */
.theme-mosaic .plan { border-radius: 18px; }
.theme-mosaic .plan--highlight { background: linear-gradient(180deg, var(--soft), var(--card-bg) 40%); }
.theme-mosaic .plan__price strong { font-size: 2.2rem; letter-spacing: -.03em; }
.theme-mosaic .shop-promo { justify-content: center; text-align: center; }

/* module pages and regular pages */
.theme-mosaic .module-page .breadcrumbs { font-size: .85rem; }
.theme-mosaic .site-form input:not([type=checkbox]):not([type=radio]), .theme-mosaic .site-form select, .theme-mosaic .site-form textarea { border-radius: 10px; }
.theme-mosaic article.container h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* footer */
.theme-mosaic .site-footer { background: var(--footer-bg); color: rgba(226, 234, 248, .72); padding-block: 3.5rem 1.5rem; font-size: .92rem; }
.theme-mosaic .site-footer a { color: rgba(226, 234, 248, .8); text-decoration: none; }
.theme-mosaic .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2rem; margin-bottom: 2.5rem; }
.site-footer__brand { display: flex; align-items: center; gap: .6rem; font: 800 1.3rem var(--font-heading); color: #fff; margin: 0 0 .6rem !important; }
.site-footer__tagline { max-width: 22rem; }
.site-footer__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem; }
.footer-col__title { color: #fff; font-weight: 700; margin: 0 0 .75rem !important; }
.footer-col__title a { color: #fff !important; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col ul ul { display: none; }
.theme-mosaic .site-footer .area--footer { grid-column: 1 / -1; margin: 0; }
.theme-mosaic .site-footer .block { padding: 0; background: transparent; box-shadow: none; }
.theme-mosaic .site-footer .block__title { color: #fff; letter-spacing: 0; text-transform: none; font-size: 1rem; }
.theme-mosaic .site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.25rem; font-size: .82rem; }
.theme-mosaic .footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* dark mode switch */
.scheme-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: .45rem;
  background: var(--card-bg); color: var(--color-text); border: 1px solid var(--card-border); border-radius: 999px;
  padding: .45rem .9rem .45rem .55rem; font: 600 .8rem var(--font-body); cursor: pointer; box-shadow: var(--card-shadow);
}
.scheme-toggle__dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: linear-gradient(135deg, #0b1120 50%, #f2f6fd 50%); border: 1px solid var(--card-border); }
@media print { .scheme-toggle, .header-actions { display: none; } }
