:root{--site-paper:#fff;--site-panel:#fff;--site-tint:#f5f0fd;--site-warm:#fff7d1;--site-on-action:#fff}
.home-header.home-header--refined.scroll-header-enabled{position:sticky;top:0;z-index:40;transition:transform .22s ease}
.home-header.home-header--refined.is-scroll-hidden{transform:translateY(-100%)}
@media(prefers-reduced-motion:reduce){.home-header.home-header--refined.scroll-header-enabled{transition:none}}
html[data-site-theme="dark"]{
  color-scheme:dark;--site-paper:#171322;--site-panel:#211a2d;--site-tint:#2b213a;--site-warm:#262133;--site-selected:#352749;
  --ink:#f5effd;--muted:#c1b3d0;--line:#514361;--purple:#c4a7ff;--accent:#ae91ff;--cream:var(--site-warm);--site-on-action:#221339;
}
html[data-site-theme="light"]{color-scheme:light}
.site-theme-toggle{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:1px solid var(--line,#dcd1ea);border-radius:7px;background:transparent;color:var(--purple,#563a9c)}
.site-theme-toggle:hover{background:var(--site-tint)}
.site-theme-toggle .icon{width:19px;height:19px}
.site-theme-toggle .theme-sun,html[data-site-theme="dark"] .site-theme-toggle .theme-moon{display:none}
html[data-site-theme="dark"] .site-theme-toggle .theme-sun{display:inline}
.language-picker__options{inset-inline-start:auto;inset-inline-end:0;max-height:min(65dvh,445px);overflow-y:auto}
.language-picker--flags .language-flag{display:block;width:24px;height:18px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #8885;flex:none}
.language-picker--flags>.language-picker__options{width:max-content;padding:6px;gap:3px}
.language-picker--flags[open]>.language-picker__options{display:grid;grid-template-columns:repeat(3,44px)}
.language-picker--flags .language-picker__options>a{justify-content:center;min-height:44px;padding:0;border:1px solid transparent}
.language-picker--flags .language-picker__options>a[aria-current]{border-color:var(--purple)}
html[lang="ar"]{direction:rtl}
html[lang="ar"] :is(h1,h2,h3,.hero-intro,.section-intro){letter-spacing:normal}
html[lang="ar"] :is(h1,h2) em{font-style:normal}
html[lang="ar"] :is(.hero-intro,.features-intro,.gallery-intro) h1{font-size:clamp(37px,5.5vw,80px)}
html[lang="ta"] :is(h1,h2,h3){font-family:"Nirmala UI","Noto Sans Tamil",Arial,sans-serif;letter-spacing:normal}
html[lang="ta"] :is(h1,h2) em{font-style:normal}
html[lang="ta"] :is(.hero-intro,.features-intro,.gallery-intro) h1{font-size:clamp(34px,4.4vw,68px)}
body.editorial-home :is(h1,h2,h3,.button,.template-brand,.template-document p,.template-document figcaption){overflow-wrap:anywhere}
body.editorial-home :is(.hero-intro,.features-intro,.gallery-intro,.split-layout,.pricing-layout,.template-gallery)>*{min-width:0}
body.editorial-home .button-row{flex-wrap:wrap}
html[lang="ar"] .language-picker{margin-left:0;padding-left:0;border-left:0;padding-inline-start:10px;border-inline-start:1px solid var(--line)}
html[lang="ar"] .navigation-disclosure{margin-left:0;margin-inline-start:auto}
html[lang="ar"] .hero-description{border-left:0;padding-left:0;border-inline-start:1px solid var(--line);padding-inline-start:24px}
.app-shot{display:block;min-width:0}
.app-shot img{display:block;width:100%;height:auto}
.comparison-frame{direction:ltr}
.comparison-frame>.app-shot{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.comparison-frame>.app-shot img{width:100%;height:100%;object-fit:fill}
.comparison-frame>.comparison-classic{clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.client-preview{border:1px solid var(--line);background:var(--site-panel);border-radius:10px;overflow:hidden}
html[data-site-theme="dark"] body{background:var(--site-paper);color:var(--ink)}
html[data-site-theme="dark"] :is(.home-header,.home-header--refined,.home-header nav,.language-picker__options,.skip-link,.home-footer,.site-footer,.site-header,.menu-block,.comparison-divider>span,.comparison-frame){background:var(--site-panel);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] :is(.language-picker>summary:hover,.language-picker[open]>summary,.language-picker__options a:hover,.language-picker__options a[aria-current],.button-outline:hover,.feature-index button:hover){background:var(--site-tint);border-color:var(--line);color:var(--purple)}
html[data-site-theme="dark"] :is(.button:not(.button-outline),.btn.is-blue,.document-button){background:var(--purple);color:var(--site-on-action);border-color:var(--purple)}
html[data-site-theme="dark"] :is(.button:not(.button-outline):hover,.document-button:hover){background:#d3bdff;color:var(--site-on-action)}
html[data-site-theme="dark"] :is(.cream,.home-footer,.site-footer,.final-cta){background:var(--site-warm);color:var(--ink)}
html[data-site-theme="dark"] :is(.campaign-preview,.assistant-preview,.assistant-draft,.mini-email,.template-document,.feature-display,.features-product,.feature-index,.flow-node,.gallery-dialog,.gallery-lightbox,.pricing-status,.delivery-preview,.analytics-preview,.download-card,.contact-form,.trial-panel,.legal-content,.docs-sidebar,.docs-toc,.docs-card){background-color:var(--site-panel);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] :is(.assistant-request,.assistant-response,.editor-toolbar span:last-child,.draft-heading>span,.mini-email h3,.template-date,.home-preloader,.home-preloader__inner,#preloader){background-color:var(--site-tint);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] :is(input:not([type=range]),textarea,select){background-color:var(--site-paper);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] :is(.fine-print,.hero-description small,.section-description,.gallery-caption,.newsletter-form small){color:var(--muted)}
html[data-site-theme="dark"] :is(.feature-lines,.feature-lines li,.summary-table td,.summary-table th,.pricing-feature-table th,.pricing-feature-table td){border-color:var(--line)}
html[data-site-theme="dark"] :is(.pricing-plan--lifetime,.summary-table .is-lifetime){background:var(--site-tint);color:var(--ink)}
html[data-site-theme="dark"] :is(.inbox-hover-label,.scroll-to-top,.footer-more>div,.gallery-expand,.gallery-icon-button,.gallery-filters button,.aero-site-preloader,.resources>div){background:var(--site-panel);color:var(--purple);border-color:var(--line)}
html[data-site-theme="dark"] :is(.gallery-filters button:hover,.gallery-filters button[aria-pressed=true],.gallery-icon-button:hover,.gallery-lightbox [aria-pressed=true],.feature-rail>a:hover,.feature-rail>a[aria-current=true],.pricing-editorial-feature-table thead th,.pricing-editorial-feature-table tbody tr:hover){background:var(--site-tint);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] :is(.gallery-image-viewport,.gallery-featured>a,.assistant-title,.editor-toolbar){background:var(--site-tint);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] :is(.pricing-editorial-status,.am-legal-mobile select){background:var(--site-tint);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] .pricing-editorial-plan--lifetime{background:#382858;border-color:#8061ab;color:#fff}
html[data-site-theme="dark"] .pricing-editorial-plan--lifetime .pricing-editorial-checkout .button{background:#efe5ff;color:#221339;border-color:#efe5ff}
html[data-site-theme="dark"] .pricing-editorial-plan--lifetime .pricing-editorial-checkout .button:hover:not(:disabled){background:#fff;border-color:#fff;color:#221339}
html[data-site-theme="dark"] :is(.am-faq-page,.am-contact-page,.am-download-page,.am-trial-page,.am-legal-page){color:var(--ink)}
html[data-site-theme="dark"] .mail-doodle__art>img{filter:brightness(0) invert(.82) sepia(.19) saturate(1.7) hue-rotate(212deg);opacity:.74}
html[data-site-theme="dark"] :is(.page-wrapper.bg-white,.am-license-page,.status-page-shell){background:var(--site-paper);color:var(--ink)}
html[data-site-theme="dark"] :is(.am-license-card,.am-license-content,.am-license-details,.am-license-key-panel,.am-license-key-button){background:var(--site-panel);color:var(--ink);border-color:var(--line)}
html[data-site-theme="dark"] :is(.am-license-state h1,.am-license-details strong,.am-license-key-button code,.am-license-key-heading span){color:var(--ink)}
html[data-site-theme="dark"] :is(.am-license-state>p,.am-license-key-heading small,.am-license-key-meta){color:var(--muted)}
html[data-site-theme="dark"]{--status-page-bg:var(--site-paper);--status-page-ink:var(--ink);--status-page-primary:var(--purple)}

/* Home and FAQ share one dark disclosure surface, including the open answer. */
html[data-site-theme="dark"] :is(.faq-list,.am-faq-list){
  --question-inset:clamp(16px,2vw,26px);
  border:1px solid var(--line);border-radius:12px;background:var(--site-panel);overflow:clip;
}
html[data-site-theme="dark"] .am-faq-list:not(:has(>.am-faq-item:not([hidden]))){border:0}
html[data-site-theme="dark"] :is(.faq-list>details,.am-faq-list>.am-faq-item){padding:0;border:0}
html[data-site-theme="dark"] :is(.faq-list>details+details,.am-faq-item:not([hidden])~.am-faq-item:not([hidden])){border-block-start:1px solid var(--line)}
html[data-site-theme="dark"] :is(.faq-list>details,.am-faq-item)[open]{background:var(--site-tint)}
html[data-site-theme="dark"] :is(.faq-list details,.am-faq-item)>summary{padding:18px var(--question-inset);border-radius:8px}
html[data-site-theme="dark"] :is(.faq-list details,.am-faq-item)>summary:hover{color:var(--purple)}
html[data-site-theme="dark"] :is(.faq-list details,.am-faq-item)>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
html[data-site-theme="dark"] :is(.faq-list details>p,.am-faq-answer){
  box-sizing:border-box;padding:0 var(--question-inset) 20px;color:var(--muted);background:transparent;
}
html[data-site-theme="dark"] .am-faq-topics a{border:1px solid transparent;border-inline-start-width:3px;border-radius:6px}
html[data-site-theme="dark"] .am-faq-topics a:hover{background:var(--site-tint);color:var(--ink)}
html[data-site-theme="dark"] .am-faq-topics a[aria-current=true]{
  background:var(--site-selected);border-color:var(--line);border-inline-start-color:var(--accent);color:var(--ink);
}
html[data-site-theme="dark"] :is(.am-faq-topics a,#faq-topic,.am-faq-clear):focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
html[data-site-theme="dark"] :is(.am-faq-search input[type=search],#faq-topic){
  background:var(--site-panel);border-color:var(--line);color:var(--ink);
}
html[data-site-theme="dark"] .am-faq-search input[type=search]:focus{border-color:var(--accent)}
html[data-site-theme="dark"] :is(.am-faq-clear:hover,.am-faq-answer pre,.am-faq-answer code){background:var(--site-selected)}

/* A Gallery card is one frame. Match the 1440×900 previews without cropping. */
html[data-site-theme="dark"] .editorial-gallery .gallery-grid{align-items:stretch}
html[data-site-theme="dark"] .editorial-gallery .gallery-card{
  display:flex;min-width:0;border:1px solid var(--line);border-radius:12px;
  background:var(--site-panel);color:var(--ink);overflow:clip;transition:border-color .2s,background-color .2s;
}
html[data-site-theme="dark"] .editorial-gallery .gallery-card:is(:hover,:focus-within){background:var(--site-tint);border-color:var(--accent)}
html[data-site-theme="dark"] .editorial-gallery .gallery-card>a{
  display:flex;flex-direction:column;width:100%;height:auto;padding:0;border:0;border-radius:inherit;
}
html[data-site-theme="dark"] .editorial-gallery .gallery-card-media{
  aspect-ratio:8/5;padding:0;border:0;border-block-end:1px solid var(--line);border-radius:0;background:var(--site-paper);
}
html[data-site-theme="dark"] .editorial-gallery .gallery-card-media>.app-shot{width:100%;height:100%}
html[data-site-theme="dark"] .editorial-gallery .gallery-card-media img{width:100%;height:100%;object-fit:contain;transform:none}
html[data-site-theme="dark"] .editorial-gallery .gallery-card-copy{flex:1;padding:18px clamp(16px,2vw,24px) 22px}
html[data-site-theme="dark"] .editorial-gallery .gallery-card .gallery-expand{
  inset-inline: auto 12px;inset-block-end:12px;gap:0;padding:8px;font-size:0;
}
html[data-site-theme="dark"] .editorial-gallery .gallery-card .gallery-expand .icon{width:16px;height:16px}
html[data-site-theme="dark"] .editorial-gallery .gallery-featured img{border-color:var(--line)}
html[data-site-theme="dark"] .editorial-gallery :is(.gallery-card>a,.gallery-featured>a):focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
html[data-site-theme="dark"] .editorial-gallery .gallery-search{background:var(--site-panel);border-color:var(--line)}
html[data-site-theme="dark"] .editorial-gallery .gallery-search input[type=search]{background:transparent}
html[data-site-theme="dark"] .editorial-gallery .gallery-filters button[aria-pressed=true]{
  background:var(--site-selected);border-color:var(--accent);color:var(--ink);
}
@media(prefers-reduced-motion:reduce){
  html[data-site-theme="dark"] .editorial-gallery .gallery-card{transition:none}
}

html[dir="rtl"] .language-picker__options{right:auto;left:0}
html[dir="rtl"] .home-header--refined>.brand{margin-right:0;margin-inline-end:auto}
.home-header--refined .site-theme-toggle{order:0}
@media(max-width:1280px){.home-header--refined .site-theme-toggle{order:2}}
@media(max-width:440px){.home-header--refined .site-theme-toggle{width:34px;height:34px}.home-header--refined .site-theme-toggle .icon{width:16px;height:16px}}
@media(max-width:800px){.site-theme-toggle{width:38px;height:38px}.home-header--refined{column-gap:7px}}
@media(max-width:640px){
  body.editorial-home :is(.hero-intro,.features-intro,.gallery-intro,.split-layout,.pricing-layout){grid-template-columns:minmax(0,1fr)}
  body.editorial-home .template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.editorial-home .hero-intro h1{font-size:clamp(40px,10vw,60px)}
  body.editorial-home .summary-table{min-width:0}
}
@media(min-width:1281px) and (max-width:1590px){
  html[lang="ta"] .home-header--refined{gap:10px;padding-inline:22px}
  html[lang="ta"] .home-header--refined>.brand{width:145px}
  html[lang="ta"] .home-header--refined nav{gap:12px}
  html[lang="ta"] .home-header--refined nav>a{font-size:12px}
  html[lang="ta"] .home-header--refined :is(.nav-download,.nav-trial){padding-inline:10px}
}
