/* English /creator-tools, Ink and Lime (Vytas, 2026-11-03). Template: frontend/resources/creator_tools_ink.pug. Loads after ink/home.css,
   which holds the tokens, header, buttons, proof row, cards, FAQ and close. Only this page's parts live here.
   Motion plays once and rests; the default styles are the final state, so no JavaScript and reduced motion show the finished page. */

/* ---------- 1. Hero: the sitewide Instagram phone (ink/home.css .ik-hero--v1 .ik-cfph, look/phone.css); nothing of its own here ---------- */

/* Logos: the tool's own square mark. A letter when the file is missing. */
html body.ik:not(#_) img.ikc-logo, .ikc-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; }
.ikc-logo--letter { display: grid; place-items: center; background: var(--cf-ink); font-size: 15px; font-weight: 600; color: #fff; }
.ikc-pick .ikc-logo { width: 40px; height: 40px; }

/* Price label: one neutral pill for every tool (Vytas: "too many colors"); only our own card is lime. */
.ikc-price { flex: none; padding: 2px 8px; border: 1px solid var(--cf-line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 500; line-height: 1.5; color: #52525b; white-space: nowrap; }
.ikc-price.is-free { color: var(--cf-text); }

/* ---------- 2. Picks: 15 rows, three columns ---------- */
html body.ik:not(#_) .ikc-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body.ik:not(#_) .ikc-pick { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; padding: 14px 16px; border: 1px solid transparent; border-radius: 20px; background: #fff; }
html body.ik:not(#_) .ikc-pick.is-ours { border-color: var(--cf-lime-lo); }
.ikc-pick__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ikc-pick__job { font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
.ikc-pick__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
html body.ik:not(#_) a.ikc-pick__link { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--cf-text); text-decoration: none; }
@media (hover: hover) { html body.ik:not(#_) a.ikc-pick__link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.ikc-pick__why { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--cf-text-2); }
html body.ik:not(#_) button.ikc-more { display: none; }

/* ---------- 3. CreatorFlow: copy left, the TOOLS story right ---------- */
.ikc-cf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
html body.ik:not(#_) .ikc-cf p.ik-lead { margin-top: 16px; }
html body.ik:not(#_) .ikc-steps { max-width: 520px; margin: 24px 0 28px; }
html body.ik:not(#_) .ikc-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--cf-ink-line); font-size: 16px; color: var(--cf-on-ink); }
html body.ik:not(#_) .ikc-steps li:last-child { border-bottom: 1px solid var(--cf-ink-line); }
.ikc-steps li > span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cf-lime); font-size: 13px; font-weight: 600; color: var(--cf-ink); }
.ikc-cf__art { position: relative; display: block; height: 460px; }
html body.ik:not(#_) .ikc-story__post { position: absolute; top: 34px; left: 9%; width: 240px; transform: rotate(-4deg); }
.ikc-story__post .ik-post__pic { aspect-ratio: 4 / 4.4; }
.ikc-story__tag { margin-left: auto; font-size: 12px; color: #737373; }
html body.ik:not(#_) .ikc-story__dm { position: absolute; right: 7%; bottom: 40px; width: 270px; transform: rotate(2deg); }
.ikc-story__sent { position: absolute; z-index: 2; top: -15px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--cf-ink); font-size: 13px; font-weight: 500; color: #fff; transform: rotate(2deg); }
.ikc-story__sent svg { color: var(--cf-lime); }

/* ---------- 4. Directory: a sticky side column, then one block per job ---------- */
.ikc-dirgrid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 40px; align-items: start; }
.ikc-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; }
.ikc-side::-webkit-scrollbar { display: none; }
.ikc-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ikc-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--cf-field); border-radius: 12px; background: #fff; color: #63636b; }
.ikc-search:focus-within { border-color: var(--cf-text); outline: 1px solid var(--cf-text); outline-offset: -2px; }
html body.ik:not(#_) .ikc-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--cf-text); }
.ikc-search input::placeholder { color: #8a8a8f; }
.ikc-search input::-webkit-search-cancel-button { cursor: pointer; }
.ikc-free { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--cf-field); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 500; color: var(--cf-text); cursor: pointer; user-select: none; }
.ikc-free input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ikc-free__sw { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--cf-field); transition: background-color .2s var(--ease); }
.ikc-free__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-out); }
.ikc-free input:checked + .ikc-free__sw { background: var(--cf-ink); }
.ikc-free input:checked + .ikc-free__sw::after { background: var(--cf-lime); transform: translateX(14px); }
.ikc-free input:focus-visible + .ikc-free__sw { outline: 2px solid var(--cf-ink); outline-offset: 2px; }
.ikc-chips { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
html body.ik:not(#_) button.ikc-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 38px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--cf-text); text-align: left; cursor: pointer; }
.ikc-chip i { font-style: normal; font-size: 13px; color: #8a8a8f; font-variant-numeric: tabular-nums; }
@media (hover: hover) { html body.ik:not(#_) button.ikc-chip:not(.is-on):hover { background: #fff; } }
html body.ik:not(#_) button.ikc-chip.is-on { background: var(--cf-ink); color: #fff; }
.ikc-chip.is-on i { color: var(--cf-lime); }

.ikc-list { min-width: 0; }
html body.ik:not(#_) .ikc-job + .ikc-job { margin-top: 40px; }
.ikc-job { scroll-margin-top: 24px; }
html body.ik:not(#_) .ikc-job[hidden] { display: none; }
.ikc-job__head { margin-bottom: 14px; }
html body.ik:not(#_) h3.ikc-job__h { display: flex; align-items: baseline; gap: 10px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; color: var(--cf-text); text-align: left; }
.ikc-job__n { font-size: 15px; font-weight: 500; letter-spacing: 0; color: #8a8a8f; }
html body.ik:not(#_) p.ikc-job__p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--cf-text-2); text-align: left; }
.ikc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html body.ik:not(#_) a.ikc-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px 16px; border: 1px solid transparent; border-radius: 18px; background: #fff; color: var(--cf-text); text-decoration: none; transition: border-color .15s var(--ease); }
html body.ik:not(#_) a.ikc-card[hidden] { display: none; }
@media (hover: hover) { html body.ik:not(#_) a.ikc-card:hover { border-color: var(--cf-field); } }
html body.ik:not(#_) a.ikc-card:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: 2px; }
.ikc-card__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ikc-card__name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.ikc-card__text { font-size: 14px; line-height: 1.45; color: var(--cf-text-2); }
.ikc-card__more { margin-top: auto; padding-top: 2px; font-size: 13px; font-weight: 500; color: var(--cf-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Our own card is ink, so it reads as ours and not as a pick hidden among the others. */
html body.ik:not(#_) a.ikc-card.is-ours { background: var(--cf-ink); color: #fff; }
.ikc-card.is-ours .ikc-card__text { color: var(--cf-on-ink-2); }
.ikc-card.is-ours .ikc-card__more { color: var(--cf-lime); }
.ikc-card.is-ours .ikc-price { border-color: transparent; background: var(--cf-lime); color: #111; }
@media (hover: hover) { html body.ik:not(#_) a.ikc-card.is-ours:hover { border-color: var(--cf-lime); } }

.ikc-job__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.ikc-job__foot:not(:has(.ikc-tip)):has(button[hidden]) { display: none; }
html body.ik:not(#_) .ikc-job__foot button.ikc-more { display: inline-flex; align-items: center; height: 42px; margin: 0; padding: 0 16px; border: 1px solid var(--cf-field); border-radius: 8px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--cf-text); cursor: pointer; }
html body.ik:not(#_) .ikc-job__foot button.ikc-more[hidden] { display: none; }
@media (hover: hover) { html body.ik:not(#_) .ikc-job__foot button.ikc-more:hover { border-color: var(--cf-text); background: var(--cf-text); color: #fff; } }
html body.ik:not(#_) p.ikc-tip { display: flex; align-items: baseline; gap: 10px; max-width: 640px; font-size: 14px; line-height: 1.5; color: var(--cf-text-2); text-align: left; }
.ikc-tip__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cf-lime-lo); transform: translateY(-1px); }
html body.ik:not(#_):not(#_) [role="main"] p.ikc-tip a { color: var(--cf-text); white-space: nowrap; }

.ikc-empty { padding: 32px; border-radius: 20px; background: #fff; text-align: left; }
html body.ik:not(#_) p.ikc-empty__h { font-size: 21px; font-weight: 500; color: var(--cf-text); }
html body.ik:not(#_) .ikc-empty p:not(.ikc-empty__h) { margin-top: 6px; font-size: 16px; color: var(--cf-text-2); }
html body.ik:not(#_) button.ikc-clear { height: 44px; margin-top: 16px; padding: 0 18px; border: 1px solid #383838; border-radius: 8px; background: var(--cf-grad-ink); font: inherit; font-size: 15px; font-weight: 500; color: #fff; cursor: pointer; }

/* How we check: closed small print under the list. */
.ikc-method { margin-top: 40px; border-top: 1px solid var(--cf-field); }
html body.ik:not(#_) .ikc-method summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; font-weight: 500; color: var(--cf-text); cursor: pointer; list-style: none; }
.ikc-method summary::-webkit-details-marker { display: none; }
.ikc-method__ico { font-size: 20px; font-weight: 400; color: var(--cf-text-3); transition: transform .2s var(--ease); }
.ikc-method[open] .ikc-method__ico { transform: rotate(45deg); }
html body.ik:not(#_) .ikc-method p { max-width: 760px; padding-bottom: 10px; font-size: 14px; line-height: 1.55; color: var(--cf-text-2); text-align: left; }

/* ---------- 5. Free tools: the feature list, three columns ---------- */
html body.ik:not(#_) .ikc-own { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body.ik:not(#_) .ikc-own li { grid-template-rows: auto 1fr; align-content: start; }
html body.ik:not(#_):not(#_) .ikc-own h3 a { color: var(--cf-on-ink); text-decoration: none; }
@media (hover: hover) { html body.ik:not(#_):not(#_) .ikc-own h3 a:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- 6. FAQ side: the related pages as one line ---------- */
html body.ik:not(#_) p.ikc-related { max-width: 440px; margin-top: 24px; font-size: 15px; line-height: 1.7; color: var(--cf-text-2); text-align: left; }
html body.ik:not(#_):not(#_) [role="main"] p.ikc-related a { color: var(--cf-text); white-space: nowrap; }
/* pricing-redesign-2026-07.css paints #faq white on some pages; keep the sheet mist. */
html body.ik.ikc:not(#_):not(#_) section#faq.ik-sheet { background: var(--cf-mist) !important; }

/* ---------- Motion: once, then rest ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The TOOLS story: the post rises, the comment pops, the DM slides up, then "DM sent". */
  html.ik-js .ikc-cf__art:not(.is-in) .ikc-story__post { opacity: 0; transform: translateY(40px) rotate(-4deg); }
  html.ik-js .ikc-cf__art:not(.is-in) .ikc-story__post .ik-post__cmt { opacity: 0; transform: translateY(8px); }
  html.ik-js .ikc-cf__art:not(.is-in) .ikc-story__dm { opacity: 0; transform: translateY(70px) rotate(2deg); }
  html.ik-js .ikc-cf__art:not(.is-in) .ikc-story__sent { opacity: 0; transform: rotate(2deg) scale(.85); }
  html.ik-js .ikc-cf__art.is-in .ikc-story__post { transition: opacity .6s var(--ease-out) .1s, transform .9s var(--ease-out) .1s; }
  html.ik-js .ikc-cf__art.is-in .ikc-story__post .ik-post__cmt { transition: opacity .4s var(--ease-out) .7s, transform .5s var(--ease-out) .7s; }
  html.ik-js .ikc-cf__art.is-in .ikc-story__dm { transition: opacity .6s var(--ease-out) 1.1s, transform 1s var(--ease-out) 1.1s; }
  html.ik-js .ikc-cf__art.is-in .ikc-story__sent { transition: opacity .4s var(--ease-out) 1.9s, transform .5s var(--ease-out) 1.9s; }
}

/* ---------- Tablets ---------- */
@media (max-width: 1099px) {
  html body.ik:not(#_) .ikc-picks, .ikc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ikc-cf { grid-template-columns: 1fr; gap: 32px; }
  .ikc-cf__art { max-width: 620px; }
  html body.ik:not(#_) .ikc-own { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phones: one column; the side column becomes one sticky bar and the jobs swipe ---------- */
@media (max-width: 899px) {
  .ikc-dirgrid { grid-template-columns: 1fr; gap: 16px; }
  .ikc-side { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-height: none; margin: 0 -40px; padding: 10px 40px; overflow: visible; background: var(--cf-mist); }
  .ikc-search { height: 48px; }
  .ikc-free { height: 48px; padding: 0 12px; font-size: 14px; }
  .ikc-chips { grid-column: 1 / -1; flex-direction: row; gap: 6px; margin: 0 -40px; padding: 0 40px 2px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
  .ikc-chips::-webkit-scrollbar { display: none; }
  html body.ik:not(#_) button.ikc-chip { flex: none; width: auto; height: 36px; padding: 0 12px; border: 1px solid var(--cf-field); border-radius: 999px; background: #fff; font-size: 14px; }
  html body.ik:not(#_) button.ikc-chip.is-on { border-color: var(--cf-ink); }
}
@media (max-width: 767px) {
  html body.ik:not(#_) .ikc-picks, .ikc-grid { grid-template-columns: 1fr; gap: 8px; }
  html body.ik:not(#_) .ikc-picks.is-short .ikc-pick:nth-child(n + 7) { display: none; }
  html body.ik:not(#_) button.ikc-more--picks { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 12px 0 0; border: 1px solid var(--cf-field); border-radius: 8px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--cf-text); }
  html body.ik:not(#_) button.ikc-more--picks[hidden] { display: none; }
  html body.ik:not(#_) .ikc-pick { padding: 14px; }
  /* Directory cards become compact rows: logo, name and price, then one line. */
  html body.ik:not(#_) a.ikc-card { gap: 6px; padding: 12px 14px; border-radius: 16px; }
  html body.ik:not(#_) .ikc-job + .ikc-job { margin-top: 32px; }
  .ikc-job { scroll-margin-top: 128px; }
  html body.ik:not(#_) h3.ikc-job__h { font-size: 21px; }
  html body.ik:not(#_) .ikc-job__foot button.ikc-more { width: 100%; justify-content: center; height: 46px; }
  /* The post top left with its comment in view, the DM bottom right over its corner only. */
  .ikc-cf__art { height: 500px; }
  html body.ik:not(#_) .ikc-story__post { top: 20px; left: 5%; width: 170px; }
  html body.ik:not(#_) .ikc-story__post .ik-post__cmt img, .ikc-cmt__more { display: none; }
  html body.ik:not(#_) .ikc-story__dm { right: 3%; bottom: 14px; width: 244px; }
  html body.ik:not(#_) .ikc-own { grid-template-columns: 1fr; }
  html body.ik:not(#_) .ikc-own li { grid-template-columns: 36px 1fr; row-gap: 0; }
  html body.ik:not(#_) .ikc-own .ik-flist__ico { grid-row: span 2; }
  .ikc-cf .ik-btns { flex-direction: column; align-items: stretch; max-width: 320px; }
}
/* The bar spans the sheet edge to edge: the content sits 40px inside the sheet on tablets, 16px on phones. */
@media (max-width: 767px) {
  .ikc-side { margin: 0 -16px; padding: 10px 16px; }
  .ikc-chips { margin: 0 -16px; padding: 0 16px 2px; }
}

/* Translated toggle labels left the search field too little room on phones ("Szukaj narzęd", "Пои"): on translated pages
   the toggle takes its own row under the search (screen review 2026-11-07). */
@media (max-width: 899px) { html:not([lang^="en"]) .ikc-side { grid-template-columns: minmax(0, 1fr); } }

/* A long price tag ("Kostenpflichtig") left a one-word tool name ("AnswerThePublic") no room, so the name ran into the tag
   on /de/creator-tools: on translated pages the tag moves under the name when both do not fit (2026-11-07). */
html:not([lang^="en"]) body.ik:not(#_) .ikc-card__top { flex-wrap: wrap; row-gap: 6px; }
html:not([lang^="en"]) body.ik:not(#_) .ikc-card__name { flex: 1 0 auto; max-width: 100%; }
