/* ============================================================================
   studio_trial_welcome.css — Codex TRIAL WELCOME R01 (output/codex_design/outbox/
   trial-welcome-r01/source/design.css), PORTED MECHANICALLY for the studio layer:
   every design class is prefixed tw- and every rule sits under
   body.hts-studio .tw1 (the overlay root studio_trial_welcome.js stamps), so nothing
   reaches any other account or surface. body.dark → :root[data-theme=dark] +
   prefers-color-scheme. @font-face dropped (studio already serves Inter + Thai).
   Overrides for the web overlay go at the end, after the ported block.
   ========================================================================== */
body.hts-studio .tw1 *{box-sizing:border-box}
body.hts-studio .tw1{margin:0;background:#e8eef6;color:#142e43;font:14px/1.5 Inter,sans-serif;--paper:#f8fafc;--ink:#142e43;--muted:#566b7c;--line:#d6e1ea;--surface:#fff;--blue:#1f70df;--tint:#edf3f9}
:root[data-theme="dark"] body.hts-studio .tw1{background:#091725;--paper:#101f30;--ink:#edf4fb;--muted:#b1c2d3;--line:#334b62;--surface:#1b3147;--tint:#233e56;color:var(--ink)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .tw1{background:#091725;--paper:#101f30;--ink:#edf4fb;--muted:#b1c2d3;--line:#334b62;--surface:#1b3147;--tint:#233e56;color:var(--ink)}}
body.hts-studio .tw1 h1,body.hts-studio .tw1 h2,body.hts-studio .tw1 p{margin:0}
body.hts-studio .tw1 button{font:inherit;cursor:pointer}
body.hts-studio .tw1 button:focus-visible{outline:3px solid #b3842f;outline-offset:3px}
body.hts-studio .tw1 .tw-welcome{background:var(--paper);max-width:1200px;margin:0 auto;min-height:100dvh;padding:28px 46px 24px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);column-gap:54px;align-content:center}
body.hts-studio .tw1 .tw-brand{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin-bottom:36px;font-size:17px;letter-spacing:-.6px}
body.hts-studio .tw1 .tw-brand img{width:37px;height:37px}
body.hts-studio .tw1 .tw-brand b{color:#3075cc;font-weight:600}
:root[data-theme="dark"] body.hts-studio .tw1 .tw-brand b{color:#94c0fc}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .tw1 .tw-brand b{color:#94c0fc}}
body.hts-studio .tw1 .tw-welcome-label{margin-left:auto;color:var(--muted);font-size:10px;letter-spacing:2px}
body.hts-studio .tw1 .tw-eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted);margin-bottom:12px}
body.hts-studio .tw1 h1{font-size:46px;line-height:1.12;letter-spacing:-1.9px;font-weight:600}
body.hts-studio .tw1 h1 em{font-family:"ThaiRange",Georgia,serif;font-weight:400;color:#246cca;letter-spacing:-1.2px}
:root[data-theme="dark"] body.hts-studio .tw1 h1 em{color:#9dc8ff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .tw1 h1 em{color:#9dc8ff}}
body.hts-studio .tw1 .tw-intro{font-size:15px;color:var(--muted);margin-top:18px;line-height:1.6}
body.hts-studio .tw1 .tw-phone-break{display:none}
body.hts-studio .tw1 .tw-world{position:relative;height:300px;margin-top:24px;border-radius:28px;background:radial-gradient(ellipse at 80% 65%,#bdd0e277,transparent 60%),#e5edf4;isolation:isolate;overflow:hidden}
:root[data-theme="dark"] body.hts-studio .tw1 .tw-world{background:radial-gradient(ellipse at 80% 65%,#375c7988,transparent 65%),#20374c}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .tw1 .tw-world{background:radial-gradient(ellipse at 80% 65%,#375c7988,transparent 65%),#20374c}}
body.hts-studio .tw1 .tw-world-index{position:absolute;left:22px;top:20px;font-size:9px;color:var(--muted);letter-spacing:1.6px}
body.hts-studio .tw1 .tw-orbit-label{position:absolute;right:9px;top:45px;writing-mode:vertical-rl;font-size:8px;letter-spacing:2px;color:var(--muted)}
body.hts-studio .tw1 .tw-scene{position:absolute;right:29px;top:52px;width:58%;height:172px;overflow:hidden;border-radius:14px;transform:rotate(4deg);box-shadow:0 12px 25px #142f4c26;background:#152c3e}
body.hts-studio .tw1 .tw-scene img{height:100%;width:100%;object-fit:cover;filter:brightness(.8)}
body.hts-studio .tw1 .tw-scene:after{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#071524c9)}
body.hts-studio .tw1 .tw-scene>div{position:absolute;bottom:16px;left:18px;z-index:1;color:white}
body.hts-studio .tw1 .tw-scene span,body.hts-studio .tw1 .tw-word>span,body.hts-studio .tw1 .tw-sound-copy>span{font-size:8px;letter-spacing:1.3px;display:block}
body.hts-studio .tw1 .tw-scene strong{font-size:17px;display:block;margin-top:3px}
body.hts-studio .tw1 .tw-word{position:absolute;top:48px;left:27px;width:42%;height:180px;padding:18px;background:#fbfaf5;color:#18354c;border:1px solid #fff;border-radius:9px 18px 18px 9px;transform:rotate(-7deg);box-shadow:0 5px 0 #cbd5dc,0 10px 0 #f2f3ee,0 18px 28px #102d4733;z-index:2}
body.hts-studio .tw1 .tw-word>strong{font:55px/1.25 Thai;display:block;margin-top:10px}
body.hts-studio .tw1 .tw-word>p{font-size:13px;color:#566b7c}
body.hts-studio .tw1 .tw-word-bottom{margin-top:12px;padding-top:9px;border-top:1px solid #d6dfe4;display:flex;align-items:center;justify-content:space-between;gap:5px}
body.hts-studio .tw1 .tw-word-bottom span{font-size:6px;letter-spacing:.6px}
body.hts-studio .tw1 .tw-word-bottom svg{width:17px;fill:none;stroke:#3e6b88;stroke-width:1.5}
body.hts-studio .tw1 .tw-sound{position:absolute;bottom:16px;left:22%;right:22px;border-radius:13px;background:#163f68;color:white;display:flex;align-items:center;justify-content:space-between;padding:15px 18px;z-index:3;box-shadow:0 10px 25px #17334f28}
body.hts-studio .tw1 .tw-sound-copy>span{color:#b9d3ed;font-size:7px}
body.hts-studio .tw1 .tw-sound strong{font-size:14px;display:block;margin-top:3px}
body.hts-studio .tw1 .tw-wave{height:33px;display:flex;gap:3px;align-items:center}
body.hts-studio .tw1 .tw-wave i{width:3px;border-radius:8px;background:#a3d5e8;height:12px}
body.hts-studio .tw1 .tw-wave i:nth-child(3n){height:28px}
body.hts-studio .tw1 .tw-wave i:nth-child(4n){height:20px}
body.hts-studio .tw1 .tw-wave i:nth-child(5n){height:35px}
body.hts-studio .tw1 .tw-possibilities{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin-top:17px;color:var(--muted)}
body.hts-studio .tw1 .tw-possibilities span:before{content:'✓';color:#287a67;margin-right:5px}
body.hts-studio .tw1 .tw-start{align-self:center;background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:28px;box-shadow:0 20px 45px #112d4910}
body.hts-studio .tw1 .tw-small-mark{font-size:10px;letter-spacing:2px;color:var(--muted)}
body.hts-studio .tw1 h2{font-size:27px;letter-spacing:-1px;margin-top:8px}
body.hts-studio .tw1 .tw-trial-heading>p{font-size:14px;color:var(--muted);margin-top:6px}
body.hts-studio .tw1 .tw-allowance{display:flex;gap:22px;align-items:center;background:var(--tint);border-radius:15px;padding:18px;margin-top:24px}
body.hts-studio .tw1 .tw-allowance strong{font-size:32px;line-height:1.2;letter-spacing:-1px;font-weight:600;white-space:nowrap}
body.hts-studio .tw1 .tw-allowance strong span{font-size:12px;letter-spacing:0;font-weight:400}
body.hts-studio .tw1 .tw-allowance p{font-size:11px;color:var(--muted);margin-top:5px}
body.hts-studio .tw1 .tw-divider{height:38px;width:1px;background:var(--line)}
body.hts-studio .tw1 .tw-disclosure{font-size:12px;line-height:1.6;color:var(--muted);margin-top:17px}
body.hts-studio .tw1 .tw-reassurance{display:flex;align-items:center;gap:6px;font-size:12px;margin-top:13px;font-weight:600}
body.hts-studio .tw1 .tw-reassurance svg{width:17px;height:17px;stroke:#32816d;stroke-width:2;fill:none;flex-shrink:0}
body.hts-studio .tw1 .tw-action-area{margin-top:22px}
body.hts-studio .tw1 .tw-price{min-height:38px;display:flex;align-items:center;font-size:12px;color:var(--muted)}
body.hts-studio .tw1 .tw-primary{width:100%;min-height:56px;border:0;border-radius:14px;padding:14px 20px;background:#1f70df;color:white;font-weight:600;display:flex;justify-content:space-between;align-items:center;font-size:16px;box-shadow:0 7px 18px #1f70df25}
body.hts-studio .tw1 .tw-primary:disabled{background:#5276a4;cursor:default}
body.hts-studio .tw1 .tw-primary span{font-size:23px}
body.hts-studio .tw1 .tw-message{min-height:40px;padding-top:7px;font-size:12px;color:var(--muted)}
body.hts-studio .tw1 .tw-message.tw-error{color:#b64051}
:root[data-theme="dark"] body.hts-studio .tw1 .tw-message.tw-error{color:#ffa4b0}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .tw1 .tw-message.tw-error{color:#ffa4b0}}
body.hts-studio .tw1 .tw-account-actions{display:flex;min-height:44px;justify-content:center;align-items:center;flex-wrap:wrap}
body.hts-studio .tw1 .tw-text-button,body.hts-studio .tw1 .tw-legal button{background:none;border:0;color:var(--muted);min-height:44px;padding:8px 4px;font-size:12px}
body.hts-studio .tw1 .tw-text-button b{font-weight:600;color:#236bc7}
:root[data-theme="dark"] body.hts-studio .tw1 .tw-text-button b{color:#9dc8ff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .tw1 .tw-text-button b{color:#9dc8ff}}
body.hts-studio .tw1 .tw-legal{display:flex;justify-content:center;align-items:center;gap:12px;color:var(--muted)}
body.hts-studio .tw1 .tw-legal button{font-size:11px}
body.hts-studio .tw1 .tw-text-button[hidden]{display:none}
@media(max-width:799px){
body.hts-studio .tw1 .tw-welcome{display:block;min-height:100dvh;padding:20px 24px 8px;max-width:520px}
body.hts-studio .tw1 .tw-brand{margin-bottom:25px;font-size:16px}
body.hts-studio .tw1 .tw-brand img{width:32px;height:32px}
body.hts-studio .tw1 .tw-welcome-label{font-size:8px;letter-spacing:1.5px}
body.hts-studio .tw1 .tw-eyebrow{font-size:10px;margin-bottom:8px}
body.hts-studio .tw1 h1{font-size:35px;line-height:1.13;letter-spacing:-1.4px}
body.hts-studio .tw1 h1 em{letter-spacing:-1.1px}
body.hts-studio .tw1 .tw-intro{font-size:13px;margin-top:11px;line-height:1.55}
body.hts-studio .tw1 .tw-phone-break{display:block}
body.hts-studio .tw1 .tw-world{height:216px;margin-top:19px;border-radius:22px}
body.hts-studio .tw1 .tw-world-index{top:14px;left:16px;font-size:7px}
body.hts-studio .tw1 .tw-orbit-label{display:none}
body.hts-studio .tw1 .tw-scene{right:15px;top:37px;height:130px;width:61%}
body.hts-studio .tw1 .tw-scene>div{bottom:12px;left:13px}
body.hts-studio .tw1 .tw-scene strong{font-size:13px}
body.hts-studio .tw1 .tw-scene span{font-size:6px}
body.hts-studio .tw1 .tw-word{top:35px;left:18px;width:42%;height:132px;padding:12px}
body.hts-studio .tw1 .tw-word>span{font-size:6px}
body.hts-studio .tw1 .tw-word>strong{font-size:41px;margin-top:3px}
body.hts-studio .tw1 .tw-word>p{font-size:11px}
body.hts-studio .tw1 .tw-word-bottom{margin-top:5px;padding-top:5px}
body.hts-studio .tw1 .tw-word-bottom span{font-size:4.5px}
body.hts-studio .tw1 .tw-word-bottom svg{width:13px;height:13px}
body.hts-studio .tw1 .tw-sound{bottom:13px;left:21%;right:13px;padding:10px 12px;border-radius:10px}
body.hts-studio .tw1 .tw-sound strong{font-size:11px}
body.hts-studio .tw1 .tw-sound-copy>span{font-size:6px}
body.hts-studio .tw1 .tw-wave{height:27px;gap:2px}
body.hts-studio .tw1 .tw-wave i{width:2px;transform:scaleY(.75)}
body.hts-studio .tw1 .tw-possibilities{font-size:9px;margin-top:11px;gap:4px}
body.hts-studio .tw1 .tw-possibilities span:before{margin-right:3px}
body.hts-studio .tw1 .tw-start{margin-top:23px;border:0;border-radius:0;padding:0;box-shadow:none;background:none}
body.hts-studio .tw1 .tw-trial-heading{display:none}
body.hts-studio .tw1 .tw-allowance{margin-top:0;gap:23px;padding:12px 17px;background:var(--surface);border:1px solid var(--line);border-radius:13px;justify-content:center}
body.hts-studio .tw1 .tw-allowance strong{font-size:25px}
body.hts-studio .tw1 .tw-allowance strong span{font-size:11px}
body.hts-studio .tw1 .tw-allowance p{font-size:10px;margin-top:1px}
body.hts-studio .tw1 .tw-disclosure{font-size:11px;line-height:1.5;margin-top:12px}
body.hts-studio .tw1 .tw-reassurance{font-size:11px;margin-top:8px}
body.hts-studio .tw1 .tw-action-area{margin-top:7px}
body.hts-studio .tw1 .tw-price{min-height:29px;font-size:11px}
body.hts-studio .tw1 .tw-primary{min-height:52px;font-size:15px}
body.hts-studio .tw1 .tw-message{min-height:32px;font-size:11px;padding-top:5px}
body.hts-studio .tw1 .tw-text-button{font-size:11px}
body.hts-studio .tw1 .tw-legal{gap:12px;margin-top:-4px}
body.hts-studio .tw1 .tw-legal button{font-size:10px}
body.hts-studio .tw1 .tw-account-actions{min-height:44px}
}
@media(max-width:379px){
body.hts-studio .tw1 .tw-welcome{padding-left:20px;padding-right:20px}
body.hts-studio .tw1 h1{font-size:33px}
}
body.hts-studio .tw1 .tw-scene>div{left:auto;right:15px;text-align:right;bottom:43px}
body.hts-studio .tw1 .tw-scene span{display:none}
body.hts-studio .tw1 .tw-scene strong{font-size:13px}
body.hts-studio .tw1 .tw-primary,body.hts-studio .tw1 .tw-primary span{line-height:1}
body.hts-studio .tw1 .tw-primary{height:56px}
body.hts-studio .tw1 .tw-brand img{border-radius:50%}
@media(min-width:800px){
body.hts-studio .tw1 .tw-welcome{padding-top:20px;padding-bottom:20px}
body.hts-studio .tw1 .tw-brand{margin-bottom:24px}
body.hts-studio .tw1 .tw-start{padding-top:22px;padding-bottom:18px}
body.hts-studio .tw1 .tw-action-area{margin-top:14px}
}
@media(max-width:799px){
body.hts-studio .tw1 .tw-brand{margin-bottom:20px}
body.hts-studio .tw1 .tw-world{height:198px}
body.hts-studio .tw1 .tw-scene{height:120px}
body.hts-studio .tw1 .tw-scene>div{right:10px;bottom:30px}
body.hts-studio .tw1 .tw-scene strong{font-size:10px}
body.hts-studio .tw1 .tw-word{height:125px;top:31px}
body.hts-studio .tw1 .tw-word>strong{font-size:38px}
body.hts-studio .tw1 .tw-sound{bottom:10px}
body.hts-studio .tw1 .tw-start{margin-top:18px}
body.hts-studio .tw1 .tw-disclosure{font-size:12px;line-height:1.5}
body.hts-studio .tw1 .tw-primary{height:52px}
body.hts-studio .tw1 .tw-message{min-height:28px}
}
@media(prefers-reduced-motion:no-preference){
body.hts-studio .tw1 .tw-word{animation:tw-arrive .65s ease-out both}
body.hts-studio .tw1 .tw-scene{animation:tw-arrive .8s ease-out both}
body.hts-studio .tw1 .tw-sound{animation:tw-arrive .9s ease-out both}
@keyframes tw-arrive{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
}
/* ---- web overlay (not in the mock) ---- */
body.hts-studio .tw1{position:fixed;inset:0;z-index:100002;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
body.hts-studio .tw1 .tw-legal a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;justify-content:center;padding:8px 4px;color:var(--muted);font-size:11px;text-decoration:none}
body.hts-studio .tw1 .tw-legal a:hover{text-decoration:underline}
body.hts-studio .tw1 .tw-legal a:focus-visible{outline:3px solid #b3842f;outline-offset:3px}
@media(max-width:799px){body.hts-studio .tw1 .tw-legal a{font-size:10px}}
body.hts-studio .tw1 .tw-word>strong{font-family:Thai,ThaiRange,sans-serif}
html.tw1-open,html.tw1-open body{overflow:hidden}
