/* ================================================================
 *  custom.css — your own CSS
 *
 *  Loads after the template and theme.css, so a rule here wins any
 *  tie. Every template update ships this file empty: keep your copy
 *  when you update.
 * ================================================================ */

/* ================================================================
 *  IMVFLOW test homepage (2026-11-28): the logo's gradient everywhere a colour shows,
 *  plus the few pieces the demo has no markup for (tools in tabs, steps, our videos, FAQ).
 *  Logo gradient: #fe2ffb → #a41db2 → #550e72 → #24054b → #12023c, with #3302ed and #bd8fff.
 * ================================================================ */
html[data-demo='ai-studio-1'] {
    --site-grad: linear-gradient(115deg, #fe2ffb 0%, #a41db2 52%, #3302ed 100%);
    --custom-gradient: linear-gradient(100deg, #fe2ffb 0%, #d45fe0 45%, #bd8fff 100%);
    --custom-glass: #1d0d4099;
    --custom-line: #bd8fff24;
}
.site-logo { width: auto; height: 40px; }
@media (width <= 767px) { .site-logo { height: 32px; } }

/* buttons: the logo gradient instead of a flat fill */
/* the gradient covers the border box too: with the default padding-box origin it repeated under the transparent border as a thin pink line on the right edge */
.btn.btn-primary, .btn.btn-primary:hover { background: var(--site-grad) border-box no-repeat; border-color: transparent; color: #fff; }
.btn.btn-primary:hover { filter: brightness(1.08); }
.custom-hero-glow--primary { --glow-color: #a41db2; }
.custom-hero-glow--accent { --glow-color: #fe2ffb; }

/* hero: a shorter title than the demo's (our claim is longer) */
.site-hero-title { font-size: clamp(2.4rem, 1rem + 4.2vw, 5rem); }

/* tools in tabs */
.site-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; }
.site-tab { font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--color-text-soft); background: transparent; border: 1px solid var(--custom-line); border-radius: 9999px; padding: 0.5rem 1rem; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.site-tab:hover { color: var(--color-text); border-color: #bd8fff66; }
.site-tab.is-on { color: #fff; background: var(--site-grad) border-box no-repeat; border-color: transparent; }
.site-tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (width <= 1023px) { .site-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } }
.site-tcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--custom-radius-card); background: var(--color-tertiary); border: 1px solid var(--custom-line); color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
.site-tcard:hover { transform: translateY(-3px); border-color: #fe2ffb80; }
.site-tcard-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-muted); }
.site-tcard-media > img, .site-tcard-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-tcard-badge { position: absolute; top: .65rem; right: .65rem; z-index: 2; font-size: .75rem; font-weight: 700; color: #fff; background-image: var(--site-grad); border-radius: .4rem; padding: .2rem .55rem; }
.site-tcard-badge.is-new { background-image: linear-gradient(115deg, #fe2ffb, #bd8fff); color: #12023c; }
.site-tcard-play { position: absolute; left: .65rem; bottom: .65rem; z-index: 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .4rem; background: #0d0326cc; color: #fff; font-size: .75rem; }
.site-tcard-body { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem 1.05rem; }
.site-tcard-cat { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.site-tcard-name { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--color-text); }
.site-tcard-line { font-size: .9375rem; color: var(--color-text-soft); }
.site-thint { margin-top: 1rem; }
@media (hover: none) { .site-thint { display: none; } }

/* three steps */
.site-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (width <= 767px) { .site-steps { grid-template-columns: 1fr; } }
.site-step { padding: 1.5rem; border-radius: var(--custom-radius-card); background: var(--custom-glass); border: 1px solid var(--custom-line); }
.site-step-n { font-family: var(--font-mono); font-size: .8125rem; background-image: var(--custom-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-step h3 { margin-top: .5rem; font-size: 1.25rem; }
.site-step p { margin-top: .4rem; color: var(--color-text-soft); }

/* our work: vertical videos */
.site-film { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
@media (width <= 1023px) { .site-film { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (width <= 767px) { .site-film { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-film-item { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--custom-radius-card); background: var(--color-tertiary); border: 1px solid var(--custom-line); }
.site-film-item > img, .site-film-item > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-film-item .site-film-ttl { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; font-size: .8125rem; font-weight: 600; color: #fff; text-shadow: 0 1px 8px #000a; }
.site-film-follow { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

/* FAQ */
.site-faq { display: grid; gap: .65rem; max-width: 48rem; margin: 0 auto 4rem; }
.site-faq-item { border-radius: var(--custom-radius-card); background: var(--color-tertiary); border: 1px solid var(--custom-line); padding: 1rem 1.25rem; }
.site-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; cursor: pointer; list-style: none; }
.site-faq-item summary::-webkit-details-marker { display: none; }
.site-faq-item[open] summary i { transform: rotate(45deg); }
.site-faq-item summary i { transition: transform .2s; color: #fe2ffb; }
.site-faq-item p { margin-top: .6rem; color: var(--color-text-soft); }
/* the hero sits a little tighter than the demo's (owner: the top was too tall) */
#st-hero.site-hero { padding-top: calc(var(--header-h) + clamp(1.25rem, 0.5rem + 2vw, 2.5rem)); }
.site-hero-stage { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
/* owner 2026-11-28: the top a little smaller — a smaller title, tighter gaps and a smaller fan of pictures (computers; phones keep the demo's own sizes) */
.site-hero-title { font-size: clamp(2.2rem, 1rem + 3.2vw, 4rem); }
#st-hero .custom-hero-chip { font-size: .875rem; }
#st-hero .mt-7 { margin-top: 1.25rem; }
@media (width >= 768px) {
    #st-hero.site-hero { padding-top: calc(var(--header-h) + clamp(1rem, .25rem + 1.5vw, 2rem)); padding-bottom: 1rem; }
    .site-hero-stage { margin-top: clamp(1.25rem, .75rem + 1.2vw, 2rem); }
    #st-hero .custom-fan { --cw: 15.5cqi; --iw: 12cqi; --ow: 9.5cqi; --ix: 12.75cqi; --ox: 22.25cqi; margin-top: 1rem; }
    #st-hero .custom-fan-card--inner { --y: 2.25cqi; }
    #st-hero .custom-fan-card--outer { --y: 5.25cqi; }
}
/* owner 2026-11-28: try Gilroy for the whole page (headings and text); JetBrains Mono stays for the small labels */
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy/Gilroy-REGULAR.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy/Gilroy-MEDIUM.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy/Gilroy-SEMIBOLD.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy/Gilroy-BOLD.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy/Gilroy-EXTRABOLD.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
:root {
    --font-sans: "Gilroy", system-ui, sans-serif;
    --font-heading: "Gilroy", system-ui, sans-serif;
    --heading-weight: 700;
    --heading-tracking: -0.025em;
}
/* owner 2026-11-28: the fan of pictures under the prompt bar goes (too busy). Hidden rather than deleted: the typed prompts read their list from it */
#st-hero .custom-fan { display: none; }
#st-hero.site-hero { padding-bottom: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); }
/* models line: a marquee flowing from the right, soft edges, pauses under the pointer; reduced motion = a still, wrapped line */
.site-marquee { overflow: hidden; margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.site-marquee-track { display: flex; align-items: center; gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); width: max-content; margin: 0; padding: 0 0 0 clamp(2.5rem, 1.5rem + 3vw, 4.5rem); list-style: none; animation: site-marquee 48s linear infinite; }
.site-marquee:hover .site-marquee-track { animation-play-state: paused; }
.site-mark { flex: none; white-space: nowrap; color: var(--color-text-soft); opacity: .85; }
@keyframes site-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .site-marquee { -webkit-mask-image: none; mask-image: none; }
    .site-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
    .site-marquee-track > [aria-hidden="true"] { display: none; }
}
/* owner 2026-11-28: "3 steps" lower, and the cards joined by flowing lines so the order reads at a glance */
.site-steps { --gap: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); gap: var(--gap); }
.site-step { position: relative; padding: 1.25rem 1.4rem; }
.site-step-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; color: #fff; -webkit-text-fill-color: #fff; background: var(--site-grad); font-size: .8125rem; }
.site-step h3 { margin-top: .65rem; font-size: 1.125rem; }
/* the connector: a faint rail, a light running along it, an arrow head at its end */
.site-step:not(:last-child)::after,
.site-step:not(:last-child)::before { content: ""; position: absolute; pointer-events: none; }
.site-step:not(:last-child)::after {
    top: 50%; left: 100%; width: var(--gap); height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, transparent 0%, #fe2ffb 35%, #bd8fff 65%, transparent 100%) 0 0 / 200% 100% no-repeat, #bd8fff33;
    animation: site-flow-x 1.8s linear infinite;
}
.site-step:not(:last-child)::before {
    top: 50%; left: calc(100% + var(--gap) - 7px); width: 0; height: 0; transform: translateY(-50%);
    border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid #bd8fff;
}
@keyframes site-flow-x { from { background-position: 200% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
@keyframes site-flow-y { from { background-position: 0 200%, 0 0; } to { background-position: 0 -100%, 0 0; } }
@media (width <= 767px) {
    .site-step:not(:last-child)::after {
        top: 100%; left: 50%; width: 2px; height: var(--gap); transform: translateX(-50%);
        background: linear-gradient(180deg, transparent 0%, #fe2ffb 35%, #bd8fff 65%, transparent 100%) 0 0 / 100% 200% no-repeat, #bd8fff33;
        animation-name: site-flow-y;
    }
    .site-step:not(:last-child)::before {
        top: calc(100% + var(--gap) - 7px); left: 50%; transform: translateX(-50%);
        border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #bd8fff; border-bottom: 0;
    }
}
@media (prefers-reduced-motion: reduce) { .site-step::after { animation: none; } }
/* the flow a little stronger: a thicker rail and a brighter running light */
.site-step:not(:last-child)::after { height: 3px; border-radius: 3px; background-color: #bd8fff55; box-shadow: 0 0 10px #fe2ffb55; }
@media (width <= 767px) { .site-step:not(:last-child)::after { width: 3px; height: var(--gap); } }
/* owner: "Bir hesabda 82 AI modeli." bold and white */
.site-lead-strong { color: #fff; font-weight: 700; }
/* owner: the headline on one line (computers); phones and narrow windows still wrap it */
.site-hero-title { max-width: none; }
@media (width >= 1024px) { .site-hero-title { white-space: nowrap; font-size: clamp(2.4rem, 0.4rem + 3.3vw, 3.75rem); } }
/* owner: the headline bold (Gilroy ExtraBold) */
.site-hero-title, .site-hero-title em { font-weight: 800; }
/* owner: the line under the headline on one line too (computers) */
@media (width >= 1024px) { .site-hero-lead { max-width: none; white-space: nowrap; } }
/* the full model list: the same pace as before (about 3 s per name), whatever the length; a little less space above and below */
.site-marquee-track { animation-duration: calc(var(--n, 16) * 3s); }
#st-proof.custom-section { padding-top: clamp(1.25rem, .75rem + 1.5vw, 2.25rem); padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
#st-proof .site-marquee { margin-top: 0; }
/* owner: the first screen shorter, so the tools section shows its top at the bottom of it */
#st-hero.site-hero { padding-bottom: clamp(.75rem, .25rem + 1vw, 1.5rem); }
#st-hero .site-hero-lead { margin-top: .9rem; }
#st-hero .mt-7 { margin-top: 1rem; }
#st-hero .custom-small.mt-4 { margin-top: .75rem; }
.site-hero-stage { margin-top: clamp(1rem, .5rem + 1vw, 1.5rem); }
#st-proof.custom-section { padding-top: clamp(.75rem, .5rem + .75vw, 1.25rem); padding-bottom: clamp(.75rem, .5rem + .75vw, 1.25rem); }
#tools.custom-section { padding-top: clamp(2rem, 1.25rem + 2vw, 3.25rem); }
/* owner: the live homepage's background clip behind the hero, under a shade that keeps the text readable and fades into the page below */
#st-hero { position: relative; isolation: isolate; }
.site-hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.site-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.site-hero-shade { position: absolute; inset: 0; background:
    radial-gradient(75% 70% at 50% 42%, #0d0326b8 0%, #0d032680 55%, #0d032640 100%),
    linear-gradient(to bottom, #0d0326 0%, transparent 18%, transparent 70%, var(--color-bg) 100%); }

/* IMV MORPH: shorter section (owner 2026-11-28) and the two homepage clips side by side instead of the picture slider */
#st-sketch .site-morph-grid { align-items: center; }
#st-sketch .site-morph-grid .grid.gap-9 { gap: 1.5rem; }
#st-sketch .site-morph-grid .btn.mt-11 { margin-top: 2rem; }
.site-morph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, .4rem + 1vw, 1.25rem); max-width: 34rem; width: 100%; justify-self: center; }
.site-morph-clip { position: relative; margin: 0; aspect-ratio: 9 / 16; max-height: 34rem; overflow: hidden; border-radius: var(--custom-radius-card, 1.25rem); background: var(--color-tertiary); border: 1px solid var(--custom-line, #ffffff1a); }
.site-morph-clip.is-result { border-color: #fe2ffb; box-shadow: 0 0 0 1px #fe2ffb55, 0 20px 60px -20px #a41db299; }
.site-morph-clip > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-morph-clip > figcaption { position: absolute; left: .75rem; bottom: .75rem; padding: .35rem .7rem; border-radius: 999px; background: #0d0326cc; color: #fff; font-size: .8125rem; font-weight: 600; backdrop-filter: blur(6px); }
.site-morph-clip.is-result > figcaption { background: linear-gradient(90deg, #fe2ffb, #a41db2 55%, #3302ed); }

/* glass sheen on buttons (owner 2026-11-28): on hover a soft light band slides across the button like light over glass, with a faint inner glow */
.btn:is(.btn-primary, .btn-glass, .btn-outline-dark), .site-tab { position: relative; overflow: hidden; isolation: isolate; }
.btn:is(.btn-primary, .btn-glass, .btn-outline-dark)::after, .site-tab::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 55%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, #ffffff00 20%, #ffffff59 45%, #ffffffa6 50%, #ffffff59 55%, #ffffff00 80%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg); opacity: 0;
}
.btn:is(.btn-primary, .btn-glass, .btn-outline-dark)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #ffffff38 0%, #ffffff0d 45%, transparent 60%);
  box-shadow: inset 0 1px 0 #ffffff59, inset 0 -1px 0 #ffffff14; opacity: 0; transition: opacity .35s ease;
}
.btn:is(.btn-primary, .btn-glass, .btn-outline-dark) > *, .site-tab > * { position: relative; z-index: 2; }
@media (hover: hover) {
  .btn:is(.btn-primary, .btn-glass, .btn-outline-dark):hover::after, .site-tab:hover::after { animation: site-sheen .85s cubic-bezier(.2, .7, .2, 1) forwards; }
  .btn:is(.btn-primary, .btn-glass, .btn-outline-dark):hover::before { opacity: 1; }
}
.btn:is(.btn-primary, .btn-glass, .btn-outline-dark):focus-visible::after { animation: site-sheen .85s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes site-sheen { 0% { transform: translateX(-160%) skewX(-18deg); opacity: 1; } 100% { transform: translateX(260%) skewX(-18deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .btn::after, .site-tab::after { animation: none !important; } }

/* every section heading the same size (owner 2026-11-28): the tools heading's size less 10 % (74 -> 67 px on desktop, 40 -> 36 px on a phone) */
html body .custom-title:is(h1, h2), html body #faq h2[class*="max-w-[12ch]"] { font-size: clamp(2.25rem, 1.35rem + 3.3vw, 4.175rem); }

/* language choice (owner 2026-11-28): a compact menu in the header, chips in the phone menu */
.site-lang { position: relative; }
.site-lang-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: 999px; border: 1px solid #ffffff1f; background: #ffffff0a; color: var(--color-text, #fff); font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.site-lang-btn:hover, .site-lang.is-open .site-lang-btn { background: #ffffff17; border-color: #fe2ffb66; }
.site-lang-btn .ph-globe-simple { font-size: 1.05rem; }
.site-lang-caret { font-size: .7rem; opacity: .7; transition: transform .2s; }
.site-lang.is-open .site-lang-caret { transform: rotate(180deg); }
.site-lang-menu { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60; min-width: 11.5rem; margin: 0; padding: .35rem; list-style: none; border-radius: 1rem; border: 1px solid #ffffff1a; background: #170838f2; backdrop-filter: blur(14px); box-shadow: 0 20px 50px -15px #000c; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.site-lang.is-open .site-lang-menu { opacity: 1; visibility: visible; transform: none; }
.site-lang-menu button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .7rem; border-radius: .65rem; border: 0; background: none; color: var(--color-text, #fff); font-size: .9375rem; text-align: left; cursor: pointer; }
.site-lang-menu button:hover { background: #ffffff12; }
.site-lang-menu button[aria-checked="true"] { background: #a41db240; }
.site-lang-code { display: inline-grid; place-items: center; min-width: 2.1rem; padding: .1rem .3rem; border-radius: .4rem; background: #ffffff12; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.site-lang-menu button[aria-checked="true"] .site-lang-code { background: var(--site-grad); color: #fff; }
.site-lang-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.site-lang-row button { flex: 1 1 0; min-width: 3rem; padding: .5rem .4rem; border-radius: .7rem; border: 1px solid #ffffff1f; background: #ffffff0a; color: var(--color-text, #fff); font-size: .875rem; font-weight: 600; cursor: pointer; }
.site-lang-row button.is-on { background: var(--site-grad) border-box; border-color: transparent; }

/* tighter rhythm everywhere (owner 2026-11-28): one section gap for the whole page, about half the template's 154 px (80 px desktop, 56 px phone),
   and one gap under every section head */
:root { --site-gap: clamp(3.5rem, 2.4rem + 2.8vw, 5rem); }
main > section.custom-section { padding-bottom: var(--site-gap); }
main > section:is(#steps, #st-sketch, #st-business, #pricing) { padding-top: var(--site-gap); }
html body .custom-head { margin-bottom: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem); }
/* the closing stage and the footer follow the same rhythm (they used the template's 154 px section space and 126 px inner padding) */
#faq .custom-final { margin-top: var(--site-gap); padding-block: clamp(3rem, 2rem + 2.6vw, 4.75rem); }
footer .footer-main { padding-block: clamp(3rem, 2.2rem + 2vw, 4.25rem); }
/* the "can't make it yourself" line under the business heading (light section: dark text) */
#st-business .site-business-lead { margin-top: 1rem; max-width: 32rem; color: color-mix(in srgb, currentColor 72%, transparent); }

/* FAQ across the full width (owner 2026-11-28), two columns on wide screens, roomier cards */
#faq .site-faq { max-width: none; margin: 0; gap: .9rem; }
@media (min-width: 1024px) { #faq .site-faq { grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem 1.25rem; } }
#faq .site-faq-item { padding: 1.35rem 1.6rem; transition: border-color .2s, background .2s; }
#faq .site-faq-item:hover, #faq .site-faq-item[open] { border-color: #fe2ffb59; }
#faq .site-faq-item[open] { background: linear-gradient(160deg, #a41db21f, transparent 60%), var(--color-tertiary); }
#faq .site-faq-item summary { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); }
#faq .site-faq-item summary i { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: #ffffff0d; font-size: .95rem; }
#faq .site-faq-item p { margin-top: .8rem; font-size: 1rem; line-height: 1.6; }
/* footer "Qalereyadan" cards hidden (owner 2026-11-28); the markup stays so it can come back with one line */
footer section[aria-labelledby="st-footer-gallery"] { display: none; }

/* TREND VIDEOS (owner 2026-11-28): vertical preview cards of the live trend templates, a scroll row on phones */
.site-trends { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: clamp(.9rem, .5rem + 1vw, 1.25rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; }
.site-trends::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .site-trends { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); } }
.site-trend { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--custom-radius-card); overflow: hidden; background: var(--color-tertiary); border: 1px solid var(--custom-line); color: inherit; text-decoration: none; transition: border-color .25s, transform .25s; }
.site-trend:hover { border-color: #fe2ffb80; transform: translateY(-3px); }
.site-trend-media { position: relative; display: block; aspect-ratio: 9 / 13; overflow: hidden; background: var(--color-bg-muted); }
.site-trend-media > img, .site-trend-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-trend-cost { position: absolute; top: .7rem; left: .7rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; background: #0d0326cc; backdrop-filter: blur(6px); color: #fff; font-size: .8125rem; font-weight: 600; }
.site-trend-cost i { color: #fe2ffb; }
.site-trend-body { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.15rem; }
.site-trend-name { font-weight: 700; font-size: 1.0625rem; color: #fff; }
.site-trend-line { font-size: .875rem; line-height: 1.5; color: var(--color-text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.site-trend-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .875rem; font-weight: 700; background: var(--site-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-trend-go i { color: #fe2ffb; }
.site-trend-all { justify-content: center; background: linear-gradient(160deg, #a41db233, #3302ed22 60%, transparent), var(--color-tertiary); }
.site-trend-all-in { display: grid; gap: .5rem; padding: 1.5rem; justify-items: start; }
.site-trend-all-in > i { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--site-grad); color: #fff; font-size: 1.35rem; margin-bottom: .5rem; }
.site-trends-side { display: grid; gap: 1rem; justify-items: start; }
.site-trends-nav { display: flex; gap: .5rem; }
.site-trends-nav[hidden] { display: none; }
.site-trends-nav .carousel-btn:disabled { opacity: .35; cursor: default; }

/* the Tools mega menu closes on a click outside it, a second click on "Alətlər" and Esc (owner 2026-11-28: it stayed open);
   .site-closed wins over the template's :hover / :focus-within until the pointer comes back to the button */
.nav-megamenu.site-closed .megamenu-panel { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.nav-megamenu.site-closed::after { opacity: 0 !important; visibility: hidden !important; }
.nav-megamenu.site-closed > .nav-link i { transform: none !important; }
/* the Tools panel is a transparent box as wide as the header with the visible card (.megamenu-inner) in its middle: the empty sides
   kept the menu "hovered", so moving out to the left or right never closed it (owner 2026-11-28). Only the card takes the pointer now,
   with a thin invisible bridge above it so the way down from "Alətlər" stays open */
.custom-mega .megamenu-panel { pointer-events: none !important; }
.custom-mega .megamenu-inner { pointer-events: auto; position: relative; }
.custom-mega .megamenu-inner::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 1.5rem; }
.custom-mega.site-closed .megamenu-inner { pointer-events: none; }

/* ================================================================
 *  LIGHT VERSION (owner 2026-11-28): html[data-site-theme="light"], switched by the sun / moon button (assets/js/imv-theme.js).
 *  Built on the template's own light recipe (.custom-section--light in demos/demo-ai-studio-1.css) with the logo colours;
 *  the hero (video behind it) and the footer stay dark islands in both versions.
 * ================================================================ */
html[data-site-theme="light"] {
  color-scheme: light;
  --color-text: #160a33;
  --color-text-soft: #4a4166;
  --color-text-muted: #6c6488;
  --color-bg: #f8f5fe;
  --color-bg-soft: #efe9fb;
  --color-bg-muted: #e7dff7;
  --color-surface: #ffffff;
  --color-border: #e0d7f2;
  --color-border-soft: #ece6f8;
  --color-tertiary: #ffffff;
  --color-primary-ink: #8f17a3;
  --custom-ground: #efe8fb;
  --custom-ground-2: #e7def8;
  --custom-muted: #6c6488;
  --custom-line: #160a3317;
  --custom-glass: #ffffffcc;
  --custom-shadow: 0 1px 2px #160a330f, 0 30px 60px -34px #4a1d7a40;
}
html[data-site-theme="light"] body { background: var(--color-bg); color: var(--color-text-soft); }
/* the dark islands: hero and footer keep the dark values */
html[data-site-theme="light"] :is(#st-hero, footer) {
  color-scheme: dark;
  --color-text: oklch(0.9644 0.02 300); --color-text-soft: #bdb4d6; --color-text-muted: #a99cc9;
  --color-bg: #0d0326; --color-bg-soft: #170838; --color-bg-muted: #201245; --color-surface: #1d0d40;
  --color-border: #2c1d52; --color-border-soft: #22144a; --color-tertiary: #170838; --color-primary-ink: oklch(0.74 0.2 320);
  --custom-ground: #170838; --custom-line: #ffffff1a; --custom-glass: #16141e94; --custom-muted: #a99cc9;
  color: var(--color-text-soft);
}
html[data-site-theme="light"] #st-hero { background: #0d0326; }
/* the hero shade fades into the light page below it */
html[data-site-theme="light"] #st-hero .site-hero-shade { background: radial-gradient(ellipse at 50% 40%, #0d032600 0%, #0d032699 70%), linear-gradient(180deg, #0d032666 0%, #0d032600 35%, #0d032600 70%, #0d0326 100%); }
/* header capsule: light glass over the page, dark glass while it sits over the hero video */
html[data-site-theme="light"] .site-lang-btn, html[data-site-theme="light"] .site-theme-btn { color: inherit; }
/* our own components that had dark-only values */
html[data-site-theme="light"] :is(.site-trend-name, .site-tcard-name, .site-step h3, .site-faq-item summary) { color: var(--color-text); }
html[data-site-theme="light"] .site-tab { color: var(--color-text-soft); background: #ffffff; border-color: var(--color-border); }
html[data-site-theme="light"] .site-tab.is-on { color: #fff; }
html[data-site-theme="light"] :is(.site-tcard, .site-trend, .site-faq-item, .site-step) { background: #ffffff; border-color: var(--color-border); box-shadow: 0 1px 2px #160a330a, 0 18px 40px -28px #4a1d7a33; }
html[data-site-theme="light"] #faq .site-faq-item[open] { background: linear-gradient(160deg, #fe2ffb12, transparent 60%), #ffffff; border-color: #a41db255; }
html[data-site-theme="light"] #faq .site-faq-item summary i { background: #a41db214; }
html[data-site-theme="light"] .site-trend-all { background: linear-gradient(160deg, #fe2ffb1f, #3302ed14 60%, transparent), #ffffff; }
html[data-site-theme="light"] .site-morph-clip { background: #efe9fb; border-color: var(--color-border); }
html[data-site-theme="light"] .site-lang-menu { background: #fffffff2; border-color: var(--color-border); box-shadow: 0 20px 50px -20px #4a1d7a55; }
html[data-site-theme="light"] .site-lang-menu button { color: var(--color-text); }
html[data-site-theme="light"] .site-lang-menu button:hover { background: #a41db212; }
html[data-site-theme="light"] .site-lang-code { background: #160a3310; }
/* (the phone menu is a dark island in both versions, so its language chips and switch keep the dark look) */

/* the switch itself */
.site-theme-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid #ffffff1f; background: #ffffff0a; color: var(--color-text, #fff); font-size: 1.1rem; cursor: pointer; transition: background .2s, border-color .2s, transform .3s; }
.site-theme-btn:hover { background: #ffffff17; border-color: #fe2ffb66; }
.site-theme-btn:active { transform: rotate(-25deg) scale(.95); }
.site-theme-row { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin-top: .5rem; padding: .6rem .8rem; border-radius: .7rem; border: 1px solid #ffffff1f; background: #ffffff0a; color: var(--color-text, #fff); font-size: .9375rem; font-weight: 600; cursor: pointer; }

/* light fixes after the first look: the active tab keeps its gradient, glass buttons get ink text and a visible edge */
html[data-site-theme="light"] .site-tab.is-on { background: var(--site-grad) border-box no-repeat; border-color: transparent; color: #fff; }
html[data-site-theme="light"] main section:not(#st-hero) .btn.btn-glass { color: var(--color-text); background: #ffffff; border-color: var(--color-border); box-shadow: 0 1px 2px #160a330d; }
html[data-site-theme="light"] main section:not(#st-hero) .btn.btn-glass:hover { border-color: #a41db266; background: #faf6ff; }
html[data-site-theme="light"] main section:not(#st-hero) .btn.btn-outline-dark { color: var(--color-text); border-color: #160a3340; }
/* the switch shows what it will do: a sun and "İşıqlı" on the dark page, a moon and "Qaranlıq" on the light one */
.site-theme-btn { width: auto; height: 2.4rem; padding: 0 .85rem 0 .7rem; gap: .4rem; display: inline-flex; align-items: center; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.site-theme-btn > i { font-size: 1.05rem; }
/* header with the language + light/dark switches: "Daxil ol" stays on one line, the capsule stays violet ink over the light page */
.custom-nav-login { white-space: nowrap; }
@media (max-width: 1439px) { .site-theme-btn { padding: 0 .7rem 0 .6rem; } .site-lang-btn { padding: .45rem .6rem; } }
/* the header switch is a desktop control like the language menu; phones get the row inside the menu */

/* light version, header (owner 2026-11-28: "light rejimde menyunu da ağ edək"): white glass capsule, ink text, the logo with an ink wordmark
   (imv-theme.js swaps it), and the Tools menu / phone menu as white cards */
html[data-site-theme="light"] .header-glass {
  --menu-ink: 255 255 255; --menu-surface: #ffffff; --menu-border: #160a3314; --menu-title: #6c6488; --menu-text: #4a4166;
  --menu-strong: #160a33; --menu-hover-bg: #a41db20f; --menu-hover-text: #8f17a3; --menu-shadow: 0 24px 48px -16px #4a1d7a40; --menu-dim: 0.2;
}
html[data-site-theme="light"] .header-glass .navbar,
html[data-site-theme="light"] .header-glass:is(.scrolled, :has(.nav-megamenu:is(:hover, :focus-within)), :has(.mobile-nav.open)) .navbar {
  background: rgba(255, 255, 255, 0.88) !important; box-shadow: inset 0 0 0 1px #160a3314, 0 18px 40px -24px #4a1d7a59 !important;
}
html[data-site-theme="light"] .header-glass :is(.nav-link, .custom-nav-login, .hamburger, .brand) { color: #160a33 !important; }
html[data-site-theme="light"] .header-glass .nav-link:hover, html[data-site-theme="light"] .custom-nav-login:hover { color: #8f17a3 !important; }
html[data-site-theme="light"] .header-glass :is(.site-lang-btn, .site-theme-btn) { color: #160a33; background: #ffffff; border-color: #160a331f; }
html[data-site-theme="light"] .header-glass :is(.site-lang-btn, .site-theme-btn):hover, html[data-site-theme="light"] .site-lang.is-open .site-lang-btn { background: #faf6ff; border-color: #a41db266; }
html[data-site-theme="light"] .header-glass .mobile-nav { background: #ffffff; }
html[data-site-theme="light"] .custom-mega .megamenu-service:is(:hover, :focus-within) { background: #a41db20d; }
html[data-site-theme="light"] .custom-mega .megamenu-icon { background: #a41db214; box-shadow: inset 0 0 0 1px #a41db21f; }
html[data-site-theme="light"] .custom-mega .custom-mega-preview { background: #f3eefc; }
html[data-site-theme="light"] .header-glass .mobile-nav :is(.mobile-link, .mobile-link-sub, a:not(.btn), button:not(.btn):not([data-lang]):not(.site-theme-row)) { color: #160a33; }
html[data-site-theme="light"] .header-glass .mobile-nav .btn.btn-glass { color: #160a33; background: #ffffff; border-color: #160a3326; }
html[data-site-theme="light"] .mobile-nav .site-lang-row button:not(.is-on), html[data-site-theme="light"] .mobile-nav .site-theme-row { color: #160a33; background: #ffffff; border-color: #160a3326; }
html[data-site-theme="light"] .mobile-nav .custom-small { color: #6c6488; }
html[data-site-theme="light"] :is(.site-lang-row button.is-on, .mobile-nav .btn-primary) { color: #fff !important; }
html[data-site-theme="light"] .header-glass .navbar { background: rgba(255, 255, 255, 0.93) !important; }
html[data-site-theme="light"] .header-glass:has(.mobile-nav.open) .navbar { background: #ffffff !important; }
/* header logo 30% larger (owner 2026-11-28): 40 -> 52 px, phones 32 -> 42 px; the footer logo keeps its size */
header .site-logo { height: 52px; }
@media (width <= 767px) { header .site-logo { height: 42px; } }
/* menu links (owner 2026-11-28): bold, 20% larger (16 -> 19.2 px), and always in the middle of the free space between the logo and the
   buttons on the right, so the gaps on both sides stay equal at any width */
@media (min-width: 1024px) {
  header .navbar-inner { display: flex !important; align-items: center; }
  header .navbar-inner > .brand { flex: none; }
  header .navbar-inner > .nav-links { margin-inline: auto; flex: none; }
  header .navbar-inner > .nav-actions { flex: none; margin-left: 0; }
  header .nav-links > li > .nav-link { font-size: 1.2rem; font-weight: 700; }
}
@media (min-width: 1024px) and (max-width: 1365px) { header .nav-links > li > .nav-link { padding-inline: .6rem; } }
/* the light / dark switch stays in the header on phones too (owner 2026-11-28); icon only on the narrowest screens */
@media (max-width: 1023px) { header .navbar .site-theme-btn { height: 2.25rem; padding: 0 .7rem 0 .6rem; font-size: .8125rem; } }
@media (max-width: 359px) { header .navbar .site-theme-btn [data-theme-text] { display: none; } header .navbar .site-theme-btn { width: 2.25rem; padding: 0; justify-content: center; } }
/* small phones (<= 413 px): logo + "İşıqlı/Qaranlıq" + menu button fit in the capsule (360 px needed 33 px more) */
@media (max-width: 413px) {
  header .site-logo { height: 36px; }
  header .navbar-inner { padding-inline: .875rem .5rem !important; }
  header .nav-actions { gap: .5rem !important; }
}
@media (max-width: 379px) and (min-width: 360px) { header .navbar .site-theme-btn { padding: 0 .55rem 0 .45rem; gap: .3rem; } }
/* light version: the small pink labels (eyebrows) and the text links were the light-on-dark pink (2.4:1 on the light page) -> logo violet */
html[data-site-theme="light"] main section:not(#st-hero) :is(.eyebrow, .btn-link) { color: #a41db2; }
html[data-site-theme="light"] main section:not(#st-hero) .btn-link:hover { color: #8f17a3; }
html[data-site-theme="light"] main section:not(#st-hero) .btn-link .link-arrow { background-color: currentColor; }

/* Phones and tablets (owner 2026-11-28: "mobilde dönür və ilişir"): on iPhone Safari the page went blank for ~2 s while scrolling. The costliest paints were
   the three huge blurred glows (filter: blur(140-160px) over half the screen, one 128% of it), their mask, the SVG grain layer on every section and the
   frosted-glass blur on small labels. On touch screens the glows become plain radial gradients (same colour, same softness, no filter), the grain and the
   glow mask go, and only the bar / prompt / buttons keep their glass. */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
    .glow {
        filter: none !important;
        background: radial-gradient(closest-side, var(--glow-color, var(--color-primary)), transparent) !important;
    }
    .glow-field { -webkit-mask-image: none !important; mask-image: none !important; }
    .custom-grain:before { display: none !important; }
    .custom-token, .custom-fan-tag, figcaption, .site-trend-cost {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

/* phones (owner 2026-11-28): the "21 tools" heading sits right under the first screen, so the gap above it is kept small */
@media (max-width: 767px) {
    #tools { padding-top: 1rem; }
}

/* phones (owner 2026-11-28): the hero prompt bar is two rows - the text, then the chips and the button side by side - never a third row
   with the button alone (it wrapped in longer languages, e.g. TR "Otomatik model" + "Oluştur"). Smaller chips; if a very narrow screen still
   lacks room the chips are cut, the button always stays on the row. */
@media (max-width: 767px) {
    .custom-prompt--lg { flex-wrap: wrap; }
    .custom-prompt--lg .custom-prompt-chips { flex: 1 1 0; min-width: 0; overflow: hidden; gap: 0.3rem; }
    .custom-prompt--lg .custom-prompt-chip { padding: 0.3rem 0.55rem; font-size: 0.8125rem; gap: 0.3rem; }
    .custom-prompt--lg .custom-prompt-chip i { font-size: 0.875rem; }
    .custom-prompt--lg .custom-prompt-go { padding-inline: 0.875rem; font-size: 0.9375rem; gap: 0.35rem; }
}
@media (max-width: 380px) {
    .custom-prompt--lg .custom-prompt-chip i { display: none; }
    .custom-prompt--lg .custom-prompt-chip { padding-inline: 0.5rem; }
}
@media (max-width: 340px) {
    .custom-prompt--lg .custom-prompt-chip:first-child { display: none; }   /* the oldest small phones: the size chip goes, the model chip and the button stay */
}
