/* Public website */
:root { --site-w: 1280px; --gut: clamp(16px, 4vw, 48px); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: var(--site-w); margin: 0 auto; padding: 16px var(--gut); flex-wrap: wrap; }
.nav-links { display: flex; gap: .4rem 1rem; align-items: center; flex-wrap: wrap; }
.nav-links > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4rem .2rem; }
.nav-links > a:not(.btn):hover { color: var(--jungle-2); text-decoration: underline; }
.hero { max-width: var(--site-w); margin: 0 auto; padding: clamp(20px, 4vw, 56px) var(--gut) clamp(40px, 6vw, 88px); display: grid; gap: 2.2rem; grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero p.lead { font-size: 1.2rem; max-width: 46ch; }
.demo { max-width: 400px; width: 100%; justify-self: center; }
.demo .tap { margin-top: 1rem; display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.demo .cap { color: var(--muted); font-size: .9rem; }
.site-foot { max-width: var(--site-w); margin: 0 auto; padding: 32px var(--gut) 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid nav, .foot-grid > div:last-child { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.copy-line { margin-top: 1.6rem; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { font-weight: 700; color: var(--jungle-2); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: .6rem; }
.trust { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 1.2rem 0 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.trust li::before { content: "✓ "; color: var(--jungle-2); }
.demo-wrap { justify-self: center; width: 100%; max-width: 400px; position: relative; }
.demo-wrap::before { content: ""; position: absolute; inset: -18px -14px auto auto; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--mango) 30%, transparent); z-index: -1; }
.band { background: var(--brand-primary); color: #fff; }
.band .in { max-width: var(--site-w); margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gut); }
.band h2 { color: #fff; }
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mango); color: var(--mango-ink); font: 800 1.2rem var(--display); margin-bottom: .7rem; }
.steps b { display: block; font: 700 1.15rem var(--display); margin-bottom: .25rem; }
.section { max-width: var(--site-w); margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gut) 8px; }
.section.narrow { max-width: 820px; }
.section > h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 1.2rem; }
.feat { display: grid; gap: 1.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feat-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.feat-ic { font-size: 1.6rem; display: block; margin-bottom: .4rem; }
.feat-item h3 { margin-bottom: .3rem; }
.feat-item p { color: var(--muted); margin: 0; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare th { font: 700 1rem var(--display); }
table.compare td:first-child { color: var(--muted); }
table.compare td:last-child { font-weight: 600; }
table.compare td:last-child span { color: var(--jungle-2); }
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.quote blockquote { margin: 0 0 .6rem; font-size: 1.05rem; }
.price-card { text-align: center; max-width: 560px; margin: 0 auto; }
.price-card .price { margin: .4rem 0 .6rem; }
.price-card .price b { font: 800 clamp(2.4rem, 7vw, 3.4rem) var(--display); }
.price-card .price span { color: var(--muted); font-weight: 600; }
.big-card { text-align: left; padding: 1.6rem; }
.big-card .price, .big-card .eyebrow { text-align: left; }
.h3 { font-size: 1.15rem; }
.checks { list-style: none; padding: 0; margin: .4rem 0 1.4rem; display: grid; gap: .45rem; }
.checks li::before { content: "✓"; color: var(--jungle-2); font-weight: 800; margin-right: .55rem; }
.plain-list { padding-left: 1.1rem; display: grid; gap: .55rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: .8rem 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.faq details p { color: var(--muted); }
.cta-band { margin-top: 56px; background: var(--brand-primary); color: #fff; }
.cta-band .in { max-width: var(--site-w); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gut); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.cta-band p { max-width: 60ch; opacity: .95; }
.btn.on-dark { color: #fff; border-color: #fff; }
.btn.on-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.wa { background: #1c7a43; border-color: #1c7a43; color: #fff; }
.legal h2 { margin-top: 1.8rem; font-size: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
.contact-grid aside .panel + .panel { margin-top: 1rem; }
.ok-msg { color: var(--ok); font-weight: 700; margin: 1rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-box:empty { display: none; }
.captcha-box { margin: 0 0 1rem; }
.big-404 { font: 800 6rem var(--display); color: var(--mango); margin: 0; line-height: 1; }
.center-row { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .nav-links > a:not(.btn) { padding: .3rem 0; } }
@media (max-width: 420px) { .nav-links { gap: .4rem .7rem; } .nav-links .btn { min-height: 40px; padding: .4rem .8rem; font-size: .95rem; } .hero { padding-top: 12px; } }

/* Pricing: three plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 1.25rem 0; }
.plan-card { max-width: none; text-align: left; display: flex; flex-direction: column; gap: .4rem; }
.plan-card .btn { margin-top: auto; }

/* Home v2: two products, demo tabs, business types, calculator */
.two { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.product h3 { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .35rem; }
.checks li::before { content: "✓ "; color: var(--jungle-2); font-weight: 800; }
.demo-tabs { display: flex; gap: .5rem; margin-bottom: .8rem; }
.demo-tabs [aria-selected="true"] { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.demo[hidden] { display: none; }
.demo-3d .viewer-box { min-height: 280px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.demo-3d model-viewer { width: 100%; border-radius: var(--radius); }
.demo-3d .tap { flex-wrap: wrap; }
.types { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.type-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .15rem; }
.type-card > span { font-size: 1.6rem; }
.type-card small { color: var(--muted); }
.roi .row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.roi-out { font-weight: 600; margin: 1rem 0 0; }

/* Social links of the platform (footer, contact) */
.social-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; }
.social-link:hover span { text-decoration: underline; }
.social-link svg { flex: none; }
.foot-grid .social-link { min-height: 32px; }

/* ───────── Sales site v3: motion, new sections, article pages ───────── */
/* sticky translucent navigation + scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--mango); transform-origin: left; transform: scaleX(0); pointer-events: none; }
header.nav { position: sticky; top: 0; z-index: 50; max-width: none; padding: 10px max(var(--gut), calc((100% - var(--site-w)) / 2 + var(--gut))); background: color-mix(in srgb, var(--mist) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.theme-btn.icon { min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.theme-btn.icon:hover { border-color: var(--jungle-2); }

/* reveal on scroll (only when JS adds html.motion: without it everything is visible) */
html.motion .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.motion .reveal.in { opacity: 1; transform: none; }
html.motion .steps .reveal:nth-child(2), html.motion .plans .reveal:nth-child(2), html.motion .types .reveal:nth-child(3n+2) { transition-delay: .09s; }
html.motion .steps .reveal:nth-child(3), html.motion .plans .reveal:nth-child(3), html.motion .types .reveal:nth-child(3n) { transition-delay: .18s; }

/* hero: floating chips (parallax is applied by JS with transform) */
.hero { overflow-x: clip; }
.floaty { position: absolute; z-index: 2; display: flex; align-items: center; gap: .45rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: .5rem .8rem; font-weight: 700; font-size: .85rem; box-shadow: 0 10px 24px rgba(0,0,0,.12); will-change: transform; }
.floaty.f1 { top: -6px; right: -8px; }
.floaty.f2 { bottom: 38%; left: -30px; width: 64px; height: 64px; padding: 6px; }
.floaty.f3 { bottom: -46px; left: 24px; }
.floaty .ill { width: 100%; height: 100%; }

/* illustrations */
.ill { width: 100%; height: auto; display: block; }
.i-ink { fill: var(--ink); } .i-paper { fill: var(--paper); } .i-mango { fill: var(--mango); } .i-coral { fill: var(--coral); } .i-jungle { fill: var(--jungle); } .i-line { fill: var(--line); }
.i-stroke-ink { stroke: var(--ink); } .i-stroke-mango { stroke: var(--mango); } .i-stroke-steam, .i-steam { stroke: var(--line); }
.ill-wrap { display: block; width: 84px; margin-bottom: .6rem; }
.steps.how li::before { display: none; }
.steps.how li { counter-increment: none; }
.band .i-ink { fill: #12201a; } .band .i-paper { fill: #fff; }

/* card kinds switcher */
.kinds { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; }
.kind-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kind-tabs [aria-selected="true"] { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.kind-body { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 360px) 1fr; align-items: center; }
.kind-card { max-width: 360px; width: 100%; justify-self: center; }
@media (max-width: 760px) { .kind-body { grid-template-columns: 1fr; } }

/* menu AR + formats */
.ar-box .viewer-box { min-height: 280px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); display: grid; place-items: center; padding: 1rem; }
.ar-box .viewer-box .ill { max-width: 200px; }
.ar-box model-viewer { width: 100%; height: 300px; border-radius: var(--radius); }
.ar-box .tap { margin: .8rem 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.formats { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.fmt { margin: 0; text-align: center; font-weight: 700; font-size: .9rem; }
.mini { width: 104px; height: 190px; border: 5px solid var(--ink); border-radius: 18px; background: var(--paper); padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; margin-bottom: .4rem; }
.mini i { display: block; border-radius: 6px; background: color-mix(in srgb, var(--mango) 55%, var(--paper)); }
.mini-classic i { height: 36px; background: linear-gradient(90deg, color-mix(in srgb, var(--mango) 70%, var(--paper)) 0 34%, var(--line) 34% 100%); }
.mini-feed i { height: 74px; }
.mini-list i { height: 12px; background: var(--line); }
.mini-list i:nth-child(odd) { width: 80%; }

/* lock screen mockup */
.lockscreen { justify-self: center; width: min(300px, 100%); border-radius: 30px; padding: 1.4rem 1rem 1rem; color: #fff; background: linear-gradient(165deg, #1b3328, #0b1612); border: 6px solid var(--ink); display: grid; gap: .6rem; }
.lockscreen .time { font: 800 3rem var(--display); text-align: center; margin: 0 0 .4rem; }
.lockscreen .notif { background: rgba(255,255,255,.14); border-radius: 14px; padding: .55rem .75rem; display: grid; gap: .1rem; font-size: .88rem; }
.lockscreen .notif span { opacity: .9; }
.lockscreen .small { text-align: center; opacity: .7; margin: .2rem 0 0; }
.checks.big { gap: .7rem; font-size: 1.05rem; }

/* real screenshots in device frames */
.devices { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-end; justify-content: center; margin-top: 1rem; }
.dev { margin: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.dev img { display: block; width: 100%; height: auto; }
.dev figcaption { padding: .5rem .8rem; font-size: .85rem; color: var(--muted); font-weight: 600; text-align: center; }
.dev.desktop { width: min(640px, 100%); border-radius: 14px; overflow: hidden; }
.bar-dots { display: flex; gap: 6px; padding: 9px 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.bar-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dev.phone { width: 200px; border: 6px solid var(--ink); border-radius: 28px; overflow: hidden; }

/* price toggle */
.cycle-toggle { display: inline-flex; gap: .4rem; margin: .4rem 0 1rem; flex-wrap: wrap; }
.cycle-toggle [aria-pressed="true"] { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.count-up { font-variant-numeric: tabular-nums; }
.block { width: 100%; }

/* article / blog / sector pages */
.article h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.article h2 { font-size: 1.4rem; margin-top: 2rem; }
.article p, .article li { max-width: 68ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.post-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.post-list h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.post-list a { color: var(--ink); text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.example { margin: 1.4rem 0; border-style: dashed; }
.related { margin-bottom: 1rem; }
.photo-slot { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.photo-slot img { display: block; width: 100%; height: auto; }

/* page transitions (browsers that support them; off for reduced motion) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
@media (prefers-reduced-motion: reduce) { html.motion .reveal { opacity: 1; transform: none; transition: none; } .floaty { transform: none !important; } .progress { display: none; } }
@media (max-width: 800px) { .floaty.f2 { display: none; } .floaty.f1 { right: 4px; top: -16px; } .floaty.f3 { left: 8px; bottom: -42px; } .demo-wrap { margin-bottom: 36px; } }

.help-search { margin: 1rem 0; } .help-results { margin-bottom: 1rem; } .post-list h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.cycle-toggle { display: inline-flex; gap: .4rem; margin: .4rem 0 1rem; flex-wrap: wrap; }

/* ───────── Responsive layout (mobile-first refinements) ───────── */
html, body { overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; }
.site-foot, .nav, header.nav { padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
header.nav { padding-left: max(var(--gut), calc((100% - var(--site-w)) / 2 + var(--gut)), env(safe-area-inset-left)); padding-right: max(var(--gut), calc((100% - var(--site-w)) / 2 + var(--gut)), env(safe-area-inset-right)); }
.site-foot { padding-bottom: max(40px, calc(24px + env(safe-area-inset-bottom))); }
.btn, .nav-links > a, .theme-btn { min-height: 44px; }
.nav-links > a:not(.btn) { display: inline-flex; align-items: center; }
/* wide pages: prices, blog index, contact use the whole container; only long text stays short */
.section.wide { max-width: var(--site-w); }
.section.wide > .lead, .section.wide > .muted:not(.small), .section.wide > h1 { max-width: 70ch; }
.post-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-list > li { margin: 0; }
/* pricing: 1 column → 2 (tablet) → 3 equal columns in ONE row from 1024px */
.plans { grid-template-columns: 1fr; align-items: stretch; grid-auto-rows: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plans > .plan-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } .plans > .plan-card:last-child:nth-child(odd) { grid-column: auto; } }
.plan-card { height: 100%; }
.plans > .plan-card:nth-child(3) { border-color: var(--jungle-2); box-shadow: 0 0 0 2px var(--jungle-2), 0 14px 34px -18px color-mix(in srgb, var(--jungle-2) 60%, transparent); position: relative; }
.plan-card .price b { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.cycle-toggle { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.contact-grid { grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
/* footer: 1 → 2 → 4 columns */
.foot-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
/* hero and grids breathe on big screens */
.hero { grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; } }
@media (min-width: 1280px) { .hero h1 { max-width: 18ch; } }
.hero h1, .section h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); line-height: 1.08; }
.section h2, .band h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
@media (min-width: 1024px) { .feat { grid-template-columns: repeat(3, 1fr); } .steps { grid-template-columns: repeat(4, 1fr); } .quotes { grid-template-columns: repeat(3, 1fr); } }
/* mobile / small tablet navigation: hamburger */
.nav-toggle { display: none; min-width: 44px; min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.nav-toggle:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
@media (max-width: 900px) {
  header.nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .2rem; padding: .6rem 0 .4rem; }
  .js .nav-links.open { display: flex; }
  .js .nav-links > a:not(.btn) { padding: .7rem .4rem; border-bottom: 1px solid var(--line); }
  .js .nav-links .btn { width: 100%; justify-content: center; }
  .js .nav-links .theme-btn { align-self: flex-start; }
}
@media (min-width: 1920px) { :root { --site-w: 1360px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.plans > .plan-card, .plans > .plan-card + .plan-card { margin: 0; }
.post-list > li, .post-list > li + li { margin: 0; }
.post-list h2 { font-size: clamp(1.1rem, .95rem + .5vw, 1.35rem); line-height: 1.25; }
.section h2, .band h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); }
.section.narrow h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.8rem); }
.article .post-list h2 { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); margin: 0 0 .3rem; }
.article .post-list > li { margin: 0; max-width: none; }
.article .post-list p { max-width: none; }

/* ───────── Hero demo: the floating chips never cover other text ─────────
 * Below 1100px the chips are part of the normal flow (above / below the card, with their own space). From 1100px they float OUTSIDE the card
 * and the tab buttons, with reserved room, so no text is ever covered. */
.demo-wrap { display: flex; flex-direction: column; }
.floaty { position: static; transform: none !important; align-self: flex-start; margin: 0; max-width: 100%; }
.floaty.f1 { order: -2; align-self: flex-end; margin: 0 0 .75rem; }
.floaty.f2 { display: none; }
.floaty.f3 { order: 9; margin: 1.1rem 0 0; }
.demo-tabs { order: -1; }
@media (min-width: 1100px) {
  .demo-wrap { display: block; margin-bottom: 64px; }
  .floaty { position: absolute; }
  .floaty.f1 { top: -30px; right: -12px; bottom: auto; left: auto; margin: 0; transform: none !important; }
  .floaty.f2 { display: flex; left: -84px; top: 96px; bottom: auto; right: auto; }
  .floaty.f3 { left: 16px; bottom: -58px; top: auto; right: auto; margin: 0; }
  .hero { padding-top: clamp(40px, 5vw, 64px); }
}
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) { .floaty.f1, .floaty.f2 { transform: none !important; } }
.tuan-hello { padding-top: .4rem; overflow: visible; }
.tuan-hello .tuan-static, .tuan-hello img { overflow: visible; }

/* ───────── Hero "Plato en 3D": the box is never empty. The poster shows at once, the looping video plays over it, and the 3D viewer fades in when ready ───────── */
.demo-3d .viewer-box { position: relative; display: block; padding: 0; min-height: 0; aspect-ratio: 720 / 504; overflow: hidden; border-radius: var(--radius); background: #0d1f19; }
.demo-3d .demo-video, .demo-3d .demo-mv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: inherit; }
.demo-3d .demo-video { object-fit: cover; background: #0d1f19 center / cover no-repeat; transition: opacity .45s ease; }
.demo-3d .demo-video.fade-out { opacity: 0; }
.demo-3d .demo-mv { opacity: 0; transition: opacity .45s ease; --poster-color: transparent; background: transparent; }
.demo-3d .demo-mv.ready { opacity: 1; }
.demo-loading { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .55rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-weight: 700; font-size: .9rem; z-index: 2; }
.demo-loading[hidden] { display: none; }
.demo-loading .spin { width: 1.1rem; height: 1.1rem; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: demo-spin .8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-loading .spin { animation: none; border-top-color: rgba(255,255,255,.35); } .demo-3d .demo-video, .demo-3d .demo-mv { transition: none; } }
