/* Image to Text (OCR) — black + gold night (signature) — forest green + cream in day mode (Nov 23, 2026).
   Black + gold at night, forest green + cream by day. Mobile-first, 100% English. */
:root{
  --bg:#07070a; --bg2:#0d0d12; --surface:#14141b; --surface2:#1c1c26;
  --ink:#f5f0dc; --ink2:#d8d2b8; --ink3:#9a937a;
  --line:#2e2e3a; --line2:#4a4a5a;
  --brand:#ffd700; --brand2:#c9a227; --brand-soft:rgba(255,215,0,.14); --brand-deep:#07070a;
  --gold:#ffd700; --gold-soft:rgba(255,215,0,.14);
  --amber:#ffd700; --amber-soft:rgba(255,215,0,.14);
  --red:#f87171; --red-soft:rgba(248,113,113,.16);
  --green:#7fc98a; --green-soft:rgba(127,201,138,.14);
  --shadow:0 10px 30px rgba(0,0,0,.5);
  --shadow-lg:0 24px 60px rgba(0,0,0,.6), 0 4px 18px rgba(255,215,0,.12);
  --r-lg:20px; --r-md:14px; --r-sm:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:1rem;color:var(--ink)}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}
h1,h2,h3{letter-spacing:-.02em;line-height:1.15}

/* Header */
header.site{position:sticky;top:0;z-index:50;background:rgba(7,7,10,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,215,0,.4)}
.nav{display:flex;align-items:center;gap:18px;padding:14px 0}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.25rem;color:var(--ink);letter-spacing:-.02em}
.logo:hover{text-decoration:none}
.logo-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#fff3a3,#ffd700 60%,#8a6d1f);color:#1a1405;display:grid;place-items:center;flex:none;box-shadow:0 4px 14px rgba(201,162,39,.5), inset 0 1px 0 rgba(255,255,255,.5)}
.logo-mark svg{width:21px;height:21px}
.logo-mark img{width:38px;height:38px;border-radius:11px;display:block}
.logo small{display:block;font-size:.66rem;font-weight:600;color:var(--ink3);letter-spacing:.08em;text-transform:uppercase;line-height:1}
.nav-links{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
.nav-links a{color:var(--ink2);font-weight:600;font-size:.92rem;padding:8px 12px;border-radius:99px}
.nav-links a:hover{background:var(--surface2);text-decoration:none;color:var(--ink)}
.nav-cta{background:linear-gradient(135deg,#fff3a3,#ffd700)!important;color:#1a1405!important;box-shadow:0 6px 18px rgba(201,162,39,.45), inset 0 1px 0 rgba(255,255,255,.45)}
.nav-cta:hover{background:linear-gradient(135deg,#fff3a3,#ffd700)!important}

/* Hero */
.hero{padding:56px 0 30px;background:radial-gradient(700px 300px at 85% -60px, rgba(255,215,0,.28), transparent 70%), radial-gradient(500px 260px at 0% 0%, rgba(255,215,0,.12), transparent 65%), linear-gradient(180deg,#14141b 0%,#07070a 100%);border-bottom:1px solid rgba(255,215,0,.35)}
.hero h1{font-size:clamp(2rem,5.2vw,3.4rem);line-height:1.08;margin:0 0 14px;font-weight:800;max-width:820px;text-shadow:0 4px 24px rgba(201,162,39,.3)}
.hero h1 .hl{background:linear-gradient(135deg,#fff3a3,#ffd700 55%,#c9a227);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{font-size:clamp(1.02rem,2vw,1.2rem);color:var(--ink2);max-width:680px;margin:0 0 8px}
.hero p.hero-sub{color:var(--ink3);font-size:.98rem;max-width:680px;margin:0 0 26px}
.badge-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,215,0,.12);border:1px solid rgba(255,215,0,.4);color:#fff3a3;font-size:.8rem;font-weight:700;padding:5px 11px;border-radius:99px}
.badge.gold{background:rgba(255,215,0,.14);border-color:rgba(255,215,0,.55);color:#ffe1a1}
.pill{display:inline-block;background:var(--brand-soft);color:var(--brand);font-weight:700;font-size:.8rem;padding:3px 10px;border-radius:99px}

/* Sections */
section{padding:34px 0}
.sec-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.sec-head h2{font-size:clamp(1.4rem,3vw,1.9rem);margin:0}
.sec-head p{margin:4px 0 0;color:var(--ink2);max-width:560px}
.breadcrumb{font-size:.88rem;color:var(--ink3);margin:18px 0 0;font-weight:600}
.breadcrumb a{color:var(--ink2)}
.tool-intro{color:var(--ink2);max-width:760px;font-size:1.05rem}
.tool-intro b{color:var(--ink)}

/* Workspace / OCR */
.workspace{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-lg);overflow:hidden}
.ws-head{display:flex;align-items:center;gap:14px;padding:20px 24px;border-bottom:1px solid var(--line);background:var(--surface2);flex-wrap:wrap}
.ws-head .tool-ic{width:42px;height:42px;border-radius:12px}
.ws-head h2{margin:0;font-size:1.3rem}
.ws-head p{margin:0;color:var(--ink2);font-size:.9rem}
.ws-body{padding:24px}
.tool-ic{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#fff3a3,#c9a227);color:#1a1405;box-shadow:0 4px 12px rgba(201,162,39,.4), inset 0 1px 0 rgba(255,255,255,.5)}
.tool-ic svg{width:24px;height:24px}
.tool-ic img{width:46px;height:46px;border-radius:13px;display:block}
label.f{display:block;font-weight:700;font-size:.86rem;margin-bottom:6px;color:var(--ink)}
.field{width:100%;border:1.5px solid var(--line2);background:var(--bg);border-radius:var(--r-sm);padding:11px 13px;outline:none;color:var(--ink)}
.field:focus{border-color:var(--brand)}
.field::placeholder{color:var(--ink3)}
textarea.field{resize:vertical;min-height:150px}
.btn{background:linear-gradient(180deg,#fff3a3,#ffd700 55%,#c9a227);color:#1a1405;border:0;border-radius:11px;padding:12px 22px;font-weight:700;font-size:.95rem;box-shadow:0 6px 16px rgba(201,162,39,.4), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.3);transition:transform .12s, filter .12s}
.btn:hover{filter:brightness(1.12);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:disabled{opacity:.6;cursor:wait}
.btn.ghost{background:var(--surface2);color:var(--ink);border:1px solid var(--line2);box-shadow:none}
.btn.ghost:hover{border-color:var(--brand);color:var(--brand)}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.hint{font-size:.85rem;color:var(--ink3);margin-top:8px}
.err{color:var(--red);font-weight:600;font-size:.9rem;margin-top:10px;display:none}
.err.show{display:block}
.result{margin-top:20px;background:var(--brand-soft);border:1px solid var(--line);border-radius:var(--r-md);padding:18px;display:none;border-left:5px solid var(--brand)}
.result.show{display:block}

/* --- OCR: black + gold stage (night) --- */
.ocr-stage{background:linear-gradient(150deg,#07070a 0%,#14141b 45%,#1c1c26 78%,#232330 100%);border:1px solid rgba(255,215,0,.55);border-radius:20px;padding:20px;box-shadow:0 22px 48px rgba(0,0,0,.65), 0 0 0 1px rgba(255,215,0,.16), inset 0 1px 0 rgba(255,255,255,.14)}
.ocr-stage label.f{color:#ffe9a8}
.ocr-stage .hint{color:#d8d2b8}
.ocr-stage .field{background:rgba(7,7,10,.7);border-color:rgba(255,215,0,.55);color:#f5f0dc}
.ocr-stage .field::placeholder{color:#c9b896;opacity:.75}
.btn.ocr-cta{background:linear-gradient(180deg,#fff3a3,#ffd700 55%,#c9a227);color:#1a1405;border:none;box-shadow:0 8px 22px rgba(201,162,39,.55), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.3)}
.btn.ocr-cta:hover{filter:brightness(1.12)}
.btn.ocr-cta:disabled{opacity:.6;cursor:wait}
.drop{border:2px dashed rgba(255,215,0,.7);border-radius:var(--r-md);padding:26px;text-align:center;color:var(--ink2);background:rgba(7,7,10,.55)}
.drop.drag{border-color:var(--brand);background:rgba(255,215,0,.1)}
.drop p{margin:0 0 10px;font-weight:700;color:#ffe9a8}
.ocr-queue{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:14px}
.ocr-thumb{position:relative;background:rgba(7,7,10,.6);border:1px solid rgba(255,215,0,.45);border-radius:12px;padding:8px;box-shadow:0 8px 18px rgba(0,0,0,.45)}
.ocr-thumb img{width:100%;height:84px;object-fit:cover;display:block;border-radius:8px}
.ocr-thumb .ocr-thumb-name{font-size:.78rem;font-weight:700;color:#f5f0dc;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ocr-thumb .ocr-thumb-meta{font-size:.72rem;color:#d8d2b8}
.ocr-thumb .ocr-thumb-x{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(7,7,10,.85);color:#ffd700;font-weight:800;font-size:.95rem;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.ocr-preview{position:relative;margin-top:14px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,215,0,.5);box-shadow:0 12px 28px rgba(0,0,0,.55)}
.ocr-preview img{display:block;max-width:100%;max-height:260px;margin:0 auto}
.ocr-scanline{position:absolute;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,#ffd700,transparent);box-shadow:0 0 18px 4px rgba(255,215,0,.65);display:none;animation:ocr-scan 1.6s ease-in-out infinite alternate}
@keyframes ocr-scan{from{top:4%}to{top:94%}}
.ocr-progress{margin-top:16px;background:rgba(7,7,10,.7);border:1px solid rgba(255,215,0,.4);border-radius:12px;padding:12px 14px}
.ocr-bar{height:10px;border-radius:99px;background:rgba(255,255,255,.14);overflow:hidden}
.ocr-bar i{display:block;height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,#fff3a3,#ffd700,#c9a227);transition:width .3s ease}
.ocr-status{margin:8px 0 0;color:#ffe9a8;font-size:.9rem;font-weight:600}
.ocr-result{margin-top:16px;background:rgba(7,7,10,.6);border:1px solid rgba(255,215,0,.4);border-left:5px solid var(--brand);border-radius:var(--r-md);padding:16px 18px;box-shadow:inset 0 3px 10px rgba(0,0,0,.5)}
.ocr-result h4{margin:0 0 4px;font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:#ffe9a8}
.ocr-result .ocr-result-name{font-size:.85rem;color:var(--ink2);margin:0 0 10px;overflow-wrap:break-word}
.ocr-out{width:100%;min-height:150px;border-radius:12px;border:1px solid rgba(255,215,0,.45);background:#fffdf5;color:#1f2937;font-size:1rem;line-height:1.6;padding:14px;box-sizing:border-box;box-shadow:inset 0 3px 10px rgba(0,0,0,.35)}
.ocr-out:focus{outline:3px solid rgba(255,215,0,.5);outline-offset:1px}
.ocr-out[dir="rtl"]{text-align:right}
.ocr-counts{color:var(--ink2);font-size:.88rem;font-weight:700;margin:8px 0 0}
.ocr-counts b{color:#ffe9a8}
.ocr-conf{display:inline-block;font-size:.78rem;font-weight:800;border-radius:99px;padding:3px 10px;margin-left:8px;vertical-align:2px}
.ocr-conf.high{background:rgba(127,201,138,.2);color:#9be3a8;border:1px solid rgba(127,201,138,.55)}
.ocr-conf.mid{background:rgba(255,215,0,.16);color:#ffe9a8;border:1px solid rgba(255,215,0,.55)}
.ocr-conf.low{background:rgba(248,113,113,.16);color:#fca5a5;border:1px solid rgba(248,113,113,.55)}
.ocr-join{display:flex;align-items:center;gap:8px;font-weight:600;cursor:pointer;color:#ffe9a8;margin-top:14px;font-size:.92rem}
.ocr-join input{width:18px;height:18px;accent-color:#ffd700;cursor:pointer}
.honest-note{margin-top:16px;padding:12px 16px;border:1px dashed rgba(255,215,0,.6);border-radius:12px;background:rgba(255,215,0,.08);color:#f3e9c8;font-size:.9rem}
.honest-note b{color:#ffe9a8}

/* Before / after example */
.ba-card{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}
@media (max-width:640px){.ba-card{grid-template-columns:1fr}}
.ba-box{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px}
.ba-box h3{margin:0 0 8px;font-size:1rem}
.ba-box p{margin:0;color:var(--ink2);font-size:.93rem}
.ba-box.before{border-color:rgba(168,143,116,.5)}
.ba-box.after{border-color:rgba(255,215,0,.6);box-shadow:0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(255,215,0,.2)}
.ba-tag{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:99px;padding:3px 10px;margin-bottom:10px}
.ba-tag.robot{background:rgba(168,143,116,.16);color:#cbb694;border:1px solid rgba(168,143,116,.5)}
.ba-tag.human{background:var(--brand-soft);color:#fff3a3;border:1px solid rgba(255,215,0,.55)}

/* How-to */
.howto{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 22px 8px;margin:22px 0}
.howto h2{margin:0 0 12px;font-size:1.2rem}
.howto ol{margin:0;padding-left:22px;color:var(--ink2)}
.howto li{margin-bottom:12px}
.howto li b{color:var(--ink)}
.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:860px){.cards3{grid-template-columns:1fr}}
.info-card{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px}
.info-card h3{margin:10px 0 6px;font-size:1.05rem}
.info-card p{margin:0;color:var(--ink2);font-size:.93rem}
.step-num{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#fff3a3,#ffd700);color:#1a1405;display:grid;place-items:center;font-weight:800;font-size:.95rem;box-shadow:0 4px 12px rgba(201,162,39,.4), inset 0 1px 0 rgba(255,255,255,.5)}

/* SEO content */
.seo-content{max-width:800px;margin:26px 0}
.seo-content h2{font-size:1.35rem;margin:26px 0 8px}
.seo-content h3{font-size:1.08rem;margin:20px 0 6px}
.seo-content p,.seo-content li{color:var(--ink2);font-size:.98rem}
.seo-content ul,.seo-content ol{padding-left:22px}
.seo-content li{margin-bottom:6px}
.seo-content p,.seo-content li{overflow-wrap:break-word}
.example-table{width:100%;border-collapse:collapse;font-size:.92rem;margin:12px 0}
.example-table th,.example-table td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.example-table th{background:var(--surface2)}
.tip{background:rgba(255,215,0,.12);border-radius:var(--r-md);padding:14px 18px;margin:14px 0;font-size:.93rem;color:var(--ink)}
.tip b{color:var(--ink)}

/* FAQ */
details.faq{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:var(--r-md);margin-bottom:10px;padding:4px 18px}
details.faq summary{cursor:pointer;font-weight:700;padding:12px 0;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";font-size:1.3rem;color:var(--brand);font-weight:800;line-height:1}
details.faq[open] summary::after{content:"–"}
details.faq p{margin:0 0 14px;color:var(--ink2)}

/* Related cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:14px}
.tool-card{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;text-align:left;width:100%;transition:border-color .15s, transform .15s, box-shadow .15s;display:flex;flex-direction:column;gap:10px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.tool-card:hover{border-color:var(--brand);transform:translateY(-4px);box-shadow:0 18px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,215,0,.35)}
.tool-card h3{margin:0;font-size:1.05rem;color:var(--ink)}
.tool-card p{margin:0;font-size:.88rem;color:var(--ink2);flex:1}
.tool-meta{display:flex;gap:8px;align-items:center}
.tag{font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:var(--surface2);border:1px solid var(--line);color:var(--ink2);padding:3px 8px;border-radius:99px}
.tag.key{background:var(--amber-soft);border-color:rgba(255,215,0,.55);color:#ffe1a1}
.open-lbl{margin-left:auto;font-weight:700;font-size:.85rem;color:var(--brand)}

/* Footer */
footer{border-top:1px solid var(--line);margin-top:30px;padding:30px 0 44px;background:var(--bg2)}
.foot{display:flex;gap:20px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start}
footer p{color:var(--ink3);font-size:.88rem;max-width:520px;margin:6px 0 0}
.foot-links{display:flex;gap:16px;flex-wrap:wrap;font-size:.9rem;font-weight:600}
.foot-sites{flex-basis:100%;margin-top:6px;border-top:1px solid var(--line);padding-top:16px}
.foot-sites h2{margin:0 0 10px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink2)}
.foot-sites ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:8px 24px}
.foot-sites li{font-size:.9rem;color:var(--ink3)}
.foot-sites a{font-weight:700}
.site-icon{width:22px;height:22px;vertical-align:-6px;margin-right:7px;border-radius:6px;border:1px solid rgba(255,215,0,.55);background:#07070a}
@media (max-width:640px){.foot-sites ul{grid-template-columns:1fr}}

/* Toast */
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,80px);background:var(--amber);color:#1a1405;padding:11px 20px;border-radius:99px;font-weight:700;font-size:.9rem;box-shadow:var(--shadow-lg);transition:transform .25s, visibility .25s;z-index:10003;pointer-events:none;visibility:hidden}
.toast.show{transform:translate(-50%,0);visibility:visible}

/* Article pages */
.article{max-width:800px}
.article h2{font-size:1.35rem;margin:28px 0 8px}
.article h3{font-size:1.08rem;margin:20px 0 6px}
.article p,.article li{color:var(--ink2);font-size:.98rem}
.article ul,.article ol{padding-left:22px}
.article li{margin-bottom:6px}
.article .lead{font-size:1.1rem;color:var(--ink2)}
.article video{width:100%;max-width:640px;border-radius:var(--r-md);border:1px solid var(--line2);background:#000}
.steps-box{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 22px;margin:18px 0}
.steps-box ol{margin:0;padding-left:22px;color:var(--ink2)}
.steps-box li{margin-bottom:10px}
.steps-box li b{color:var(--ink)}

/* Mobile-first */
@media (max-width:640px){
  .wrap{padding:0 16px}
  .nav-links a:not(.nav-cta){display:none}
  .hero{padding:38px 0 20px}
  .ws-body{padding:18px}
  .ws-head{padding:16px 18px}
  .ws-head h2{font-size:1.15rem}
  .grid{grid-template-columns:1fr}
  .btn-row .btn{flex:1;text-align:center}
  .example-table{display:block;overflow-x:auto}
  .foot-links{gap:10px}
}
@media (max-width:390px){
  .hero h1{font-size:1.7rem}
  .tool-card{padding:16px}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* --- Full-3D upgrades (owner checklist, Nov 23) --- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hero{position:relative;overflow:hidden}
.hero h1{transform:perspective(900px) rotateX(4deg);transform-origin:50% 100%;filter:drop-shadow(0 3px 5px rgba(0,0,0,.6)) drop-shadow(0 10px 18px rgba(0,0,0,.6)) drop-shadow(0 0 24px rgba(255,215,0,.22))}
.hero-art{position:absolute;right:48px;top:26px;width:190px;transform:perspective(800px) rotateY(-12deg) rotateX(6deg);filter:drop-shadow(0 24px 32px rgba(0,0,0,.65)) drop-shadow(0 0 32px rgba(255,215,0,.35));animation:ittFloat 6s ease-in-out infinite;pointer-events:none}
.hero-art img{width:100%;height:auto;display:block;border-radius:28px}
@keyframes ittFloat{0%,100%{transform:perspective(800px) rotateY(-12deg) rotateX(6deg) translateY(0)}50%{transform:perspective(800px) rotateY(-12deg) rotateX(6deg) translateY(-10px)}}
@media (max-width:1100px){.hero-art{display:none}}
.workspace{transition:transform .25s ease, box-shadow .25s ease}
@media (hover:hover){.workspace:hover{transform:translateY(-2px)}}
.info-card{transition:border-color .15s, transform .15s, box-shadow .15s}
@media (hover:hover){.info-card:hover{border-color:var(--brand);transform:translateY(-4px);box-shadow:0 18px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,215,0,.35)}}

/* Preview figure with keyword-rich caption */
.preview-fig{margin:26px 0 0}
.preview-fig img{width:100%;height:auto;display:block;border-radius:var(--r-lg);border:1px solid var(--line2);box-shadow:0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,215,0,.2)}
.preview-fig figcaption{margin-top:10px;font-size:.88rem;color:var(--ink3);max-width:800px}
.preview-fig figcaption b{color:var(--ink2)}

/* Share section */
.share-section{background:linear-gradient(180deg,#14141b,#0d0d12);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;margin:26px 0}
.share-section h2{margin:0 0 6px;font-size:1.2rem}
.share-section p{margin:0 0 14px;color:var(--ink2);font-size:.95rem}
.share-btns{display:flex;gap:10px;flex-wrap:wrap}
.share-btns .btn{padding:10px 18px;font-size:.9rem}
.hashtags{margin-top:14px;font-size:.88rem;color:var(--ink3);overflow-wrap:break-word}
.hashtags b{color:var(--ink2)}

/* Cookie consent banner */
.cookie-banner{position:fixed;left:12px;right:12px;bottom:12px;z-index:10002;max-width:640px;margin:0 auto;background:#14141b;border:1px solid rgba(255,215,0,.6);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.7);padding:16px 18px;color:var(--ink2);font-size:.9rem}
.cookie-banner p{margin:0 0 12px}
.cookie-banner a{color:#ffd98a;font-weight:700}
.cookie-banner .btn-row{margin-top:0}
.cookie-banner .btn{padding:10px 18px;font-size:.9rem}

/* --- Day / Night mode toggle (owner standard, Nov 23) ---
   Default = classic black+gold night mode. One tap on the moon/sun
   button switches the WHOLE site to light day mode (deep purple + warm gold); the choice is saved in the
   visitor's browser (localStorage 'ahTheme') and kept on the next visit. */
.theme-toggle{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line2);background:var(--surface2);color:var(--brand);display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.25);transition:transform .12s, border-color .12s}
.theme-toggle:hover{border-color:var(--brand);transform:translateY(-1px)}
.theme-toggle svg{width:20px;height:20px;display:block}
.theme-toggle .icon-moon{display:none}
html[data-theme="light"] .theme-toggle .icon-moon{display:block}
html[data-theme="light"] .theme-toggle .icon-sun{display:none}

/* --- Light (day) mode — forest green + cream --- */
html[data-theme="light"]{
  --bg:#f7f5ea; --bg2:#efe9d6; --surface:#ffffff; --surface2:#f1ecdb;
  --ink:#1d3a2a; --ink2:#3d5a46; --ink3:#7d8a7a;
  --line:#d8d2b8; --line2:#b3a67f;
  --brand:#1b5e3b; --brand2:#14532d; --brand-soft:rgba(27,94,59,.12); --brand-deep:#f7f5ea;
  --gold:#b8860b; --gold-soft:rgba(184,134,11,.14);
  --amber:#b8860b; --amber-soft:rgba(184,134,11,.14);
  --red:#c62828; --red-soft:rgba(198,40,40,.12);
  --green:#2e7d32; --green-soft:rgba(46,125,50,.12);
  --shadow:0 10px 26px rgba(29,58,42,.12);
  --shadow-lg:0 24px 60px rgba(29,58,42,.18), 0 4px 18px rgba(184,134,11,.12);
}
html[data-theme="light"] header.site{background:rgba(250,248,238,.92);border-bottom:1px solid rgba(27,94,59,.4)}
html[data-theme="light"] .hero{background:radial-gradient(700px 300px at 85% -60px, rgba(240,194,75,.35), transparent 70%), radial-gradient(500px 260px at 0% 0%, rgba(27,94,59,.16), transparent 65%), linear-gradient(180deg,#f1ecdb 0%,#f7f5ea 100%);border-bottom:1px solid rgba(27,94,59,.35)}
html[data-theme="light"] .hero h1{text-shadow:0 2px 10px rgba(29,58,42,.12)}
html[data-theme="light"] .hero h1 .hl{background:linear-gradient(135deg,#14532d,#1b5e3b 55%,#2e7d32);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="light"] .badge{background:rgba(27,94,59,.1);border-color:rgba(27,94,59,.45);color:#14532d}
html[data-theme="light"] .badge.gold{background:rgba(184,134,11,.12);border-color:rgba(184,134,11,.5);color:#6b5312}
html[data-theme="light"] .workspace{background:linear-gradient(180deg,#ffffff,#f7f5ea)}
html[data-theme="light"] .ocr-stage{background:linear-gradient(150deg,#eef3e6 0%,#e6efe0 45%,#dcebd4 78%,#d2e3c8 100%);border-color:rgba(27,94,59,.55)}
html[data-theme="light"] .ocr-stage label.f{color:#1d3a2a}
html[data-theme="light"] .ocr-stage .hint{color:#4a6350}
html[data-theme="light"] .ocr-stage .field{background:rgba(255,255,255,.85);border-color:rgba(27,94,59,.5);color:#1d3a2a}
html[data-theme="light"] .ocr-stage .field::placeholder{color:#7d8a7a}
html[data-theme="light"] .field{background:#fff}
html[data-theme="light"] .ocr-counts{color:#3d5a46}
html[data-theme="light"] .ocr-counts b{color:#14532d}
html[data-theme="light"] .ocr-out{background:rgba(255,255,255,.9);border-color:rgba(27,94,59,.4);color:#1d3a2a}
html[data-theme="light"] .ocr-thumb{background:rgba(255,255,255,.7);border-color:rgba(27,94,59,.4)}
html[data-theme="light"] .ocr-thumb .ocr-thumb-name{color:#1d3a2a}
html[data-theme="light"] .ocr-thumb .ocr-thumb-meta{color:#4a6350}
html[data-theme="light"] .honest-note{border-color:rgba(27,94,59,.6);background:rgba(27,94,59,.08);color:#3d5a46}
html[data-theme="light"] .honest-note b{color:#1d3a2a}
html[data-theme="light"] .ba-box{background:linear-gradient(180deg,#ffffff,#f7f5ea)}
html[data-theme="light"] .ba-box.before{border-color:rgba(125,138,122,.5)}
html[data-theme="light"] .ba-box.after{border-color:rgba(27,94,59,.6)}
html[data-theme="light"] .ba-tag.robot{background:rgba(125,138,122,.14);color:#4a6350;border-color:rgba(125,138,122,.5)}
html[data-theme="light"] .ba-tag.human{background:rgba(27,94,59,.12);color:#14532d;border-color:rgba(27,94,59,.55)}
html[data-theme="light"] .howto,html[data-theme="light"] .info-card,html[data-theme="light"] .share-section,html[data-theme="light"] details.faq,html[data-theme="light"] .tool-card,html[data-theme="light"] .steps-box{background:linear-gradient(180deg,#ffffff,#f7f5ea)}
html[data-theme="light"] .tip{background:rgba(184,134,11,.12)}
html[data-theme="light"] .tag.key{background:var(--amber-soft);border-color:rgba(184,134,11,.55);color:#6b5312}
html[data-theme="light"] .site-icon{background:#f7f5ea;border-color:rgba(27,94,59,.55)}
html[data-theme="light"] .cookie-banner{background:#ffffff;border-color:rgba(27,94,59,.6)}
html[data-theme="light"] .cookie-banner a{color:#14532d}
html[data-theme="light"] .theme-toggle{box-shadow:0 4px 12px rgba(29,58,42,.18), inset 0 1px 0 rgba(255,255,255,.7)}

/* --- FULL HD 3D DEPTH PASS (owner standard, Nov 23) ---
   Real 3D depth, not flat colour: layered shadows, glossy highlights,
   carved-in fields, gold rim light, floating hero art. */
header.site{box-shadow:0 6px 24px rgba(0,0,0,.45), 0 1px 0 rgba(255,215,0,.25)}
.hero::after{content:"";display:block;height:2px;margin-top:30px;background:linear-gradient(90deg,transparent,rgba(255,215,0,.7),transparent);box-shadow:0 0 18px rgba(255,215,0,.45)}
.hero h1{filter:drop-shadow(0 3px 5px rgba(0,0,0,.65)) drop-shadow(0 12px 22px rgba(0,0,0,.6)) drop-shadow(0 0 28px rgba(255,215,0,.25))}
.hero-art{width:210px;filter:drop-shadow(0 28px 36px rgba(0,0,0,.7)) drop-shadow(0 0 36px rgba(255,215,0,.4))}
.hero-art::before{content:"";position:absolute;inset:-30px;border-radius:50%;background:radial-gradient(circle,rgba(255,215,0,.28),transparent 65%);filter:blur(10px);z-index:-1}
.badge{box-shadow:0 3px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25)}
.workspace{box-shadow:0 30px 70px rgba(0,0,0,.7), 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,215,0,.18), inset 0 1px 0 rgba(255,255,255,.1)}
.ws-head{box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.35)}
.ocr-stage{box-shadow:0 26px 56px rgba(0,0,0,.7), 0 0 0 1px rgba(255,215,0,.22), inset 0 1px 0 rgba(255,255,255,.16), inset 0 -2px 0 rgba(0,0,0,.45)}
.ocr-stage .field{box-shadow:inset 0 3px 8px rgba(0,0,0,.5)}
.ocr-stage .field:focus{box-shadow:inset 0 3px 8px rgba(0,0,0,.5), 0 0 0 3px rgba(255,215,0,.2)}
.field{box-shadow:inset 0 2px 6px rgba(0,0,0,.3)}
.field:focus{box-shadow:inset 0 2px 6px rgba(0,0,0,.3), 0 0 0 3px rgba(255,215,0,.18)}
.btn{box-shadow:0 8px 20px rgba(201,162,39,.4), 0 3px 6px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.3)}
.btn:hover{filter:brightness(1.1);transform:translateY(-2px);box-shadow:0 12px 26px rgba(201,162,39,.5), 0 4px 8px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.3)}
.btn:active{transform:translateY(1px);box-shadow:0 4px 10px rgba(201,162,39,.35), inset 0 2px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.3)}
.btn.ghost{box-shadow:0 4px 12px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.3)}
.btn.ghost:hover{transform:translateY(-1px)}
.tone-btn{box-shadow:0 3px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12)}
.tone-btn.active{box-shadow:0 6px 16px rgba(201,162,39,.55), 0 0 0 1px rgba(255,215,0,.5), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.25)}
.ocr-out{box-shadow:inset 0 3px 10px rgba(0,0,0,.35)}
.howto,.info-card,details.faq,.tool-card,.share-section,.steps-box,.ba-box{box-shadow:0 14px 34px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.09)}
.tool-card:hover,.info-card:hover{box-shadow:0 24px 48px rgba(0,0,0,.65), 0 6px 14px rgba(0,0,0,.4), 0 0 0 1px rgba(255,215,0,.4), inset 0 1px 0 rgba(255,255,255,.12)}
.step-num{box-shadow:0 5px 14px rgba(201,162,39,.45), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.25)}
.tool-ic{box-shadow:0 6px 16px rgba(201,162,39,.45), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.25)}
.logo-mark{box-shadow:0 5px 14px rgba(201,162,39,.5), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.25)}
.theme-toggle{box-shadow:0 5px 14px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.3)}
.preview-fig img{box-shadow:0 24px 54px rgba(0,0,0,.65), 0 0 0 1px rgba(255,215,0,.25), inset 0 1px 0 rgba(255,255,255,.1)}
.cookie-banner{box-shadow:0 28px 64px rgba(0,0,0,.75), 0 0 0 1px rgba(255,215,0,.25), inset 0 1px 0 rgba(255,255,255,.1)}
/* Light mode: same depth, softer shadows, purple-tinted fields */
html[data-theme="light"] .ocr-stage .field{box-shadow:inset 0 3px 8px rgba(29,58,42,.14)}
html[data-theme="light"] .ocr-stage .field:focus{box-shadow:inset 0 3px 8px rgba(29,58,42,.14), 0 0 0 3px rgba(184,134,11,.25)}
html[data-theme="light"] .field{box-shadow:inset 0 2px 6px rgba(29,58,42,.1)}
html[data-theme="light"] .field:focus{box-shadow:inset 0 2px 6px rgba(29,58,42,.1), 0 0 0 3px rgba(184,134,11,.22)}
html[data-theme="light"] .ocr-out{box-shadow:inset 0 3px 10px rgba(29,58,42,.1)}
html[data-theme="light"] .workspace,html[data-theme="light"] .howto,html[data-theme="light"] .info-card,html[data-theme="light"] details.faq,html[data-theme="light"] .tool-card,html[data-theme="light"] .share-section,html[data-theme="light"] .steps-box,html[data-theme="light"] .ba-box{box-shadow:0 14px 34px rgba(29,58,42,.16), 0 4px 10px rgba(29,58,42,.1), inset 0 1px 0 rgba(255,255,255,.8)}
html[data-theme="light"] .hero::after{background:linear-gradient(90deg,transparent,rgba(184,134,11,.7),transparent);box-shadow:0 0 18px rgba(184,134,11,.4)}

/* --- Emotion pass (owner: "make it with EMOTION", Nov 23) ---
   The hero pen must be felt on a phone too (it was hidden below 1100px),
   the main CTA gets a living shine sweep, and the mobile header stops
   wrapping the logo. */
@media (max-width:1100px){
  .hero-art{display:block;position:relative;right:auto;top:auto;width:128px;margin:2px auto 18px;animation:ittFloat 6s ease-in-out infinite}
  .hero-art img{border-radius:24px}
}
@media (max-width:640px){
  .logo small{display:none}
  .logo{font-size:1.12rem}
  .logo>span:last-child{white-space:nowrap}
  .nav{gap:10px}
  .nav-cta{padding:8px 12px!important;font-size:.85rem}
  .theme-toggle{width:36px;height:36px}
}
.btn.ocr-cta{position:relative;overflow:hidden}
.btn.ocr-cta::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(105deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:ittShine 4.5s ease-in-out infinite;pointer-events:none}
@keyframes ittShine{0%,60%{left:-60%}100%{left:130%}}
@media (prefers-reduced-motion: reduce){
  *{animation:none!important}
}

/* Mobile header: one row, no wrap, no squeeze (390px). */
.nav-links a{white-space:nowrap}
@media (max-width:640px){
  .logo{font-size:1rem}
  .logo-mark{width:34px;height:34px}
  .logo-mark img{width:34px;height:34px}
  .nav{gap:8px}
  .nav-links{gap:2px}
  .nav-cta{padding:7px 10px!important;font-size:.8rem}
  .theme-toggle{width:34px;height:34px}
}

/* Mobile header, tighter still — one row at 390px (measured). */
@media (max-width:640px){
  .logo{font-size:.95rem}
  .logo-mark{width:32px;height:32px}
  .logo-mark img{width:32px;height:32px}
  .nav{gap:6px}
  .nav-links{flex-wrap:nowrap}
  .nav-cta{padding:7px 9px!important;font-size:.78rem}
  .theme-toggle{width:32px;height:32px}
  .theme-toggle svg{width:17px;height:17px}
}
