/* Shared styles for the k-Suite page (suite.html) and plans.html, including the k-Suite bar both carry. Loaded after brand/v2/;
 * each page's inline <style> still comes last and can override these by source order. */

/* These pages have no scroll listener, so the nav keeps its bottom border */
.nav { border-bottom-color: var(--line); }
.footer { border-top: 1px solid var(--line); }

/* Jumps to a section stop below the two sticky bars (the nav, 68px, and the k-Suite bar, 54px plus its 1px border) */
html { scroll-behavior: smooth; scroll-padding-top: 123px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- k-Suite bar: the product's own links, stuck under the site's nav ---------- */
.subnav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 40;
  background: var(--nav-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.subnav-inner { display: flex; align-items: center; gap: 30px; height: 54px; }
.subnav-name { flex: none; font-weight: 600; color: var(--ink); text-decoration: none; }
.subnav-name .wordmark-ksuite { height: 21px; }
.subnav-links { position: relative; display: flex; align-self: stretch; gap: 26px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { position: relative; flex: none; display: flex; align-items: center; font-size: .9rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .2s; }
.subnav-links a:hover, .subnav-links a[aria-current] { color: var(--ink); }
.subnav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s ease; }
.subnav-links a[aria-current]::after { transform: scaleX(1); }
.subnav-links a:focus-visible { outline-offset: -3px; }
.subnav-cta { flex: none; height: 36px; margin-left: auto; padding: 0 16px; font-size: .88rem; }
@media (max-width: 760px) {
  .subnav-inner { gap: 20px; }
  .subnav-cta { display: none; }
  /* the links scroll sideways; the fade shows there's more */
  .subnav-links { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
}

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.03; letter-spacing: -.03em; margin-bottom: 26px; font-variation-settings: "opsz" 72; }
.hero .status { margin-bottom: 22px; }
@media (max-width: 760px) { .glyphs span:nth-child(n+4) { display: none; } }
.cta-row { align-items: center; }
.trial-note { margin-top: 14px; font: .82rem var(--font-mono); color: var(--muted); }

/* Text link with a growing rule, e.g. "See plans" */
.text-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.text-link::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .3s ease; }
.text-link:hover::after { width: 44px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--ink-2); max-width: 62ch; }

/* ---------- Feature / module grid ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s; }
.feature:hover { border-color: var(--line-strong); }
.feature--hot { border-color: var(--primary); background: var(--tint); }
.f-sym { display: block; margin-bottom: 16px; font: italic 400 1.9rem/1 var(--font-display); color: var(--accent-text); }
.feature h3 { font-family: var(--font-sans); font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: .98rem; color: var(--ink-2); }

/* ---------- Diagrams (static SVG) ---------- */
.diagram {
  position: relative; overflow: hidden; margin: 0; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center;
}
.diagram svg { display: block; width: 100%; height: auto; }
.d-edge { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.d-dash { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; fill: none; }
.d-hot { stroke: var(--primary); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.d-box { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.3; }
.d-box.hot { stroke: var(--primary); stroke-width: 2; }
.d-fill { fill: var(--primary); }
.d-fill.soft { opacity: .18; }
.d-fill.mid { opacity: .45; }
.d-alt { fill: var(--ink-2); opacity: .3; }
.d-label { font: 11px var(--font-mono); fill: var(--muted); }
.d-label.strong { fill: var(--accent-text); font-weight: 500; }
.d-label.big { font-size: 13px; }
.d-hot.draw { stroke-dasharray: 1; animation: draw 1.2s ease-out .3s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Spotlight: copy beside a diagram ---------- */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight h2 { margin-bottom: 18px; }
.spotlight p { color: var(--ink-2); max-width: 46ch; }
.spotlight p + p { margin-top: 14px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }

/* ---------- Closing call to action (dark brand panel) ---------- */
.cta { padding: 0 0 clamp(64px, 9vw, 120px); }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden; color: var(--panel-ink);
  padding: clamp(36px, 6vw, 80px); border-radius: var(--radius); background: var(--panel);
}
.cta-panel h2 { color: var(--panel-ink); margin-bottom: 16px; max-width: 14em; }
.cta-panel p { color: var(--panel-muted); max-width: 48ch; margin-bottom: 30px; }
.cta-panel :focus-visible { outline-color: var(--panel-ink); }
.btn-outline-light { color: var(--panel-ink); border-color: color-mix(in srgb, var(--panel-ink) 40%, transparent); background: transparent; }
.btn-outline-light:hover { border-color: var(--panel-ink); background: rgba(255, 255, 255, .08); }
.btn-outline-light:active, .btn-outline-light.is-pressed { background: rgba(255, 255, 255, .16); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .35); }
.cta-glyph { position: absolute; right: 4%; top: 50%; z-index: -1; transform: translateY(-50%); font: italic 400 clamp(10rem, 24vw, 18rem)/1 var(--font-display); color: var(--panel-muted); opacity: .12; pointer-events: none; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .d-hot.draw { animation: none; stroke-dasharray: none; }
  .text-link::after, .feature, .btn-outline-light, .subnav-links a, .subnav-links a::after { transition: none; }
}
