@font-face{font-family:Vazirmatn;src:url(../fonts/vazirmatn/Vazirmatn-Regular.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:Vazirmatn;src:url(../fonts/vazirmatn/Vazirmatn-Bold.woff2) format("woff2");font-style:normal;font-weight:700;font-display:swap}@font-face{font-family:Sahel;src:url(../fonts/sahel/Sahel.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:Sahel;src:url(../fonts/sahel/Sahel-Bold.woff2) format("woff2");font-style:normal;font-weight:700;font-display:swap}:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#1a1a1a;background:#f1eeea;font-size:16px;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--muted:#77736e;--line:#e8e6e1;--accent:#b91c1c;--accent-hover:#991b1b;--ink:#1a1a1a;--paper:#e8e6e1;--surface:#fdfcfb}@property --border-angle{syntax:"<angle>";inherits:true;initial-value:0deg}html[lang=fa]{font-family:Vazirmatn,system-ui,sans-serif}html[lang=fa] h1,html[lang=fa] h2,html[lang=fa] .eyebrow{font-family:Sahel,Vazirmatn,sans-serif;font-weight:700;letter-spacing:0}html[lang=en] .brand,html[lang=en] .footer-brand{font-family:system-ui,-apple-system,Segoe UI,sans-serif;letter-spacing:-.3px}html[lang=fa] .upload-button,html[lang=fa] .process-button,html[lang=fa] .about-cta{font-family:Vazirmatn,system-ui,sans-serif}html[lang=fa] .brand,html[lang=fa] .footer-brand{font-family:Sahel,Vazirmatn,sans-serif;letter-spacing:0}*{box-sizing:border-box}*:focus-visible{outline:2px solid var(--accent);outline-offset:3px}body{margin:0;min-width:320px;min-height:100dvh;background-color:#f1eeea;background-image:radial-gradient(#1a1a1a0a .55px,transparent .65px);background-size:6px 6px}.app-shell{position:relative;isolation:isolate;width:min(100% - 48px,1040px);min-height:calc(100svh - 40px);min-height:calc(100dvh - 40px);margin:20px auto;display:flex;flex-direction:column;overflow:visible;border:4px solid transparent;border-radius:16px;background:linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(from var(--border-angle),#b91c1c00 0deg 115deg,#b91c1c70 139deg,#b91c1cf5 160deg,#e5483d 168deg,#b91c1c00 180deg 295deg,#b91c1c70 319deg,#b91c1cf5 340deg,#e5483d 348deg,#b91c1c00 360deg) border-box;animation:card-orbit 15s linear infinite;box-shadow:0 20px 40px -10px #0000001a,0 0 20px #b91c1c10}.home-shell{height:calc(100svh - 40px);height:calc(100dvh - 40px)}@keyframes card-orbit{to{--border-angle:360deg}}.topbar{position:relative;z-index:1;height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,48px);border-bottom:1px solid #1a1a1a12}.brand{color:var(--ink);text-decoration:none;font:700 24px Georgia,Times New Roman,serif;letter-spacing:-.5px}.topbar-links{display:flex;align-items:center;gap:10px}.topbar-links a{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;border-radius:999px;color:#5c5d5a;text-decoration:none;font-size:14px}.topbar-links a:hover{background:#b91c1c0d;color:var(--accent)}.language-link{border:1px solid var(--line);background:#fff}.language-link{min-width:88px;gap:7px;justify-content:center;align-items:center;direction:ltr;text-align:center;line-height:1;white-space:nowrap}.language-flag{display:block;width:19px;height:13px;flex:none;border-radius:2px;box-shadow:0 0 0 1px #00000016}.language-short{display:none}.topbar-links [aria-current=page]{color:var(--ink)}main{flex:1}.home-main{display:flex;align-items:center;justify-content:center;min-height:0}.home-main .studio{width:min(100%,440px);margin:0 auto;padding:24px 0;text-align:center}.home-main+.site-footer{margin-top:0}.studio{width:min(100%,440px);margin:clamp(100px,20vh,190px) auto 80px;text-align:center}.intro{margin-bottom:31px}.hero-mark-wrap{--orbit-radius:62px;position:relative;isolation:isolate;display:block;width:112px;height:112px;margin:0 auto 20px}.hero-mark{position:absolute;top:1px;left:0;display:block;width:112px;height:109px;object-fit:contain}.hero-mark-wrap:before{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;z-index:1;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg 278deg,#b91c1c22 296deg,#b91c1c72 322deg,#b91c1cbd 344deg,#dfb1ac 352deg,transparent 360deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 1.5px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 1.5px),#000 calc(100% - 1px));animation:mark-orbit 12s linear infinite;pointer-events:none}.hero-mark-wrap:after{content:"";position:absolute;top:50%;left:50%;z-index:2;width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px #b91c1c20;animation:mark-dot-orbit 12s linear infinite;pointer-events:none}@keyframes mark-orbit{to{transform:rotate(360deg)}}@keyframes mark-dot-orbit{0%{transform:translate(-50%,-50%) rotate(0) translateY(calc(0px - var(--orbit-radius)))}to{transform:translate(-50%,-50%) rotate(360deg) translateY(calc(0px - var(--orbit-radius)))}}@media(prefers-reduced-motion:reduce){.hero-mark-wrap:before,.hero-mark-wrap:after{animation:none}}.eyebrow{margin:0 0 16px;color:var(--accent);font-size:13px;font-weight:650;letter-spacing:.09em;text-transform:uppercase}h1{margin:0;color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:clamp(38px,6vw,48px);line-height:1.16;letter-spacing:-1.35px;font-weight:700}html[lang=fa] #title{text-align:center}.fa-title-line{display:block}.lede{max-width:390px;margin:18px auto 0;color:#555750;font-size:17px;line-height:1.7}.upload-button,.process-button,.about-cta{width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid var(--ink);border-radius:7px;background:var(--ink);color:#fff;font:650 16px system-ui,-apple-system,Segoe UI,sans-serif;text-decoration:none;cursor:pointer}.upload-button:hover,.process-button:hover:not(:disabled),.about-cta:hover{border-color:var(--accent-hover);background:var(--accent-hover)}.upload-button:active,.process-button:active:not(:disabled){transform:scale(.99)}.upload-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.privacy-note{margin:14px 0 0;color:#777772;font-size:13px}.file-panel{margin-top:24px;text-align:left}:root[dir=rtl] .file-panel{text-align:right}.file-row{min-height:66px;display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:#fff}.file-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:7px;background:#f1f0ec;color:#5e605b;font-size:12px}.file-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.file-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}.file-info span{color:var(--muted);font-size:12px}.icon-button{width:34px;height:34px;border:0;border-radius:7px;background:transparent;color:#686964;font-size:22px;cursor:pointer}.icon-button:hover{background:#f1f0ec}.source-preview{width:100%;max-height:380px;margin-top:12px;border-radius:8px;background:#111}.audio-option{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}.audio-option input{width:17px;height:17px;flex:none;margin:0;accent-color:var(--accent)}.audio-option span{display:flex;flex-direction:column;gap:3px}.audio-option strong{font-size:14px;font-weight:600}.audio-option small{color:var(--muted);font-size:12px;line-height:1.5}.duration-option{justify-content:space-between;cursor:default}.duration-option label{display:flex;flex:1;flex-direction:column;gap:3px;cursor:pointer}.duration-option select{max-width:55%;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:500 14px system-ui,-apple-system,Segoe UI,sans-serif}.custom-duration{min-height:48px}.custom-duration label{flex:1;font-size:14px;font-weight:600}.custom-duration input{width:82px;min-height:34px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:500 13px system-ui,-apple-system,Segoe UI,sans-serif}.custom-duration>span{font-size:11px;color:var(--muted)}html[lang=fa] .duration-option select,html[lang=fa] .custom-duration input,html[lang=fa] .custom-duration label{font-family:Vazirmatn,system-ui,sans-serif}.process-button{margin-top:12px}.process-button:disabled{border-color:#aaa;background:#aaa;color:#f8f7f4;cursor:wait}.engine-card,.result-card{margin-top:12px;padding:15px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left}:root[dir=rtl] .engine-card,:root[dir=rtl] .result-card{text-align:right}.progress-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:600}.engine-card p{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.progress-track{height:4px;margin-top:13px;overflow:hidden;border-radius:9px;background:#e9e8e4}.progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent)}.progress-track span.indeterminate{width:35%!important}.result-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.result-card strong{width:100%;font-size:13px}.result-card>span{flex:1;color:var(--muted);font-size:11px}.diagnostics{width:100%;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8f7f4;text-align:left}.diagnostics summary{color:var(--muted);font-size:12px;font-weight:650;cursor:pointer;list-style:none}.diagnostics summary::-webkit-details-marker{display:none}.diagnostics summary:before{content:"+";display:inline-grid;width:20px;height:20px;margin-inline-end:8px;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--ink);font-size:15px;vertical-align:middle}.diagnostics[open] summary:before{content:"−"}.diagnostics button{min-height:36px;margin-top:12px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:600 12px system-ui,-apple-system,Segoe UI,sans-serif;cursor:pointer}.diagnostics button:hover{background:#f0eeea}.diagnostics textarea{display:block;width:100%;min-height:120px;margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:7px;background:#202124;color:#e9e9e9;font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;direction:ltr;text-align:left}:root[dir=rtl] .diagnostics{text-align:right}html[lang=fa] .diagnostics button{font-family:Vazirmatn,system-ui,sans-serif}.download-button{padding:8px 11px;border:1px solid var(--line);border-radius:6px;color:#202124;text-decoration:none;font-size:12px;font-weight:600}.download-button:hover{background:#f4f3ef}.share-button{padding:8px 11px;border:0;border-radius:6px;background:#202124;color:#fff;font:600 12px system-ui,-apple-system,Segoe UI,sans-serif;cursor:pointer}.share-button:hover{background:#37383a}html[lang=fa] .share-button{font-family:Vazirmatn,system-ui,sans-serif}.result-modal{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:#101114;color:#fff}.result-modal::backdrop{background:#101114}.modal-stage{position:relative;width:100%;height:100%;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center,#28292d,#17181b 58%,#101114)}.modal-video-slot{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center}.modal-video-slot .source-preview{width:100%;height:100%;max-height:none;margin:0;border-radius:0;object-fit:contain;background:transparent}.modal-topbar{position:absolute;z-index:2;inset-inline:0;top:0;display:flex;align-items:center;gap:14px;padding:calc(16px + env(safe-area-inset-top)) 20px 20px;background:linear-gradient(#08090c99,transparent)}.modal-topbar form{margin:0}.modal-close{width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff38;border-radius:50%;background:#15161999;color:#fff;font:300 29px/1 system-ui,sans-serif;cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.modal-close:hover{background:#ffffff2b;transform:scale(1.04)}.modal-ready{color:#ffffffc7;font-size:13px;font-weight:500;text-shadow:0 1px 5px #0008}.modal-overlay{position:absolute;z-index:2;inset-inline:0;bottom:0;padding:48px 20px calc(74px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#090a0ddd 72%)}.modal-info,.modal-actions{width:min(100%,520px);margin-inline:auto}.modal-info{display:flex;flex-direction:column;gap:5px;margin-bottom:15px;text-shadow:0 1px 6px #0009}.modal-info strong{font-size:15px;font-weight:650}.modal-info span{color:#ffffffc2;font-size:12px;line-height:1.5}.modal-notice{width:min(100%,520px);margin:-5px auto 13px;padding:10px 13px;border:1px solid #ffffff2b;border-radius:12px;background:#ffffff14;color:#fff;font-size:12px;line-height:1.55;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modal-action{min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 14px;border:1px solid #ffffff3d;border-radius:999px;color:#fff;text-decoration:none;font:600 13px system-ui,-apple-system,Segoe UI,sans-serif;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.modal-action:hover{transform:translateY(-1px)}.modal-action>span:first-child{font-size:17px;line-height:1}.modal-download{border-color:#fff;background:#fff;color:#202124}.modal-download:hover{background:#eee}.modal-share{background:#ffffff1a;cursor:pointer}.modal-share:hover{background:#ffffff2e}.modal-play{position:absolute;z-index:3;top:50%;left:50%;display:flex;flex-direction:column;align-items:center;gap:11px;transform:translate(-50%,-50%);border:0;background:transparent;color:#fff;font:inherit;cursor:pointer;text-shadow:0 2px 14px #0009}.modal-play>span{width:76px;height:76px;display:grid;place-items:center;padding-inline-start:4px;border:1px solid #ffffff9c;border-radius:50%;background:#16171a8c;font-size:23px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 10px 36px #0004}.modal-play small{font-size:13px;font-weight:600}html[lang=fa] .modal-action,html[lang=fa] .modal-ready,html[lang=fa] .modal-info,html[lang=fa] .modal-play{font-family:Vazirmatn,system-ui,sans-serif}html[lang=fa] .modal-play>span{padding-inline-start:0;padding-inline-end:4px}.site-footer{margin-top:48px;padding:20px clamp(24px,4vw,48px) 18px;border-top:1px solid var(--line);color:#777772}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.footer-brand{color:var(--ink);text-decoration:none;font:700 15px Georgia,Times New Roman,serif;letter-spacing:-.2px}.contribute-link{display:inline-flex;align-items:center;gap:6px;color:#555651;text-decoration:none;font-size:12px}.contribute-link:hover{color:#111;text-decoration:underline;text-underline-offset:3px}.footer-credit{margin:10px 0 0;font-size:11px;line-height:1.6;text-align:center}html[lang=fa] .footer-credit{font-family:Vazirmatn,system-ui,sans-serif}.breadcrumbs{margin-top:12px;font-size:11px;text-align:center}.breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;margin:0;padding:0;list-style:none}.breadcrumbs li{display:inline-flex;align-items:center;gap:9px}.breadcrumbs li+li:before{content:"/";color:#aaa9a3}.breadcrumbs li+li{margin-inline-start:9px}.breadcrumbs a{color:#777772;text-decoration:none}.breadcrumbs a:hover{text-decoration:underline;text-underline-offset:3px}.breadcrumbs [aria-current=page]{color:#434440}.breadcrumbs a:hover{color:var(--accent)}.about-page{width:min(100% - 48px,680px);margin:88px auto 100px}.about-page h1{font-size:clamp(34px,6vw,49px);line-height:1.2}.about-lede{max-width:580px;margin:21px 0 54px;color:#62635e;font-size:19px;line-height:1.75}.about-section{margin-top:37px}.about-section h2{margin:0 0 12px;font-size:22px;font-weight:600;letter-spacing:-.3px}.about-section p{margin:0 0 14px;color:#62635e;font-size:17px;line-height:1.85}.about-cta{width:auto;min-width:180px;margin-top:34px;padding:0 20px}.about-cta span{font-size:19px}.toast{position:fixed;z-index:20;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);padding:12px 16px;transform:translate(-50%,15px);border:1px solid #deddd8;border-radius:8px;background:var(--ink);color:#fff;font-size:13px;opacity:0;pointer-events:none}.toast.show{transform:translate(-50%);opacity:1}[hidden]{display:none!important}.app-shell.is-editing{min-height:100dvh}.home-shell.is-editing{height:100dvh}.app-shell.is-editing .topbar,.app-shell.is-editing .site-footer,.app-shell.is-editing .intro,.app-shell.is-editing .privacy-note{display:none}.app-shell.is-editing main{display:flex;flex:1;flex-direction:column;justify-content:center}.app-shell.is-editing .studio{width:min(100%,720px);margin:0 auto;padding:0;transform:none}.app-shell.is-editing .file-panel{margin-top:0}.app-shell.is-editing .source-preview{max-height:min(44dvh,520px);margin-top:12px;object-fit:contain}.app-shell.is-editing .duration-option{margin-top:14px}@media(max-width:600px){body{min-height:100dvh;background-color:#f1eeea}.app-shell{width:calc(100% - 20px);min-height:calc(100svh - 20px);min-height:calc(100dvh - 20px);margin:10px auto;padding:env(safe-area-inset-top) 14px calc(126px + env(safe-area-inset-bottom));border-radius:14px}.home-shell{height:auto}.topbar{height:60px;flex:none;padding:0 8px;border-bottom-color:#1a1a1a12}.brand{font-size:19px}.topbar-links{gap:7px}.topbar-links a{min-height:38px;padding:0 10px;font-size:13px}.language-link{width:auto;min-width:68px;padding:0 8px!important;gap:6px;font-size:11px!important;font-weight:600}.language-full{display:none}.language-short{display:inline}main{display:flex;flex-direction:column}.studio{width:100%;margin:auto;transform:translateY(clamp(0px,2.5dvh,20px))}.intro{margin-bottom:27px}.hero-mark-wrap{--orbit-radius:54px;width:96px;height:96px;margin-bottom:17px}.hero-mark{top:1px;width:96px;height:94px}.eyebrow{margin-bottom:14px;font-size:11px}h1{font-size:clamp(35px,8.6vw,42px);line-height:1.14;letter-spacing:-1.1px}.lede{max-width:330px;margin-top:15px;font-size:16px;line-height:1.7}.upload-button{min-height:58px;border-radius:8px;font-size:16px}.privacy-note{margin-top:12px;font-size:12px}.file-panel{margin-top:20px}.source-preview{max-height:40svh}.site-footer{position:absolute;z-index:15;inset-inline:4px;bottom:4px;margin:0;padding:12px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-radius:0 0 9px 9px;background:#fdfcfbf2;box-shadow:0 -8px 24px #1a1a1a08;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.footer-top{align-items:flex-start;gap:10px}.footer-brand{font-size:13px}.contribute-link{max-width:calc(100% - 48px);font-size:10px;line-height:1.4;text-align:end}.footer-credit,.breadcrumbs{font-size:11px}.toast{bottom:calc(132px + env(safe-area-inset-bottom))}.about-page{width:100%;margin:50px auto 64px}.about-lede{margin:17px 0 39px;font-size:16px}.about-section{margin-top:29px}.about-section h2{font-size:19px}.about-section p{font-size:16px;line-height:1.8}.app-shell.is-editing{min-height:calc(100svh - 20px);min-height:calc(100dvh - 20px);padding:env(safe-area-inset-top) 14px env(safe-area-inset-bottom)}.app-shell.is-editing main{justify-content:flex-start}.app-shell.is-editing .studio{width:100%;margin:0 auto;padding:0;transform:none}.app-shell.is-editing .file-panel{margin-top:0}.app-shell.is-editing .source-preview{height:min(53dvh,480px);max-height:min(53dvh,480px);margin-top:10px}.app-shell.is-editing .duration-option{margin-top:10px}}
