/* The creator workbench: editorial typography, quiet surfaces, useful contrast.
   Minimum readable text size on this page is 12px (decorative aria-hidden artwork excepted). */
.cpk-home { padding-bottom: 0; background: var(--cpk-bg); color: var(--cpk-ink); }
.cpk-home .home-main { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }

/* Hero: heading + intro on the left, the working dropzone on the right.
   Markup order is heading → dropzone → intro so phones reach the tool first. */
.cpk-home .home-hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head bench" "body bench"; column-gap: 76px; row-gap: 0; align-items: center; padding: 76px 0 62px; }
.cpk-home .home-intro-head { grid-area: head; align-self: end; }
.cpk-home .home-intro-body { grid-area: body; align-self: start; }
.cpk-home .home-workbench { grid-area: bench; }
.cpk-home .home-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--cpk-muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; line-height: 1.6; }
.cpk-home .home-status-dot { width: 6px; height: 6px; background: var(--cpk-link); border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.cpk-home .home-intro h1 { margin: 27px 0 24px; font-size: clamp(48px, 5.8vw, 84px); line-height: 1.04; font-weight: 500; letter-spacing: -.065em; color: var(--cpk-ink); overflow-wrap: anywhere; }
.cpk-home .home-intro h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.055em; color: var(--cpk-link); }
.cpk-home .home-lede { max-width: 435px; font-size: 17px; line-height: 1.65; font-weight: 500; color: var(--cpk-ink); margin: 0; }
.cpk-home .home-sublede { max-width: 415px; margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--cpk-muted); }
.cpk-home .home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 24px; }
.cpk-home .home-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; background: var(--cpk-accent); color: var(--cpk-accent-ink); font-size: 14px; font-weight: 600; line-height: 1.4; transition: transform .18s, box-shadow .18s; cursor: pointer; text-decoration: none; }
.cpk-home .home-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px color-mix(in srgb, var(--cpk-accent) 25%, transparent); }
.cpk-home .home-primary svg { height: 16px; width: 16px; }
.cpk-home .home-text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--cpk-ink); text-decoration: none; font-weight: 500; }
.cpk-home .home-text-link:hover { color: var(--cpk-link); }
.cpk-home .home-text-link > span { font-size: 17px; }
.cpk-home .home-jump-link { text-decoration: underline; text-decoration-color: var(--cpk-line-strong); text-underline-offset: 4px; }
.cpk-home .home-promise { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.cpk-home .home-promise-icon { color: var(--cpk-muted); }
.cpk-home .home-promise-icon svg { width: 24px; height: 24px; color: inherit !important; }
.cpk-home .home-promise strong, .cpk-home .home-promise div > span { display: block; font-size: 13px; line-height: 1.6; }
.cpk-home .home-promise strong { font-weight: 600; color: var(--cpk-ink); }
.cpk-home .home-promise div > span { color: var(--cpk-muted); }

/* Workbench / dropzone */
.cpk-home .home-workbench { min-width: 0; border-radius: 14px; background: var(--cpk-surface); border: 1px solid var(--cpk-line); box-shadow: 0 12px 40px -20px rgba(24, 33, 16, .15); position: relative; }
.cpk-home .home-workbench-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--cpk-line); }
.cpk-home .home-tool-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cpk-home .home-tool-title svg { color: inherit !important; width: 16px; height: 16px; }
.cpk-home .home-local-badge { display: flex; gap: 6px; align-items: center; padding: 3px 8px; background: var(--cpk-accent-soft); color: var(--cpk-link); border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cpk-home .home-dropzone { margin: 14px; border: 1px dashed var(--cpk-line-strong); border-radius: 8px; transition: background .2s, border-color .2s; scroll-margin-top: 100px; }
.cpk-home .home-dropzone.hot { border-color: var(--cpk-link); background: var(--cpk-accent-soft); }
.cpk-home .home-drop-inner { cursor: pointer; text-align: center; padding: 17px 20px 20px; border-radius: 8px; }
.cpk-home .home-file-art { width: 250px; height: 181px; position: relative; margin: 3px auto 10px; pointer-events: none; }
.cpk-home .home-file-back { position: absolute; width: 164px; height: 128px; left: 45px; top: 17px; transform: rotate(-12deg); border: 1px solid var(--cpk-line-strong); background: var(--cpk-surface-2); border-radius: 8px; }
.cpk-home .home-file-image { position: absolute; left: 40px; top: 23px; width: 172px; padding: 8px; border: 1px solid var(--cpk-line-strong); border-radius: 8px; background: var(--cpk-surface); color: var(--cpk-muted); transform: rotate(6deg); box-shadow: 0 6px 15px #00000008; }
.cpk-home .home-file-image > svg { display: block; width: 100%; }
.cpk-home .home-file-image > span { display: flex; justify-content: space-between; font: 8px ui-monospace, monospace; padding-top: 9px; letter-spacing: .03em; }
.cpk-home .home-file-tag { position: absolute; left: 0; top: 42px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--cpk-line); background: var(--cpk-surface); border-radius: 5px; padding: 7px 8px; transform: rotate(-5deg); color: var(--cpk-muted); font: 9px ui-monospace, monospace; box-shadow: 0 4px 10px #00000005; }
.cpk-home .home-file-tag svg { width: 14px; height: 14px; }
.cpk-home .home-file-shield { display: grid; place-items: center; position: absolute; bottom: 11px; right: 16px; background: var(--cpk-accent); color: var(--cpk-accent-ink); width: 48px; height: 48px; border-radius: 13px; transform: rotate(-7deg); border: 4px solid var(--cpk-surface); }
.cpk-home .home-file-shield svg { width: 24px; height: 24px; color: var(--cpk-accent-ink) !important; }
.cpk-home .home-drop-title { margin: 0 0 6px; font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -.035em; color: var(--cpk-ink); }
.cpk-home .home-drop-caption { margin: 0; font-size: 13px; line-height: 1.5; color: var(--cpk-muted); }
.cpk-home .home-format-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.cpk-home .home-format-list span { padding: 1px 7px; border: 1px solid var(--cpk-line); border-radius: 4px; color: var(--cpk-muted); font: 12px/1.6 ui-monospace, monospace; letter-spacing: .03em; }
.cpk-home .home-drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 12px; }
.cpk-home .home-secondary { background: var(--cpk-surface); color: var(--cpk-ink); padding: 10px 16px; border: 1px solid var(--cpk-line-strong); border-radius: 8px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cpk-home .home-secondary:hover { background: var(--cpk-surface-2); }
.cpk-home .home-sample-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; color: var(--cpk-muted); }
.cpk-home .home-sample-row button { color: var(--cpk-ink); background: transparent; cursor: pointer; font-size: inherit; text-decoration: underline; text-decoration-color: var(--cpk-line-strong); text-underline-offset: 3px; }
.cpk-home .home-sample-row button:hover { text-decoration-color: currentColor; }
.cpk-home .home-workbench-bottom { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 1px 15px 14px; font-size: 12px; line-height: 1.5; color: var(--cpk-muted); text-align: center; }
.cpk-home .home-workbench-bottom svg { width: 13px; height: 13px; flex-shrink: 0; }
.cpk-home .home-learn-rail { margin: 0; padding: 0 18px 14px; text-align: center; font-size: 12px; line-height: 1.65; color: var(--cpk-muted); }
.cpk-home .home-learn-rail a { color: var(--cpk-muted); text-decoration: underline; text-underline-offset: 2px; }
.cpk-home .home-learn-rail a:hover { color: var(--cpk-link); }

/* Workspace (queued files) */
.cpk-home .home-workspace { scroll-margin-top: 100px; }
.cpk-home .home-workspace:has(#workspace:not(.hidden)) { padding-bottom: 40px; }
.cpk-home .home-hero.compact { display: block; padding: 30px 0; }
.cpk-home .home-hero.compact .home-workbench, .cpk-home .home-hero.compact .home-intro-detail { display: none; }
.cpk-home #hero.compact h1 { font-size: 38px; margin: 12px 0; }
.cpk-home #hero.compact h1 br { display: none; }
.cpk-home #hero.compact h1 em::before { content: ' '; }
.cpk-home #hero.compact .home-lede { max-width: none; font-size: 14px; }

/* How it works: an ordered list of four steps */
.cpk-home .home-workflow { border-top: 1px solid var(--cpk-line); border-bottom: 1px solid var(--cpk-line); padding: 27px 0; }
.cpk-home .home-workflow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.cpk-home .home-workflow-step { display: flex; align-items: center; gap: 12px; position: relative; }
.cpk-home .home-step-num { font: 12px ui-monospace, monospace; color: var(--cpk-faint); }
.cpk-home .home-step-title { margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: var(--cpk-ink); font-weight: 600; }
.cpk-home .home-step-body { margin: 0; color: var(--cpk-muted); font-size: 13px; line-height: 1.55; }
.cpk-home .home-step-arrow { margin-left: auto; color: var(--cpk-faint); }

/* Tool shelf */
.cpk-home .home-tool-shelf { padding: 67px 0 68px; }
.cpk-home .home-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.cpk-home .home-section-heading h2 { font-size: 33px; font-weight: 500; line-height: 1.25; letter-spacing: -.045em; margin: 12px 0 0; }
.cpk-home .home-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.cpk-home .home-tool-card { min-width: 0; padding: 23px 22px 16px; border: 1px solid var(--cpk-line); border-radius: 10px; background: var(--cpk-surface); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; --tool-color: var(--cpk-link); }
.cpk-home .home-tool-card:hover { transform: translateY(-4px); border-color: var(--cpk-line-strong); box-shadow: var(--cpk-shadow); }
.cpk-home .home-tool-card[data-category="media"] { --tool-color: var(--cpk-violet); }
.cpk-home .home-tool-card[data-category="platform"] { --tool-color: var(--cpk-amber); }
.cpk-home .home-tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.cpk-home .home-tool-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--tool-color) 9%, transparent); }
.cpk-home .home-tool-icon svg { width: 19px; height: 19px; color: var(--tool-color) !important; }
.cpk-home .home-tool-arrow { font-size: 17px; color: var(--cpk-faint); }
.cpk-home .home-tool-category { font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; color: var(--cpk-muted); }
.cpk-home .home-tool-card h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; color: var(--cpk-ink); margin: 6px 0 8px; line-height: 1.45; }
.cpk-home .home-tool-card p { font-size: 13px; line-height: 1.7; color: var(--cpk-muted); margin: 0 0 22px; }
.cpk-home .home-tool-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 5px; border-top: 1px solid var(--cpk-line); padding-top: 12px; margin-top: auto; color: var(--cpk-muted); font-size: 12px; }
.cpk-home .home-tool-card-foot > span:first-child { font-family: ui-monospace, monospace; color: var(--cpk-faint); }

/* Manifesto */
.cpk-home .home-manifesto { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; padding: 45px 48px; border: 1px solid var(--cpk-line); background: var(--cpk-surface-2); border-radius: 12px; }
.cpk-home .home-manifesto h2 { font-size: clamp(26px, 2.7vw, 38px); font-weight: 400; line-height: 1.3; letter-spacing: -.045em; margin: 18px 0 22px; }
.cpk-home .home-manifesto h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--cpk-muted); }
.cpk-home .home-manifesto-detail { border-left: 1px solid var(--cpk-line); padding-left: 42px; }
.cpk-home .home-large-shield svg { color: var(--cpk-link); width: 32px; height: 32px; margin-bottom: 16px; }
.cpk-home .home-manifesto-detail p { font-size: 14px; line-height: 1.8; color: var(--cpk-muted); margin: 0 0 15px; }
.cpk-home .home-manifesto-detail > a { font-size: 14px; color: var(--cpk-ink); }

/* Removes / FAQ / Guides */
.cpk-home #removes, .cpk-home #faq, .cpk-home #guides { max-width: none; padding: 0; margin: 72px auto 0; }
.cpk-home #removes > h2, .cpk-home #faq > h2, .cpk-home #guides > h2 { font-size: 29px; font-weight: 500; letter-spacing: -.045em; text-align: left; }
.cpk-home #removes > p, .cpk-home #guides > p { text-align: left; margin-inline: 0; font-size: 14px; line-height: 1.75; }
.cpk-home #removes article { background: var(--cpk-surface); border: 1px solid var(--cpk-line); border-radius: 10px; }
.cpk-home #removes article h3 { font-size: 15px; }
.cpk-home #removes article ul { font-size: 14px; line-height: 1.7; }
.cpk-home #faq { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-top: 50px; border-top: 1px solid var(--cpk-line); }
.cpk-home #faq > div { margin-top: 0; }
.cpk-home .faq-item { min-width: 0; border: 1px solid var(--cpk-line); border-radius: 12px; background: var(--cpk-surface); }
.cpk-home .faq-btn { min-height: 64px; padding: 18px 20px; border-radius: inherit; font-size: 15px; line-height: 1.6; gap: 20px; }
.cpk-home .faq-btn > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cpk-home .faq-panel { padding: 0 60px 20px 20px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.cpk-home .faq-chevron { flex: 0 0 20px; text-align: center; font-size: 20px; line-height: 1; font-weight: 300; }
.cpk-home .faq-item.open .faq-chevron { transform: rotate(45deg); }
.cpk-home #guides { margin-bottom: 75px; }
/* Five links: two wide cards over three, instead of three plus an orphan. */
.cpk-home .home-guides-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.cpk-home .home-guides-grid > li { grid-column: span 2; min-width: 0; }
.cpk-home .home-guides-grid > li:nth-child(-n + 2) { grid-column: span 3; }
.cpk-home .home-guides-grid a { display: block; height: 100%; padding: 22px; border: 1px solid var(--cpk-line); border-radius: 9px; background: var(--cpk-surface); color: var(--cpk-ink); font-size: 14px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.cpk-home .home-guides-grid a:hover { border-color: var(--cpk-line-strong); }

/* Locale headline tuning */
html[lang="zh-CN"] .cpk-home .home-intro h1, html[lang="ja"] .cpk-home .home-intro h1, html[lang="ko"] .cpk-home .home-intro h1 { font-size: clamp(36px, 4.45vw, 66px); letter-spacing: -.055em; line-height: 1.35; }
html[lang="zh-CN"] .cpk-home .home-intro h1 em, html[lang="ja"] .cpk-home .home-intro h1 em, html[lang="ko"] .cpk-home .home-intro h1 em { font-family: inherit; font-style: normal; font-weight: 400; }
html[lang="de"] .cpk-home .home-intro h1, html[lang="fr"] .cpk-home .home-intro h1, html[lang="vi"] .cpk-home .home-intro h1 { font-size: clamp(43px, 4.7vw, 67px); }

@media (min-width: 1500px) { .cpk-home .home-hero { column-gap: 100px; padding-block: 90px 75px; } }
@media (max-width: 1100px) {
  .cpk-home .home-main { width: calc(100% - 64px); }
  .cpk-home .home-hero { column-gap: 35px; }
  .cpk-home .home-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .cpk-home .home-tool-card-top { margin-bottom: 20px; }
  .cpk-home .home-tool-card h3 { font-size: 16px; }
  .cpk-home .home-manifesto { gap: 35px; padding: 35px; }
}
/* Phones and small tablets: short heading, then the dropzone, then the explanation. */
@media (max-width: 760px) {
  .cpk-home .home-main { width: calc(100% - 40px); }
  .cpk-home .home-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "bench" "body"; row-gap: 22px; padding: 24px 0 34px; }
  .cpk-home .home-intro-head, .cpk-home .home-intro-body { align-self: auto; }
  .cpk-home .home-intro h1 { margin: 12px 0 0; line-height: 1.08; }
  html[lang] .cpk-home .home-intro h1 { font-size: clamp(30px, 8vw, 54px); }
  html[lang="en"] .cpk-home .home-intro h1 { font-size: clamp(32px, 8.6vw, 56px); }
  html[lang="zh-CN"] .cpk-home .home-intro h1, html[lang="ja"] .cpk-home .home-intro h1, html[lang="ko"] .cpk-home .home-intro h1 { line-height: 1.3; }
  .cpk-home .home-lede { font-size: 15px; max-width: 560px; }
  .cpk-home .home-sublede { font-size: 14px; max-width: 560px; }
  .cpk-home .home-jump-link { display: none; }
  .cpk-home .home-actions { margin-top: 16px; }
  .cpk-home .home-promise { margin-top: 22px; }
  .cpk-home .home-workbench { max-width: 560px; width: 100%; margin-inline: auto; }
  .cpk-home .home-file-art { width: 250px; height: 181px; margin: -16px auto -22px; transform: scale(.74); }
  .cpk-home .home-drop-inner { padding-top: 10px; }
  .cpk-home #hero.compact { padding: 16px 0 0; }
  .cpk-home #hero.compact h1 { font-size: 24px; line-height: 1.2; margin: 8px 0 0; }
  .cpk-home .home-workflow-list { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .cpk-home .home-workflow { padding: 24px 0; }
  .cpk-home .home-step-arrow { display: none; }
  .cpk-home .home-tool-shelf { padding: 40px 0; }
  .cpk-home .home-section-heading { align-items: start; flex-direction: column; }
  .cpk-home .home-section-heading h2 { font-size: 29px; }
  .cpk-home .home-manifesto { grid-template-columns: 1fr; gap: 30px; padding: 28px; }
  .cpk-home .home-manifesto-detail { border-left: 0; border-top: 1px solid var(--cpk-line); padding: 25px 0 0; }
  .cpk-home #faq { grid-template-columns: 1fr; gap: 22px; }
  .cpk-home #removes, .cpk-home #faq, .cpk-home #guides { margin-top: 45px; }
  .cpk-home #guides { margin-bottom: 50px; }
}
@media (max-width: 640px) {
  .cpk-home .home-guides-grid { grid-template-columns: minmax(0, 1fr); }
  .cpk-home .home-guides-grid > li, .cpk-home .home-guides-grid > li:nth-child(-n + 2) { grid-column: auto; }
}
@media (max-width: 420px) {
  .cpk-home .home-main { width: calc(100% - 32px); }
  .cpk-home .home-tools-grid { grid-template-columns: 1fr; }
  .cpk-home .home-workflow-list { grid-template-columns: 1fr; gap: 16px; }
  .cpk-home .home-tool-card { padding: 22px; }
  .cpk-home .home-tool-card-top { margin-bottom: 17px; }
  .cpk-home .home-tool-card p { margin-bottom: 20px; }
  .cpk-home .home-drop-inner { padding-inline: 10px; }
  .cpk-home .home-workbench-top { padding-inline: 13px; }
  .cpk-home .home-drop-title { font-size: 18px; }
  .cpk-home .home-actions { gap: 20px; }
  .cpk-home .home-manifesto { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) { .cpk-home *, .cpk-home *::before, .cpk-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Grid children may shrink for long localized words and CJK headings. */
.cpk-home .home-intro { min-width: 0; }
.cpk-home .home-fold { margin-top: 18px; border-top: 1px solid var(--cpk-line); }
.cpk-home .home-fold > summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--cpk-ink); list-style: none; }
.cpk-home .home-fold > summary::-webkit-details-marker { display: none; }
.cpk-home .home-fold > summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--cpk-link); }
.cpk-home .home-fold[open] > summary::before { content: "–"; }
