/* DocAura — clay UI, built for easy reading */
:root {
  --indigo: #3B2D8F;
  --indigo-dark: #221A5C;
  --ink: #221A5C;
  --muted: #4A4370;
  --pink: #F7D9E3;
  --pink-soft: #FBEAF0;
  --ground: #F4EEF6;
  --line: #CFC8EE;
  --white: #FFFFFF;
  --ok: #1D6B45;
  --ok-bg: #DDF3E6;
  --err: #9B1C31;
  --err-bg: #FBE1E6;
  --clay: 0 22px 40px -18px rgba(59,45,143,.35), inset 0 -6px 0 rgba(59,45,143,.07), inset 0 3px 0 rgba(255,255,255,.9);
  --clay-dark: 0 20px 36px -14px rgba(59,45,143,.6), inset 0 -6px 0 rgba(0,0,0,.2), inset 0 3px 0 rgba(255,255,255,.18);
  --r-lg: 40px;
  --r-md: 30px;
  --r-sm: 20px;
  --base: 19px;
  color-scheme: light;
}
html.big-text { --base: 23px; }
html.big-text body { font-size: var(--base); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--base);
  line-height: 1.55;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }
:focus-visible { outline: 4px solid #F08DAE; outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 12px 20px; border-radius: 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 26px; letter-spacing: -.5px; }
.logo strong { font-weight: 800; }
.logo-mark { width: 54px; height: 54px; border-radius: 18px; background: var(--indigo); display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(59,45,143,.55), inset 0 -5px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.25); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { padding: 12px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--white); }
.text-btn { font: inherit; font-size: 17px; font-weight: 700; color: var(--indigo); background: var(--white); border: 0; border-radius: 999px; padding: 10px 20px; min-height: 52px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 12px 24px -12px rgba(59,45,143,.35), inset 0 -4px 0 rgba(59,45,143,.08); }
.text-btn .a1 { font-size: 15px; } .text-btn .a2 { font-size: 23px; }
@media (max-width: 700px) {
  .nav a.hide-sm { display: none; }
  .logo { font-size: 22px; } .logo-mark { width: 46px; height: 46px; border-radius: 15px; }
}

/* Generic clay surfaces */
.card { background: var(--white); border-radius: var(--r-md); padding: 28px; box-shadow: var(--clay); }
.card-pink { background: var(--pink); border-radius: var(--r-lg); box-shadow: 0 30px 60px -24px rgba(59,45,143,.35), inset 0 -8px 0 rgba(59,45,143,.07), inset 0 4px 0 rgba(255,255,255,.7); }
.card-indigo { background: var(--indigo); color: var(--white); border-radius: var(--r-lg); box-shadow: var(--clay-dark); }
.section { padding: 28px 0; }
.section h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 1.05em; }

/* Buttons */
.btn { font: inherit; font-weight: 700; font-size: 1.05em; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 32px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; color: var(--white); background: var(--indigo); box-shadow: var(--clay-dark); transition: transform .08s; }
.btn:hover { color: var(--white); background: #33267F; }
.btn:active { transform: translateY(2px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-light { color: var(--indigo); background: var(--white); box-shadow: 0 14px 28px -14px rgba(59,45,143,.45), inset 0 -5px 0 rgba(59,45,143,.1); }
.btn-light:hover { color: var(--indigo-dark); background: var(--white); }
.btn-big { min-height: 72px; font-size: 1.15em; width: 100%; }
.btn-small { min-height: 48px; padding: 0 20px; font-size: .9em; }
.link-btn { font: inherit; background: none; border: 0; color: var(--indigo); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 8px; min-height: 44px; }

/* Hero */
.hero { padding: 32px 0 16px; }
.hero .card-pink { padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -1px; max-width: 820px; }
.hero p { color: var(--muted); font-size: 1.1em; max-width: 640px; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--indigo); font-weight: 600; font-size: 16px; padding: 10px 18px; border-radius: 999px; }
.search { width: 100%; max-width: 720px; display: flex; flex-wrap: wrap; gap: 10px; background: var(--white); border-radius: 36px; padding: 10px; box-shadow: 0 18px 36px -14px rgba(59,45,143,.4), inset 0 -4px 0 rgba(59,45,143,.06); }
.search input { flex: 1 1 240px; min-width: 0; font: inherit; color: var(--ink); border: 0; outline: none; background: transparent; padding: 12px 20px; min-height: 60px; }
.search .btn { min-height: 60px; }

/* Feature (resume) */
.feature { padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.feature .text { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.feature p { color: #E4DEFF; font-size: 1.05em; }
.badge { align-self: flex-start; background: var(--pink); color: var(--ink); font-weight: 700; font-size: 15px; padding: 7px 16px; border-radius: 999px; }
.feature .art { flex: 1 1 240px; display: flex; justify-content: center; }
.mini-resume { width: 240px; background: var(--white); border-radius: 30px; padding: 24px; display: flex; flex-direction: column; gap: 11px; transform: rotate(3deg); box-shadow: 0 30px 50px -18px rgba(0,0,0,.5); }
.mini-resume i { display: block; height: 9px; border-radius: 6px; background: #E9E4F7; }
.mini-resume i.d { background: var(--indigo); height: 11px; }

/* Tool grid */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 24px; }
.tool { text-decoration: none; color: var(--ink); background: var(--white); border-radius: 34px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--clay); transition: transform .12s; }
.tool:hover { transform: translateY(-4px); color: var(--ink); }
.tool .ic { width: 72px; height: 72px; border-radius: 24px; background: var(--pink); display: grid; place-items: center; }
.tool .ic.dark { background: var(--indigo); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.tool .t { font-size: 1.15em; font-weight: 700; }
.tool .d { font-size: .93em; color: var(--muted); }
.tool[hidden] { display: none; }
.no-match { padding: 20px; color: var(--muted); }
@media (max-width: 560px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tool { padding: 18px; border-radius: 26px; }
  .tool .ic { width: 54px; height: 54px; border-radius: 18px; }
  .tool .ic svg { width: 28px; height: 28px; }
  .tool .t { font-size: 1em; }
  .tool .d { display: none; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 24px; }
.step { background: var(--pink-soft); border-radius: 34px; padding: 30px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 -6px 0 rgba(59,45,143,.07), inset 0 3px 0 rgba(255,255,255,.8); }
.num { width: 60px; height: 60px; border-radius: 50%; background: var(--indigo); color: var(--white); font-size: 28px; font-weight: 800; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); flex: 0 0 auto; }
.step b { font-size: 1.2em; }
.step span:not(.num) { color: var(--muted); }
#color .choice span { box-shadow: 0 0 0 3px #fff; }

/* Ads */
.ad-slot { margin: 24px auto; max-width: 1200px; padding: 0 20px; }
.ad-slot:empty { display: none; }
.ad-label { font-size: 13px; color: #6B6492; text-transform: uppercase; letter-spacing: 1px; text-align: center; margin-bottom: 6px; }

/* Footer */
.site-footer { padding: 28px 0 48px; }
.site-footer .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-radius: var(--r-lg); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer nav a { padding: 10px 14px; font-weight: 600; }
.site-footer small { display: block; width: 100%; color: var(--muted); font-size: 15px; }

/* ---------- Tool pages ---------- */
.tool-head { display: flex; align-items: center; gap: 16px; padding: 24px 0 8px; }
.back { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(59,45,143,.4), inset 0 -4px 0 rgba(59,45,143,.08); }
.tool-head h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; }
.tool-sub { color: var(--muted); margin: 6px 0 20px; font-size: 1.05em; }
.progress-steps { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); font-size: 16px; margin: 8px 0 22px; flex-wrap: wrap; }
.progress-steps .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--indigo); display: grid; place-items: center; font-weight: 800; }
.progress-steps .on .dot { background: var(--indigo); color: var(--white); }
.progress-steps .ps { display: flex; align-items: center; gap: 8px; }
.progress-steps .bar { flex: 1 1 24px; min-width: 16px; height: 4px; border-radius: 4px; background: var(--line); }
@media (max-width: 560px) {
  .progress-steps { flex-wrap: nowrap; }
  .progress-steps .ps:not(.cur) .lbl { display: none; }
  .search .btn { flex: 1 1 100%; }
  .search { border-radius: 30px; }
  .feature .art { display: none; }
}

.panel { background: var(--white); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--clay); display: flex; flex-direction: column; gap: 22px; }

.drop { position: relative; cursor: pointer; background: var(--pink); border-radius: 34px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; border: 4px dashed transparent; box-shadow: inset 0 -6px 0 rgba(59,45,143,.07), inset 0 3px 0 rgba(255,255,255,.7); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--indigo); background: #F3CCD9; }
.drop .ic { width: 88px; height: 88px; border-radius: 28px; background: var(--white); display: grid; place-items: center; box-shadow: inset 0 -5px 0 rgba(59,45,143,.08); }
.drop b { font-size: 1.2em; }
.drop span { color: var(--muted); font-size: .92em; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.field-label { font-weight: 700; font-size: 1.05em; display: block; margin-bottom: 10px; }
.hint { color: var(--muted); font-size: .85em; margin-top: 8px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.choice { font: inherit; font-weight: 700; font-size: 1em; color: var(--indigo); background: var(--ground); border: 0; border-radius: 22px; min-height: 64px; padding: 8px 12px; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(59,45,143,.08); }
.choice[aria-pressed="true"] { color: var(--white); background: var(--indigo); box-shadow: 0 12px 22px -10px rgba(59,45,143,.7), inset 0 -5px 0 rgba(0,0,0,.22); }
.choice small { display: block; font-weight: 500; font-size: .75em; opacity: .85; }
.input, select.input, textarea.input { font: inherit; color: var(--ink); background: var(--ground); border: 3px solid transparent; border-radius: 18px; padding: 12px 16px; min-height: 58px; width: 100%; }
.input:focus { border-color: var(--indigo); outline: none; background: var(--white); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.row > * { flex: 1 1 160px; }

.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-item { display: flex; align-items: center; gap: 12px; background: var(--ground); border-radius: 22px; padding: 12px 14px; }
.file-item .thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--white); object-fit: cover; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; }
.file-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-item .sz { color: var(--muted); font-size: .85em; font-weight: 500; display: block; }
@media (max-width: 560px) {
  .file-item { flex-wrap: wrap; }
  .file-item .nm { flex: 1 1 calc(100% - 72px); }
  .file-item .icon-btn:first-of-type { margin-left: auto; }
}
.file-item .thumb { transition: transform .2s; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.org-card { background: var(--ground); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.org-card .pv { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 12px; overflow: hidden; }
.org-card .pv canvas, .org-card .pv img { max-width: 92%; max-height: 92%; transition: transform .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.org-card .lbl { font-weight: 700; }
.org-card .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.org-card .icon-btn { width: 44px; height: 44px; }
.icon-btn { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; border: 0; background: var(--white); color: var(--indigo); cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(59,45,143,.1); }
.icon-btn[disabled] { opacity: .35; cursor: default; }

.status { border-radius: 22px; padding: 16px 20px; font-weight: 600; display: none; }
.status.show { display: block; }
.status.info { background: var(--pink-soft); color: var(--ink); }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.err { background: var(--err-bg); color: var(--err); }
.bar-wrap { height: 14px; border-radius: 999px; background: var(--ground); overflow: hidden; margin-top: 10px; }
.bar-fill { height: 100%; width: 0; background: var(--indigo); border-radius: 999px; transition: width .2s; }

.result { display: none; flex-direction: column; gap: 16px; align-items: stretch; background: var(--ok-bg); border-radius: 30px; padding: 24px; }
.result.show { display: flex; }
.result h2 { font-size: 1.3em; color: var(--ok); display: flex; gap: 10px; align-items: center; }
.result .meta { font-weight: 600; }
.result .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.result .btns > * { flex: 1 1 220px; }
.preview-img { max-height: 320px; width: auto; align-self: center; border-radius: 18px; background: var(--white); box-shadow: var(--clay); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.page-thumb { position: relative; background: var(--ground); border-radius: 18px; padding: 10px; border: 4px solid transparent; cursor: pointer; text-align: center; font: inherit; font-weight: 700; color: var(--ink); }
.page-thumb img, .page-thumb canvas { width: 100%; height: auto; border-radius: 8px; background: var(--white); display: block; margin-bottom: 6px; }
.page-thumb[aria-pressed="true"] { border-color: var(--indigo); background: var(--pink); }
.page-thumb .tick { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); display: none; place-items: center; }
.page-thumb[aria-pressed="true"] .tick { display: grid; }
.page-thumb a { color: var(--indigo); }

.faq { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 24px; padding: 4px 22px; box-shadow: var(--clay); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; min-height: 44px; list-style-position: outside; }
.faq details p { padding: 0 0 18px; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.related a { background: var(--white); border-radius: 999px; padding: 12px 20px; text-decoration: none; font-weight: 600; box-shadow: var(--clay); }

.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 1.4em; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 1.2em; }

/* Passport crop */
.crop-box { position: relative; align-self: center; touch-action: none; user-select: none; border-radius: 18px; overflow: hidden; background: #ddd; box-shadow: var(--clay); }
.crop-box canvas { display: block; cursor: grab; }
.zoom-row { display: flex; align-items: center; gap: 12px; }
.zoom-row input[type=range] { flex: 1; height: 44px; accent-color: var(--indigo); }

/* ---------- Resume builder ---------- */
.rb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 28px; }
@media (max-width: 980px) { .rb { grid-template-columns: minmax(0, 1fr); } }
.rb-form { display: flex; flex-direction: column; gap: 18px; }
.rb-sec { background: var(--white); border-radius: 30px; padding: 22px; box-shadow: var(--clay); display: flex; flex-direction: column; gap: 14px; }
.rb-sec > h2 { font-size: 1.2em; display: flex; align-items: center; gap: 12px; }
.rb-sec > h2 .num { width: 44px; height: 44px; font-size: 20px; }
.rb-sec label { font-weight: 600; font-size: .92em; display: block; margin-bottom: 6px; }
.rb-entry { background: var(--ground); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rb-entry .input { background: var(--white); }
.rb-entry .top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.rb-preview-wrap { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 980px) { .rb-preview-wrap { position: static; } }
.rb-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-toolbar .choice { min-height: 52px; flex: 1 1 100px; }
.paper-outer { background: #D8D1EA; border-radius: 30px; padding: 16px; overflow: hidden; }
.paper { background: #fff; color: #1d1d1f; aspect-ratio: 210 / 297; width: 100%; overflow: hidden; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.15); font-family: Helvetica, Arial, sans-serif; position: relative; }
.paper canvas { width: 100%; height: auto; display: block; }
.mobile-jump { display: none; }
.design-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--white); border-radius: 26px; padding: 14px 16px 14px 20px; box-shadow: var(--clay); }
.tpl-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.tpl-tag.ats { background: var(--ok-bg); color: var(--ok); }
.tpl-tag.stylish { background: var(--pink); color: var(--ink); }
#color .choice[data-value="theme"] { flex: 2 1 150px; font-size: .9em; }
.design-dialog { border: 0; border-radius: 34px; padding: clamp(18px, 3vw, 30px); width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--ground); color: var(--ink); box-shadow: 0 40px 80px rgba(34,26,92,.4); font-family: inherit; }
.design-dialog::backdrop { background: rgba(34,26,92,.55); }
.design-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; position: sticky; top: -30px; background: var(--ground); padding: 6px 0; z-index: 1; }
.design-head h2 { font-size: 1.5em; font-weight: 800; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.design-card { font: inherit; color: var(--ink); background: var(--white); border: 4px solid transparent; border-radius: 24px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; box-shadow: var(--clay); }
.design-card[aria-pressed="true"] { border-color: var(--indigo); }
.design-img { width: 100%; aspect-ratio: 210 / 297; border-radius: 12px; overflow: hidden; background: #F1EEF7; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #E3DEF0; }
.design-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.design-ph { color: var(--muted); font-size: 14px; }
.design-name { font-weight: 700; font-size: 1.02em; padding: 0 4px; }
.design-card .tpl-tag { margin: 0 4px 4px; font-size: 12px; }
@media (max-width: 980px) {
  .mobile-jump { display: flex; position: sticky; bottom: 12px; z-index: 5; }
}
.promise { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-weight: 600; font-size: 15px; color: var(--ok); margin: -8px 0 16px; }
.promise span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
/* Sign PDF */
.sig-pad-wrap { position: relative; background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 3px var(--line); }
.sig-pad { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; border-radius: 24px; }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 54px; border-bottom: 2px dashed #CFC8EE; color: #B7AEDB; font-size: 20px; line-height: 1; pointer-events: none; padding-bottom: 4px; }
.sig-font { min-height: 86px; font-size: 30px; font-weight: 400; line-height: 1.1; }
.sig-font[aria-pressed="true"] small { color: #fff; }
.sign-stage { position: relative; align-self: center; max-width: 100%; box-shadow: 0 10px 30px rgba(34,26,92,.18); border-radius: 6px; overflow: hidden; background: #fff; touch-action: manipulation; cursor: copy; }
.sign-stage canvas { display: block; }
.sign-layer { position: absolute; inset: 0; }
.sign-item { position: absolute; cursor: grab; touch-action: none; outline: 2px dashed rgba(59,45,143,.55); outline-offset: 2px; border-radius: 4px; }
.sign-item.sel { outline: 3px solid var(--indigo); background: rgba(247,217,227,.25); }
.sign-item img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.sel-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--pink-soft); border-radius: 22px; padding: 10px 14px; }
/* PDF to Word sample */
.word-sample { background: #fff; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; font-family: Calibri, Arial, sans-serif; color: #222; font-size: 16px; max-height: 260px; overflow: auto; box-shadow: inset 0 0 0 1px #E3DEF0; }
.word-sample:empty { display: none; }
/* Edit PDF */
.ed-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.ed-tools .choice { min-height: 58px; font-size: .9em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ed-tools .choice svg { width: 24px; height: 24px; }
.ed-stage { position: relative; align-self: center; max-width: 100%; box-shadow: 0 10px 30px rgba(34,26,92,.18); border-radius: 6px; overflow: hidden; background: #fff; touch-action: manipulation; }
.ed-stage canvas { display: block; }
.ed-layer { position: absolute; inset: 0; }
.ed-item { position: absolute; touch-action: none; }
.ed-item.sel { outline: 2px solid var(--indigo); outline-offset: 2px; }
.ed-item .grip { position: absolute; left: -30px; top: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: #fff; display: none; place-items: center; cursor: move; touch-action: none; }
.ed-item.sel .grip { display: grid; }
.ed-item .rs { position: absolute; right: -12px; bottom: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--indigo); border: 3px solid #fff; display: none; cursor: nwse-resize; touch-action: none; }
.ed-item.sel .rs { display: block; }
.ed-text { font-family: Helvetica, Arial, sans-serif; line-height: 1.2; white-space: pre; outline: none; min-width: 1ch; padding: 0; cursor: text; }
.ed-item.text:not(.sel) .ed-text:empty::before { content: 'Type here'; color: #999; }
/* Finger-sized invisible tap area around text boxes (on phones the box itself can be only a few pixels) */
.ed-item.text::before { content: ''; position: absolute; left: -10px; right: -48px; top: -18px; bottom: -18px; }
.ed-item.text .ed-text { position: relative; z-index: 1; }
.ed-white { background: #fff; width: 100%; height: 100%; box-shadow: inset 0 0 0 1px #ddd; }
.ed-hl { background: rgba(255, 230, 0, .45); width: 100%; height: 100%; mix-blend-mode: multiply; }
.ed-item img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.ed-field { position: absolute; background: rgba(214, 228, 255, .75); border: 1px solid #7C9BE0; border-radius: 3px; font-family: Helvetica, Arial, sans-serif; color: #111; padding: 0 3px; box-sizing: border-box; }
.ed-field:focus { outline: 3px solid var(--indigo); background: #fff; }
textarea.ed-field { resize: none; line-height: 1.15; }
input[type=checkbox].ed-field, input[type=radio].ed-field { margin: 0; accent-color: #3B2D8F; padding: 0; }
.ed-layer { pointer-events: none; }
.ed-layer > * { pointer-events: auto; }
/* Resume extras */
.design-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.design-filter button { font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; padding: 10px 16px; min-height: 44px; background: #fff; color: var(--indigo); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(59,45,143,.08); }
.design-filter button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.design-best { font-size: 13px; color: var(--muted); padding: 0 4px; line-height: 1.35; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-top: 18px; align-items: start; }
@media (max-width: 560px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kw { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 15px; font-weight: 600; }
.kw.hit { background: var(--ok-bg); color: var(--ok); }
.kw.miss { background: var(--pink); color: var(--ink); }
.kw button { font: inherit; font-size: 13px; border: 0; background: #fff; color: var(--indigo); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-weight: 700; min-height: 30px; }
.meter { display: flex; align-items: center; gap: 16px; }
.meter .ring { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: 0 0 auto; }
.tip { background: var(--ground); border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.tip .tx { flex: 1; min-width: 0; font-size: .92em; }
.tip .tx q { display: block; color: var(--muted); font-style: italic; margin-top: 2px; overflow-wrap: anywhere; }
.tip .btn { flex: 0 0 auto; }
.tip.good { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.tpl-tag { white-space: nowrap; }
#color { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
#color .choice[data-value="theme"] { grid-column: 1 / -1; }
#font { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .design-bar #tpl-tag { display: block; width: max-content; margin-top: 4px; } }
/* Design showcase */
.showcase { margin: 4px 0 30px; }
.show-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.show-head h2, .fill-h { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.fill-h { margin: 0 0 16px; }
.show-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .show-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .show-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.show-card { background: #fff; border-radius: 26px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--clay); border: 4px solid transparent; transition: transform .15s, border-color .15s; }
.show-card:hover { transform: translateY(-4px); }
.show-card.on { border-color: var(--indigo); }
.show-img { all: unset; cursor: pointer; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 210 / 297; background: #f1eef7; box-shadow: 0 6px 18px rgba(34,26,92,.14); }
.show-img:focus-visible { outline: 4px solid #F08DAE; }
.show-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s; }
.show-card:hover .show-img img { transform: scale(1.03); }
.show-info { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.show-info b { font-size: 1.05em; }
.show-use { width: 100%; }
.show-card.on .show-use { background: var(--ok); }
@media (max-width: 560px) { .show-card { padding: 8px; border-radius: 20px; } .show-info .tpl-tag { display: none; } .show-use { font-size: 15px; padding: 0 10px; } }
/* Homepage resume fan */
.fan { position: relative; width: 300px; height: 300px; }
.fan img { position: absolute; width: 170px; height: auto; border-radius: 10px; box-shadow: 0 24px 40px -14px rgba(0,0,0,.55); background: #fff; }
.fan img:nth-child(1) { left: 0; top: 40px; transform: rotate(-9deg); }
.fan img:nth-child(2) { left: 130px; top: 40px; transform: rotate(9deg); }
.fan img:nth-child(3) { left: 65px; top: 10px; z-index: 2; }
/* Guides */
.crumbs { font-size: 15px; color: var(--muted); padding: 22px 0 6px; }
.crumbs a { font-weight: 600; }
.article h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.5px; margin: 6px 0 8px; }
.art-meta { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.art-body { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--clay); margin: 18px 0; font-size: 1.02em; line-height: 1.7; }
.art-body h2 { font-size: 1.45em; margin-top: 22px; }
.art-body h3 { font-size: 1.15em; margin-top: 10px; }
.art-body ul, .art-body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.art-body table { width: 100%; border-collapse: collapse; font-size: .95em; }
.art-body .tbl { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.art-body th, .art-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #ECE8F6; vertical-align: top; }
.art-body th { background: var(--pink-soft); }
.art-body .note { background: var(--pink-soft); border-radius: 18px; padding: 14px 18px; }
.art-body .tip { background: var(--ok-bg); color: var(--ink); border-radius: 18px; padding: 14px 18px; display: block; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--pink); border-radius: 30px; padding: 18px 20px; box-shadow: inset 0 -5px 0 rgba(59,45,143,.07); }
.cta-card .ic { width: 60px; height: 60px; border-radius: 20px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.cta-card .ic.dark { background: var(--indigo); }
.cta-card div { flex: 1 1 220px; display: flex; flex-direction: column; }
.cta-card div span { color: var(--muted); font-size: .92em; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.guide-card { text-decoration: none; color: var(--ink); background: #fff; border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--clay); transition: transform .12s; }
.guide-card:hover { transform: translateY(-3px); color: var(--ink); }
.guide-card b { font-size: 1.08em; line-height: 1.3; }
.guide-card span:last-child { color: var(--muted); font-size: .9em; }
.g-tag { align-self: flex-start; background: var(--pink-soft); color: var(--indigo); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
/* Resume example & template pages */
.ex-hero { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 40px); align-items: flex-start; margin: 10px 0 8px; }
.ex-img { flex: 1 1 280px; max-width: 420px; display: block; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -18px rgba(34,26,92,.45); }
.ex-img img { width: 100%; height: auto; display: block; }
.ex-side { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 1.08em; }
.ex-side .btn-big { width: 100%; max-width: 460px; }
.ex-quote { margin: 10px 0; background: var(--pink-soft); border-left: 6px solid var(--indigo); border-radius: 14px; padding: 12px 16px; font-style: italic; }
.art-body ul.skill-chips { list-style: none; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.skill-chips li { background: var(--ground); color: var(--indigo); font-weight: 600; font-size: .92em; border-radius: 999px; padding: 6px 14px; }
a.show-img { text-decoration: none; }
a.show-use { text-decoration: none; }
.show-grid.show-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .show-grid.show-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article .lead + .promise { margin-top: 14px; }
.btn-ghost-light { color: #fff; background: transparent; box-shadow: inset 0 0 0 3px rgba(255,255,255,.75); }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.12); }
/* Support / buy me a chai */
.support { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; background: linear-gradient(135deg, #FDEFF4, #F7D9E3); border-radius: 30px; padding: 20px 22px; box-shadow: var(--clay); }
.support[hidden] { display: none; }
.sup-after { margin: 20px 0 6px; animation: supIn .5s ease-out both; }
@keyframes supIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.sup-cup { font-size: 40px; width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-items: center; background: #fff; border-radius: 22px; box-shadow: 0 8px 18px -10px rgba(59,45,143,.5); animation: supSteam 2.6s ease-in-out infinite; }
.sup-cup.big { font-size: 64px; width: 110px; height: 110px; border-radius: 34px; margin: 0 auto; }
@keyframes supSteam { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .sup-cup, .sup-after { animation: none; } }
.sup-text { flex: 999 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sup-text b { font-size: 1.12em; color: var(--indigo); }
.sup-text span { color: var(--ink); font-size: .95em; }
.sup-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: 1 1 auto; }
.sup-btns.center { justify-content: center; }
.sup-btns .btn small { font-weight: 600; opacity: .8; font-size: .8em; }
.sup-more { font-weight: 600; font-size: .95em; }
.sup-full { flex-direction: column; text-align: center; padding: 28px 22px; margin: 18px 0; }
.sup-qr { margin: 6px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sup-qr img { width: 220px; height: 220px; background: #fff; border-radius: 22px; padding: 12px; box-shadow: var(--clay); }
.sup-qr figcaption { font-size: .92em; color: var(--muted); }
.sup-lead { font-size: 1.12em; }
.sup-btns .btn { flex: 1 1 auto; justify-content: center; }
@media (min-width: 700px) { .sup-btns .btn { flex: 0 1 auto; } }
.sup-btns .btn { white-space: nowrap; }
/* Support page: QR + button first, side by side on computers */
.sup-full { margin: 10px 0 24px; }
@media (min-width: 760px) {
  .sup-full { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cup qr" "btns qr" "note note"; align-items: center; text-align: left; gap: 14px 40px; padding: 30px 40px; }
  .sup-full .sup-cup { grid-area: cup; margin: 0; }
  .sup-full .sup-btns { grid-area: btns; justify-content: flex-start; }
  .sup-full .sup-qr { grid-area: qr; margin: 0; }
  .sup-full > .hint { grid-area: note; text-align: center; }
}
/* "Buy me a chai" card inside the homepage tool grid */
.tool.sup-tool { background: linear-gradient(140deg, #FDEFF4, #F7D9E3 55%, #F3C5D6); box-shadow: var(--clay), inset 0 0 0 2px rgba(240,141,174,.45); }
.tool.sup-tool .sup-ic { background: #fff; font-size: 38px; animation: supSteam 2.6s ease-in-out infinite; }
.tool.sup-tool .t { color: var(--indigo); }
.tool.sup-tool .d { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tool.sup-tool .sup-ic { animation: none; } }
/* ---------- Animated cutting-chai (homepage card, after-download card, support page) ---------- */
:root { --chai: #C8702A; --saffron: #F4A340; --chai-pink: #F08DAE; --steam: #C9BEEA; }
.chai { width: 74%; height: 74%; overflow: visible; }
.chai .glass { fill: rgba(255,255,255,.7); stroke: #D9B58C; stroke-width: 1.6; }
.chai .foam { fill: #F6DDB8; }
.chai .ridges { stroke: rgba(255,255,255,.35); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.chai .shine { stroke: rgba(255,255,255,.85); stroke-width: 2; fill: none; stroke-linecap: round; }
.chai .steam path { stroke: var(--steam); opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: chaiSteam 2.8s ease-in-out infinite; }
.chai .steam .s2 { animation-delay: .9s; } .chai .steam .s3 { animation-delay: 1.8s; }
@keyframes chaiSteam { 0% { opacity: 0; transform: translateY(6px) scaleY(.7); } 35% { opacity: .95; } 100% { opacity: 0; transform: translateY(-9px) scaleY(1.15); } }
.chai .tea, .chai .foam { transform-box: fill-box; transform-origin: center; animation: chaiSway 3.4s ease-in-out infinite; }
@keyframes chaiSway { 0%,100% { transform: skewX(0) } 50% { transform: skewX(-2.5deg) } }
/* the emoji-era wobble is no longer wanted on the cup tiles */
.sup-cup, .tool.sup-tool .sup-ic { animation: none; font-size: 0; }
.sup-cup { background: #fff; box-shadow: 0 10px 22px -12px rgba(200,112,42,.65), inset 0 -4px 0 rgba(244,163,64,.18); }

/* Warm saffron-to-pink cards that slowly shimmer */
.tool.sup-tool, .support {
  background: linear-gradient(120deg, #FFF1DC 0%, #FDE2C8 22%, #FBD3DF 50%, #F7D9E3 72%, #FFE9D2 100%);
  background-size: 240% 240%; animation: chaiGlow 9s ease-in-out infinite;
}
@keyframes chaiGlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.tool.sup-tool { box-shadow: var(--clay), inset 0 0 0 2px rgba(244,163,64,.45); position: relative; overflow: hidden; }
.tool.sup-tool .t { color: #9A4A12; }
.tool.sup-tool::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: rotate(18deg); animation: chaiShine 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes chaiShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.tool.sup-tool:hover .sup-ic, .tool.sup-tool:focus-visible .sup-ic { transform: rotate(-8deg) scale(1.06); }
.tool.sup-tool .sup-ic { transition: transform .25s; }
.sup-text b { color: #9A4A12; }
.sup-upi { background: linear-gradient(135deg, #C8702A, #E0844A 45%, #D9607F); box-shadow: 0 14px 26px -14px rgba(200,112,42,.9), inset 0 -5px 0 rgba(0,0,0,.14); }
.sup-upi:hover { filter: brightness(1.06); }
.sup-upi::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FFE3B3; margin-right: 10px; box-shadow: 0 0 0 0 rgba(255,227,179,.8); animation: chaiPulse 2s ease-out infinite; }
@keyframes chaiPulse { 0% { box-shadow: 0 0 0 0 rgba(255,227,179,.85); } 100% { box-shadow: 0 0 0 10px rgba(255,227,179,0); } }
@media (prefers-reduced-motion: reduce) {
  /* big background effects off; the small steam keeps rising, slowly */
  .tool.sup-tool, .support, .tool.sup-tool::after, .sup-upi::before, .chai .tea, .chai .foam { animation: none; }
  .chai .steam path { animation-duration: 4.2s; }
}
/* bigger, clearer chai glass and steam */
.chai { width: 96%; height: 96%; }
:root { --steam: #A996DF; }
.chai .steam path { stroke-width: 3.6; }
.chai .glass { stroke: #CFA06E; stroke-width: 2; }
.tool.sup-tool .sup-ic .chai { width: 60px; height: 60px; }
.sup-cup .chai { width: 58px; height: 58px; }
.sup-cup.big .chai { width: 96px; height: 96px; }
/* ---------- Chai scene: mascot pours chai, puppy wags ---------- */
.sup-scene { flex: 0 0 auto; width: 170px; max-width: 100%; }
.sup-scene.big { width: 300px; margin: 0 auto; }
.chai-scene { width: 100%; height: auto; display: block; overflow: visible; }
.chai-scene .cs-kettle { transform-box: view-box; transform-origin: 98px 84px; animation: csPour 5s ease-in-out infinite; }
@keyframes csPour { 0%, 8% { transform: rotate(-16deg); } 22%, 68% { transform: rotate(4deg); } 82%, 100% { transform: rotate(-16deg); } }
.chai-scene .cs-stream { stroke-dasharray: 46; stroke-dashoffset: 46; opacity: 0; animation: csStream 5s ease-in-out infinite; }
@keyframes csStream { 0%, 20% { opacity: 0; stroke-dashoffset: 46; } 26% { opacity: 1; stroke-dashoffset: 0; } 66% { opacity: 1; stroke-dashoffset: 0; } 72%, 100% { opacity: 0; stroke-dashoffset: -46; } }
.chai-scene .cs-fill { transform-box: view-box; transform-origin: 135px 149px; animation: csFill 5s ease-in-out infinite; }
@keyframes csFill { 0%, 22% { transform: scaleY(.04); } 70% { transform: scaleY(.88); } 96% { transform: scaleY(.88); } 100% { transform: scaleY(.04); } }
.chai-scene .cs-steam1 path, .chai-scene .cs-steam2 path { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: csSteam 2.4s ease-in-out infinite; }
.chai-scene .cs-steam1 path { animation-name: csSteam1; animation-duration: 5s; }
.chai-scene .cs-steam1 path:nth-child(2), .chai-scene .cs-steam2 path:nth-child(2) { animation-delay: .8s; }
@keyframes csSteam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes csSteam1 { 0%, 70% { opacity: 0; transform: translateY(4px); } 82% { opacity: .9; } 96%, 100% { opacity: 0; transform: translateY(-8px); } }
.chai-scene .cs-blink { transform-box: fill-box; transform-origin: center; animation: csBlink 4.2s infinite; }
@keyframes csBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.chai-scene .cs-doc { transform-box: view-box; transform-origin: 49px 142px; animation: csBob 2.5s ease-in-out infinite; }
@keyframes csBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.chai-scene .cs-tail { transform-box: view-box; transform-origin: 206px 128px; animation: csWag .5s ease-in-out infinite alternate; }
@keyframes csWag { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.chai-scene .cs-head { transform-box: view-box; transform-origin: 196px 124px; animation: csTilt 5s ease-in-out infinite; }
@keyframes csTilt { 0%, 30%, 100% { transform: rotate(0); } 45%, 70% { transform: rotate(-8deg); } }
.chai-scene .cs-tongue { transform-box: fill-box; transform-origin: top; animation: csPant .5s ease-in-out infinite alternate; }
@keyframes csPant { from { transform: scaleY(.6); } to { transform: scaleY(1.1); } }
/* With "reduce motion" on (often switched on by battery saver), keep the chai scene moving but slower and smaller */
@media (prefers-reduced-motion: reduce) {
  .chai-scene .cs-kettle { animation: csPourSoft 6s ease-in-out infinite !important; }
  .chai-scene .cs-stream, .chai-scene .cs-fill, .chai-scene .cs-steam1 path { animation-duration: 6s !important; }
  .chai-scene .cs-tail { animation: csWag 1s ease-in-out infinite alternate !important; }
  .chai-scene .cs-doc, .chai-scene .cs-head { animation: none !important; }
}
@keyframes csPourSoft { 0%, 10% { transform: rotate(-8deg); } 25%, 68% { transform: rotate(4deg); } 82%, 100% { transform: rotate(-8deg); } }
@media (max-width: 640px) { .sup-after .sup-scene { width: 220px; margin: 0 auto; } }
/* Language switch (हिंदी / English) in the top menu */
.nav .lang-switch { font-weight: 700; color: var(--indigo); background: var(--white); border-radius: 999px; padding: 8px 14px; box-shadow: var(--clay); text-decoration: none; white-space: nowrap; }
.nav .lang-switch:hover { color: var(--indigo); }
/* "Came from YouTube?" strip on the homepage */
.yt-strip { padding-top: 14px; }
.yt-card { position: relative; background: linear-gradient(135deg, #3B2D8F, #5A3FC0 60%, #8A3F9E); color: #fff; border-radius: 30px; padding: 20px 22px 18px; box-shadow: 0 22px 40px -22px rgba(34,26,92,.7); animation: ytIn .45s ease-out both; }
@keyframes ytIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yt-card { animation: none; } }
.yt-hi { font-size: 1.15em; font-weight: 600; margin: 0 40px 14px 0; }
.yt-hi b { color: #FFD43B; }
.yt-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .yt-btns { grid-template-columns: 1fr; } }
.yt-btn { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); text-decoration: none; border-radius: 22px; padding: 14px 16px; min-height: 72px; box-shadow: inset 0 -5px 0 rgba(59,45,143,.12); transition: transform .12s; }
.yt-btn:hover, .yt-btn:focus-visible { transform: translateY(-2px); color: var(--ink); }
.yt-btn:focus-visible { outline: 4px solid #FFD43B; outline-offset: 2px; }
.yt-btn .yt-ic { font-size: 30px; width: 52px; height: 52px; border-radius: 16px; background: var(--pink); display: grid; place-items: center; flex: 0 0 auto; }
.yt-btn b { display: block; font-size: 1.08em; color: var(--indigo); }
.yt-btn small { display: block; color: var(--muted); font-size: .85em; }
.yt-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.yt-close:focus-visible { outline: 3px solid #FFD43B; }
.yt-hindi { display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; }
.yt-hindi:hover { color: #FFD43B; }
