/* kubecrow.com's own pages. Fonts, colours, header, footer, buttons, cards and install steps: shared.css. */

/* <picture> only picks the format (WebP, else PNG): the <img> inside lays out as before. */
picture { display: contents; }
.privacy-more { margin-top: 20px; color: var(--muted); }

/* ── Hero ── */
.hero { position: relative; padding: 88px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, var(--glow), transparent 65%);
}
.hero-icon { width: 96px; height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 12px 30px rgb(26 111 224 / 0.35)); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { max-width: 640px; margin: 20px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dl-meta { font-size: 14px; color: var(--muted); }
.dl-meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* The checksum folds open under the button, left-aligned like the account page's. */
.dl-sha { width: min(100%, 640px); }
.dl-sha summary { text-align: center; }

/* ── Framed screenshots ── */
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-raised); box-shadow: var(--shadow);
}
.shot-bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--bg-sunken); border-bottom: 1px solid var(--border); }
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot-bar span:nth-child(2) { background: #febc2e; }
.shot-bar span:nth-child(3) { background: #28c840; }
.hero .shot { margin-top: 64px; }

/* ── Sections ── */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ── Features ── */
/* 8 tiles: 4 → 2 → 1 columns so rows are always full. */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.feature-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 10px; background: var(--glow); color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ── Screenshot tour: tabs swap one framed screenshot. Without JS the first one shows. ── */
.tour { max-width: 1040px; margin: 0 auto; }
.tour-tabs {
  display: flex; gap: 6px; margin-bottom: 20px; padding: 4px;
  overflow-x: auto; scrollbar-width: none; justify-content: safe center;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-sunken);
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs [role="tab"] {
  flex: none; padding: 8px 14px; border: 0; border-radius: 8px; background: none;
  color: var(--muted); font: 600 14px/1.2 var(--font); cursor: pointer; white-space: nowrap;
}
.tour-tabs [role="tab"]:hover { color: var(--fg); background: var(--bg-hover); }
.tour-tabs [role="tab"][aria-selected="true"] { color: var(--accent-fg); background: var(--accent-strong); }
.tour-panel { margin: 0; }
.tour-panel[hidden] { display: none; }
/* Every screenshot sits in the same frame, so switching never moves the page. */
.tour-image { aspect-ratio: 2000 / 1194; background: var(--bg-sunken); display: grid; place-items: center; }
.tour-image img { width: 100%; height: 100%; object-fit: contain; }
.tour-panel figcaption { min-height: 3.2em; padding: 16px 4px 0; text-align: center; color: var(--muted); font-size: 15px; }
.tour-panel figcaption strong { color: var(--fg); font-weight: 600; }

/* ── Trust chips ── */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust li {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent); color: var(--muted); font-size: 14px; font-weight: 500;
}
.trust li::before { content: '✓'; margin-right: 6px; color: var(--accent); font-weight: 700; }

/* ── Connect ── */
.connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.connect li { padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.connect strong { display: block; font-size: 15px; }
.connect span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ── Privacy ── */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.privacy-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.privacy-list li::marker { color: var(--accent); }

/* ── Install ── */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }

/* ── Requirements ── */
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.reqs li { padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.reqs strong { display: block; font-size: 15px; }
.reqs span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ── Closing: three steps ── */
.closing { text-align: center; }
.closing h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
.closing-steps {
  list-style: none; margin: 36px 0 24px; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left;
}
.closing-steps li {
  counter-increment: step; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised);
}
.closing-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--glow); color: var(--accent); font-weight: 700; font-size: 15px;
}
.closing-steps strong { font-size: 17px; font-weight: 650; }
.closing-steps p { color: var(--muted); font-size: 15px; }
.closing-steps .btn { align-self: flex-start; margin-top: auto; }
.closing-steps .cmd { margin-top: auto; }

/* ── Releases page ── */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.page-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.feed-link { display: inline-block; margin-left: 4px; font-size: 15px; }
.release { padding: 32px 0 72px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
.release + .release { border-top: 1px solid var(--border); }
.release-meta h2 { font-size: 28px; font-weight: 750; }
.release-meta time { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--glow); color: var(--accent); font-size: 12px; font-weight: 600; }
.release-body h3 { font-size: 20px; }
.release-body ul { margin: 16px 0 28px; padding-left: 20px; display: grid; gap: 8px; }
.release-body li::marker { color: var(--accent); }

/* ── Small screens ── */
@media (max-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .hero .shot { margin-top: 40px; }
  .section { padding: 64px 0; }
  .install, .privacy, .closing-steps { grid-template-columns: minmax(0, 1fr); }
  .tour-tabs { justify-content: flex-start; }
  .release { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ── Download buttons: "Coming soon" until release.js has a file ── */
.dl-off { display: none; }
a[data-release-download][aria-disabled="true"] { cursor: default; opacity: 0.6; pointer-events: none; }
a[data-release-download][aria-disabled="true"] .dl-on { display: none; }
a[data-release-download][aria-disabled="true"] .dl-off { display: inline; }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }


/* ── Guides ── */
.guide { max-width: 820px; }
.crumbs { padding-top: 32px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.guide .page-head { padding-top: 16px; }
.guide-body { padding-bottom: 32px; font-size: 17px; }
.guide-body > p, .guide-body > ul, .guide-body > ol, .guide-body > .cmd, .guide-body > table, .guide-body > picture img { margin-top: 16px; }
.guide-body h2 { margin-top: 44px; font-size: 26px; font-weight: 750; }
.guide-body ul, .guide-body ol { padding-left: 22px; display: grid; gap: 8px; }
.guide-body li::marker { color: var(--accent); }
.guide-body .faq-item { margin-top: 12px; }
.guide-shot { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.guide-table th, .guide-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.guide-table th { color: var(--muted); font-weight: 600; }
.guide-table code { white-space: nowrap; }
.guide-cta { margin-top: 48px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.guide-more { padding: 24px 0 72px; border-top: 1px solid var(--border); }
.guide-more h2 { font-size: 20px; }
.guide-more ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.guide-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.guide-card { display: block; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); color: var(--fg); }
.guide-card:hover { text-decoration: none; background: var(--bg-hover); }
.guide-card strong { display: block; font-size: 18px; }
.guide-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.section-link { margin: -28px 0 24px; text-align: center; font-size: 15px; }
.feature h3 a { color: inherit; }

