/* KinShield hub + KinModel pages. Loaded after styles.css; reuses its tokens.
   Never name a class .kip here: styles.css has a global absolutely-positioned .kip. */

/* ---------- product cards (hub) ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { border: 1px solid #E9EDF2; border-radius: 10px; background: var(--white); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-visual { text-decoration: none; color: var(--ink); position: relative; aspect-ratio: 4 / 3; padding: 20px; display: flex; align-items: flex-end; justify-content: center; }
.product-visual.v1 { background-position: center 80%; }
.product-visual.v2 { background-position: 30% 70%; }
.product-visual.v3 { background-position: 70% 90%; }
.product-mascot { position: absolute; right: 8px; bottom: 6px; width: 32%; max-width: 150px; height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 14px rgba(0, 18, 36, .22)); }
.mock { position: relative; z-index: 1; width: 66%; margin-right: 30%; background: rgba(255, 255, 255, .96); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 8px; font-size: 13px; }
.mock-k { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.mock q { color: #1C2A3A; line-height: 1.4; }
.mock-bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.mock-bar i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.mock-bar.ok i { background: var(--brand); }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-tag { align-self: flex-start; }
.product h3 { font-size: 32px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.product-line { font-size: 18px; line-height: 1.35; color: var(--ink); }
.product ul { display: grid; gap: 8px; margin: 4px 0 8px; }
.product li { display: flex; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.product li .ms { color: var(--brand-deep); flex: none; }
.product .btn-row { margin-top: auto; }

.hub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.hub-head p { max-width: 460px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.hub-lede { max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--ink-2); margin-top: 14px; }

/* ---------- how they fit (hub) ---------- */
.fit { padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 56px); border-radius: 4px; }
.fit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 17, 35, .55), rgba(0, 17, 35, .15) 70%); z-index: 0; }
.fit h2 { color: var(--white); max-width: 720px; }
.fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.fit-step { background: rgba(255, 255, 255, .96); border-radius: 10px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.fit-step .fit-n { font-size: 13px; color: var(--muted); }
.fit-step b { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.fit-step p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fit-step a { color: var(--brand-deep); font-weight: 500; }
.signs-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.signs-row li { background: var(--white); color: var(--ink); border-radius: 20px; padding: 6px 14px; font-size: 14px; }

/* ---------- small honest cards (both pages) ---------- */
.honest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.honest .card { padding: 20px; gap: 8px; }
.honest .card > .ms { color: var(--brand-deep); font-size: 26px; }
.honest h3 { font-size: 19px; font-weight: 500; }
.honest p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ---------- KinModel: live try box ---------- */
.km-try { padding: clamp(24px, 4vw, 56px) clamp(12px, 6vw, 96px) clamp(32px, 5vw, 72px); border-radius: 4px; background-position: center 80%; }
.km-try-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.km-try-head h2 { color: var(--white); }
.km-panel { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 16px; }
.km-examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.km-examples span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.km-ex { border: 1px solid var(--line-strong); background: var(--white); border-radius: 20px; padding: 6px 12px; font-size: 14px; cursor: pointer; color: var(--ink); }
.km-ex:hover { background: var(--paper); }
.km-input { width: 100%; min-height: 120px; resize: vertical; border: 1.2px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); }
.km-input:focus { outline: 2px solid var(--brand-deep); outline-offset: 1px; border-color: transparent; }
.km-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.km-count { font-size: 13px; color: var(--muted); }
.km-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.km-results[hidden] { display: none; }
.km-res { border: 1px solid #E9EDF2; border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.km-res-k { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.km-big { font-size: 48px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.km-big small { font-size: 16px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.km-meter { height: 10px; border-radius: 5px; background: var(--line-soft); overflow: hidden; }
.km-meter i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--brand); transition: width .6s var(--ease); }
.km-meter.scam i { background: var(--red); }
.km-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.km-quotes { display: grid; gap: 8px; }
.km-status { font-size: 14px; color: var(--muted); }
.km-status.err { color: var(--red-ink); }
.km-agree { font-size: 15px; line-height: 1.45; padding: 10px 14px; border-radius: 8px; background: var(--paper); }

/* ---------- KinModel: pipeline + results ---------- */
.km-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; counter-reset: pipe; }
.km-pipe li { border-top: 2px solid var(--brand-deep); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.km-pipe b { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.km-pipe p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.km-pipe code, .km-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.km-table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid #E9EDF2; border-radius: 10px; }
.km-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.km-table th, .km-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.km-table th { font-weight: 500; color: var(--muted); font-size: 13px; background: var(--paper-2); }
.km-table tr:last-child td { border-bottom: 0; }
.km-table td.n { font-variant-numeric: tabular-nums; }
.km-caveats { display: grid; gap: 8px; margin-top: 20px; max-width: 880px; }
.km-caveats li { display: flex; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.km-caveats li .ms { color: var(--amber-ink); flex: none; }
.km-src { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .products { grid-template-columns: 1fr; max-width: 560px; }
  .fit-grid, .km-pipe { grid-template-columns: 1fr; }
  .honest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-head, .km-try-head { flex-direction: column; align-items: flex-start; }
  .km-results { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .honest { grid-template-columns: 1fr; }
  .product h3 { font-size: 28px; }
  .km-big { font-size: 40px; }
  .km-actions .btn { flex: 1; }
}
