/* Reading paths and article checklists, loaded only for the Insights pages. */
.insights-section-top > span { color: var(--muted); }
.insight-paths { background: var(--surface); }
.insight-paths-heading {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  margin-bottom: 38px;
}
.insight-paths-heading > .eyebrow { width: fit-content; border-top: 2px solid var(--blue); padding-top: 14px; }
.insight-paths-heading h2 { max-width: 760px; margin: 0 0 12px; }
.insight-paths-heading p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); }
.insight-paths-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.insight-paths-grid a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 0 13px;
  min-width: 0;
  min-height: 250px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: clamp(23px, 2.5vw, 34px);
  background: var(--card);
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
.insight-paths-grid a:hover { border-color: var(--blue); transform: translateY(-3px); }
.insight-path-number { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.insight-path-category { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
.insight-paths-grid h3 { grid-column: 1 / -1; margin: 25px 0 22px; font-size: clamp(1.2rem, 1.6vw, 1.52rem); line-height: 1.3; }
.insight-path-link { grid-column: 1 / -1; align-self: end; width: fit-content; border-bottom: 1px solid var(--blue); padding-bottom: 5px; color: var(--blue-dark); font-size: .82rem; font-weight: 800; }

.insight-checklist {
  margin: 48px 0 10px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: clamp(25px, 4vw, 42px);
  background: var(--surface-alt);
}
.insight-checklist .eyebrow { margin-bottom: 17px; }
.insight-checklist h2 { margin: 0 0 25px; font-size: clamp(1.5rem, 2vw, 2rem); }
.insight-checklist ol { counter-reset: insight-question; list-style: none; margin: 0; padding: 0; }
.insight-checklist li {
  counter-increment: insight-question;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--ink);
  line-height: 1.6;
}
.insight-checklist li:last-child { padding-bottom: 0; }
.insight-checklist li::before { content: counter(insight-question, decimal-leading-zero); color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }

@media (max-width: 900px) {
  .insight-paths-heading { grid-template-columns: 1fr; gap: 15px; }
  .insight-paths-grid { grid-template-columns: 1fr; }
  .insight-paths-grid a { min-height: 0; }
}
@media (max-width: 600px) {
  .insight-paths-heading { margin-bottom: 26px; }
  .insight-paths-grid { gap: 12px; }
  .insight-paths-grid a { padding: 22px; }
  .insight-paths-grid h3 { margin: 18px 0 24px; }
  .insight-checklist { margin-top: 35px; }
}
@media (prefers-reduced-motion: reduce) { .insight-paths-grid a { transition: none; } }

/* Insights listing: editorial magazine layout */
.ins-hero {
  overflow: hidden;
  background-color: var(--surface-alt);
  background-image: linear-gradient(90deg, rgba(91, 157, 184, .055) 1px, transparent 1px), linear-gradient(0deg, rgba(91, 157, 184, .045) 1px, transparent 1px), radial-gradient(circle at 74% 42%, rgba(50, 112, 139, .26), transparent 42%);
  background-size: 96px 96px, 96px 96px, auto;
}
.ins-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 5vw, 80px); padding-block: clamp(64px, 7vw, 110px) clamp(56px, 6vw, 90px); }
.ins-hero-copy { border-top: 2px solid var(--blue); padding-top: 24px; }
.ins-hero-copy .eyebrow { color: var(--blue); }
.ins-hero-copy h1 { margin: 20px 0 22px; color: var(--ink); font-size: clamp(2.8rem, 5vw, 5rem); font-style: normal; line-height: 1.02; letter-spacing: -.06em; }
.ins-hero-copy h1 span { display: block; color: var(--blue); font-style: italic; font-weight: 500; }
.ins-hero-copy .page-lead { max-width: 560px; margin: 0; color: var(--hero-copy); }
.ins-hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.ins-hero-meta > div { display: flex; flex-direction: column-reverse; padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.ins-hero-meta > div:last-child { border-right: 0; }
.ins-hero-meta dt { color: var(--muted); font-size: .72rem; font-weight: 700; }
.ins-hero-meta dd { margin: 0 0 4px; color: var(--ink); font-size: 1.9rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.ins-hero-meta .ins-hero-date { font-size: 1.1rem; line-height: 1.9rem; }

/* Rotating deck of note cards (16s loop, 4s per card) */
.ins-deck { position: relative; height: clamp(320px, 30vw, 380px); max-width: 480px; width: 100%; margin: 60px auto 0; }
.ins-deck-card { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; min-height: 270px; padding: 26px; border: 1px solid #4a6f80; border-radius: 16px; background: linear-gradient(150deg, #1d3441, #11212b 80%); box-shadow: 0 26px 60px rgba(3, 12, 18, .4); color: #eef6f9; animation: ins-deck 16s cubic-bezier(.6, 0, .3, 1) infinite; }
.ins-tone-method { background: linear-gradient(150deg, #212f47, #121b2b 80%); border-color: #4d5f86; }
.ins-tone-commerce { background: linear-gradient(150deg, #173a3a, #0f2324 80%); border-color: #3e7373; }
.ins-tone-data { background: linear-gradient(150deg, #1f2f3d, #121c26 80%); border-color: #4f6a80; }
.ins-deck-1 { z-index: 4; transform: rotate(-2deg); }
.ins-deck-2 { z-index: 3; transform: translateY(-15px) scale(.95); opacity: .9; animation-delay: -12s; }
.ins-deck-3 { z-index: 2; transform: translateY(-30px) rotate(2deg) scale(.9); opacity: .75; animation-delay: -8s; }
.ins-deck-4 { z-index: 1; transform: translateY(-45px) rotate(3deg) scale(.85); opacity: .55; animation-delay: -4s; }
.ins-deck-top { display: flex; align-items: center; gap: 10px; color: #9bc9dc; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ins-deck-top b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: .66rem; }
.ins-deck-card strong { margin: 26px 0 20px; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.22; letter-spacing: -.03em; }
.ins-deck-lines { display: grid; gap: 7px; margin-bottom: 22px; }
.ins-deck-lines i { height: 5px; border-radius: 3px; background: rgba(155, 201, 220, .22); }
.ins-deck-lines i:nth-child(2) { width: 82%; }.ins-deck-lines i:nth-child(3) { width: 58%; }
.ins-deck-foot { margin-top: auto; color: #9db8c5; font-size: .74rem; font-weight: 700; }
@keyframes ins-deck {
  0%, 19% { transform: translate(0, 0) rotate(-2deg) scale(1); opacity: 1; z-index: 4; }
  24% { transform: translate(60%, 6%) rotate(10deg) scale(1); opacity: 0; z-index: 4; }
  25% { transform: translate(0, -45px) rotate(3deg) scale(.85); opacity: 0; z-index: 1; }
  30%, 49% { transform: translate(0, -45px) rotate(3deg) scale(.85); opacity: .55; z-index: 1; }
  50%, 74% { transform: translate(0, -30px) rotate(2deg) scale(.9); opacity: .75; z-index: 2; }
  75%, 99% { transform: translate(0, -15px) rotate(0deg) scale(.95); opacity: .9; z-index: 3; }
  100% { transform: translate(0, 0) rotate(-2deg) scale(1); opacity: 1; z-index: 4; }
}

/* Topic ticker */
.ins-ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.ins-ticker-track { display: flex; width: max-content; animation: ins-ticker 40s linear infinite; }
.ins-ticker span { display: inline-flex; align-items: center; gap: 28px; padding: 16px 28px 16px 0; color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.ins-ticker span::after { content: "✦"; color: var(--blue); font-size: .8rem; }
@keyframes ins-ticker { to { transform: translateX(-25%); } }

/* Cover art */
.ins-cover { position: relative; overflow: hidden; background: linear-gradient(150deg, #1d3441, #0f1f29 85%); }
.ins-cover-art { display: block; width: 100%; height: 100%; }
.ins-cover-method { background: linear-gradient(150deg, #212f47, #111a29 85%); }
.ins-cover-commerce { background: linear-gradient(150deg, #173a3a, #0e2122 85%); }
.ins-cover-data { background: linear-gradient(150deg, #1f2f3d, #111b24 85%); }
.ins-cover-art * { transform-box: fill-box; transform-origin: center; }
.ins-cover-art .c-sun { fill: rgba(143, 220, 245, .1); }
.ins-cover-commerce .c-sun { fill: rgba(143, 211, 192, .12); }
.ins-cover-method .c-sun { fill: rgba(160, 180, 245, .12); }
.ins-cover-art .c-tile { fill: rgba(20, 41, 54, .9); stroke: #4c7385; }
.ins-cover-art .c-flag { fill: #286580; stroke: #9ccdde; }
.ins-cover-art .c-node { fill: #203d4e; stroke: #6d98aa; }
.ins-cover-art .c-node-on, .ins-cover-art .c-tile-on, .ins-cover-art .c-leaf-on { fill: #2f7a98; stroke: #d5f5ff; }
.ins-cover-art .c-leaf { fill: #203d4e; stroke: #6d98aa; }
.ins-cover-art .c-node-root { fill: #9fc9d9; stroke: none; }
.ins-cover-art .c-dot { fill: #5f8a9d; }
.ins-cover-art .c-dot-on { fill: #d5f5ff; }
.ins-cover-art .c-line-fill { fill: #3d5a6a; }
.ins-cover-art .c-line { fill: none; stroke: #4e7486; stroke-width: 1.5; }
.ins-cover-art .c-arrow, .ins-cover-art .c-tick { fill: none; stroke: #d5f5ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ins-cover-art .c-path { fill: none; stroke: #8fdcf5; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 7 7; }
.ins-cover-commerce .c-path { stroke: #8fd3c0; }
.ins-cover-art .c-packet { fill: #d5f5ff; }
.ins-cover-art .c-hole { fill: #0f212c; }
.ins-cover-art .a-path { animation: ins-dash 1.4s linear infinite; }
.ins-cover-art .a-glow { animation: ins-glow 2.4s ease-in-out infinite; }
.ins-cover-art .a-right { animation: ins-right 2.6s ease-in-out infinite; }
.ins-cover-art .a-left { animation: ins-left 2.6s ease-in-out infinite 1.3s; }
.ins-cover-art .a-badge { animation: pf-float-c 5s ease-in-out infinite; }
.ins-cover-art .c-cart { animation: ins-glow 2.4s ease-in-out infinite .6s; }
@keyframes ins-dash { to { stroke-dashoffset: -28; } }
@keyframes ins-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(213, 245, 255, .6)); } }
@keyframes ins-right { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(72px); opacity: 0; } }
@keyframes ins-left { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(-72px); opacity: 0; } }
@keyframes pf-float-c { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ins-cover-num { position: absolute; top: 14px; left: 18px; color: rgba(238, 246, 249, .9); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.ins-cover-tag { position: absolute; left: 18px; bottom: 16px; padding: 6px 11px; border: 1px solid rgba(155, 201, 220, .5); border-radius: 999px; background: rgba(8, 18, 25, .6); color: #d5ecf4; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Featured note */
.ins-featured { background: var(--surface); }
.ins-feature { display: grid; min-height: 0; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); overflow: hidden; margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); transition: transform .25s, border-color .25s, box-shadow .25s; }
.ins-feature:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 28px 60px rgba(4, 14, 22, .22); }
.ins-cover-large { min-height: 400px; }
.ins-cover-large .ins-cover-art { position: absolute; inset: 0; }
.ins-feature-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.5vw, 50px); }
.ins-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.ins-feature-copy h2 { margin: 16px 0 14px; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.12; }
.ins-feature-copy > p { margin: 0 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.ins-question { position: relative; margin: 0 0 26px; padding: 16px 20px 16px 48px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--ink); font-size: 1.05rem; font-style: italic; font-weight: 600; }
.ins-question::before { content: "“"; position: absolute; top: 2px; left: 16px; color: var(--blue); font-size: 2.6rem; font-style: normal; line-height: 1; }
.ins-feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: auto; }
.ins-checks { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.ins-checks .k-icon { width: 18px; height: 18px; color: var(--blue); }
.ins-feature:hover .svc-card-link span { transform: translate(3px, -3px); }

/* Questions as a chat */
.ins-ask { background: var(--surface-alt); }
.ins-ask-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(36px, 6vw, 90px); }
.ins-ask-copy h2 { margin: 16px 0 16px; }
.ins-chat { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.ins-chat-row { display: grid; gap: 10px; color: var(--ink); }
.ins-bubble { display: block; max-width: 86%; padding: 14px 18px; border-radius: 18px; font-size: .95rem; font-weight: 650; line-height: 1.45; transition: transform .2s, background .2s, border-color .2s; }
.ins-bubble-who { display: block; margin-bottom: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.ins-bubble-you { justify-self: end; border-bottom-right-radius: 5px; background: #1e6784; color: #fff; }
.ins-bubble-you .ins-bubble-who { color: #e6f3f8; opacity: 1; }
.ins-bubble-kayro { display: flex; gap: 12px; align-items: flex-start; justify-self: start; border: 1px solid var(--line); border-bottom-left-radius: 5px; background: var(--surface); color: var(--ink); }
.ins-bubble-kayro b { color: var(--blue); transition: transform .2s; display: inline-block; }
.ins-avatar { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--surface); font-size: .8rem; font-weight: 800; }
.ins-chat-row:hover .ins-bubble-kayro { border-color: var(--blue); transform: translateX(4px); }
.ins-chat-row:hover .ins-bubble-kayro b { transform: translate(3px, -3px); }
.ins-chat-row:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 12px; }

/* All notes */
.ins-index { background: var(--surface); }
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.ins-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); transition: transform .25s, border-color .25s, box-shadow .25s; }
.ins-card.insight-index-item { gap: 0; padding: 0; }
.ins-card:hover { padding-left: 0; background: var(--card); transform: translateY(-5px) rotate(-.4deg); border-color: var(--blue); box-shadow: 0 24px 50px rgba(4, 14, 22, .22); }
.ins-card .ins-cover { aspect-ratio: 16 / 10; }
.ins-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 22px; }
.ins-category { color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ins-card h3 { margin: 10px 0 10px; font-size: 1.22rem; line-height: 1.25; transition: color .2s; }
.ins-card:hover h3 { color: var(--blue); }
.ins-card-body > p { margin: 0 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.ins-card .ins-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* Closing panel */
.ins-end { padding: clamp(60px, 7vw, 100px) 0; background: var(--surface-alt); }
.ins-end-panel { display: flex; align-items: center; gap: 30px; padding: clamp(28px, 4vw, 50px); border: 1px solid #3a5968; border-radius: 18px; background: radial-gradient(circle at 12% 50%, rgba(60, 130, 160, .35), transparent 45%), #132632; color: #f1f5f7; }
.ins-end-panel > div:not(.ins-end-bubbles) { flex: 1; }
.ins-end-panel .eyebrow { color: #9bc9dc; }
.ins-end-panel h2 { max-width: 640px; margin: 12px 0 0; color: #f1f5f7; }
.ins-end-panel .button-blue { flex-shrink: 0; background: #1e6784; border-color: #1e6784; color: #fff; }
.ins-end-bubbles { position: relative; flex: 0 0 86px; height: 70px; }
.ins-end-bubbles span { position: absolute; border-radius: 14px; background: #9bc9dc; animation: ins-typing 2.4s ease-in-out infinite; }
.ins-end-bubbles span:nth-child(1) { top: 0; left: 0; width: 60px; height: 26px; border-bottom-left-radius: 4px; opacity: .9; }
.ins-end-bubbles span:nth-child(2) { top: 34px; left: 24px; width: 62px; height: 26px; border-bottom-right-radius: 4px; background: #1e6784; animation-delay: .8s; }
.ins-end-bubbles span:nth-child(3) { top: 12px; left: 64px; width: 8px; height: 8px; border-radius: 50%; animation-delay: 1.6s; }
@keyframes ins-typing { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Featured outline */
.ins-outline { display: grid; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: ins-outline; }
.ins-outline li { counter-increment: ins-outline; display: flex; gap: 12px; color: var(--ink); font-size: .88rem; font-weight: 650; }
.ins-outline li::before { content: counter(ins-outline, decimal-leading-zero); min-width: 22px; color: var(--blue); font-size: .7rem; font-weight: 800; line-height: 1.9; }

/* Topics */
.ins-topics { background: var(--surface-alt); }
.ins-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.ins-topic { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ins-topic::before { content: ""; position: absolute; top: -70px; right: -70px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 12%, transparent); }
.ins-topic-commerce::before { background: rgba(143, 211, 192, .16); }
.ins-topic-method::before { background: rgba(160, 180, 245, .16); }
.ins-topic-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ins-topic-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.ins-topic-count { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.ins-topic h3 { position: relative; margin: 26px 0 14px; font-size: 1.3rem; }
.ins-topic ul { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ins-topic li a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: .86rem; font-weight: 650; line-height: 1.4; transition: border-color .2s, background .2s; }
.ins-topic li a span { color: var(--blue); }
.ins-topic li a:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.ins-topic-service { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--blue); font-size: .88rem; font-weight: 800; }
.ins-topic-service span { flex-basis: 100%; color: var(--muted); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.ins-topic-service b { display: inline-block; transition: transform .2s; }
.ins-topic-service:hover b { transform: translateX(4px); }

/* Checklist tool */
.ins-tool { background: var(--surface); }
.ins-tool-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(36px, 6vw, 90px); }
.ins-tool-copy h2 { margin: 16px 0 16px; }
.ins-tool-tabs:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ins-tool-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .8rem; font-weight: 700; transition: border-color .2s, background .2s; }
.ins-tool-tabs button .k-icon { width: 17px; height: 17px; color: var(--blue); }
.ins-tool-tabs button:hover { border-color: var(--blue); }
.ins-tool-tabs button[aria-selected="true"] { border-color: #1e6784; background: #1e6784; color: #fff; }
.ins-tool-tabs button[aria-selected="true"] .k-icon { color: #cfe7f1; }
.ins-tool-panels { display: grid; gap: 18px; }
.ins-tool-panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.ins-tool-panel[hidden] { display: none; }
.ins-tool-head h3 { margin: 10px 0 20px; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.ins-tool-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ins-tool-list label { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .95rem; font-weight: 600; line-height: 1.45; transition: border-color .2s, background .2s; }
.ins-tool-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ins-tick { flex: 0 0 24px; width: 24px; height: 24px; border: 1.5px solid var(--blue); border-radius: 7px; transition: background .2s; }
.ins-tool-list input:checked + .ins-tick { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102029' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ins-tool-list input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--blue); }
.ins-tool-list label:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); }
.ins-tool-list input:focus-visible + .ins-tick { outline: 3px solid var(--blue); outline-offset: 3px; }
.ins-tool-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.ins-progress { flex: 1 1 100%; height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.ins-progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #8fd3c0); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.ins-tool-status { flex: 1; margin: 0; color: var(--muted); font-size: .84rem; font-weight: 700; }
.ins-tool-count { color: var(--ink); font-size: 1.05rem; }
.ins-tool-done { display: none; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(143, 211, 192, .14); color: var(--ink); font-size: .88rem; font-weight: 650; }
.ins-tool-panel.is-complete .ins-tool-done { display: block; }

/* Card outline */
.ins-card-outline { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 7%, transparent); }
.ins-card-outline span { color: var(--blue); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ins-card-outline ul { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.ins-card-outline li { position: relative; padding-left: 14px; color: var(--ink); font-size: .8rem; font-weight: 600; }
.ins-card-outline li::before { content: ""; position: absolute; top: .55em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* Anatomy of a note */
.ins-method { background: var(--surface-alt); }
.ins-anatomy { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.ins-anatomy li { position: relative; padding: 28px 26px 30px; border-left: 1px solid var(--line); }
.ins-anatomy li:first-child { border-left: 0; }
.ins-anatomy-num { position: absolute; top: 18px; right: 20px; color: transparent; font-size: 3.4rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; -webkit-text-stroke: 1px var(--line); }
.ins-anatomy-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); }
.ins-anatomy h3 { margin: 30px 0 10px; font-size: 1.15rem; }
.ins-anatomy p { margin: 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 1100px) { .ins-grid, .ins-topic-grid, .ins-anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-anatomy li:nth-child(3) { border-left: 0; } .ins-anatomy li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 900px) {
  .ins-hero-grid, .ins-feature, .ins-ask-grid, .ins-tool-grid { grid-template-columns: 1fr; }
  .ins-deck { margin-top: 40px; }
  .ins-cover-large { min-height: 280px; }
}
@media (max-width: 680px) {
  .ins-card.insight-index-item { padding: 0; }
  .ins-hero-copy h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .ins-hero-meta > div { padding-right: 16px; margin-right: 16px; }
  .ins-deck { height: 330px; }
  .ins-deck-card { min-height: 250px; padding: 22px; }
  .ins-grid, .ins-topic-grid, .ins-anatomy { grid-template-columns: 1fr; }
  .ins-anatomy li { border-left: 0; border-top: 1px solid var(--line); }
  .ins-anatomy li:first-child { border-top: 0; }
  .ins-hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .ins-hero-meta > div { margin-right: 0; border-right: 0; }
  .ins-bubble { max-width: 96%; }
  .ins-end-panel { flex-direction: column; align-items: flex-start; }
  .ins-end-panel .button { width: 100%; }
  .ins-cover-large { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .ins-feature, .ins-card, .ins-bubble { transition: none; }
  .ins-feature:hover, .ins-card:hover, .ins-chat-row:hover .ins-bubble-kayro { transform: none; }
  /* One static line of topics instead of the scrolling loop. */
  .ins-ticker-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none !important; }
  .ins-ticker-dup { display: none !important; }
  .ins-ticker span { padding: 16px 14px; }
  .ins-ticker span:not(.ins-ticker-dup):has(+ .ins-ticker-dup)::after, .ins-ticker span:last-child::after { display: none; }
  .ins-cover-art .a-glow, .ins-cover-art .c-cart { animation: ins-glow 2.4s ease-in-out infinite !important; }
}
