/* Nibadai - design system and components.
   Light, warm and calm by default; dark theme via system setting or the toggle. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --bg:        #f7f5f0;
  --bg-2:      #efebe3;
  --surface:   #ffffff;
  --surface-2: #faf8f4;
  --ink:       #1b1f24;
  --ink-2:     #545b65;
  --ink-3:     #858b94;
  --line:      #e6e1d7;
  --line-2:    #d8d1c4;

  --brand:      #0b6e69;
  --brand-ink:  #08524e;
  --brand-soft: #e2f1ee;
  --brand-ring: rgba(11, 110, 105, .28);

  --video:  #d9512c;  --video-soft:  #fbe9e3;
  --image:  #b07a08;  --image-soft:  #f8efd9;
  --pdf:    #c3304a;  --pdf-soft:    #f9e4e8;
  --resume: #4b56d2;  --resume-soft: #e8e9fb;

  --ok:   #137a4b;  --ok-soft:   #e1f3ea;
  --err:  #b4233c;  --err-soft:  #fbe7ea;

  --shadow-1: 0 1px 2px rgba(27, 31, 36, .05), 0 1px 1px rgba(27, 31, 36, .03);
  --shadow-2: 0 2px 6px rgba(27, 31, 36, .05), 0 12px 28px -14px rgba(27, 31, 36, .18);
  --shadow-3: 0 18px 50px -20px rgba(27, 31, 36, .28);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 140ms; --t: 200ms; --t-slow: 360ms;
  --wrap: 1160px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111416; --bg-2: #171b1e; --surface: #1a1f22; --surface-2: #1f2528;
  --ink: #eef1f2; --ink-2: #aeb6bb; --ink-3: #7e878d;
  --line: #2a3135; --line-2: #384146;
  --brand: #3fb8ae; --brand-ink: #7ad3cb; --brand-soft: #173431; --brand-ring: rgba(63, 184, 174, .32);
  --video: #f07a55; --video-soft: #3a231b;
  --image: #e2b347; --image-soft: #352b14;
  --pdf: #f0687f; --pdf-soft: #3a1d24;
  --resume: #8f97f5; --resume-soft: #232644;
  --ok: #4fcf91; --ok-soft: #16302a; --err: #ff8597; --err-soft: #3a1c23;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .25), 0 12px 28px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 18px 50px -20px rgba(0, 0, 0, .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111416; --bg-2: #171b1e; --surface: #1a1f22; --surface-2: #1f2528;
    --ink: #eef1f2; --ink-2: #aeb6bb; --ink-3: #7e878d;
    --line: #2a3135; --line-2: #384146;
    --brand: #3fb8ae; --brand-ink: #7ad3cb; --brand-soft: #173431; --brand-ring: rgba(63, 184, 174, .32);
    --video: #f07a55; --video-soft: #3a231b;
    --image: #e2b347; --image-soft: #352b14;
    --pdf: #f0687f; --pdf-soft: #3a1d24;
    --resume: #8f97f5; --resume-soft: #232644;
    --ok: #4fcf91; --ok-soft: #16302a; --err: #ff8597; --err-soft: #3a1c23;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .25), 0 12px 28px -14px rgba(0, 0, 0, .6);
    --shadow-3: 0 18px 50px -20px rgba(0, 0, 0, .7);
  }
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px;
        background: var(--ink); color: var(--bg); transition: top var(--t) ease; }
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* category colour helpers */
.c-video  { --c: var(--video);  --c-soft: var(--video-soft); }
.c-image  { --c: var(--image);  --c-soft: var(--image-soft); }
.c-pdf    { --c: var(--pdf);    --c-soft: var(--pdf-soft); }
.c-resume { --c: var(--resume); --c-soft: var(--resume-soft); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.header-row { height: 68px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
        font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.privacy-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 650; font-size: 15.5px; letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background var(--t) ease, border-color var(--t) ease, color var(--t) ease,
              box-shadow var(--t) ease, transform var(--t-fast) var(--ease), opacity var(--t) ease;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-ink); }
:root[data-theme="dark"] .btn-primary { color: #06201e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06201e; } }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink-3); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; border-radius: 16px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor;
           border-right-color: transparent; animation: spin .75s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- home */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font: 750 clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem)/1.04 var(--display);
  letter-spacing: -.04em; text-wrap: balance; max-width: 820px; margin: 0 auto;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { margin: 18px auto 0; max-width: 620px; color: var(--ink-2); font-size: 18.5px; text-wrap: pretty; }

.finder { position: relative; max-width: 640px; margin: 34px auto 0; }
.finder input {
  width: 100%; height: 62px; padding: 0 64px 0 56px; border-radius: 18px;
  border: 1.5px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-2);
  font-size: 17px; outline: 0; transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.finder input:focus { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-ring), var(--shadow-2); }
.finder input::placeholder { color: var(--ink-3); }
.finder .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 22px; height: 22px; }
.finder kbd {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2);
  font: 600 13px/1.4 var(--mono); color: var(--ink-3);
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] .dot { background: var(--bg); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 34px 0 0; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 168px;
  padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
  transition: transform var(--t) var(--ease), box-shadow var(--t) ease, border-color var(--t) ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.tool-card:focus-visible { border-radius: var(--r-lg); }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
             background: var(--c-soft); color: var(--c); }
.tool-icon .icon { width: 24px; height: 24px; }
.tool-card h3 { font: 700 17.5px/1.25 var(--display); letter-spacing: -.015em; margin-top: 6px; }
.tool-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.tool-card .arrow { position: absolute; right: 20px; top: 24px; color: var(--ink-3);
                    transition: transform var(--t) var(--ease), color var(--t) ease; }
.tool-card:hover .arrow { transform: translateX(3px); color: var(--c); }
.tool-card.is-new::after {
  content: "New"; position: absolute; right: 18px; bottom: 18px; padding: 2px 8px; border-radius: 6px;
  background: var(--c-soft); color: var(--c); font-size: 12px; font-weight: 700;
}
.empty-search { text-align: center; color: var(--ink-2); padding: 40px 0 10px; }

.section { padding-top: 72px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font: 740 clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem)/1.12 var(--display); letter-spacing: -.03em; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise-item { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.promise-item .tool-icon { background: var(--brand-soft); color: var(--brand); }
.promise-item h3 { margin-top: 16px; font: 700 18px/1.3 var(--display); letter-spacing: -.015em; }
.promise-item p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------------- tool page */
.crumbs { display: flex; gap: 8px; align-items: center; padding-top: 26px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tool-hero { display: flex; align-items: center; gap: 18px; padding: 22px 0 26px; }
.tool-hero .tool-icon { width: 60px; height: 60px; border-radius: 18px; }
.tool-hero .tool-icon .icon { width: 30px; height: 30px; }
.tool-hero h1 { font: 760 clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem)/1.1 var(--display); letter-spacing: -.035em; }
.tool-hero p { margin-top: 6px; color: var(--ink-2); font-size: 17px; }

.workbench {
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); padding: 14px;
}

/* the drop cove */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 300px; padding: 40px 24px; text-align: center;
  border-radius: calc(var(--r-xl) - 8px); border: 2px dashed var(--line-2);
  background:
    radial-gradient(600px 220px at 50% 120%, var(--c-soft), transparent 70%),
    var(--surface-2);
  cursor: pointer; transition: border-color var(--t) ease, background var(--t) ease, transform var(--t) var(--ease);
}
.drop:hover { border-color: var(--c); }
.drop.is-over { border-color: var(--c); border-style: solid; transform: scale(.995);
                background: radial-gradient(700px 300px at 50% 110%, var(--c-soft), transparent 70%), var(--surface-2); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-badge { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px;
              background: var(--c); color: #fff; box-shadow: 0 14px 30px -14px var(--c); }
.drop-badge .icon { width: 32px; height: 32px; stroke-width: 2; }
.drop h2 { font: 720 22px/1.25 var(--display); letter-spacing: -.02em; }
.drop p { color: var(--ink-2); font-size: 15px; }
.drop .btn { pointer-events: none; }
.drop-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--ink-3); font-size: 13.5px; }
.drop-meta span { display: inline-flex; align-items: center; gap: 6px; }

.panel { padding: 10px 10px 6px; }
.files { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.file {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2);
  animation: rise var(--t-slow) var(--ease) both;
}
.file .thumb { width: 52px; height: 52px; border-radius: 10px; flex: none; overflow: hidden;
               display: grid; place-items: center; background: var(--c-soft); color: var(--c); }
.file .thumb img, .file .thumb video { width: 100%; height: 100%; object-fit: cover; }
.file .info { min-width: 0; flex: 1; }
.file .name { font-weight: 620; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .meta { color: var(--ink-3); font-size: 13.5px; }
.file .acts { display: flex; gap: 4px; }
.file .acts button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0;
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.file .acts button:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.file .acts button:disabled { opacity: .3; cursor: default; }
.file.is-dragging { opacity: .5; }
.add-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px;
            border: 0; background: transparent; color: var(--brand-ink); font-weight: 620; cursor: pointer; }
.add-more:hover { background: var(--brand-soft); }

.options { display: grid; gap: 18px; margin-top: 18px; padding: 20px; border-radius: 16px;
           background: var(--surface-2); border: 1px solid var(--line); }
.opt-label { display: block; font-weight: 650; font-size: 14.5px; margin-bottom: 9px; }
.opt-hint { color: var(--ink-3); font-size: 13.5px; margin-top: 7px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 140px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; height: 100%;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.seg span b { font-weight: 680; font-size: 15px; }
.seg span small { color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.seg label:hover span { border-color: var(--line-2); }
.seg input:checked + span { border-color: var(--c); background: var(--c-soft); box-shadow: 0 0 0 1px var(--c) inset; }
.seg input:focus-visible + span { outline: 2.5px solid var(--c); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.input, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--surface); outline: 0; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--c, var(--brand)); height: 28px; }
.range-row output { min-width: 52px; text-align: right; font-weight: 680; font-variant-numeric: tabular-nums; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.run-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.run-row .btn-primary { flex: 1 1 260px; }

.status { margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
          animation: rise var(--t-slow) var(--ease) both; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-title { display: flex; align-items: center; gap: 10px; font-weight: 680; }
.status-pct { font: 760 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.status-note { margin-top: 8px; color: var(--ink-3); font-size: 13.5px; }
.bar { margin-top: 12px; height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c, var(--brand));
           transition: width 400ms var(--ease); }
.bar.is-indeterminate > i { width: 30% !important; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-110%); } to { transform: translateX(340%); } }

.result { margin-top: 18px; padding: 22px; border-radius: 18px; background: var(--ok-soft);
          border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
          animation: rise var(--t-slow) var(--ease) both; }
.result-head { display: flex; align-items: center; gap: 12px; }
.result-head .ok { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ok); color: #fff; }
.result-head h2 { font: 720 19px/1.25 var(--display); letter-spacing: -.015em; }
.result-head p { color: var(--ink-2); font-size: 14.5px; }
.outs { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.out { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.out .info { min-width: 0; flex: 1; }
.out .name { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out .meta { color: var(--ink-3); font-size: 13.5px; }
.out .meta b { color: var(--ok); font-weight: 680; }
.result-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.preview-media { margin-top: 14px; border-radius: 14px; overflow: hidden; background: #000; max-height: 360px; display: grid; place-items: center; }
.preview-media img, .preview-media video { max-height: 360px; width: auto; }

.alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 14px;
         background: var(--err-soft); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent);
         animation: rise var(--t-slow) var(--ease) both; }
.alert p { color: var(--ink); }

.promise-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.promise-line span { display: inline-flex; align-items: center; gap: 7px; }
.promise-line .icon { color: var(--brand); width: 17px; height: 17px; }

/* how-to + FAQ + related */
.info-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 56px; }
.card { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.card h2 { font: 730 22px/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 16px; }
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px;
                    border-radius: 11px; background: var(--c-soft); color: var(--c); font-weight: 760; }
.steps b { display: block; font-weight: 680; }
.steps span { color: var(--ink-2); font-size: 15px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0;
               font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.related h2 { font: 730 22px/1.25 var(--display); letter-spacing: -.02em; }
.related .tool-grid { margin-top: 18px; }

/* prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 0 0; }
.prose h1 { font: 760 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1.1 var(--display); letter-spacing: -.035em; }
.prose h2 { font: 720 22px/1.3 var(--display); margin: 34px 0 10px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose p + p { margin-top: 12px; }
.prose .lead { margin-top: 14px; font-size: 19px; }

/* ----------------------------------------------------------------- footer */
.site-footer { margin-top: 96px; padding: 44px 0 36px; border-top: 1px solid var(--line); background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-base a { color: var(--ink-2); text-decoration: none; }
.footer-base a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid p { color: var(--ink-2); font-size: 14.5px; margin-top: 12px; max-width: 320px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 34px; color: var(--ink-3); font-size: 13.5px; }

/* ------------------------------------------------------------------ motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: rise 520ms var(--ease) both; }
.fade-up.d1 { animation-delay: 60ms; } .fade-up.d2 { animation-delay: 120ms; } .fade-up.d3 { animation-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important;
                           transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .spinner { animation: spin 1.4s linear infinite !important; }
  .bar.is-indeterminate > i { animation: none !important; width: 100% !important; opacity: .45; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .nav.is-open { display: grid; position: absolute; left: 12px; right: 12px; top: 64px; padding: 10px; gap: 4px;
                 background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); }
  .nav.is-open a { height: 46px; }
  .info-grid, .promise { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .privacy-chip { display: none; }
  .hero { padding: 44px 0 24px; }
  .hero p.lead { font-size: 16.5px; }
  .finder input { height: 56px; font-size: 16px; }
  .finder kbd { display: none; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tool-card { min-height: 0; padding: 16px; }
  .tool-card p { display: none; }
  .tool-card .arrow { display: none; }
  .tool-icon { width: 42px; height: 42px; }
  .tool-hero { align-items: flex-start; }
  .tool-hero .tool-icon { width: 50px; height: 50px; }
  .workbench { padding: 10px; border-radius: 22px; }
  .drop { min-height: 250px; padding: 30px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

/* ---------------------------------------------------------- resume builder */
.rb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px; border-radius: 18px;
              background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.rb-tpl-btn b { font-weight: 720; }
.rb-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-color { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface); background: var(--sw);
            box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.rb-color:hover { transform: scale(1.12); }
.rb-color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.rb-font { width: auto; height: 38px; font-size: 14px; }
.rb-fit { font-size: 14px; white-space: nowrap; }
.rb-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.rb-saved { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 10px 4px 0; color: var(--ink-3); font-size: 13.5px; }
.rb-pages { font-weight: 650; color: var(--ink-2); }
.rb-pages.is-warn { color: var(--err); }

.rb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; margin-top: 16px; align-items: start; }
.rb-editor { display: grid; gap: 12px; }
.rb-sec { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rb-sec summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; cursor: pointer;
                  font: 700 17px/1.2 var(--display); letter-spacing: -.01em; list-style: none; }
.rb-sec summary::-webkit-details-marker { display: none; }
.rb-sec summary::after { content: "+"; font-size: 22px; color: var(--ink-3); transition: transform var(--t) var(--ease); }
.rb-sec[open] summary::after { transform: rotate(45deg); }
.rb-body { padding: 0 20px 20px; }
.rb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rb-grid .full { grid-column: 1 / -1; }
.rb-body > .full, .rb-body > div > .input { width: 100%; }
.rb-item { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 12px; }
.rb-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.rb-item-tools { display: flex; align-items: center; gap: 4px; }
.rb-mini { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); }
.rb-mini:disabled { opacity: .35; cursor: default; }
.rb-del { border: 0; background: transparent; color: var(--err); font-weight: 620; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.rb-del:hover { background: var(--err-soft); }
.rb-photo { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.rb-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-1); }
.rb-photo label { cursor: pointer; }
.rb-photo .opt-hint { margin-top: 6px; }

.rb-preview-wrap { position: sticky; top: 84px; border-radius: 18px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.rb-preview { position: relative; overflow: hidden; }
.rb-break { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(195, 48, 74, .7); pointer-events: none; }
.rb-break { font: 700 11px/1 var(--font); color: #c3304a; }
.rb-break { text-indent: 6px; padding-top: 4px; }

/* galleries (templates, examples) */
.rb-dlg { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px;
          background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
.rb-dlg::backdrop { background: rgba(15, 20, 25, .55); }
.rb-dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
               background: var(--surface); border-bottom: 1px solid var(--line); }
.rb-dlg-head h2 { font: 720 21px/1.2 var(--display); }
.rb-filters { justify-content: flex-start; margin: 14px 20px 0; }
.rb-ex-tools { display: grid; gap: 4px; padding: 14px 20px 0; }
.rb-ex-tools .rb-filters { margin: 8px 0 0; }
.rb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; padding: 18px 20px 24px; }
.rb-card { display: grid; gap: 10px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2);
           text-align: left; cursor: pointer; color: var(--ink); transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease); }
.rb-card:hover { border-color: var(--resume); transform: translateY(-2px); }
.rb-card.is-current { border-color: var(--resume); box-shadow: 0 0 0 2px var(--resume-soft); }
.rb-card-cap { display: grid; gap: 3px; padding: 0 4px 4px; }
.rb-card-cap b { font-size: 15px; }
.rb-card-cap small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.rb-badges { display: flex; gap: 6px; margin-top: 4px; }
.rb-badges i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--resume-soft); color: var(--resume); }
.rb-thumb { position: relative; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.rb-thumb-page { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; transform-origin: top left; transform: scale(var(--ts, .25)); pointer-events: none; }
.rb-thumb-page .cv { box-shadow: none; border-radius: 0; }

/* ----------------------------------------------------------- the page itself
   Always printed colours, independent of the site theme. 794 px = A4 width at 96 DPI. */
.cv { --cv-accent: #0b6e69; --cv-ink: #1d2228; --cv-soft: color-mix(in srgb, var(--cv-accent) 9%, #fff);
      position: relative; width: 794px; min-height: 1123px; padding: 54px 58px; transform-origin: top left;
      background: #fff; color: var(--cv-ink); font: 400 13.5px/1.55 "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
      box-shadow: 0 8px 30px -12px rgba(0,0,0,.25); border-radius: 4px; }
.cv.f-serif { font-family: Georgia, "Times New Roman", Cambria, serif; }
.cv.f-serif .cv-name, .cv.f-serif .cv-sec h2 { font-family: Georgia, "Times New Roman", Cambria, serif; }
.cv.is-placeholder { color: #9aa0a6; }
.cv h1.cv-name { font-weight: 750; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; color: #12161b; }
.cv.is-placeholder h1.cv-name { color: #b5bac0; }
.cv-head { display: flex; align-items: center; gap: 22px; }
.cv-head-text { min-width: 0; flex: 1; }
.cv-headline { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--cv-accent); }
.cv-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; color: #4b525b; font-size: 12.5px; }
.cv-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.cv-body { display: grid; gap: 34px; margin-top: 26px; }
.cv.l-one .cv-body { grid-template-columns: 1fr; gap: 0; }
.cv.l-right .cv-body { grid-template-columns: minmax(0, 1fr) 210px; }
.cv.l-left .cv-body { grid-template-columns: 220px minmax(0, 1fr); }
.cv.wide-side .cv-body { grid-template-columns: minmax(0, 1fr) 250px; }
.cv-body > :only-child { grid-column: 1 / -1; }
.cv-sec { break-inside: auto; }
.cv-sec + .cv-sec { margin-top: 22px; }
.cv-sec h2 { font: 700 12px/1 "Segoe UI", "Inter", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase;
             color: var(--cv-accent); padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1.5px solid #e5e7ea; }
.cv-item { break-inside: avoid; }
.cv-item + .cv-item { margin-top: 14px; }
.cv-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cv-row b { font-size: 14.5px; color: #12161b; }
.cv-org { display: block; color: #4b525b; font-size: 13px; }
.cv-date { color: #6b727b; font-size: 12.5px; white-space: nowrap; }
.cv ul { margin: 6px 0 0; padding-left: 18px; }
.cv li + li { margin-top: 3px; }
.cv-small { color: #4b525b; font-size: 12.5px; margin-top: 2px; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tags span { padding: 3px 9px; border-radius: 6px; background: var(--cv-soft); color: color-mix(in srgb, var(--cv-accent) 75%, #000);
                font-size: 12px; font-weight: 600; }
.cv-contact-list { list-style: none; padding: 0 !important; margin: 0; word-break: break-word; }
.cv-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 18px; font-size: 12.5px; color: #4b525b; }
.cv-sign b { color: #12161b; font-size: 13.5px; }
.cv.l-one .s-declaration { margin-top: 26px; }
.cv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; align-items: start; margin-top: 22px; }
.cv-pair.is-single { grid-template-columns: 1fr; }
.cv-pair > .cv-sec + .cv-sec { margin-top: 0; }
.cv-pair > .cv-sec:nth-child(n+3) { margin-top: 18px; }
.cv-sec + .cv-pair, .cv-pair + .cv-sec { margin-top: 22px; }
/* "Fit to 1 page": two gentle density steps */
.cv.d-1 { font-size: 12.8px; line-height: 1.47; padding-top: 44px; padding-bottom: 40px; }
.cv.d-1 .cv-body { margin-top: 20px; }
.cv.d-1 .cv-sec + .cv-sec, .cv.d-1 .cv-pair, .cv.d-1 .cv-sec + .cv-pair, .cv.d-1 .cv-pair + .cv-sec { margin-top: 16px; }
.cv.d-1 .cv-item + .cv-item { margin-top: 10px; }
.cv.d-1 .cv-sec h2 { margin-bottom: 9px; padding-bottom: 6px; }
.cv.d-1 h1.cv-name { font-size: 30px; }
.cv.d-2 { font-size: 12.2px; line-height: 1.4; padding-top: 36px; padding-bottom: 32px; }
.cv.d-2 .cv-body { margin-top: 16px; }
.cv.d-2 .cv-sec + .cv-sec, .cv.d-2 .cv-pair, .cv.d-2 .cv-sec + .cv-pair, .cv.d-2 .cv-pair + .cv-sec { margin-top: 12px; }
.cv.d-2 .cv-item + .cv-item { margin-top: 7px; }
.cv.d-2 .cv-sec h2 { margin-bottom: 7px; padding-bottom: 5px; font-size: 11px; }
.cv.d-2 h1.cv-name { font-size: 27px; }
.cv.d-2 .cv-row b { font-size: 13.2px; }
.cv.d-2 ul { margin-top: 3px; }
.cv.d-2 li + li { margin-top: 1px; }
.cv.h-band.d-1 > .cv-head { padding-top: 34px; padding-bottom: 26px; }
.cv.h-band.d-2 > .cv-head { padding-top: 26px; padding-bottom: 20px; }
.cv.t-bold.d-1 h1.cv-name { font-size: 38px; } .cv.t-bold.d-2 h1.cv-name { font-size: 34px; }
.cv.h-band.d-1, .cv.h-band.d-2, .cv.t-sidebar.d-1, .cv.t-sidebar.d-2 { padding-top: 0; }
.cv.t-sidebar.d-1, .cv.t-sidebar.d-2 { padding-bottom: 0; }

/* ATS Simple: black text, plain headings, skills as a sentence */
.cv.t-ats { --cv-accent: #111 !important; padding: 50px 60px; }
.cv.t-ats .cv-name { font-size: 30px; }
.cv.t-ats .cv-headline { color: #333; }
.cv.t-ats .cv-sec h2 { color: #111; border-bottom: 1px solid #111; letter-spacing: .08em; }
.cv.t-ats .cv-tags { display: block; }
.cv.t-ats .cv-tags span { display: inline; padding: 0; background: none; color: inherit; font-weight: 400; font-size: 13.5px; }
.cv.t-ats .cv-tags span + span::before { content: ", "; }
.cv.t-ats .cv-sec + .cv-sec { margin-top: 18px; }

/* Modern: coloured band */
.cv.h-band { padding: 0 0 50px; }
.cv.h-band > .cv-head { padding: 44px 58px 34px; background: var(--cv-accent); color: #fff; }
.cv.h-band > .cv-head .cv-name, .cv.h-band > .cv-head .cv-headline { color: #fff; }
.cv.h-band > .cv-head .cv-contact { color: rgba(255,255,255,.88); }
.cv.h-band > .cv-head .cv-photo { border: 4px solid rgba(255,255,255,.85); }
.cv.h-band .cv-body { padding: 0 58px; }
.cv.t-modern .cv-sec h2 { border-bottom: 0; padding-bottom: 0; }

/* Centred heads (Minimal, Executive, Elegant) */
.cv.h-center > .cv-head { flex-direction: column; text-align: center; gap: 14px; }
.cv.h-center > .cv-head .cv-contact { justify-content: center; }

/* Minimal */
.cv.t-minimal { padding: 48px 64px; }
.cv.t-minimal .cv-sec h2 { color: #12161b; letter-spacing: .1em; }

/* Executive: formal serif with double rules */
.cv.t-executive { padding: 50px 64px; }
.cv.t-executive .cv-name { font-size: 36px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.cv.t-executive > .cv-head { padding-bottom: 16px; border-bottom: 3px double var(--cv-accent); }
.cv.t-executive .cv-headline { color: #444; font-style: italic; font-weight: 400; }
.cv.t-executive .cv-sec h2 { text-align: center; font-size: 13px; letter-spacing: .22em; color: var(--cv-accent); border-bottom: 0; padding-bottom: 0; }
.cv.t-executive .cv-sec h2::after { content: ""; display: block; width: 46px; height: 2px; margin: 8px auto 0; background: var(--cv-accent); }

/* Sidebar: full-height coloured column (a gradient, so it repeats on every printed page) */
.cv.t-sidebar { padding: 0; background: linear-gradient(90deg, var(--cv-accent) 0 250px, #fff 250px); }
.cv.t-sidebar .cv-body { grid-template-columns: 250px minmax(0, 1fr); gap: 0; margin: 0; }
.cv.t-sidebar .cv-side { padding: 44px 28px; color: #fff; }
.cv.t-sidebar .cv-main { padding: 44px 44px 44px 40px; }
.cv.t-sidebar .cv-side .cv-sec h2 { color: #fff; border-bottom-color: rgba(255,255,255,.35); }
.cv.t-sidebar .cv-side .cv-tags span { background: rgba(255,255,255,.16); color: #fff; }
.cv.t-sidebar .cv-side .cv-photo { display: block; width: 150px; height: 150px; margin: 0 auto 26px; border: 4px solid rgba(255,255,255,.75); }
.cv.t-sidebar .cv-side li, .cv.t-sidebar .cv-side p { color: rgba(255,255,255,.92); }
.cv.t-sidebar .cv-contact-list li + li { margin-top: 6px; }
.cv.t-sidebar .cv-main > .cv-head { margin-bottom: 26px; }

/* Timeline */
.cv.t-timeline > .cv-head { padding-bottom: 18px; border-bottom: 4px solid var(--cv-accent); }
.cv.t-timeline .cv-sec h2 { border-bottom: 0; }
.cv.t-timeline .s-exp .cv-item, .cv.t-timeline .s-edu .cv-item { position: relative; padding-left: 24px; border-left: 2px solid var(--cv-soft); margin-left: 6px; }
.cv.t-timeline .s-exp .cv-item::before, .cv.t-timeline .s-edu .cv-item::before { content: ""; position: absolute; left: -7px; top: 4px;
           width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--cv-accent); }
.cv.t-timeline .s-exp .cv-item + .cv-item, .cv.t-timeline .s-edu .cv-item + .cv-item { margin-top: 0; padding-top: 14px; }
.cv.t-timeline .s-exp .cv-item + .cv-item::before, .cv.t-timeline .s-edu .cv-item + .cv-item::before { top: 18px; }

/* Creative: big name block and a tinted side column */
.cv.t-creative > .cv-head { padding: 40px 58px 30px; background: linear-gradient(120deg, var(--cv-accent), color-mix(in srgb, var(--cv-accent) 60%, #000)); }
.cv.t-creative .cv-name { font-size: 40px; text-transform: uppercase; letter-spacing: .02em; }
.cv.t-creative { background: linear-gradient(90deg, var(--cv-soft) 0 230px, #fff 230px); }
.cv.t-creative .cv-body { margin-top: 0; gap: 0; grid-template-columns: 230px minmax(0, 1fr); padding: 0 !important; }
.cv.t-creative .cv-side { padding: 30px 24px 30px 58px; }
.cv.t-creative .cv-main { padding: 30px 58px 30px 34px; }
.cv.t-creative .cv-sec h2 { border-bottom: 0; padding: 0 0 0 10px; border-left: 4px solid var(--cv-accent); }

/* Compact: smaller type, wider side column */
.cv.t-compact { padding: 40px 46px; font-size: 12.5px; line-height: 1.45; }
.cv.t-compact .cv-name { font-size: 28px; }
.cv.t-compact .cv-body { gap: 26px; margin-top: 18px; }
.cv.t-compact .cv-sec + .cv-sec { margin-top: 16px; }
.cv.t-compact .cv-item + .cv-item { margin-top: 10px; }
.cv.t-compact .cv-side { padding: 16px; border-radius: 8px; background: var(--cv-soft); }

/* Elegant: serif, thin rules, soft side panel */
.cv.t-elegant { padding: 50px 56px; }
.cv.t-elegant .cv-name { font-weight: 400; font-size: 38px; letter-spacing: .03em; }
.cv.t-elegant .cv-headline { color: #555; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.cv.t-elegant .cv-photo { width: 110px; height: 110px; }
.cv.t-elegant .cv-sec h2 { color: var(--cv-accent); font-weight: 400; font-size: 14px; letter-spacing: .2em; border-bottom: 1px solid color-mix(in srgb, var(--cv-accent) 40%, #fff); }
.cv.t-elegant .cv-side { padding: 18px; background: var(--cv-soft); border-radius: 2px; }

/* Bold: thick accent bar down the left edge */
.cv.t-bold { padding-left: 74px; background: linear-gradient(90deg, var(--cv-accent) 0 16px, #fff 16px); }
.cv.t-bold .cv-name { font-size: 44px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.cv.t-bold .cv-headline { font-size: 17px; text-transform: uppercase; letter-spacing: .1em; }
.cv.t-bold .cv-sec h2 { font-size: 15px; letter-spacing: .06em; color: #12161b; border-bottom: 3px solid var(--cv-accent); display: inline-block; padding-bottom: 4px; }
.cv.t-bold .s-skills .cv-tags span { background: #12161b; color: #fff; }

/* Fresher: clear and friendly */
.cv.t-fresher > .cv-head { padding-bottom: 18px; border-bottom: 2px solid var(--cv-accent); }
.cv.t-fresher .cv-photo { width: 96px; height: 116px; border-radius: 8px; order: 2; }
.cv.t-fresher .cv-sec h2 { background: var(--cv-soft); border-bottom: 0; padding: 7px 10px; border-radius: 4px; }

@media (max-width: 980px) {
  .rb-layout { grid-template-columns: minmax(0, 1fr); }
  .rb-preview-wrap { position: static; }
  .rb-actions { margin-left: 0; }
}
@media (max-width: 600px) {
  .rb-grid { grid-template-columns: 1fr; }
  .rb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .rb-card-cap small { display: none; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; display: block; }
  .site-header, .site-footer, .crumbs, .tool-hero, .rb-toolbar, .rb-saved, .rb-editor, .info-grid, .skip, .rb-break, dialog { display: none !important; }
  .wrap { padding: 0 !important; max-width: none !important; }
  .rb-layout { display: block; margin: 0; }
  .rb-preview-wrap { position: static; padding: 0; border: 0; background: none; }
  .rb-preview { height: auto !important; overflow: visible; }
  .cv { transform: none !important; box-shadow: none; border-radius: 0; width: 210mm; min-height: 297mm; }
  .cv-item, .cv-sec h2 { break-inside: avoid; }
  .cv-sec h2 { break-after: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ======================================================== v2: more tools */
@font-face { font-family: "Sig Vibes"; src: url(/assets/vendor/fonts/great-vibes.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Sig Dancing"; src: url(/assets/vendor/fonts/dancing-script.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Sig Caveat"; src: url(/assets/vendor/fonts/caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

/* home: PDF sub-filters */
.chips-sub { margin-top: 10px; }
.chip-sub { height: 36px; font-size: 14px; background: var(--pdf-soft); border-color: transparent; color: var(--pdf); }
.chip-sub[aria-pressed="true"] { background: var(--pdf); border-color: var(--pdf); color: #fff; }

/* small form helpers */
.stack { display: grid; gap: 16px; }
.checks { display: grid; gap: 12px; }
.muted { color: var(--ink-3); font-weight: 400; }
.warn { color: var(--err); font-weight: 650; }
.inline-row { display: flex; gap: 10px; align-items: center; }
.inline-row .input { flex: 1; min-width: 0; }
.inline-row .select { width: auto; flex: none; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.quick button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
                font-size: 13.5px; font-weight: 620; cursor: pointer; }
.quick button:hover { border-color: var(--c, var(--brand)); color: var(--c, var(--brand)); }
.suffix { position: relative; }
.suffix .input { padding-right: 52px; }
.suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13.5px; font-weight: 650; pointer-events: none; }
.seg-compact label { flex: 0 1 auto; }
.seg-compact span { padding: 9px 14px; align-items: center; text-align: center; }
.seg-compact span b { font-size: 14.5px; }
.seg-compact span small { font-size: 12px; }
.color-input { width: 52px; height: 46px; padding: 4px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; }
.color-row { display: flex; align-items: center; gap: 14px; }
.file-pick { cursor: pointer; justify-self: start; }
.pw-strength[data-level="weak"] { color: var(--err); }
.pw-strength[data-level="ok"] { color: var(--image); }
.pw-strength[data-level="strong"] { color: var(--ok); }

/* position picker */
.posgrid { display: grid; grid-template-columns: repeat(3, 40px); gap: 6px; padding: 8px; border-radius: 14px; width: max-content;
           background: var(--surface); border: 1.5px solid var(--line); }
.posgrid label { position: relative; }
.posgrid input { position: absolute; opacity: 0; pointer-events: none; }
.posgrid span { display: block; height: 30px; border-radius: 8px; background: var(--bg-2); cursor: pointer; transition: background var(--t-fast) ease; }
.posgrid label:hover span { background: var(--line-2); }
.posgrid input:checked + span { background: var(--c, var(--brand)); }
.posgrid input:focus-visible + span { outline: 2.5px solid var(--c); outline-offset: 2px; }

/* resize image */
.dims { display: grid; grid-template-columns: 1fr 44px 1fr 1fr 1fr; gap: 10px; align-items: end; }
.lock { display: grid; place-items: center; width: 44px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2);
        background: var(--surface); color: var(--ink-3); cursor: pointer; }
.lock[aria-pressed="true"] { border-color: var(--c); background: var(--c-soft); color: var(--c); }
.lock .lock-off, .lock[aria-pressed="true"] .lock-on { display: block; }
.lock .lock-on, .lock[aria-pressed="true"] .lock-off { display: none; }
.size-info { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.size-info:empty { display: none; }
.size-info b { color: var(--ink); }
.orig { display: flex; align-items: flex-end; }
.orig .opt-hint { margin: 0 0 13px; }
.bg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); cursor: pointer; box-shadow: inset 0 0 0 3px var(--surface); }
.swatch input:checked + span { outline: 2.5px solid var(--c, var(--brand)); outline-offset: 2px; }
.swatch input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 4px; }
.checker { background: conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0) 0 0 / 12px 12px; }
.rainbow { background: conic-gradient(#f44, #fd4, #4d8, #4af, #a6f, #f44); }

/* camera / extras under the drop area (phones and tablets) */
.drop-extra { display: flex; justify-content: center; margin-top: 12px; }
.camera-btn { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .drop-extra { display: none; } }

/* result extras: print preview, OCR text */
.result-extra { margin-top: 16px; }
.print-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.print-bar .opt-hint { margin: 0; flex: 1 1 260px; }
.doc-preview { display: block; width: 100%; height: 560px; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: #eee; }
.ocr-out { display: grid; gap: 10px; }
.ocr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ocr-out textarea { min-height: 260px; font: 14.5px/1.55 var(--font); background: var(--surface); }

/* ------------------------------------------------------------ page grid */
.pg-wrap { display: grid; gap: 12px; }
.pg-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-hint { margin: 0; min-height: 1.4em; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; margin: 0; padding: 4px; list-style: none;
           max-height: 70vh; overflow: auto; overscroll-behavior: contain; border-radius: 14px; }
.pg { position: relative; display: grid; gap: 6px; }
.pg-face { position: relative; display: block; width: 100%; padding: 8px; border-radius: 14px; border: 2px solid transparent;
           background: var(--surface); box-shadow: var(--shadow-1); cursor: pointer; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.pg-face:hover { box-shadow: var(--shadow-2); }
.pg-thumb { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.pg-thumb img { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
                rotate: var(--rot, 0deg); transition: rotate var(--t-slow) var(--ease); }
.pg:not(.is-ready) .pg-thumb img { display: none; }
.pg:not(.is-ready) .pg-thumb::before { content: ""; height: min(100%, calc(100% / var(--ratio, .7071))); aspect-ratio: var(--ratio, .7071);
           max-width: 100%; border-radius: 4px; rotate: var(--rot, 0deg);
           background: linear-gradient(100deg, var(--bg-2) 30%, var(--surface-2) 50%, var(--bg-2) 70%) 0 0 / 300% 100%;
           animation: shimmer 1.4s linear infinite; }
.pg.is-blank .pg-thumb::before { animation: none; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
@keyframes shimmer { to { background-position: -300% 0; } }
.pg-mark { position: absolute; top: 4px; right: 4px; display: none; place-items: center; width: 28px; height: 28px; border-radius: 50%;
           color: #fff; background: var(--c, var(--brand)); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.pg.is-selected .pg-mark { display: grid; }
.pg.is-selected .pg-face { border-color: var(--c, var(--brand)); background: var(--c-soft); }
.pg-mark-remove .pg.is-selected .pg-mark { background: var(--err); }
.pg-mark-remove .pg.is-selected .pg-face { border-color: var(--err); background: var(--err-soft); }
.pg-mark-remove .pg.is-selected .pg-thumb img { opacity: .35; }
.pg-bar { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 30px; }
.pg-num { font-size: 13px; font-weight: 650; color: var(--ink-2); padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-acts { display: flex; gap: 2px; }
.pg-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; }
.pg-btn:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.pg-btn:disabled { opacity: .3; cursor: default; }
.pg-organize .pg-face { cursor: grab; }
.pg.is-dragging { z-index: 5; opacity: .9; }
.pg.is-dragging .pg-face { box-shadow: var(--shadow-3); cursor: grabbing; }
.pg.is-target-before .pg-face { box-shadow: -7px 0 0 -2px var(--brand); }
.pg.is-target-after .pg-face { box-shadow: 7px 0 0 -2px var(--brand); }
.pg.is-failed .pg-thumb::after { content: "No preview"; font-size: 12px; color: var(--ink-3); }

/* --------------------------------------------------------------- editor */
.ed { display: grid; gap: 10px; }
.ed-bar, .ed-props { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 14px;
                     background: var(--surface); border: 1px solid var(--line); }
.ed-bar { position: sticky; top: 76px; z-index: 6; box-shadow: var(--shadow-1); }
.ed-bar:empty { display: none; }
.ed-tool, .ed-prop { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid transparent;
                     background: var(--bg-2); font-weight: 620; font-size: 14px; cursor: pointer; color: var(--ink); }
.ed-tool:hover, .ed-prop:hover { border-color: var(--line-2); }
.ed-tool[aria-pressed="true"], .ed-prop[aria-pressed="true"] { background: var(--c); color: #fff; }
.ed-tool.is-danger { background: #15181c; color: #fff; }
.ed-prop.is-danger { color: var(--err); background: var(--err-soft); margin-left: auto; }
.ed-select { width: auto; height: 40px; }
.ed-num { width: 76px; height: 40px; }
.ed-color { width: 44px; height: 40px; padding: 3px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; }
.ed-tip { margin: 0; color: var(--ink-2); font-size: 14px; min-height: 1.4em; }
.ed-pages { display: grid; gap: 30px; justify-items: center; padding: 18px 10px 30px; border-radius: 16px; background: var(--bg-2);
            max-height: 78vh; overflow: auto; overscroll-behavior: contain; }
.ed-page { position: relative; width: 100%; max-width: 860px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); --k: 1;
           user-select: none; -webkit-user-select: none; }
.ed-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed-page:not(.is-ready) .ed-bg { opacity: 0; }
.ed-layer { position: absolute; inset: 0; overflow: hidden; }
.ed-pages.is-placing .ed-layer { cursor: crosshair; touch-action: none; }
.ed-pnum { position: absolute; right: 4px; bottom: -22px; font-size: 12px; color: var(--ink-3); }
.ed-obj { position: absolute; touch-action: none; cursor: move; outline: 1.5px dashed transparent; outline-offset: 1px; }
.ed-obj:hover { outline-color: rgba(11, 110, 105, .45); }
.ed-obj.is-selected, .ed-obj:focus-visible { outline: 2px solid var(--brand); border-radius: 0; }
.ed-h { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 4px; background: #fff;
        border: 2px solid var(--brand); cursor: nwse-resize; display: none; touch-action: none; }
.ed-obj.is-selected .ed-h { display: block; }
.ed-text { white-space: pre; line-height: 1.2; }
.ed-txt { min-width: 6px; min-height: 1.2em; outline: none; cursor: inherit; }
.ed-text.is-editing { cursor: text; outline: 2px solid var(--brand); background: rgba(11, 110, 105, .06); }
.ed-text.is-editing .ed-txt { user-select: text; -webkit-user-select: text; cursor: text; }
.ed-image img { display: block; width: 100%; height: 100%; pointer-events: none; }
.ed-rect { border: calc(var(--k) * 2px) solid #c3304a; }
.ed-whiteout { background: #fff; outline: 1px dashed #999; }
.ed-highlight { background: rgba(255, 224, 51, .45); mix-blend-mode: multiply; }
.ed-redact { background: #000; }
.ed-ink svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ed-ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ed-crop { outline: 2px dashed #fff !important; box-shadow: 0 0 0 9999px rgba(15, 20, 25, .55); }
.ed-crop .ed-h { display: block; }
.ed-crop-label { position: absolute; left: 6px; top: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff;
                 font: 600 12px/1.4 var(--font); white-space: nowrap; }

/* ------------------------------------------------------- signature dialog */
.sig-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 22px;
           background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
.sig-dlg::backdrop { background: rgba(15, 20, 25, .5); }
.sig-dlg > * { margin-left: 20px; margin-right: 20px; }
.sig-head { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.sig-head h2 { font: 720 20px/1.2 var(--display); }
.sig-saved { display: flex; align-items: center; gap: 14px; width: calc(100% - 40px); margin-top: 10px; padding: 10px 14px; border-radius: 14px;
             border: 1.5px solid var(--brand); background: var(--brand-soft); cursor: pointer; font-weight: 650; text-align: left; color: var(--ink); }
.sig-saved img { height: 40px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 6px; }
.sig-tabs { display: flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 12px; background: var(--bg-2); }
.sig-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: 0; border-radius: 9px;
                   background: transparent; font-weight: 650; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.sig-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.sig-panel { margin-top: 14px; display: grid; gap: 12px; }
.sig-pad { position: relative; height: 200px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: #fff; overflow: hidden; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 46px; border-bottom: 1.5px solid #d9d4ca; pointer-events: none; }
.sig-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; color: #9a9389; pointer-events: none; }
.sig-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sig-colors { display: flex; gap: 8px; }
.sig-color { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer;
             box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1.5px var(--line-2); }
.sig-color[aria-checked="true"] { box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 2.5px var(--brand); }
.sig-fonts { display: grid; gap: 8px; }
.sig-font { height: 64px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 32px; text-align: left;
            cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sig-font[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.sig-upload-preview { padding: 10px; border-radius: 12px; border: 1px solid var(--line);
                      background: conic-gradient(#eee 25%, #fff 0 50%, #eee 0 75%, #fff 0) 0 0 / 14px 14px; }
.sig-upload-preview canvas { max-width: 100%; max-height: 160px; margin: 0 auto; display: block; }
.sig-remember { margin-top: 14px; font-size: 14px; }
.sig-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; margin-bottom: 18px; }

/* ----------------------------------------------------------- crop image */
.crop-stage { position: relative; margin: 0 auto; max-width: 100%; overflow: hidden; border-radius: 12px; background: #111; touch-action: none;
              user-select: none; -webkit-user-select: none; }
.crop-stage img { display: block; width: 100%; height: 100%; pointer-events: none; }
.crop-box { position: absolute; box-shadow: 0 0 0 9999px rgba(10, 12, 14, .6); outline: 2px solid #fff; cursor: move;
            background-image: linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
            background-size: 33.333% 33.333%; background-position: -1px -1px; }
.crop-box i { position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.crop-box i[data-h="nw"] { left: -9px; top: -9px; cursor: nwse-resize; }
.crop-box i[data-h="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-box i[data-h="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.crop-box i[data-h="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.crop-box i[data-h="n"], .crop-box i[data-h="s"] { left: calc(50% - 14px); width: 28px; height: 8px; cursor: ns-resize; }
.crop-box i[data-h="n"] { top: -4px; }
.crop-box i[data-h="s"] { bottom: -4px; }
.crop-box i[data-h="e"], .crop-box i[data-h="w"] { top: calc(50% - 14px); width: 8px; height: 28px; cursor: ew-resize; }
.crop-box i[data-h="e"] { right: -4px; }
.crop-box i[data-h="w"] { left: -4px; }

@media (max-width: 720px) {
  .dims { grid-template-columns: 1fr 44px 1fr; }
  .pg-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .ed-bar { top: 72px; }
  .ed-tool span { display: none; }
  .ed-tool { padding: 0 12px; }
  .ed-pages { padding: 12px 4px 26px; }
  .doc-preview { height: 440px; }
  .posgrid { grid-template-columns: repeat(3, 36px); }
}

/* ======================================================== v4: helpers & new tools */
/* "Continue with" after a result */
.next-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px;
              border-top: 1px dashed color-mix(in srgb, var(--ok) 35%, transparent); }
.next-label { font-weight: 650; font-size: 14px; color: var(--ink-2); margin-right: 4px; }
.next-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px;
             border: 1px solid var(--line-2); background: var(--surface); font-weight: 620; font-size: 14px; color: var(--ink); cursor: pointer;
             transition: border-color var(--t-fast) ease, transform var(--t-fast) ease; }
.next-chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.next-chip .icon { color: var(--ink-3); }
.next-chip:disabled { opacity: .6; cursor: progress; }

/* home: recently used */
.recent { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.recent-label { color: var(--ink-3); font-size: 14px; }
.recent-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; text-decoration: none;
               background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.recent-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }
.recent-chip:hover { border-color: var(--c, var(--brand)); }

/* QR code generator */
.workbench.app { padding: 22px; }
.qr-app { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.qr-style { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 16px; background: var(--surface-2); }
.qr-style summary { cursor: pointer; font-weight: 680; padding: 12px 0; }
.qr-preview { position: sticky; top: 90px; display: grid; gap: 12px; justify-items: center; padding: 20px; border-radius: 18px;
              background: var(--surface-2); border: 1px solid var(--line); }
.qr-canvas-wrap { width: 100%; max-width: 340px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-2); }
.qr-canvas-wrap canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qr-actions.is-disabled { opacity: .45; pointer-events: none; }
.alert-inline { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--err-soft); color: var(--err); font-size: 14px; font-weight: 600; text-align: center; }
.warn-soft { color: var(--image); text-align: center; }
#qrMeta { margin: 0; }

/* trim video / cut audio */
.media-player { display: block; width: 100%; max-height: 60vh; border-radius: 14px; background: #000; }
audio.media-player { background: transparent; height: 54px; }
.trim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trim-row .input { font-variant-numeric: tabular-nums; }
.trim-info { flex-wrap: wrap; }

@media (max-width: 860px) {
  .qr-app { grid-template-columns: 1fr; }
  .qr-preview { position: static; order: -1; }
}
@media (max-width: 600px) {
  .trim-row { grid-template-columns: 1fr; }
  .workbench.app { padding: 14px; }
}

/* ======================================================== v6: visual refresh */
@font-face { font-family: "Inter Var"; src: url(/assets/vendor/fonts/inter-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/assets/vendor/fonts/jakarta-var.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --font: "Inter Var", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Jakarta", "Inter Var", "Segoe UI", system-ui, -apple-system, sans-serif;
  --brand-2: #4f46e5;
  --grad: linear-gradient(135deg, #0b6e69 0%, #0f9f94 45%, #4f46e5 100%);
  --grad-soft: linear-gradient(135deg, rgba(15, 159, 148, .12), rgba(79, 70, 229, .12));
  --video-2: #f59e0b; --image-2: #eab308; --pdf-2: #ec4899; --resume-2: #8b5cf6;
  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
:root[data-theme="dark"] { --grad: linear-gradient(135deg, #14b8a6 0%, #22d3ee 45%, #818cf8 100%); --brand-2: #818cf8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grad: linear-gradient(135deg, #14b8a6 0%, #22d3ee 45%, #818cf8 100%); --brand-2: #818cf8; } }
.c-video  { --c2: var(--video-2); }  .c-image { --c2: var(--image-2); }
.c-pdf    { --c2: var(--pdf-2); }    .c-resume { --c2: var(--resume-2); }

body { font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em; }
h1, h2, h3 { font-family: var(--display); }

/* smooth page-to-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--glass); }
.site-header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, .25); }
.logo svg { transition: transform .5s var(--spring); }
.logo:hover svg { transform: rotate(-8deg) scale(1.08); }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px;
                background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.icon-btn { transition: transform .3s var(--spring), background var(--t-fast) ease, color var(--t-fast) ease; }
#themeBtn:hover { transform: rotate(-20deg); }

/* --------------------------------------------------------------- buttons */
.btn-primary { position: relative; overflow: hidden; background: var(--grad); background-size: 140% 140%; border: 0;
               box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
               transition: transform .25s var(--spring), box-shadow .25s ease, background-position .5s ease, opacity .2s; }
.btn-primary:hover:not(:disabled) { background: var(--grad); background-size: 140% 140%; background-position: 100% 0;
               transform: translateY(-2px); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--brand-2) 70%, transparent); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
                      background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: left .7s ease; pointer-events: none; }
.btn-primary:hover:not(:disabled)::after { left: 130%; }
:root[data-theme="dark"] .btn-primary { color: #04131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #04131a; } }
.btn-ghost:hover:not(:disabled) { transform: translateY(-1px); }
.btn-light { background: #fff; color: #0b2a33; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.2); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 84px 0 34px; overflow: hidden; isolation: isolate; text-align: center; }
.hero-inner { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: -10% -5% 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; left: 2%; top: -8%; background: #2dd4bf; }
.blob.b2 { width: 460px; height: 460px; right: 4%; top: 6%; background: #818cf8; animation-duration: 22s; animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; left: 38%; top: 38%; background: #f9a8d4; opacity: .35; animation-duration: 26s; animation-delay: -12s; }
:root[data-theme="dark"] .blob { opacity: .28; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: .28; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 50px) scale(.95); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
             background-size: 44px 44px; opacity: .45; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 30%, transparent 75%);
             mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 30%, transparent 75%); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
              color: var(--ink-2); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-1); backdrop-filter: blur(8px); }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #10b981; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #10b981; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.hero h1 { margin-top: 22px; font-weight: 800; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.rotator { display: inline-block; height: 1.04em; overflow: hidden; vertical-align: bottom; }
.rot-track { display: flex; flex-direction: column; animation: rotate-words 9s cubic-bezier(.7, 0, .2, 1) infinite; }
.rot-word { height: 1.04em; line-height: 1.04; color: var(--brand); text-align: center; }
@keyframes rotate-words {
  0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-1.04em); } 50%, 70% { transform: translateY(-2.08em); }
  75%, 95% { transform: translateY(-3.12em); } 100% { transform: translateY(-4.16em); }
}
.hero p.lead { font-size: 19px; max-width: 640px; }
.finder input { height: 64px; border-radius: 20px; background: var(--glass); backdrop-filter: blur(10px); }
.finder input:focus { transform: translateY(-1px); }
.fade-up.d4 { animation-delay: 240ms; }

.floaters { position: absolute; inset: 0; pointer-events: none; display: none; }
.floater { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px;
           background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-3); backdrop-filter: blur(12px);
           text-align: left; animation: float 7s ease-in-out infinite; }
.floater .tool-icon { width: 40px; height: 40px; border-radius: 12px; }
.floater b { display: block; font-size: 14px; }
.floater small { color: var(--ink-3); font-size: 12.5px; }
.floater.f1 { left: 3%; top: 26%; } .floater.f2 { right: 3%; top: 20%; animation-delay: -2s; }
.floater.f3 { left: 6%; top: 62%; animation-delay: -4s; } .floater.f4 { right: 5%; top: 58%; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@media (min-width: 1280px) { .floaters { display: block; } }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.stat { padding: 20px; border-radius: 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.stat b { display: block; font: 800 34px/1.1 var(--display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--ink-2); font-size: 14px; }

/* --------------------------------------------------------- tool cards */
.tools-section { margin-top: 10px; }
.tool-grid { gap: 18px; }
.tool-card { overflow: hidden; border-radius: 22px; transition: transform .35s var(--spring), box-shadow .35s ease, border-color .3s ease; }
.tool-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
                     background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 14%, transparent), transparent 45%); }
.tool-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 22px 44px -24px color-mix(in srgb, var(--c) 55%, rgba(0,0,0,.4)); }
.tool-card:hover::before { opacity: 1; }
.tool-icon { background: linear-gradient(135deg, var(--c), var(--c2, var(--c))); color: #fff;
             box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--c) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.tool-card .tool-icon { transition: transform .45s var(--spring); }
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-6deg); }
.tool-card h3 { font-weight: 750; }
.tool-card.is-new::after { background: linear-gradient(135deg, var(--c), var(--c2, var(--c))); color: #fff; }
.chip { transition: transform .25s var(--spring), background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px var(--brand-2); }
.chip[aria-pressed="true"] .dot { background: #fff; }

/* -------------------------------------------------------- how it works */
.eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
           letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink); background: var(--grad-soft); }
.how { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.how::before { content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; z-index: 0;
               background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: 16px 0; } }
.how li { position: relative; z-index: 1; padding: 28px 24px; border-radius: 22px; text-align: center; background: var(--surface); border: 1px solid var(--line); }
.how .tool-icon { width: 60px; height: 60px; margin: 0 auto; border-radius: 18px; --c: var(--brand); --c2: var(--brand-2); }
.how .tool-icon .icon { width: 28px; height: 28px; }
.how-num { position: absolute; top: 14px; left: 16px; font: 800 13px/1 var(--display); color: var(--ink-3); }
.how h3 { margin-top: 16px; font-size: 18px; }
.how p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(170px, auto); gap: 18px; }
.bento-item { position: relative; overflow: hidden; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
              transition: transform .35s var(--spring), box-shadow .3s ease; }
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.bento-item.big { grid-row: span 2; background: var(--grad); color: #fff; border: 0; }
.bento-item .tool-icon { --c: var(--brand); --c2: var(--brand-2); }
.bento-item.big .tool-icon { background: rgba(255,255,255,.18); box-shadow: none; }
.bento-item h3 { margin-top: 16px; font-size: 19px; letter-spacing: -.02em; }
.bento-item p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.bento-item.big h3 { font-size: 26px; max-width: 360px; line-height: 1.2; }
.bento-item.big p { color: rgba(255,255,255,.88); max-width: 420px; font-size: 16px; }
.bento-lock { position: absolute; right: 26px; bottom: 26px; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px;
              background: rgba(255,255,255,.14); color: #fff; }
.bento-lock span { position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255,255,255,.5); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.bento-lock .icon { width: 40px; height: 40px; }

/* ------------------------------------------------------------------ CTA */
.cta-wrap { margin-top: 72px; }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
       padding: 40px 44px; border-radius: 28px; background: var(--grad); color: #fff; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%;
               background: rgba(255,255,255,.12); animation: drift 16s ease-in-out infinite alternate; }
.cta h2 { position: relative; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -.03em; }
.cta p { position: relative; margin-top: 6px; color: rgba(255,255,255,.88); font-size: 17px; }
.cta-acts { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------- scroll reveal */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease);
                               transition-delay: calc(var(--d, 0) * 90ms); }
html.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ tool pages */
.tool-hero .tool-icon { width: 64px; height: 64px; border-radius: 20px; animation: pop .6s var(--spring) both; }
@keyframes pop { from { transform: scale(.6) rotate(-12deg); opacity: 0; } }
.tool-hero h1 { font-weight: 800; }
.workbench { position: relative; border-radius: 30px; }
.workbench::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
                     background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--brand)) 40%, transparent), transparent 40%, color-mix(in srgb, var(--brand-2) 30%, transparent)); }
.drop { border-width: 2px; transition: border-color .3s ease, transform .35s var(--spring), background .3s ease; }
.drop:hover { transform: translateY(-2px); }
.drop-badge { background: linear-gradient(135deg, var(--c), var(--c2, var(--c))); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.drop.is-over { border-style: dashed; animation: march .6s linear infinite; }
.drop.is-over .drop-badge { animation: wiggle .5s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg) scale(1.06); } 50% { transform: rotate(6deg) scale(1.06); } }
@keyframes march { 50% { border-color: color-mix(in srgb, var(--c) 50%, transparent); } }
.bar > i { background: linear-gradient(90deg, var(--c, var(--brand)), var(--c2, var(--brand-2))); position: relative; overflow: hidden; }
.bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
                  animation: shimmer-bar 1.3s linear infinite; transform: translateX(-100%); }
@keyframes shimmer-bar { to { transform: translateX(100%); } }
.result-head .ok { animation: pop .55s var(--spring) both; background: linear-gradient(135deg, #10b981, #059669); }
.file { transition: transform .3s var(--spring), border-color .2s ease; }
.file:hover { transform: translateX(3px); border-color: var(--line-2); }

/* little celebration when a file is ready */
.confetti { position: fixed; z-index: 60; pointer-events: none; width: 8px; height: 12px; border-radius: 2px;
            animation: confetti 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* footer */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .7; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .how::before { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-item.big { grid-column: 1 / -1; grid-row: auto; padding-bottom: 130px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .blob.b1 { width: 300px; height: 300px; } .blob.b2 { width: 260px; height: 260px; } .blob.b3 { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cta { padding: 30px 24px; }
  .stat b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .floater, .rot-track, .drop-badge, .how::before, .bento-lock span, .cta::before, .pulse::after { animation: none !important; }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
  .rotator { height: auto; } .rot-track > :not(:first-child) { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
