/* ============================================================================
   Pishik marketing site — shared styles. Matches the app's palette & type.
   ========================================================================== */
/* Inter (variable) — self-hosted so pages make zero third-party requests.
   SIL OFL 1.1; attribution on /licenses. */
@font-face{
  font-family:"Inter"; src:url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight:100 900; font-style:normal; font-display:swap;
}
:root{
  --bg:#fafaf8; --surface:#ffffff; --surface-2:#f5f5f1; --surface-3:#efefe9;
  --hair:#ececE8; --hair-strong:#e0e0d9;
  --text:#1f1f1d; --text-2:#54544e; --text-3:#8f8f86;
  --accent:#4c5578; --accent-deep:#3a4160; --accent-soft:#eceef5; --accent-softer:#f4f5fa;
  --green:#4c7a59; --green-bg:#eaf2ec; --amber:#9a7b3f; --amber-bg:#f6efe1; --red:#9a5151; --red-bg:#f6e9e9;
  --shadow-sm:0 1px 2px rgba(31,31,29,.04);
  --shadow-md:0 4px 20px rgba(31,31,29,.07);
  --shadow-lg:0 18px 50px rgba(31,31,29,.13);
  --r:14px; --r-sm:10px; --r-lg:20px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --maxw:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{color:var(--accent); text-decoration:none}
a:hover{color:var(--accent-deep)}
img,svg{display:block; max-width:100%}
h1,h2,h3,h4{margin:0; letter-spacing:-.02em; line-height:1.12; font-weight:750}
p{margin:0}
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px}
.eyebrow{font-size:12.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--accent)}
.muted{color:var(--text-2)}
.center{text-align:center}

/* ---------- skip link (visually hidden until focused) ---------- */
.skip-link{position:fixed; top:-100px; left:16px; z-index:100; background:var(--accent-deep); color:#fff; font-size:14px; font-weight:650; padding:10px 18px; border-radius:11px; box-shadow:var(--shadow-md)}
.skip-link:focus{top:12px; color:#fff; outline:2px solid #fff; outline-offset:-4px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font:inherit; font-size:15px; font-weight:650; line-height:1; cursor:pointer;
  padding:12px 20px; border-radius:11px; border:1px solid transparent; transition:.16s var(--ease);
  white-space:nowrap;
}
.btn-primary{background:var(--accent); color:#fff; box-shadow:0 1px 2px rgba(31,31,29,.12)}
.btn-primary:hover{background:var(--accent-deep); color:#fff; transform:translateY(-1px); box-shadow:var(--shadow-md)}
.btn-ghost{background:var(--surface); color:var(--text); border-color:var(--hair-strong)}
.btn-ghost:hover{background:var(--surface-2); color:var(--text); border-color:var(--text-3)}
.btn-light{background:rgba(255,255,255,.16); color:#fff; border-color:rgba(255,255,255,.28)}
.btn-light:hover{background:rgba(255,255,255,.26); color:#fff}
.btn-lg{padding:15px 26px; font-size:16px; border-radius:13px}
.btn-sm{padding:9px 15px; font-size:13.5px; border-radius:9px}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50; background:rgba(250,250,248,.82);
  backdrop-filter:saturate(180%) blur(14px); border-bottom:1px solid transparent; transition:border-color .2s, box-shadow .2s;
}
.site-header.scrolled{border-bottom-color:var(--hair); box-shadow:var(--shadow-sm)}
.nav{display:flex; align-items:center; gap:26px; height:66px}
.brand{display:flex; align-items:center; gap:10px; font-weight:750; font-size:18px; letter-spacing:-.02em; color:var(--text)}
.brand .cat{cursor:pointer; transition:transform .3s var(--ease)}
.brand .cat:hover{transform:rotate(-8deg) scale(1.08)}
/* 🐱 brand mark — the emoji in a soft rounded tile */
.brand-mark{width:34px; height:34px; border-radius:10px; background:var(--accent-soft); display:inline-flex; align-items:center; justify-content:center; font-size:20px; line-height:1; box-shadow:var(--shadow-sm); flex:none}
.brand-mark.sm{width:30px; height:30px; font-size:18px; border-radius:9px}
/* private-beta marker next to the wordmark */
.beta-pill{font-size:10px; font-weight:800; letter-spacing:.08em; color:var(--amber); background:var(--amber-bg, rgba(154,123,63,.12)); border:1px solid rgba(154,123,63,.3); border-radius:100px; padding:3px 8px; line-height:1; transform:translateY(-1px)}
.nav-links{display:flex; align-items:center; gap:4px; margin-left:8px}
.nav-links a{color:var(--text-2); font-size:14.5px; font-weight:550; padding:8px 12px; border-radius:9px; transition:.14s}
.nav-links a:hover{color:var(--text); background:var(--surface-2)}
.nav-cta{margin-left:auto; display:flex; align-items:center; gap:10px}
.nav-toggle{display:none; margin-left:6px; background:none; border:none; cursor:pointer; padding:8px; color:var(--text)}

/* ---------- hero ---------- */
.hero{position:relative; overflow:hidden; padding:74px 0 40px}
.hero-bg{position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(76,85,120,.10), transparent 70%),
    radial-gradient(48% 45% at 8% 90%, rgba(76,122,89,.08), transparent 70%);
}
.hero .container{position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; gap:52px; align-items:center}
.hero-badge{display:inline-flex; align-items:center; gap:8px; background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:600; padding:6px 13px; border-radius:100px; margin-bottom:22px}
.hero h1{font-size:60px; font-weight:800; letter-spacing:-.035em; line-height:1.02}
.hero h1 .accent{color:var(--accent)}
.hero-cat{cursor:pointer; display:inline-block; background:none; border:none; padding:0; font:inherit; font-size:.62em; line-height:1; vertical-align:baseline; transition:transform .3s var(--ease)}
.hero-cat:hover{transform:rotate(-12deg) scale(1.12)}
.only-mobile{display:none}
.hero-sub{font-size:19px; color:var(--text-2); margin:22px 0 30px; max-width:520px; line-height:1.55}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.hero-note{margin-top:18px; font-size:13.5px; color:var(--text-3); display:flex; align-items:center; gap:8px}
.hero-note b{color:var(--text-2); font-weight:650}

/* ---------- interactive flow card (hero visual) ---------- */
.flowcard{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r-lg); box-shadow:var(--shadow-lg); padding:22px; position:relative}
.flowcard-top{display:flex; align-items:center; gap:9px; padding-bottom:14px; border-bottom:1px solid var(--hair); margin-bottom:16px}
.flow-dot{width:10px; height:10px; border-radius:50%; background:var(--hair-strong)}
.flowcard-title{font-size:13.5px; font-weight:700; margin-left:4px}
.flow-pill{margin-left:auto; font-size:11px; font-weight:600; padding:3px 9px; border-radius:100px; background:var(--amber-bg); color:var(--amber)}
.flow-pill.done{background:var(--green-bg); color:var(--green)}
.stage{display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:12px; border:1px solid var(--hair); margin-bottom:9px; background:var(--surface); transition:.35s var(--ease)}
.stage.active{border-color:var(--accent); background:var(--accent-softer); box-shadow:0 0 0 3px var(--accent-soft)}
.stage.complete{opacity:.9}
.stage-ic{width:32px; height:32px; border-radius:9px; flex:none; display:flex; align-items:center; justify-content:center; font-size:15px; background:var(--surface-2); color:var(--text-2); transition:.35s}
.stage.active .stage-ic{background:var(--accent); color:#fff}
.stage.complete .stage-ic{background:var(--green-bg); color:var(--green)}
.stage-body{flex:1; min-width:0}
.stage-name{font-size:13.5px; font-weight:650}
.stage-meta{font-size:12px; color:var(--text-3)}
.stage-check{font-size:14px; font-weight:700; color:var(--green); opacity:0; transition:.3s}
.stage.complete .stage-check{opacity:1}
.flow-caption{font-size:12px; color:var(--text-3); text-align:center; margin-top:12px}

/* ---------- logo strip ---------- */
.strip{padding:24px 0 8px}
.strip .container{display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap}
.strip span{font-size:12.5px; color:var(--text-3); font-weight:600; letter-spacing:.04em}
.chip{display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--text-2); background:var(--surface); border:1px solid var(--hair); padding:7px 13px; border-radius:100px}

/* ---------- sections ---------- */
.section{padding:76px 0}
.section-head{max-width:660px; margin:0 auto 46px; text-align:center}
.section-head h2{font-size:39px; font-weight:780; margin:14px 0 12px; letter-spacing:-.03em}
.section-head p{font-size:18px; color:var(--text-2)}
.section-alt{background:linear-gradient(180deg,var(--surface),var(--bg))}

/* ---------- feature tabs (interactive) ---------- */
.tabs{display:grid; grid-template-columns:.9fr 1.1fr; gap:34px; align-items:start}
.tablist{display:flex; flex-direction:column; gap:8px}
.tabbtn{display:flex; gap:14px; align-items:flex-start; text-align:left; background:none; border:1px solid transparent; border-radius:var(--r); padding:16px 16px; cursor:pointer; transition:.16s var(--ease); font:inherit; width:100%}
.tabbtn:hover{background:var(--surface)}
.tabbtn.active{background:var(--surface); border-color:var(--hair); box-shadow:var(--shadow-sm)}
.tabbtn .t-ic{width:40px; height:40px; border-radius:11px; flex:none; display:flex; align-items:center; justify-content:center; font-size:19px; background:var(--accent-soft)}
.tabbtn .t-title{display:block; font-size:16px; font-weight:700; margin-bottom:4px}
.tabbtn .t-desc{display:block; font-size:13.5px; color:var(--text-2); line-height:1.5}
.tabbtn.active .t-title{color:var(--accent)}
/* pause/play control for the auto-rotating tabs (WCAG 2.2.2) — injected by site.js */
.tab-pause{align-self:flex-start; margin-top:6px; display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:12.5px; font-weight:600; color:var(--text-3); background:none; border:1px solid var(--hair); border-radius:100px; padding:6px 13px; cursor:pointer; transition:.15s var(--ease)}
.tab-pause:hover{color:var(--text); border-color:var(--hair-strong); background:var(--surface)}
.tabpanel-wrap{position:relative; min-height:340px; background:var(--surface); border:1px solid var(--hair); border-radius:var(--r-lg); box-shadow:var(--shadow-md); overflow:hidden}
.tabpanel{position:absolute; inset:0; padding:26px; opacity:0; transform:translateY(10px); pointer-events:none; transition:.35s var(--ease)}
.tabpanel.show{opacity:1; transform:none; pointer-events:auto; position:relative}

/* mini mock components inside panels */
.mock-head{font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); margin-bottom:14px}
.mock-row{display:flex; align-items:center; gap:11px; padding:11px 13px; border:1px solid var(--hair); border-radius:11px; margin-bottom:9px; background:var(--surface)}
.mock-av{width:30px; height:30px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff}
.mock-name{font-size:13.5px; font-weight:600}
.mock-sub{font-size:12px; color:var(--text-3)}
.tag{font-size:11px; font-weight:650; padding:3px 9px; border-radius:100px}
.tag-green{background:var(--green-bg); color:var(--green)} .tag-amber{background:var(--amber-bg); color:var(--amber)}
.tag-blue{background:var(--accent-soft); color:var(--accent)} .tag-red{background:var(--red-bg); color:var(--red)}
.mock-mail{border:1px solid var(--hair); border-radius:13px; overflow:hidden}
.mock-mail-h{padding:12px 15px; border-bottom:1px solid var(--hair); font-size:12px; color:var(--text-3)}
.mock-mail-b{padding:16px 15px}
.mock-btns{display:flex; gap:9px; margin-top:14px}
.mbtn{flex:1; text-align:center; padding:9px; border-radius:9px; font-size:13px; font-weight:650}
.mbtn-yes{background:var(--green); color:#fff} .mbtn-no{background:var(--surface); color:var(--red); border:1px solid var(--hair-strong)}

/* ---------- steps ---------- */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.step{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); padding:26px 22px; position:relative}
.step-n{width:34px; height:34px; border-radius:10px; background:var(--accent); color:#fff; font-weight:750; font-size:15px; display:flex; align-items:center; justify-content:center; margin-bottom:16px}
.step h3{font-size:18px; margin-bottom:8px}
.step p{font-size:14.5px; color:var(--text-2)}
.step-line{position:absolute; top:43px; right:-12px; color:var(--hair-strong); font-size:20px}

/* ---------- benefit grid ---------- */
.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.gcard{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); padding:24px; transition:.18s var(--ease)}
.gcard:hover{transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--hair-strong)}
.gcard .g-ic{width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:21px; background:var(--accent-soft); margin-bottom:15px}
.gcard h3{font-size:17px; margin-bottom:8px}
.gcard p{font-size:14px; color:var(--text-2)}

/* ---------- trust / security ---------- */
.trust{background:var(--accent-deep); color:#fff; border-radius:var(--r-lg); padding:48px 44px; position:relative; overflow:hidden}
.trust h2{color:#fff; font-size:32px}
.trust p.lead{color:rgba(255,255,255,.72); font-size:17px; margin:12px 0 30px; max-width:560px}
.trust-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.tcard{background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:var(--r); padding:18px}
.tcard h3{font-size:15px; font-weight:750; color:#fff; margin-bottom:6px; display:flex; align-items:center; gap:8px}
.tcard p{font-size:13px; color:rgba(255,255,255,.66); line-height:1.5}

/* ---------- pricing ---------- */
.pricing-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch; max-width:960px; margin:0 auto}
.price{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r-lg); padding:30px 26px; display:flex; flex-direction:column}
.price.featured{border-color:var(--accent); box-shadow:var(--shadow-md); position:relative}
.price-flag{position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--accent); color:#fff; font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:5px 13px; border-radius:100px}
.price h3{font-size:19px}
.price .amt{font-size:40px; font-weight:800; letter-spacing:-.03em; margin:14px 0 2px}
.price .amt small{font-size:15px; font-weight:600; color:var(--text-3)}
.price .who{font-size:13.5px; color:var(--text-3); margin-bottom:20px}
.price ul{list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:11px}
.price li{font-size:14px; color:var(--text-2); display:flex; gap:10px; align-items:flex-start}
.price li::before{content:"✓"; color:var(--green); font-weight:800; flex:none}
.price li.muted-li{color:var(--text-3)} .price li.muted-li::before{content:"–"; color:var(--text-3)}
.price .btn{margin-top:auto; width:100%}
.price-note{text-align:center; font-size:13.5px; color:var(--text-3); margin-top:26px}
/* greyed-out plans while pricing is TBA (private beta) */
.price.tba{position:relative; background:var(--surface-2); border-style:dashed}
.price.tba h3, .price.tba .amt, .price.tba li{color:var(--text-3)}
.price.tba .who{color:var(--text-3); opacity:.8}
.price.tba li::before{color:var(--text-3)}
.price.tba .amt{opacity:.55}
.price.featured.tba{background:var(--surface); border-style:solid; border-color:var(--accent)}
.price.featured.tba h3{color:var(--text)}
.price.featured.tba li{color:var(--text-2)} .price.featured.tba li::before{color:var(--green)}
.tba-flag{position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--surface); color:var(--text-3); border:1px dashed var(--hair-strong); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:4px 12px; border-radius:100px}
.btn-disabled{opacity:.55; cursor:not-allowed; pointer-events:none; user-select:none}

/* ---------- FAQ ---------- */
.faq{max-width:760px; margin:0 auto}
.faq-item{border-bottom:1px solid var(--hair)}
.faq-q{width:100%; text-align:left; background:none; border:none; cursor:pointer; font:inherit; font-size:16.5px; font-weight:650; color:var(--text); padding:20px 40px 20px 0; position:relative; display:block}
.faq-q::after{content:"+"; position:absolute; right:6px; top:50%; transform:translateY(-50%); font-size:22px; font-weight:400; color:var(--text-3); transition:.2s}
.faq-item.open .faq-q::after{content:"–"; color:var(--accent)}
.faq-a{max-height:0; overflow:hidden; transition:max-height .3s var(--ease)}
.faq-a-inner{padding:0 0 20px; font-size:15px; color:var(--text-2); line-height:1.6}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(135deg,var(--accent),var(--accent-deep)); border-radius:var(--r-lg); padding:52px 44px; text-align:center; color:#fff}
.cta-band h2{color:#fff; font-size:34px}
.cta-band p{color:rgba(255,255,255,.78); font-size:17px; margin:12px 0 26px}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--hair); background:var(--surface); padding:52px 0 30px; margin-top:20px}
.foot-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:30px}
.foot-brand p{font-size:13.5px; color:var(--text-3); margin-top:12px; max-width:280px; line-height:1.55}
.foot-col h5,.foot-h{font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--text-3); margin-bottom:14px; line-height:1.4}
.foot-col a{display:block; font-size:14px; color:var(--text-2); padding:5px 0}
.foot-col a:hover{color:var(--accent)}
.foot-bottom{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:40px; padding-top:22px; border-top:1px solid var(--hair); font-size:13px; color:var(--text-3); flex-wrap:wrap}
/* the meow easter-egg button (footer paw, hero cat) — a plain button, never inside a link */
.meow{background:none; border:none; padding:0; font:inherit; cursor:pointer; line-height:1}

/* ---------- legal & doc pages ---------- */
.doc{max-width:820px; margin:0 auto; padding:52px 0 90px}
.doc-hero{padding:20px 0 30px; border-bottom:1px solid var(--hair); margin-bottom:36px}
.doc-hero h1{font-size:38px; font-weight:800}
.doc-hero p{color:var(--text-3); font-size:14.5px; margin-top:10px}
.doc h2{font-size:22px; margin:38px 0 12px; font-weight:730}
.doc h3{font-size:17px; margin:26px 0 8px; font-weight:680}
.doc p{font-size:15.5px; color:var(--text-2); margin:0 0 14px; line-height:1.68}
.doc ul,.doc ol{padding-left:22px; margin:0 0 16px}
.doc li{font-size:15.5px; color:var(--text-2); margin-bottom:8px; line-height:1.6}
.doc strong{color:var(--text); font-weight:680}
/* Operator-authored blog/changelog content: wrap long unbroken tokens (a pasted
   URL, an id) so an authored post can never break the page layout, regardless of
   the browser's overflow-wrap default. */
.doc p,.doc li,.doc h1,.doc h2,.doc h3,.doc h4,.article p,.article li,.article h2,.article h3,.article h4,.post-card h2,.post-card p{overflow-wrap:anywhere; word-break:break-word}
.callout{background:var(--amber-bg); border:1px solid #ecdcb6; border-radius:12px; padding:15px 18px; font-size:14px; color:#7a6431; margin:20px 0; line-height:1.6}
.callout.info{background:var(--accent-soft); border-color:#d6dcf0; color:#3a4160}
.toc{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); padding:20px 24px; margin:0 0 34px}
.toc .toc-h{font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); margin-bottom:12px}
.toc ol{columns:2; column-gap:34px; margin:0; padding-left:20px}
.toc li{font-size:14px; margin-bottom:6px}

/* ---------- support ---------- */
.support-hero{text-align:center; padding:54px 0 20px}
.support-hero h1{font-size:44px; font-weight:800}
.support-hero p{font-size:18px; color:var(--text-2); margin-top:14px}
.tut-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:18px}
.tut{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); padding:24px; transition:.16s var(--ease)}
.tut:hover{box-shadow:var(--shadow-md); transform:translateY(-2px)}
.tut .t-ic{width:42px; height:42px; border-radius:11px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:14px}
.tut h3{font-size:17px; margin-bottom:7px}
.tut p{font-size:14px; color:var(--text-2); margin-bottom:14px}
.tut ol{margin:0; padding-left:20px}
.tut li{font-size:13.5px; color:var(--text-2); margin-bottom:6px; line-height:1.5}
.support-cta{text-align:center; background:var(--surface); border:1px solid var(--hair); border-radius:var(--r-lg); padding:40px; margin-top:20px}

/* ---------- reveal-on-scroll ---------- */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease)}
.reveal.in{opacity:1; transform:none}

/* ---------- responsive ---------- */
@media (max-width:940px){
  .hero .container{grid-template-columns:1fr; gap:34px}
  .hero h1{font-size:46px}
  .tabs{grid-template-columns:1fr; gap:22px}
  .tabpanel-wrap{min-height:0}
  .steps,.grid3,.trust-grid,.pricing-grid,.tut-grid{grid-template-columns:1fr}
  .step-line{display:none}
  .foot-grid{grid-template-columns:1fr 1fr}
  .nav-links{display:none}
  .nav-links.open{display:flex; position:absolute; top:66px; left:0; right:0; flex-direction:column; align-items:stretch; gap:2px; background:var(--surface); border-bottom:1px solid var(--hair); box-shadow:var(--shadow-md); padding:10px 24px 16px}
  .nav-links.open a{padding:11px 12px; font-size:15px}
  .nav-toggle{display:block}
  .only-mobile{display:block}
}
@media (max-width:560px){
  .hero h1{font-size:38px}
  .section-head h2{font-size:30px}
  .foot-grid{grid-template-columns:1fr}
  .toc ol{columns:1}
  .container{padding:0 18px}
}

/* ============================ product showcase ============================ */
.showcase-tabs{display:flex; gap:8px; justify-content:center; margin-bottom:26px; flex-wrap:wrap}
.showtab{font:inherit; font-size:14px; font-weight:600; cursor:pointer; padding:9px 18px; border-radius:100px; border:1px solid var(--hair); background:var(--surface); color:var(--text-2); transition:.15s var(--ease)}
.showtab:hover{border-color:var(--hair-strong); color:var(--text)}
.showtab.active{background:var(--accent); color:#fff; border-color:var(--accent)}
.showframe{position:relative; background:var(--surface); border:1px solid var(--hair); border-radius:var(--r-lg); box-shadow:var(--shadow-lg); overflow:hidden; min-height:392px}
.showframe-bar{display:flex; align-items:center; gap:7px; padding:12px 16px; border-bottom:1px solid var(--hair); background:var(--surface-2)}
.showframe-bar .d{width:11px; height:11px; border-radius:50%; background:var(--hair-strong)}
.showframe-bar .u{margin-left:12px; font-size:12px; color:var(--text-3); font-weight:500; font-family:var(--mono,"JetBrains Mono",monospace)}
.showpanel{display:none; padding:22px}
.showpanel.show{display:block; animation:fadeUp .4s var(--ease)}
@keyframes fadeUp{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}

/* kanban */
.kanban{display:grid; grid-template-columns:repeat(4,1fr); gap:12px}
.kcol{background:var(--surface-2); border:1px solid var(--hair); border-radius:12px; padding:11px}
.kcol-h{display:flex; align-items:center; gap:7px; font-size:12px; font-weight:700; margin-bottom:10px; color:var(--text-2)}
.kcol-h .dot{width:8px; height:8px; border-radius:50%}
.kcol-h .n{margin-left:auto; font-size:11px; color:var(--text-3); background:var(--surface); border:1px solid var(--hair); border-radius:100px; padding:0 7px}
.kcard{background:var(--surface); border:1px solid var(--hair); border-radius:9px; padding:9px 10px; margin-bottom:8px; box-shadow:var(--shadow-sm)}
/* showcase board: the demo card that hops between columns */
#kcard-move{transition:transform .8s var(--ease), box-shadow .8s var(--ease), opacity .3s}
#kcard-move.lift{box-shadow:var(--shadow-lg); border-color:var(--accent)}
#kcard-move .kbar span{transition:width .7s var(--ease)}
.kcol-h .n{transition:transform .25s var(--ease)}
.kcol-h .n.tick{transform:scale(1.35)}
@media (prefers-reduced-motion: reduce){
  #kcard-move, #kcard-move .kbar span{transition:none}
}
.kcard .tt{font-size:11px; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:.04em}
.kcard .nm{font-size:12.5px; font-weight:600; margin:2px 0 6px; line-height:1.25}
.kcard .mt{display:flex; align-items:center; gap:5px; font-size:11px; color:var(--text-3)}
.kbar{height:4px; border-radius:3px; background:var(--surface-3); overflow:hidden; margin-top:6px}
.kbar span{display:block; height:100%; background:var(--accent)}
.kav{display:inline-flex; margin-left:auto}
.kav b{width:19px; height:19px; border-radius:50%; border:2px solid var(--surface); margin-left:-6px; font-size:8.5px; font-weight:700; color:#fff; display:flex; align-items:center; justify-content:center}

/* dashboard mock */
.dstats{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px}
.dstat{background:var(--surface-2); border:1px solid var(--hair); border-radius:12px; padding:14px}
.dstat .lab{font-size:11px; font-weight:600; color:var(--text-3); text-transform:uppercase; letter-spacing:.05em}
.dstat .val{font-size:26px; font-weight:800; letter-spacing:-.02em; margin-top:4px}
.dstat .sub{font-size:11.5px; color:var(--text-3)}
.dpanels{display:grid; grid-template-columns:1.3fr 1fr; gap:12px}
.dpanel{background:var(--surface-2); border:1px solid var(--hair); border-radius:12px; padding:14px}
.dpanel .dpanel-h{font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-3); margin:0 0 11px}
.drow{display:flex; align-items:center; gap:9px; padding:7px 0; border-top:1px solid var(--hair)}
.drow:first-of-type{border-top:none}
.dbars{display:flex; flex-direction:column; gap:9px}
.dbar-row{display:flex; align-items:center; gap:9px; font-size:12px}
.dbar-row .k{width:52px; color:var(--text-3)}
.dbar-track{flex:1; height:8px; background:var(--surface-3); border-radius:5px; overflow:hidden}
.dbar-track span{display:block; height:100%; border-radius:5px}

/* repository mock */
.repo-search{display:flex; align-items:center; gap:9px; background:var(--surface-2); border:1px solid var(--hair); border-radius:10px; padding:9px 12px; margin-bottom:12px; font-size:13px; color:var(--text-3)}
.repo-row{display:flex; align-items:center; gap:12px; padding:11px 12px; border:1px solid var(--hair); border-radius:10px; margin-bottom:8px; background:var(--surface)}
.repo-row .ico{width:30px; height:30px; border-radius:8px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:14px; flex:none}
.showcaption{text-align:center; font-size:13px; color:var(--text-3); margin-top:16px}

/* ============================ contact forms ============================== */
.form{max-width:600px; margin:0 auto}
.form .row2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.fld{margin-bottom:14px}
.fld label{display:block; font-size:12.5px; font-weight:600; color:var(--text-2); margin-bottom:6px}
.fld input,.fld select,.fld textarea{width:100%; box-sizing:border-box; font:inherit; font-size:15px; padding:11px 13px; border:1px solid var(--hair-strong); border-radius:10px; background:var(--surface); color:var(--text); transition:.14s}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.fld textarea{resize:vertical; min-height:130px; line-height:1.55}
.hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}
.form-msg{font-size:14px; padding:12px 15px; border-radius:10px; margin-bottom:14px; display:none}
.form-msg.ok{display:block; background:var(--green-bg); color:var(--green)}
.form-msg.err{display:block; background:var(--red-bg); color:var(--red)}
.form-success{text-align:center; padding:34px 20px}
.form-success .em{font-size:40px; margin-bottom:10px}

/* ============================ about page ================================ */
.about-hero{text-align:center; padding:60px 0 20px}
.about-hero .badge2{display:inline-block; background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:600; padding:6px 14px; border-radius:100px; margin-bottom:18px}
.about-hero h1{font-size:46px; font-weight:800; letter-spacing:-.03em; line-height:1.08}
.about-hero h1 .accent{color:var(--accent)}
.about-hero p{font-size:19px; color:var(--text-2); max-width:620px; margin:20px auto 0; line-height:1.55}
.mission{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r-lg); padding:40px; text-align:center; box-shadow:var(--shadow-sm)}
.mission .eyebrow{margin-bottom:14px; display:block}
.mission p{font-size:23px; font-weight:600; letter-spacing:-.01em; line-height:1.45; color:var(--text); max-width:720px; margin:0 auto}
.soon{text-align:center; padding:20px}
.soon .pill2{display:inline-flex; align-items:center; gap:9px; background:var(--surface-2); border:1px dashed var(--hair-strong); border-radius:100px; padding:11px 22px; font-size:15px; font-weight:600; color:var(--text-2)}

@media (max-width:940px){
  .kanban,.dstats{grid-template-columns:1fr 1fr}
  .dpanels{grid-template-columns:1fr}
  .form .row2{grid-template-columns:1fr}
  .showframe{min-height:0}
  .about-hero h1{font-size:36px}
}
@media (max-width:560px){
  .kanban,.dstats{grid-template-columns:1fr}
}

/* ============================ support center ============================= */
/* two-column shell: sticky rail + content (rail markup comes from a partial) */
.support-layout{display:grid; grid-template-columns:230px minmax(0,1fr); gap:44px; align-items:start; padding:36px 0 84px}
.support-rail{position:sticky; top:86px; max-height:calc(100vh - 106px); overflow-y:auto; display:flex; flex-direction:column; gap:2px; padding-right:6px}
.support-rail a{display:block; font-size:14px; color:var(--text-2); padding:7px 12px; border-radius:9px; line-height:1.35; transition:.14s}
.support-rail a:hover{background:var(--surface-2); color:var(--text)}
.support-rail a[aria-current="page"]{background:var(--accent-soft); color:var(--accent-deep); font-weight:650}
.support-rail .rail-home{font-weight:650; color:var(--text); margin-bottom:4px}
.rail-group{font-size:11.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--text-3); margin:18px 0 6px; padding:0 12px}

.breadcrumbs{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; color:var(--text-3); margin:0 0 16px}
.breadcrumbs a{color:var(--text-3)}
.breadcrumbs a:hover{color:var(--accent)}
.breadcrumbs .sep{color:var(--hair-strong)}
.breadcrumbs [aria-current="page"]{color:var(--text-2); font-weight:600}

.support-content h1{font-size:33px; font-weight:800; letter-spacing:-.03em; margin:0 0 10px}
.support-content .lede{font-size:16.5px; color:var(--text-2); margin:0 0 24px; line-height:1.6}

/* "On this page" mini-TOC — built by site.js from section.article headings */
.otp{background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); padding:16px 20px; margin:0 0 8px}
.otp-h{font-size:11.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--text-3); margin-bottom:9px}
.otp ul{list-style:none; margin:0; padding:0; columns:2; column-gap:30px}
.otp li{font-size:14px; margin-bottom:6px; break-inside:avoid}
.otp a{color:var(--text-2)}
.otp a:hover{color:var(--accent)}

/* anchor-addressed article blocks */
.article{padding:30px 0 26px; border-top:1px solid var(--hair); border-radius:var(--r-sm); scroll-margin-top:86px}
.article:first-of-type{border-top:none; padding-top:14px}
.article h2{font-size:21px; font-weight:730; margin:0 0 12px}
.article h3{font-size:16.5px; font-weight:680; margin:22px 0 8px}
.article p{font-size:15px; color:var(--text-2); line-height:1.68; margin:0 0 13px}
.article ul,.article ol{padding-left:22px; margin:0 0 14px}
.article li{font-size:15px; color:var(--text-2); margin-bottom:7px; line-height:1.6}
.article strong{color:var(--text); font-weight:680}
.anchor-link{margin-left:8px; font-size:.8em; font-weight:400; color:var(--text-3); opacity:0; transition:opacity .15s}
.article h2:hover .anchor-link,.anchor-link:focus{opacity:1}
.anchor-link:hover{color:var(--accent)}
@media (hover:none){.anchor-link{opacity:.5}}
/* deep links visibly land: soft accent flash on the :target section */
.article:target{animation:target-flash 1.8s var(--ease) 1}
@keyframes target-flash{from{background:var(--accent-softer); box-shadow:0 0 0 10px var(--accent-softer)} to{background:transparent; box-shadow:0 0 0 10px transparent}}

.article-meta{margin-top:16px; padding:13px 16px; background:var(--surface-2); border:1px solid var(--hair); border-radius:var(--r-sm); font-size:13.5px; color:var(--text-2); display:flex; align-items:center; gap:6px 16px; flex-wrap:wrap}
.article-meta b{font-weight:700; color:var(--text-3); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em}

/* hub search (progressive enhancement — tiles still work without JS) */
.support-search{position:relative; max-width:560px; margin:26px auto 0}
.support-search input{width:100%; box-sizing:border-box; font:inherit; font-size:16px; padding:13px 20px; border:1px solid var(--hair-strong); border-radius:100px; background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm); transition:.14s}
.support-search input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.ss-results{position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:60; background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); box-shadow:var(--shadow-lg); max-height:330px; overflow-y:auto; padding:6px; display:none; text-align:left}
.ss-results.open{display:block}
.ss-item{display:block; padding:9px 12px; border-radius:9px}
.ss-item .t{display:block; font-size:14.5px; font-weight:600; color:var(--text)}
.ss-item .c{display:block; font-size:12px; color:var(--text-3); margin-top:1px}
.ss-item:hover,.ss-item[aria-selected="true"]{background:var(--accent-softer)}
.ss-empty{padding:12px; font-size:13.5px; color:var(--text-3); text-align:center}

/* hub category tiles */
.cat-tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.cat-tile{display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); padding:22px; color:var(--text); transition:.16s var(--ease)}
.cat-tile:hover{transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--hair-strong); color:var(--text)}
.cat-tile .c-ic{width:40px; height:40px; border-radius:11px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:19px; margin-bottom:12px}
.cat-tile h2,.cat-tile h3{font-size:16px; font-weight:700; margin-bottom:6px; letter-spacing:-.01em}
.cat-tile p{font-size:13.5px; color:var(--text-2); line-height:1.5}
.cat-tile .c-count{margin-top:auto; padding-top:12px; font-size:12px; font-weight:600; color:var(--text-3)}

/* tutorial building blocks */
ol.steps-list{list-style:none; counter-reset:step; margin:0 0 16px; padding:0}
ol.steps-list>li{counter-increment:step; position:relative; padding:0 0 18px 44px; font-size:15px; color:var(--text-2); line-height:1.6}
ol.steps-list>li::before{content:counter(step); position:absolute; left:0; top:0; width:28px; height:28px; border-radius:9px; background:var(--accent-soft); color:var(--accent-deep); font-size:13.5px; font-weight:750; display:flex; align-items:center; justify-content:center}
ol.steps-list>li:not(:last-child)::after{content:""; position:absolute; left:13px; top:34px; bottom:4px; width:2px; background:var(--hair)}
kbd{font-family:ui-monospace,"Cascadia Code",Consolas,monospace; font-size:.82em; background:var(--surface-2); border:1px solid var(--hair-strong); border-bottom-width:2px; border-radius:6px; padding:2px 6px; color:var(--text); white-space:nowrap}
.table-scroll{overflow-x:auto; margin:0 0 16px}
.ref-table{width:100%; border-collapse:collapse; font-size:14px}
.ref-table th{text-align:left; font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-3); padding:9px 12px; border-bottom:1px solid var(--hair-strong)}
.ref-table td{padding:10px 12px; color:var(--text-2); border-bottom:1px solid var(--hair); vertical-align:top; line-height:1.5}
.ref-table tbody tr:nth-child(even){background:var(--surface-2)}
.shot{margin:20px 0; border:1px solid var(--hair); border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow-md); background:var(--surface)}
.shot img{width:100%}
.shot figcaption{padding:10px 14px; font-size:12.5px; color:var(--text-3); border-top:1px solid var(--hair); background:var(--surface-2)}

/* ================================= blog ================================== */
.blog-tags{display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin:0 0 30px}
.blog-tags button{font:inherit; font-size:13.5px; font-weight:600; cursor:pointer; padding:8px 16px; border-radius:100px; border:1px solid var(--hair); background:var(--surface); color:var(--text-2); transition:.15s var(--ease)}
.blog-tags button:hover{border-color:var(--hair-strong); color:var(--text)}
.blog-tags button[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:#fff}
.post-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.post-card{display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--hair); border-radius:var(--r); padding:24px; color:var(--text); transition:.18s var(--ease)}
.post-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--hair-strong); color:var(--text)}
.post-card[hidden]{display:none}
.post-meta{display:flex; align-items:center; gap:10px; margin-bottom:13px}
.post-tag{font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; background:var(--accent-soft); color:var(--accent); padding:3px 9px; border-radius:100px; white-space:nowrap}
.post-meta time{font-size:12.5px; color:var(--text-3)}
.post-card h2{font-size:19px; font-weight:730; letter-spacing:-.02em; line-height:1.3; margin-bottom:8px}
.post-card p{font-size:14px; color:var(--text-2); line-height:1.55}
.post-more{margin-top:auto; padding-top:16px; font-size:13.5px; font-weight:650; color:var(--accent)}
.post-card:hover .post-more{color:var(--accent-deep)}
/* post page — layers onto the .doc pattern */
.post-head{padding:0 0 24px; border-bottom:1px solid var(--hair); margin-bottom:34px}
.post-head h1{font-size:40px; font-weight:800; letter-spacing:-.03em; line-height:1.1}
.post-byline{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:16px; font-size:14px; color:var(--text-3)}
.post-byline b{color:var(--text-2); font-weight:650}
.post-cta{margin-top:46px; background:linear-gradient(135deg,var(--accent),var(--accent-deep)); border-radius:var(--r-lg); padding:34px 30px; text-align:center; color:#fff}
.post-cta h2{color:#fff; font-size:24px; margin:0 0 8px}
.post-cta p{color:rgba(255,255,255,.78); font-size:15px; margin:0 0 20px}

/* -------- responsive: support & blog -------- */
@media (max-width:940px){
  .support-layout{grid-template-columns:1fr; gap:8px; padding-top:20px}
  /* the rail collapses into a horizontal scroll strip of pills */
  .support-rail{position:static; max-height:none; flex-direction:row; align-items:center; gap:6px; overflow-x:auto; padding:4px 2px 12px; margin-bottom:12px; border-bottom:1px solid var(--hair); -webkit-overflow-scrolling:touch}
  .support-rail a{flex:none; white-space:nowrap; font-size:13px; padding:7px 14px; border:1px solid var(--hair); border-radius:100px; background:var(--surface)}
  .support-rail a[aria-current="page"]{border-color:var(--accent); background:var(--accent-soft); color:var(--accent-deep)}
  .support-rail .rail-home{margin-bottom:0}
  .rail-group{display:none}
  .cat-tiles,.post-grid{grid-template-columns:1fr 1fr}
  .post-head h1{font-size:32px}
}
@media (max-width:560px){
  .cat-tiles,.post-grid{grid-template-columns:1fr}
  .otp ul{columns:1}
  .support-content h1{font-size:28px}
  .post-head h1{font-size:28px}
}

/* ============================ reduced motion ============================= */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1; transform:none; transition:none}
  .tabpanel{transition:none}
  .stage,.stage-ic,.stage-check{transition:none}
  .showpanel.show{animation:none}
  .btn-primary:hover,.gcard:hover,.tut:hover,.cat-tile:hover,.post-card:hover{transform:none}
  .brand .cat:hover,.hero-cat:hover{transform:none}
  /* deep links still visibly land — a steady highlight instead of a flash */
  .article:target{animation:none; background:var(--accent-softer); box-shadow:0 0 0 10px var(--accent-softer)}
}
