/* Velmio. Midnight Aurora + Liquid Glass. Mobile first.
   Layout concept: one luminous ribbon runs behind a floating glass product
   panel; everything else stays dark, quiet and spacious. */
@font-face { font-family: "Sora"; src: url("../fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --bg: #101426;
  --bg-2: #1A1D35;
  --violet: #242044;
  --purple: #7861D8;
  --lavender: #BDA8FF;
  --ivory: #F8F6FF;
  --muted: #B8B4CC;
  --glass: rgba(248, 246, 255, .055);
  --glass-strong: rgba(36, 32, 68, .62);
  --glass-line: rgba(248, 246, 255, .14);
  --error: #FFB4C0;
  --fg-rgb: 248, 246, 255;
  --bg-rgb: 16, 20, 38;
  --panel-rgb: 26, 29, 53;
  --accent-rgb: 189, 168, 255;
  --tag-bg: rgba(36, 32, 68, .85);
  --lede: #D3D0E2;
  --shadow-c: rgba(5, 7, 20, .55);
  --logo-a: #F8F6FF;
  --logo-b: #BDA8FF;
  --logo-c: #7861D8;
  --shadow: 0 30px 70px rgba(5, 7, 20, .45);
  --head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 24px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F7F5FD;
  --bg-2: #EFEBFA;
  --violet: #E4DCF8;
  --purple: #6247C9;
  --lavender: #5A3FC4;
  --ivory: #1B1830;
  --muted: #57516E;
  --glass: rgba(27, 24, 48, .04);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-line: rgba(27, 24, 48, .13);
  --error: #B3261E;
  --shadow: 0 24px 60px rgba(60, 48, 130, .16);
  --fg-rgb: 27, 24, 48;
  --bg-rgb: 247, 245, 253;
  --panel-rgb: 255, 255, 255;
  --accent-rgb: 90, 63, 196;
  --tag-bg: rgba(255, 255, 255, .92);
  --lede: #3D3856;
  --shadow-c: rgba(60, 48, 130, .24);
  --logo-a: #1B1830;
  --logo-b: #6247C9;
  --logo-c: #8B75E2;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ivory); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.1rem + 6.4vw, 6.4rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 3.3rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.02em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.center { text-align: center; margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--ivory); color: var(--bg); }
.skip-link:focus { top: 12px; }

.wrap, .wrap-narrow { width: 100%; margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; }
.wrap-narrow { max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 1px solid transparent; border-radius: 999px; font: 600 1rem/1.2 var(--head); letter-spacing: -.015em; text-decoration: none; text-align: center; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lavender); color: var(--bg); }
.btn-primary:hover { background: var(--ivory); }
.btn-glass { background: var(--glass); color: var(--ivory); border-color: rgba(var(--fg-rgb), .3); }
.btn-glass:hover { background: rgba(var(--fg-rgb), .12); border-color: rgba(var(--fg-rgb), .55); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .88rem; white-space: nowrap; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* Theme switch */
.theme-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--glass); color: var(--ivory); cursor: pointer; transition: background-color .2s ease; }
.theme-toggle:hover { background: rgba(var(--fg-rgb), .12); }
.theme-toggle .i-moon, :root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.auth-toggle { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 12px); inset-inline-end: var(--gutter); }
.auth { position: relative; }
.aurora .aurora-light, :root[data-theme="light"] .aurora .aurora-dark { display: none; }
:root[data-theme="light"] .aurora .aurora-light { display: block; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory); }
.logo-mark { flex: none; }
.logo-word { font: 600 1.32rem/1 var(--head); letter-spacing: -.05em; }
.logo-word em { font-style: normal; color: var(--lavender); }

/* Navigation */
.nav-wrap { position: fixed; z-index: 40; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 12px); padding-inline: max(12px, env(safe-area-inset-left, 0px)); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; min-height: 60px; margin-inline: auto; padding: 7px 8px 7px 18px; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(var(--panel-rgb), .5); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); transition: background-color .25s ease; }
.is-stuck .nav, .is-open .nav { background: rgba(var(--panel-rgb), .82); }
.nav-brand { display: flex; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }
.nav-burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--glass); cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ivory); transition: transform .2s ease; }
.is-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.is-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--glass-line); border-radius: 26px; background: rgba(var(--panel-rgb), .97); box-shadow: var(--shadow); }
.is-open .nav-links { display: flex; }
.nav-links a:not(.btn) { padding: 12px 14px; border-radius: 12px; color: var(--ivory); text-decoration: none; }
.nav-links a:not(.btn):hover { background: var(--glass); }
.nav-menu-cta { margin-top: 8px; }
.nav-login { display: none; padding: 8px 12px; color: var(--ivory); font-size: .96rem; text-decoration: none; }
.nav-login:hover { color: var(--lavender); }

/* Aurora art */
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.aurora picture, .aurora img { display: block; width: 100%; height: 100%; }
.aurora img { object-fit: cover; object-position: center top; }
.motion .aurora img { animation: flowing 40s ease-in-out infinite alternate; }
@keyframes flowing { from { transform: scale(1.04) translate3d(-1%, .6%, 0); } to { transform: scale(1.1) translate3d(1.2%, -1%, 0); } }

/* Hero */
.hero { position: relative; z-index: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 100px); padding-bottom: 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 22% at 50% 15%, rgba(var(--bg-rgb), .5), rgba(var(--bg-rgb), 0) 100%), radial-gradient(46% 26% at 82% 5%, rgba(120, 97, 216, .3), rgba(120, 97, 216, 0) 100%), radial-gradient(40% 24% at 8% 26%, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), 0) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0), var(--bg)); }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.prints { display: none; }
.eyebrow { font: 600 .68rem/1.4 var(--head); letter-spacing: .16em; color: var(--lavender); }
.hero h1 { max-width: 9.5em; }
.grad { background: linear-gradient(100deg, var(--ivory) 0%, var(--lavender) 55%, var(--purple) 115%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-sub { max-width: 30em; font: 500 clamp(1.02rem, .92rem + .55vw, 1.4rem)/1.38 var(--head); letter-spacing: -.02em; text-wrap: balance; }
.lede { max-width: 40em; color: var(--muted); font-size: clamp(.95rem, .9rem + .3vw, 1.12rem); line-height: 1.5; }
.hero-sub, .hero .lede { text-shadow: 0 1px 16px rgba(var(--bg-rgb), .95), 0 0 4px rgba(var(--bg-rgb), .7); }
.hero .lede { color: var(--lede); }
.hero .btn-row { margin-top: 4px; }

/* Demo: the centerpiece */
#demo { margin-top: 44px; perspective: 2000px; }
.demo { display: grid; gap: 18px; padding: 18px; border: 1px solid var(--glass-line); border-radius: 28px; background: var(--glass-strong); box-shadow: var(--shadow), inset 0 1px 0 rgba(var(--fg-rgb), .12); -webkit-backdrop-filter: blur(24px) saturate(1.25); backdrop-filter: blur(24px) saturate(1.25); }
.demo-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font: 600 .95rem/1.3 var(--head); letter-spacing: -.02em; }
.tag { display: inline-block; padding: 3px 10px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 999px; background: var(--tag-bg); color: var(--lavender); font: 600 .68rem/1.4 var(--head); }
.demo-photos, .demo-video, .demo-flow { min-width: 0; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-thumb { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--violet); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .3s ease; }
.demo-thumb.is-on { outline-color: var(--lavender); }
.demo-video { justify-self: center; width: min(280px, 84%); }
.demo-note { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--glass-line); color: var(--muted); font-size: .86rem; line-height: 1.45; text-align: center; }

/* Transformation line */
.demo-flow { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.beam { position: relative; width: 2px; height: 56px; border-radius: 2px; background: linear-gradient(180deg, rgba(var(--accent-rgb), .15), var(--lavender)); }
.beam::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 9px; height: 9px; border-right: 2px solid var(--lavender); border-bottom: 2px solid var(--lavender); transform: translateX(-50%) rotate(45deg); }
.spark { position: absolute; inset: 0; opacity: 0; }
.spark::after { content: ""; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 8px 2px rgba(var(--accent-rgb), .75); }
.motion .is-playing .spark { animation: travel-y 1.9s linear infinite; animation-delay: calc(var(--i) * -.38s); }
@keyframes travel-y { 0% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
.ai-steps { display: flex; justify-content: center; gap: 6px; }
.ai-steps li { padding: 5px 12px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); font-size: .82rem; }
.demo-after { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 44px; text-align: center; }
.demo-after p { max-width: 22em; font: 500 clamp(1.2rem, 1rem + 1vw, 1.7rem)/1.28 var(--head); letter-spacing: -.03em; text-wrap: balance; }

/* Player */
.player { color: #F8F6FF; position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 20px; background: var(--violet); isolation: isolate; box-shadow: 0 22px 50px var(--shadow-c); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.player-slide.is-on { opacity: 1; z-index: 1; }
.player-slide img { width: 100%; height: 100%; object-fit: cover; }
.motion .player.is-playing .player-slide.is-on img { animation: kenburns 2.6s linear both; }
.motion .player.is-playing .player-slide:nth-of-type(even).is-on img { animation-name: kenburns-b; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1.5%); } }
@keyframes kenburns-b { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.03); } }
.player-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 14px 62px; background: linear-gradient(to top, rgba(16, 20, 38, .9), rgba(16, 20, 38, 0)); color: #F8F6FF; font: 600 clamp(.95rem, .88rem + .3vw, 1.15rem)/1.22 var(--head); letter-spacing: -.025em; }
.player-end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; background: radial-gradient(90% 70% at 50% 40%, #7861D8, #242044); text-align: center; }
.player-end strong { font: 600 1.3rem/1.15 var(--head); letter-spacing: -.03em; }
.player-end span { font-size: .84rem; opacity: .85; }
.player-ui { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(16, 20, 38, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.player-toggle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F8F6FF; color: #101426; cursor: pointer; transition: transform .15s ease; }
.player-toggle:hover { transform: scale(1.06); }
.player-mute { background: transparent; color: #F8F6FF; }
.player .i-pause { display: none; }
.player.is-playing .i-pause { display: block; }
.player.is-playing .i-play { display: none; }
.player-track { flex: 1; min-width: 0; height: 3px; border-radius: 3px; background: rgba(248, 246, 255, .28); overflow: hidden; }
.player-track i { display: block; height: 100%; background: var(--lavender); transform: scaleX(0); transform-origin: left; }
.player-time { font-size: .76rem; font-variant-numeric: tabular-nums; }

/* Sections */
.section { position: relative; padding-block: 88px; }
.section-alt { background: radial-gradient(70% 60% at 85% 10%, rgba(120, 97, 216, .2), rgba(120, 97, 216, 0) 100%), var(--bg-2); }
.section-sub { max-width: 34em; margin-top: 12px; color: var(--muted); font-size: 1.08rem; }

/* Steps: each node sits on the connector, cards hang below it */
.steps { display: grid; gap: 16px; margin-top: 44px; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: -16px; width: 2px; background: linear-gradient(180deg, var(--purple), var(--lavender)); opacity: .55; }
.step-node { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 50%; background: var(--violet); color: var(--lavender); }
.step-node .icon { width: 25px; height: 25px; }
.step-card { min-width: 0; padding: 24px; border: 1px solid var(--glass-line); border-radius: var(--radius); background: var(--bg-2); transition: transform .25s ease, border-color .25s ease; }
.step-num { font: 600 .72rem/1.3 var(--head); letter-spacing: .14em; color: var(--lavender); }
.step-card h3 { margin: 6px 0 8px; font-size: 1.22rem; }
.step-card p:last-child { color: var(--muted); }

/* Benefits */
.benefits-layout { display: grid; gap: 36px; }
.benefits-head p { margin-top: 16px; max-width: 30em; color: var(--muted); font-size: 1.08rem; }
.benefits-grid { display: grid; gap: 12px; }
.benefit { padding: 26px; border: 1px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .25s ease, border-color .25s ease; }
.benefit:hover { border-color: rgba(var(--accent-rgb), .45); }
.benefit .icon { margin-bottom: 14px; color: var(--lavender); }
.benefit p { margin-top: 6px; color: var(--muted); }

/* Gallery */
.gallery { display: flex; gap: 14px; margin-top: 40px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.sample { position: relative; flex: 0 0 min(66vw, 250px); min-width: 0; scroll-snap-align: center; transition: transform .25s ease; }
.sample h3 { margin-top: 12px; font-size: .98rem; }
.tag-float { position: absolute; z-index: 5; top: 12px; left: 12px; }
.gallery-foot { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 30px; text-align: center; }
.gallery-foot p { color: var(--muted); font-size: .95rem; }

/* Pricing */
.plans { display: grid; gap: 28px; max-width: 960px; margin: 52px auto 0; }
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 32px 26px; border: 1px solid var(--glass-line); border-radius: 28px; background: var(--glass); }
.plan h3 { font-size: 1.3rem; }
.plan-tag { margin-top: 4px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 22px; }
.plan-price span { font: 600 clamp(3rem, 2.4rem + 2vw, 3.9rem)/1 var(--head); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan-price small { color: var(--muted); font-size: 1rem; }
.plan ul { display: grid; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--glass-line); }
.plan li { position: relative; padding-left: 32px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--accent-rgb), .16); }
.plan li::after { content: ""; position: absolute; left: 6px; top: .46em; width: 8px; height: 4px; border-left: 2px solid var(--lavender); border-bottom: 2px solid var(--lavender); transform: rotate(-45deg); }
.plan-featured { border-color: transparent; background: linear-gradient(var(--violet), var(--violet)) padding-box, linear-gradient(150deg, var(--lavender), var(--purple) 55%, rgba(120, 97, 216, .25)) border-box; box-shadow: 0 30px 80px rgba(120, 97, 216, .28); }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 5px 14px; border-radius: 999px; background: var(--lavender); color: var(--bg); font: 600 .74rem/1.3 var(--head); white-space: nowrap; }

/* Sign up / log in */
.auth { display: grid; min-height: 100vh; min-height: 100dvh; }
.auth-main { display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) 28px; }
.auth-logo { align-self: flex-start; text-decoration: none; }
.auth-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-block: 32px; }
.auth-card { width: min(450px, 100%); padding: 30px 24px; border: 1px solid var(--glass-line); border-radius: 24px; background: var(--bg-2); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.035em; }
.auth-card h1:focus { outline: none; }
.auth-sub { margin-top: 6px; color: var(--muted); }
.plan-chip { display: inline-block; margin-top: 14px; padding: 5px 12px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 999px; color: var(--lavender); font-size: .86rem; }
.auth-google { margin-top: 22px; }
.auth-google[hidden] + form { margin-top: 22px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .86rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--glass-line); }
#signup-form { margin-top: 20px; }
.auth-google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; padding: 0 15px; border: 1px solid rgba(var(--fg-rgb), .24); border-radius: 13px; background: transparent; color: var(--ivory); font: 500 1rem/1.2 var(--body); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.auth-google-btn:hover:not(:disabled) { border-color: var(--lavender); background: var(--glass); }
.auth-google-btn:disabled { opacity: .6; cursor: default; }
.auth-g { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #fff; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-link { padding: 0; border: 0; background: none; color: var(--lavender); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.auth-pass { position: relative; }
.auth-pass input { padding-inline-end: 52px; }
.auth-eye { position: absolute; top: 5px; inset-inline-end: 5px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.auth-eye:hover { color: var(--ivory); }
.auth-eye .i-eye-off, .auth-eye[aria-pressed="true"] .i-eye { display: none; }
.auth-eye[aria-pressed="true"] .i-eye-off { display: block; }
.auth-note { margin-bottom: 12px; color: var(--lavender); font-size: .92rem; line-height: 1.4; }
#auth-submit { margin-top: 6px; }
#auth-submit:disabled { opacity: .7; cursor: default; }
.auth-busy, #auth-submit.is-busy [data-for] { display: none; }
#auth-submit.is-busy .auth-busy { display: inline; }
.auth-price { margin-top: 12px; color: var(--muted); font-size: .9rem; text-align: center; }
.auth-switch { margin-top: 14px; color: var(--muted); font-size: .95rem; text-align: center; }
.auth-fine { width: min(450px, 100%); color: var(--muted); font-size: .86rem; line-height: 1.45; text-align: center; }
.auth-side { position: relative; z-index: 0; display: flex; align-items: center; padding: 56px var(--gutter); overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--bg-rgb), .35), rgba(var(--bg-rgb), .6)); }
.auth-side-inner { width: min(480px, 100%); margin-inline: auto; }
.auth-prints { display: flex; margin-bottom: 26px; padding-left: 8px; }
.auth-prints img { width: 92px; height: 115px; object-fit: cover; margin-left: -18px; border: 3px solid rgba(248, 246, 255, .9); border-radius: 14px; box-shadow: 0 16px 34px var(--shadow-c); }
.auth-prints img:first-child { margin-left: 0; transform: rotate(-7deg); }
.auth-prints img:nth-child(2) { z-index: 1; transform: translateY(-6px); }
.auth-prints img:last-child { transform: rotate(7deg); }
.auth-side h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); }
.auth-points { display: grid; gap: 14px; margin-top: 22px; color: var(--muted); }
.auth-points strong { display: block; color: var(--ivory); font-weight: 600; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 15px; }
.field label { font: 500 .88rem/1.3 var(--head); letter-spacing: -.01em; }
.field textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(var(--fg-rgb), .24); border-radius: 13px; background: rgba(var(--bg-rgb), .6); color: var(--ivory); font: 400 16px/1.45 var(--body); resize: vertical; }
.field textarea:focus { border-color: var(--lavender); outline: 3px solid rgba(var(--accent-rgb), .28); outline-offset: 0; }
.field input, .field select { width: 100%; height: 54px; padding: 0 15px; border: 1px solid rgba(var(--fg-rgb), .24); border-radius: 13px; background: rgba(var(--bg-rgb), .6); color: var(--ivory); font: 400 16px var(--body); transition: border-color .15s ease; }
.field select option { background: var(--bg-2); color: var(--ivory); }
.field input:focus, .field select:focus { border-color: var(--lavender); outline: 3px solid rgba(var(--accent-rgb), .28); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error, .form-error { margin-top: 4px; color: var(--error); font-size: .9rem; line-height: 1.35; }
.form-error { margin-block: 12px 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* FAQ */
.faq-layout { display: grid; gap: 28px; align-items: start; }
.faq { min-width: 0; }
.faq details { border-bottom: 1px solid var(--glass-line); }
.faq details:first-child { border-top: 1px solid var(--glass-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 64px; padding-block: 14px; font: 500 1.02rem/1.35 var(--head); letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2px solid var(--lavender); border-bottom: 2px solid var(--lavender); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { max-width: 42em; padding-bottom: 22px; color: var(--muted); }

/* Final CTA */
.final { position: relative; z-index: 0; padding-block: 120px; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: -2px 0 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 26%, rgba(var(--bg-rgb), 0) 74%, var(--bg) 100%); }
.final-copy { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.final h2 { font-size: clamp(2.1rem, 1.35rem + 3.4vw, 4.6rem); max-width: 12em; }

/* Footer */
.footer { padding-block: 52px 28px; border-top: 1px solid var(--glass-line); background: var(--bg-2); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { margin-top: 12px; color: var(--muted); }
.footer-contact a { text-decoration: none; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.footer-links a, .footer-cookie { padding: 0; border: 0; background: none; color: var(--ivory); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.footer-links a:hover, .footer-cookie:hover { text-decoration: underline; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--glass-line); color: var(--muted); font-size: .9rem; }

/* Sticky mobile CTA and consent */
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px max(14px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--glass-line); background: rgba(var(--bg-rgb), .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sticky-cta .btn { min-height: 50px; }
.consent { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; max-width: 520px; padding: 18px; border: 1px solid var(--glass-line); border-radius: 20px; background: rgba(var(--panel-rgb), .96); box-shadow: var(--shadow); font-size: .95rem; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; }

/* Contact form */
.contact-card { margin-bottom: 8px; padding: 26px 20px; border: 1px solid var(--glass-line); border-radius: 24px; background: var(--bg-2); color: var(--ivory); }
.legal-body .contact-card h2 { margin-block: 0 18px; }
.contact-fine { margin-top: 12px; color: var(--muted); font-size: .86rem; text-align: center; }
#contact-done:focus { outline: none; }
#contact-done p { color: var(--muted); overflow-wrap: anywhere; }
.legal-body .contact-card #contact-done h2 { margin-bottom: 8px; }

/* Subpages */
.legal-head { padding-block: calc(env(safe-area-inset-top, 0px) + 128px) 56px; background: radial-gradient(70% 120% at 80% 0%, rgba(120, 97, 216, .4), rgba(120, 97, 216, 0) 100%), var(--bg-2); }
.legal-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem); }
.legal-head p { margin-top: 10px; color: var(--muted); }
.legal-body { padding-block: 44px 80px; color: var(--muted); }
.legal-body > p { margin-bottom: 14px; }
.legal-body h2 { margin-block: 30px 8px; color: var(--ivory); font-size: 1.22rem; letter-spacing: -.02em; }
.legal-body ul { margin-bottom: 14px; padding-left: 20px; list-style: disc; }
.legal-body li { margin-bottom: 6px; }
.legal-body a:not(.btn) { color: var(--lavender); overflow-wrap: anywhere; }
.legal-cta { margin-top: 28px; }
.not-found { display: grid; place-items: center; min-height: 80vh; padding-block: 140px 80px; background: radial-gradient(60% 60% at 50% 30%, rgba(120, 97, 216, .38), rgba(120, 97, 216, 0) 100%), var(--bg); text-align: center; }
.not-found p { margin-top: 12px; color: var(--muted); }

/* Non-Latin scripts: tight tracking breaks Arabic joins and crowds CJK */
html:lang(ar) *, html:lang(ja) *, html:lang(zh) * { letter-spacing: 0 !important; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { line-height: 1.32; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(zh) h1, html:lang(zh) h2 { line-height: 1.24; }

html:lang(ja) .hero h1, html:lang(zh) .hero h1 { word-break: keep-all; }

/* Right-to-left */
[dir="rtl"] .logo-word, [dir="rtl"] #email, [dir="rtl"] #contact-email { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .step:not(:last-child)::before { left: auto; right: 23px; }
[dir="rtl"] .plan li { padding-left: 0; padding-right: 32px; }
[dir="rtl"] .plan li::before { left: auto; right: 0; }
[dir="rtl"] .plan li::after { left: auto; right: 6px; }
[dir="rtl"] .tag-float { left: auto; right: 12px; }
[dir="rtl"] .player-ui { direction: ltr; }
[dir="rtl"] .footer-links a, [dir="rtl"] .footer-cookie { text-align: right; }
[dir="rtl"] .faq summary::after { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .field-error, [dir="rtl"] .form-error { text-align: right; }

/* Scroll reveal: only while motion is allowed and JS has started */
.motion .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.is-in { opacity: 1; transform: none; }

@keyframes bob { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(calc(var(--r) + 2deg)) translateY(-16px); } }

@media (hover: hover) {
  .motion .benefit.reveal.is-in:hover, .benefit:hover, .step-card:hover { transform: translateY(-4px); }
  .step-card:hover { border-color: rgba(var(--accent-rgb), .45); }
  .motion .sample.reveal.is-in:hover, .sample:hover { transform: translateY(-5px); }
}

@media (min-width: 600px) {
  .btn-row { flex-direction: row; justify-content: center; width: auto; }
  .auth-card { padding: 36px; }
  .contact-card { padding: 34px; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent { left: 20px; bottom: 20px; right: auto; }
}

@media (min-width: 768px) {
  .eyebrow { font-size: .78rem; }
  .sticky-cta { display: none; }
  .hero { padding-top: 136px; padding-bottom: 80px; }
  .hero-copy { gap: 18px; }
  #demo { margin-top: 56px; }

  .demo { grid-template-columns: minmax(0, 1fr) 96px 220px; padding: 24px; gap: 20px; align-items: stretch; }
  .demo-photos { display: flex; flex-direction: column; }
  .demo-grid { flex: 1; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .demo-thumb { aspect-ratio: auto; height: 100%; min-height: 0; }
  .demo-video { width: 100%; }
  .demo-flow { justify-content: center; gap: 16px; padding-top: 28px; }
  .beam { width: 100%; height: 2px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .15), var(--lavender)); }
  .beam::after { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
  .spark::after { left: 0; top: 50%; margin: -2.5px 0 0; }
  .motion .is-playing .spark { animation-name: travel-x; }
  @keyframes travel-x { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
  .ai-steps { flex-direction: column; align-items: stretch; text-align: center; }
  [dir="rtl"] .beam { transform: scaleX(-1); }

  .section { padding-block: 112px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .nav { padding-left: 24px; }
  .nav-links { position: static; display: flex; flex-direction: row; gap: 4px; padding: 0; border: 0; background: none; box-shadow: none; }
  .nav-links a:not(.btn) { padding: 8px 13px; font-size: .96rem; }
  .nav-menu-login { display: none; }
  .nav-menu-cta, .nav-burger { display: none; }
  .nav-cta { display: inline-flex; }

  .hero { padding-top: 150px; padding-bottom: 96px; }
  .demo { grid-template-columns: minmax(0, 1fr) 150px 300px; padding: 30px; gap: 30px; max-width: 1140px; margin-inline: auto; }
  .demo-grid { gap: 10px; }
  .motion .demo { transform: rotateX(9deg) scale(.965); transform-origin: 50% 100%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
  .motion .demo.is-settled { transform: none; }

  .steps { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
  .steps::before { content: ""; position: absolute; left: 16.67%; right: 16.67%; top: 28px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--lavender)); }
  .step { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; gap: 20px; justify-items: center; }
  .step:not(:last-child)::before { content: none; }
  .step-node { width: 58px; height: 58px; box-shadow: 0 0 0 8px var(--bg); }
  .step-node .icon { width: 30px; height: 30px; }
  .step-card { width: 100%; padding: 28px; text-align: center; }

  .benefits-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: center; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .plan { padding: 40px 36px; }
  .nav-login { display: inline-block; }
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-main { padding-inline: 48px; }
  .auth-side { padding-inline: 56px; }
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .faq-layout h2 { position: sticky; top: 110px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .prints { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .print { position: absolute; width: clamp(108px, 10.4vw, 158px); height: auto; padding: 6px; border-radius: 16px; background: rgba(248, 246, 255, .94); box-shadow: 0 26px 54px var(--shadow-c); transform: rotate(var(--r)); }
  .p1 { left: 4vw; top: 190px; --r: -9deg; }
  .p2 { left: 9vw; top: 440px; width: clamp(92px, 8.8vw, 132px); --r: 6deg; }
  .p3 { right: 4vw; top: 170px; --r: 8deg; }
  .p4 { right: 9vw; top: 430px; width: clamp(92px, 8.8vw, 132px); --r: -7deg; }
  .motion .print { animation: bob 8s ease-in-out infinite alternate; }
  .motion .p2 { animation-delay: -3s; }
  .motion .p3 { animation-delay: -5s; }
  .motion .p4 { animation-delay: -1.5s; }
}

@media (min-width: 1280px) {
  .gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .sample { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Chat assistant */
.chat-launch { position: fixed; z-index: 45; inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 56px; height: 56px; border: 0; border-radius: 999px; background: var(--lavender); color: var(--bg); font: 600 .95rem/1 var(--head); box-shadow: 0 14px 34px var(--shadow-c); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.chat-launch span { display: none; }
.chat-launch:hover { background: var(--ivory); }
.chat.is-open .chat-launch { display: none; }
/* Phones only, where the bar exists. Always raised, so the bubble never jumps when the bar appears. */
@media (max-width: 767px) { .sticky-cta ~ .chat .chat-launch { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }
.chat-panel { position: fixed; z-index: 55; top: calc(env(safe-area-inset-top, 0px) + 8px); right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); left: 8px; display: flex; flex-direction: column; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--glass-line); }
[dir="rtl"] .chat-head { padding: 8px 16px 8px 8px; }
.chat-head strong { font: 600 1rem/1.2 var(--head); letter-spacing: -.015em; }
.chat-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.chat-close:hover { background: var(--glass); color: var(--ivory); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.chat-log:focus-visible { outline: 2px solid var(--lavender); outline-offset: -2px; }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 15px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bot { align-self: flex-start; border-end-start-radius: 5px; background: var(--violet); color: var(--ivory); }
.chat-user { align-self: flex-end; border-end-end-radius: 5px; background: var(--lavender); color: var(--bg); }
.chat-typing { display: inline-flex; gap: 5px; padding-block: 14px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.motion .chat-typing i { animation: chat-dot 1.1s ease-in-out infinite; }
.motion .chat-typing i:nth-child(2) { animation-delay: .15s; }
.motion .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 999px; color: var(--lavender); font: 600 .9rem/1.2 var(--head); text-decoration: none; }
.chat-link:hover { background: var(--glass); }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-starters button { min-height: 44px; padding: 0 14px; border: 1px solid var(--glass-line); border-radius: 999px; background: none; color: var(--ivory); font: 400 .9rem/1.2 var(--body); cursor: pointer; }
.chat-starters button:hover { border-color: var(--lavender); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--glass-line); }
.chat-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 120px; padding: 11px 14px; border: 1px solid rgba(var(--fg-rgb), .24); border-radius: 13px; background: rgba(var(--bg-rgb), .6); color: var(--ivory); font: 400 16px/1.4 var(--body); resize: none; }
.chat-form textarea:focus { border-color: var(--lavender); outline: 3px solid rgba(var(--accent-rgb), .28); outline-offset: 0; }
.chat-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--lavender); color: var(--bg); cursor: pointer; }
.chat-send:disabled { opacity: .55; cursor: default; }
.chat-fine { padding: 0 14px 10px; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.chat-fine a { color: var(--lavender); }
@media (min-width: 640px) {
  .chat-launch { width: auto; padding: 0 20px; }
  .chat-launch span { display: inline; }
  .chat-panel { top: auto; right: auto; left: auto; inset-inline-end: 20px; bottom: 20px; width: 392px; height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px)); }
}
