/* NexaTools appearance tokens. Light mode retains the original palette. */
:root{color-scheme:light;--page:#f8faf9;--surface:#fff;--surface-raised:#eff7f2;--action:#176b59;--action-text:#fff}
:root[data-theme="dark"]{color-scheme:dark;--page:#0b1412;--surface:#14251f;--surface-raised:#1b3329;--ink:#e6f2eb;--green:#91ddbd;--mint:#bde8d7;--pale:#12291f;--muted:#a9bcb2;--line:#2e483c;--action:#72d6a8;--action-text:#09231a}
html,body{background-color:var(--page)}
.art-tile{background-color:var(--surface);background-image:linear-gradient(145deg,#ffffff08,#ffffff00)}

/* Compact native controls keep every header action within reach. */
.nav-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-inline-start:auto}
.nav-social-menu{display:none}
.theme-toggle{display:inline-flex;position:relative;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);color:var(--green);transition:background-color .2s,border-color .2s}
.theme-toggle:hover{background:var(--pale);border-color:var(--green)}
.theme-toggle .theme-icon{position:absolute;inset-inline-start:50%;top:50%;width:21px;height:21px;transition:opacity .22s ease,transform .22s ease}
.theme-icon-moon{opacity:1;transform:translate(-50%,-50%) rotate(0) scale(1)}
.theme-icon-sun{opacity:0;transform:translate(-50%,-50%) rotate(-70deg) scale(.6)}
[data-theme="dark"] .theme-icon-moon{opacity:0;transform:translate(-50%,-50%) rotate(70deg) scale(.6)}
[data-theme="dark"] .theme-icon-sun{opacity:1;transform:translate(-50%,-50%) rotate(0) scale(1)}
/* Icon positioning is physical so the sun/moon remain centered in RTL. */
.theme-toggle .theme-icon{inset-inline-start:auto;left:50%}

/* Deliberate surface hierarchy instead of inverting the entire page. */
[data-theme="dark"] .announcement{background:#09231a;color:#dff4e7}
[data-theme="dark"] .header{background:#0b1412ed;border-color:var(--line)}
[data-theme="dark"] .brand img{filter:grayscale(1) invert(1) contrast(2);mix-blend-mode:screen}
[data-theme="dark"] .nav-cta{border-color:var(--line)}
[data-theme="dark"] :is(.nav-cta,.nav-social,.theme-toggle):hover{background:var(--surface-raised)}
[data-theme="dark"] .hero-note{color:var(--muted)}
[data-theme="dark"] .highlight-word:after{background:#245940;opacity:.65}
[data-theme="dark"] .art-glow{background:radial-gradient(circle,#22634765 0,#173d2c35 53%,transparent 72%)}
[data-theme="dark"] .orbit{border-color:#2a4a3b}
[data-theme="dark"] .orbit-two{border-color:#31523f}
[data-theme="dark"] .art-caption{color:var(--muted)}
[data-theme="dark"] .art-tile{border-color:#385344;box-shadow:0 20px 46px #0005,inset 0 1px 0 #ffffff08}
[data-theme="dark"] .art-tile>span{color:#a4c0b1}
/* Transparent Hero logos sit directly on dark card surfaces. */
[data-theme="dark"] .tile-chatgpt .tile-logo img{background:transparent;border-radius:0;padding:10px;filter:invert(1)}
[data-theme="dark"] .tile-netflix .tile-logo img{background:transparent}
[data-theme="dark"] .art-chip{background:#192e27ed;border-color:var(--line);box-shadow:0 10px 26px #0003}
[data-theme="dark"] .art-spark{color:#83bf9d}
[data-theme="dark"] .art-dot{border-color:var(--page);box-shadow:0 0 0 6px #193a2b}
[data-theme="dark"] .offers-section{background:#0e1c16}
[data-theme="dark"] .product-card{background:var(--surface);border-color:var(--line);box-shadow:0 8px 26px #0002}
[data-theme="dark"] .product-card:hover{border-color:#5b9a78;box-shadow:0 18px 40px #0004}
[data-theme="dark"] .product-card-popular{border-color:#50c795;box-shadow:0 12px 32px #0003}
[data-theme="dark"] .product-card-popular:hover{border-color:#91ddbd}
[data-theme="dark"] .popular-badge{background:#1b3d2e;color:#9ee6c4}
[data-theme="dark"] .plan-badge{color:#b4d6c4}
[data-theme="dark"] .product-card h3 span{color:var(--muted)}
[data-theme="dark"] .product-logo{background:#f2f7f4;border-color:#dce8df}
[data-theme="dark"] .claude-logo{background:#fcf3ed;border-color:#f3e7df}
[data-theme="dark"] .duration-picker{background:#0c1b14}
[data-theme="dark"] .duration-picker span{color:#b2c8ba}
[data-theme="dark"] .duration-picker input:checked+span{background:#254b37;border-color:#579974;color:#e4f9ed;box-shadow:0 2px 6px #0002}
[data-theme="dark"] .product-details{border-color:var(--line);color:#c6d9ce}
[data-theme="dark"] :is(.primary,.order-button){background:var(--action);color:var(--action-text);box-shadow:0 8px 22px #0002}
[data-theme="dark"] :is(.primary,.order-button):hover{background:#93e2bd;color:var(--action-text)}
[data-theme="dark"] .text-link{background:var(--surface-raised);border-color:var(--line);color:var(--green)}
[data-theme="dark"] .text-link:hover{background:#244736}
[data-theme="dark"] .step-content{background:var(--surface);border-color:var(--line);box-shadow:0 4px 16px #0002}
[data-theme="dark"] .step-number{background:#214637;border-color:var(--page);color:#a4e7c6}
[data-theme="dark"] .step:not(:last-child)::before{background:var(--line)}
[data-theme="dark"] .why-panel{background-color:#102a23;border:1px solid #2b5142;background-image:radial-gradient(ellipse at 10% 85%,#28755955 0%,transparent 65%),radial-gradient(ellipse at 90% 10%,#176b5920 0%,transparent 60%)}
[data-theme="dark"] .button.light{background:#b8e7d1;color:#0e2a2b}
[data-theme="dark"] .button.light:hover{background:#d0f1e0}
[data-theme="dark"] .contact-section{background:#142d23;border-color:#315542}
[data-theme="dark"] .contact-section p{color:#b2cabb}
[data-theme="dark"] .floating-contact{background:#1c523b;border-color:#527b64;box-shadow:0 5px 22px #0006}
[data-theme="dark"] .skip-link{background:var(--surface);color:var(--ink)}
[data-theme="dark"] dialog{background:var(--surface);color:var(--ink);box-shadow:0 20px 80px #0009}
[data-theme="dark"] dialog::backdrop{background:#030b08bf}
[data-theme="dark"] .higgsfield-section{background:#10251b}
[data-theme="dark"] :is(.higgsfield-card,.higgsfield-seat){background:var(--surface)}
[data-theme="dark"] .higgsfield-card{box-shadow:0 8px 26px #0002}
[data-theme="dark"] .higgsfield-recommended{border-color:#72d6a8;box-shadow:0 12px 32px #0003}
[data-theme="dark"] .higgsfield-card:hover{box-shadow:0 18px 40px #0004}
[data-theme="dark"] .higgsfield-value{background:var(--action);color:var(--action-text)}
[data-theme="dark"] :focus-visible{outline-color:#91ddbd}
[data-theme="dark"] ::selection{background:#38674d;color:#fff}

/* Animate only while the visitor switches themes, never on initial load. */
html.theme-changing,html.theme-changing :is(body,.header,.nav,.art-tile,.art-chip,.product-card,.duration-picker,.duration-picker span,.step-content,.step-number,.why-panel,.contact-section,.higgsfield-section,.higgsfield-card,.higgsfield-credits,.netflix-section,.netflix-panel,.netflix-card,.netflix-delivery,.netflix-badge,.text-link,.button,.theme-toggle,dialog){transition-property:background-color,color,border-color,box-shadow;transition-duration:.24s;transition-timing-function:ease}
@media(max-width:1100px){
  .nav-shell{gap:16px}
  .menu-toggle{display:flex;order:0}
  .nav-cta{margin-inline-start:0}
  .nav{display:none;position:absolute;inset-block-start:100%;inset-inline:-24px;background:var(--surface);padding:15px 24px 23px;box-shadow:0 15px 24px #0002;border-bottom:1px solid var(--line);gap:3px;flex-direction:column;align-items:stretch}
  .nav.is-open{display:flex}
  .nav a{font-size:16px;padding-block:10px;min-height:44px}
  .nav a:after{display:none}
}
@media(max-width:780px){
  .nav-shell{gap:12px}
  .nav-shell>.brand{width:min(148px,calc(100vw - 242px));min-width:0;flex-shrink:1}
  .nav-actions{gap:6px}
  .nav{inset-inline:-18px}
  .nav-actions .nav-social{display:inline-flex}
  .nav .nav-social-menu{display:flex;align-items:center;gap:10px}
  .nav-social-menu img{width:22px;height:22px;object-fit:contain}
  .nav-actions .nav-cta{width:44px;min-width:44px;height:44px;padding:8px;gap:0}
  .nav-cta .nav-contact-label{display:none}
  .nav-cta img{width:24px;height:24px}
}
@media(max-width:370px){.nav-shell{gap:8px}.nav-shell>.brand{width:min(127px,calc(100vw - 230px))}}
@media(prefers-reduced-motion:reduce){.theme-toggle .theme-icon{transition:none}html.theme-changing,html.theme-changing :is(body,.header,.nav,.art-tile,.art-chip,.product-card,.duration-picker,.duration-picker span,.step-content,.step-number,.why-panel,.contact-section,.higgsfield-section,.higgsfield-card,.higgsfield-credits,.text-link,.button,.theme-toggle,dialog){transition:none}}
