/* Kithnote product page, modelled on the Clink page. Production CSP forbids inline styles, so everything lives here. */
.lb { width: min(1200px, 94vw); max-height: 94vh; padding: 14px; border: 1px solid #2b3446; border-radius: 14px; background: #272932; color: #e9ebf2; }
.lb::backdrop { background: #020306e6; }
.lb figure { margin: 0; display: grid; gap: 10px; }
.lb img { display: block; max-width: 100%; max-height: 76vh; margin: auto; object-fit: contain; }
.lb figcaption { color: #9EA4B3; font-size: 13px; text-align: center; }
.lb-bar { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.lb-bar button { min-height: 40px; padding: 6px 16px; border-radius: 8px; border: 1px solid #2b3446; background: #151a26; color: inherit; font: inherit; cursor: pointer; }
.lb-bar button:hover { border-color: #4d7ea8; }
.lb-bar button:focus-visible { outline: 2px solid #8EB1D2; outline-offset: 2px; }

body.kn { background: #1B1D24; color: #e9ebf2; overflow-x: hidden; }
.kn a:focus-visible, .kn summary:focus-visible { outline: 2px solid #8EB1D2; outline-offset: 4px; border-radius: 4px; }

.kn-hero { position: relative; padding: 56px clamp(20px, 4vw, 56px) 80px; text-align: center; overflow: hidden; background: radial-gradient(120% 70% at 50% 0, #272932 0%, #1B1D24 70%); }
.kn-glow { position: absolute; left: 50%; top: 30%; width: min(1100px, 130vw); height: 700px; translate: -50% 0; background: radial-gradient(closest-side, #6f9cc440, #6f9cc400); pointer-events: none; }
.kn-copy, .kn-stage { position: relative; z-index: 1; }
.kn-eyebrow { margin: 0 0 18px; color: #6f9cc4; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.kn h1 { margin: 0; font-size: clamp(50px, 8.2vw, 122px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.kn h1 em { font-style: normal; background: linear-gradient(100deg, #b9d3ea, #6f9cc4 45%, #E9EBF2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kn-lead { margin: 20px auto 0; max-width: 700px; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; color: #9EA4B3; }
.kn-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.kn .button { min-height: 52px; border-radius: 10px; padding: 14px 22px; gap: 14px; }
.kn .button-primary { box-shadow: 0 0 0 0 #6f9cc400, 0 10px 40px #6f9cc433; }
.kn .button-secondary { background: #ffffff08; border-color: #ffffff26; }
.kn-fine { margin: 18px 0 0; color: #7d879b; font-size: 13px; }
.kn-fine a { text-decoration: underline; text-underline-offset: 3px; color: #8EB1D2; }
.kn kbd { padding: 1px 6px; border: 1px solid #ffffff2e; border-radius: 5px; background: #ffffff0d; font: 600 11px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }

.kn-h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.kn-h3 { margin: 0 0 22px; font-size: 24px; letter-spacing: -.02em; font-weight: 600; }
.kn-info { padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px); max-width: 1320px; margin-inline: auto; }
.kn-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kn-cards li { padding: 18px; border-radius: 14px; border: 1px solid #ffffff14; background: #272932; }
.kn-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; background: #1B1D24; border: 1px solid #6F9CC433; }
.kn-ico svg { width: 22px; height: 22px; fill: none; stroke: #6F9CC4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kn-cards h3 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.015em; font-weight: 600; font-family: Sora, Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
.kn-cards p { margin: 0; color: #9EA4B3; font-size: 14px; line-height: 1.5; }

.kn-gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.kn-gal figure { margin: 0; }
.kn-gal a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid #ffffff1a; background: #272932; transition: transform .25s, border-color .2s; }
.kn-gal a:hover { transform: translateY(-3px); border-color: #4d7ea8; }
.kn-gal a:focus-visible { outline: 2px solid #8EB1D2; outline-offset: 4px; }
.kn-gal img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.kn-gal figcaption { margin-top: 10px; color: #9EA4B3; font-size: 14px; line-height: 1.5; }
.kn-note { margin: 22px 0 0; color: #6b7487; font-size: 12.5px; }

.kn-info { border-top: 1px solid #ffffff14; }
.kn-info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 110px); }
.kn-spec { margin: 0; display: grid; }
.kn-spec div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #ffffff12; }
.kn-spec dt { color: #6f9cc4; font-size: 14px; font-weight: 600; }
.kn-spec dd { margin: 0; color: #9EA4B3; font-size: 15px; line-height: 1.55; }
.kn-faq details { border-bottom: 1px solid #ffffff12; }
.kn-faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-size: 17px; font-weight: 500; list-style: none; position: relative; }
.kn-faq summary::-webkit-details-marker { display: none; }
.kn-faq summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 22px; color: #6f9cc4; transition: transform .2s; }
.kn-faq details[open] summary::after { transform: rotate(45deg); }
.kn-faq p { margin: 0 0 18px; color: #9EA4B3; font-size: 15px; line-height: 1.65; max-width: 60ch; }

.kn-final { position: relative; text-align: center; padding: clamp(90px, 13vw, 190px) 20px; overflow: hidden; background: radial-gradient(60% 80% at 50% 100%, #6f9cc433, transparent 70%), #1B1D24; border-top: 1px solid #ffffff14; }
.kn-final p { color: #9EA4B3; font-size: 19px; margin: 18px 0 0; }
.kn-final .kn-fine { font-size: 14px; }
.kn-actions-c { margin-top: 34px; }

.kn-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 56px); background: #080b11e6; backdrop-filter: blur(14px); border-top: 1px solid #ffffff1a; transform: translateY(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
.kn-bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.kn-bar-text { margin: 0; font-size: 14px; color: #9EA4B3; }
.kn-bar-text b { color: #fff; font-size: 16px; margin-right: 6px; }
.kn-bar-btns { display: flex; gap: 10px; }
.kn-bar .button { min-height: 44px; padding: 9px 18px; }
.kn-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 28px clamp(20px, 4vw, 56px) 96px; color: #6b7487; font-size: 13px; border-top: 1px solid #ffffff12; }
.kn-foot p { margin: 0; }
.kn-foot a { color: #9EA4B3; text-decoration: underline; text-underline-offset: 3px; }
.kn-foot a[aria-current] { color: #fff; font-weight: 600; text-decoration: none; }

@media (max-width: 980px) {
  .kn-cards { grid-template-columns: 1fr 1fr; }
  .kn-gal { grid-template-columns: 1fr 1fr; }
  .kn-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kn-actions .button { width: 100%; }
  .kn-cards, .kn-gal { grid-template-columns: 1fr; }
  .kn-bar .button-secondary, .kn-bar-text span { display: none; }
  .kn-bar .button-primary { flex: 1; }
  .kn-bar-text { display: none; }
  .kn-bar-btns { flex: 1; }
  .kn-spec div { grid-template-columns: 80px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .kn-bar, .kn-gal a, .kn-tab { transition: none; }
  .kn-gal a:hover { transform: none; }
}

/* Product screenshots */
.kn-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kn-frame { margin: 0; }
.kn-frame > a { display: block; padding: 8px; border-radius: 18px; background: linear-gradient(#ffffff10, #ffffff04); border: 1px solid #ffffff1a; box-shadow: 0 40px 100px #000a; transition: border-color .2s, transform .25s; }
.kn-frame > a:hover { border-color: #4d7ea8; transform: translateY(-3px); }
.kn-frame img { display: block; width: 100%; height: auto; border-radius: 11px; }
.kn-frame figcaption { margin-top: 12px; color: #9EA4B3; font-size: 14px; line-height: 1.55; }
.kn-shotwrap { position: relative; display: block; }
.kn-stage { position: relative; width: min(1180px, 100%); margin: 48px auto 0; text-align: left; }
.kn-stage .kn-frame > a { box-shadow: 0 50px 120px #000c, 0 0 160px #6f9cc426; padding: 10px; border-radius: 22px; }
.kn-sec { padding: 0 clamp(20px, 4vw, 56px) clamp(48px, 6vw, 88px); max-width: 1320px; margin-inline: auto; }
.kn-head { margin-bottom: 26px; }
.kn-head p { margin: 14px 0 0; max-width: 60ch; color: #9EA4B3; font-size: 18px; line-height: 1.55; }
.kn-tool { border-top: 1px solid #ffffff14; padding-top: clamp(48px, 6vw, 80px); }
.kn-tool .kn-head p { max-width: 52ch; }
.kn-feats { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.kn-feats li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid #ffffff12; color: #9EA4B3; font-size: 15.5px; line-height: 1.5; }
.kn-feats li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: #6f9cc4; }
.kn-label { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6f9cc4; font-weight: 600; }
.kn-explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.kn-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kn-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid #ffffff22; background: #ffffff08; color: #e9ebf2; font: inherit; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.kn-tab:hover { border-color: #6F9CC4; }
.kn-tab[aria-selected="true"] { background: #6F9CC4; border-color: #6F9CC4; color: #1B1D24; font-weight: 600; }
.kn-tab:focus-visible, .kn-desc:focus-visible { outline: 2px solid #8EB1D2; outline-offset: 3px; }
.kn-desc { margin-top: 20px; padding: 16px 18px; min-height: 6.8em; border-radius: 14px; border: 1px solid #ffffff14; background: #272932; }
.kn-desc-title { margin: 0 0 6px; font-size: 19px; letter-spacing: -.015em; font-weight: 600; font-family: Sora, Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
.kn-desc p { margin: 0; color: #9EA4B3; font-size: 15.5px; line-height: 1.55; }
.kn-link { color: #8EB1D2; text-decoration: underline; text-underline-offset: 3px; }
.kn-feats kbd { padding: 1px 6px; border: 1px solid #ffffff2e; border-radius: 5px; background: #ffffff0d; font: 600 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.kn-frame > a:focus-visible { outline: 2px solid #8EB1D2; outline-offset: 4px; }
@media (max-width: 640px) {
  .kn-stage .kn-frame > a { padding: 5px; border-radius: 14px; }
  .kn-frame > a { padding: 5px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .kn-frame > a { transition: none; } .kn-frame > a:hover { transform: none; } }

/* Kithnote brand layer (docs/brand.md): charcoal #272932, spark blue #6F9CC4, soft white #E9EBF2, software blue #4D7EA8. Fonts are referenced by name with fallbacks and are not bundled. */
body.kn { background: #1B1D24; color: #E9EBF2; font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
.kn h1, .kn-h2, .kn-h3, .kn-bar-text b { font-family: Sora, Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
.kn .button-primary { background: #6F9CC4; border-color: #6F9CC4; color: #1B1D24; }
.kn .button-primary:hover { background: #8EB1D2; border-color: #8EB1D2; }
.kn .button-secondary { background: #272932; border-color: #ffffff24; color: #E9EBF2; }
.kn .button-secondary:hover { border-color: #6F9CC4; background: #2e313c; }
.kn-wordmark { display: block; width: clamp(190px, 21vw, 290px); height: auto; margin: 0 auto 26px; }
.kn-bar-icon { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.kn-bar-text { display: flex; align-items: center; gap: 12px; }
.kn-final-icon { display: block; width: 72px; height: 72px; margin: 0 auto 26px; }
.kn-final .kn-h2 { font-size: clamp(40px, 6vw, 76px); }
.kn-final { padding: clamp(64px, 9vw, 120px) 20px; }
@media (max-width: 640px) { .kn-wordmark { width: 180px; margin-bottom: 20px; } .kn-bar-text b, .kn-bar-text span { display: none; } }
@media (max-width: 400px) { .kn .button { padding-left: 16px; padding-right: 16px; gap: 10px; } }


/* Kithnote page layout */
.kn-hero .kn-dl-row { margin-top: 26px; }
.kn-hero .kn-actions { margin-top: 26px; }
.kn-badge { display: inline-block; margin: 0 0 14px; padding: 3px 10px; border: 1px solid #6F9CC455; border-radius: 999px; color: #8EB1D2; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kn-shotwrap-app { aspect-ratio: 1440 / 900; background: #1B1D24; border-radius: 11px; overflow: hidden; }
.kn-shotwrap-app img { height: 100%; object-fit: contain; border-radius: 0; }
.kn-feat-sec { border-top: 1px solid #ffffff14; padding-top: clamp(40px, 5vw, 72px); }
.kn-feat-sec .kn-head p { max-width: 56ch; }
.kn-feat-sec .kn-feats { margin-bottom: 0; }
.kn-explorer .kn-explorer-copy { align-self: center; }
.kn-explorer .kn-frame { margin: 0; }
@media (max-width: 980px) { .kn-explorer { grid-template-columns: 1fr; } .kn-feats { grid-template-columns: 1fr; } }
.kn-explorer { grid-template-columns: minmax(0, .7fr) minmax(0, 1.7fr); }
@media (max-width: 980px) { .kn-explorer { grid-template-columns: 1fr; } }
